/* =========================================
 ###  CATÁLOGO DE PRODUTOS
========================================= */

.products-page {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    padding: 60px 20px;
}


/* =========================================
   CABEÇALHO
========================================= */

.products-header {
    margin-bottom: 40px;
}

.products-eyebrow {
    display: block;

    margin-bottom: 8px;

    font-size: 13px;
    font-weight: 700;

    color: #777;

    text-transform: uppercase;
    letter-spacing: 1px;
}

.products-header h1 {
    margin: 0 0 10px;

    font-size: 40px;

    color: #111;
}

.products-header p {
    margin: 0;

    color: #777;

    font-size: 16px;
}


/* =========================================
   GRID
========================================= */

.products-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 25px;
}


/* =========================================
   CARD
========================================= */

.product-card {
    background: #fff;

    border: 1px solid #eee;

    border-radius: 14px;

    overflow: hidden;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.08);
}


/* =========================================
   IMAGEM
========================================= */

.product-card-image {
    position: relative;

    width: 100%;
    height: 300px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f8f8f8;

    overflow: hidden;
}

.product-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    padding: 30px;

    object-fit: contain;

    transition:
        transform 0.35s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.08);
}

.product-card-no-image {
    color: #999;

    font-size: 14px;
}


/* =========================================
   BADGES
========================================= */

.product-badge,
.product-discount {
    position: absolute;

    z-index: 2;

    top: 15px;

    padding: 6px 10px;

    border-radius: 5px;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
}

.product-badge {
    left: 15px;

    background: #111;
    color: #fff;
}

.product-discount {
    right: 15px;

    background: #e53935;
    color: #fff;
}


/* =========================================
   CONTEÚDO
========================================= */

.product-card-body {
    padding: 22px;
}

.product-card-brand {
    display: block;

    margin-bottom: 7px;

    font-size: 12px;
    font-weight: 600;

    color: #888;

    text-transform: uppercase;
}

.product-card-title {
    margin: 0 0 10px;

    font-size: 19px;
    line-height: 1.3;

    color: #111;
}

.product-card-description {
    min-height: 45px;

    margin: 0 0 18px;

    font-size: 14px;
    line-height: 1.5;

    color: #777;
}


/* =========================================
   PREÇO
========================================= */

.product-card-price {
    display: flex;
    flex-direction: column;

    margin-bottom: 20px;
}

.product-card-price-old {
    margin-bottom: 5px;

    font-size: 13px;

    color: #999;

    text-decoration: line-through;
}

.product-card-price strong {
    font-size: 24px;

    color: #111;
}


/* =========================================
   BOTÕES
========================================= */

.product-card-actions {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;
}

.product-card-view,
.product-card-buy {
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    text-decoration: none;

    transition: 0.2s ease;
}

.product-card-view {
    border: 1px solid #ddd;

    background: #fff;

    color: #222;
}

.product-card-view:hover {
    background: #f5f5f5;
}

.product-card-buy {
    border: 1px solid #111;

    background: #111;

    color: #fff;
}

.product-card-buy:hover {
    background: #333;
}


/* =========================================
   SEM PRODUTOS
========================================= */

.products-empty {
    padding: 80px 20px;

    text-align: center;

    color: #777;
}



/* =========================================
  ### PÁGINA DO PRODUTO
========================================= */

.product-page {
    width: 100%;
    padding: 60px 20px;
}

.product-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;

    align-items: start;
}


/* =========================================
   IMAGEM
========================================= */

.product-image {
    width: 100%;
    height: 520px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f7f7f7;

    border-radius: 16px;

    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    padding: 30px;
}

.product-image-placeholder {
    color: #777;

    font-size: 16px;
}


/* =========================================
   INFORMAÇÕES
========================================= */

.product-info {
    display: flex;
    flex-direction: column;
}

.product-category {
    margin-bottom: 12px;

    font-size: 13px;
    font-weight: 600;

    color: #777;

    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-title {
    margin: 0 0 18px;

    font-size: 42px;
    line-height: 1.15;

    color: #111;
}

.product-description {
    margin: 0 0 28px;

    font-size: 17px;
    line-height: 1.7;

    color: #666;
}


/* =========================================
   PREÇO
========================================= */

.product-price {
    display: flex;
    flex-direction: column;

    margin-bottom: 30px;
}

.product-price-old {
    margin-bottom: 8px;

    font-size: 16px;

    color: #999;

    text-decoration: line-through;
}

.product-price strong {
    font-size: 36px;
    line-height: 1;

    color: #111;
}


/* =========================================
   COMPRA
========================================= */

.product-actions {
    display: flex;
    align-items: center;

    gap: 15px;

    margin-bottom: 35px;
}

.product-quantity {
    height: 52px;

    display: flex;
    align-items: center;

    border: 1px solid #ddd;

    border-radius: 8px;

    overflow: hidden;
}

.product-quantity button {
    width: 45px;
    height: 100%;

    border: none;

    background: #f5f5f5;

    font-size: 20px;

    cursor: pointer;

    transition: background 0.2s ease;
}

.product-quantity button:hover {
    background: #eaeaea;
}

.product-quantity input {
    width: 55px;
    height: 100%;

    border: none;
    outline: none;

    text-align: center;

    font-size: 16px;
}


/* remove setas do input number */

.product-quantity input::-webkit-inner-spin-button,
.product-quantity input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-quantity input[type="number"] {
    appearance: textfield;
}


.product-buy-button {
    height: 52px;

    padding: 0 35px;

    border: none;

    border-radius: 8px;

    background: #111;
    color: #fff;

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}

.product-buy-button:hover {
    background: #333;
}


/* =========================================
   DETALHES
========================================= */

.product-details {
    display: flex;
    flex-direction: column;

    gap: 15px;

    padding-top: 25px;

    border-top: 1px solid #eee;
}

.product-details div {
    display: flex;
    justify-content: space-between;

    gap: 20px;
}

.product-details span {
    color: #888;
}

.product-details strong {
    color: #222;
}


/* =========================================
   DESCRIÇÃO COMPLETA
========================================= */

.product-full-description {
    width: 100%;
    max-width: 1200px;

    margin: 70px auto 0;

    padding-top: 40px;

    border-top: 1px solid #eee;
}

.product-full-description h2 {
    margin: 0 0 25px;

    font-size: 28px;

    color: #111;
}

.product-full-description-content {
    max-width: 900px;

    font-size: 16px;
    line-height: 1.8;

    color: #555;
}



/* =========================================
   ### ESTOQUE
========================================= */

.product-stock {
    display: flex;

    flex-direction: column;

    gap: 4px;

    margin: 20px 0;
}

.product-stock span {
    font-size: 14px;
    font-weight: 700;
}

.product-stock small {
    font-size: 13px;

    color: #777;
}

.product-stock-available {
    color: #2e7d32;
}

.product-stock-low {
    color: #ef6c00;
}

.product-stock-out {
    color: #d32f2f;
}


/* =========================================
   CONTROLES DESABILITADOS
========================================= */

.product-quantity button:disabled,
.product-quantity input:disabled,
.product-buy-button:disabled {
    opacity: 0.5;

    cursor: not-allowed;
}

/* Ajustes responsivos da grade usada na página de categoria. */
@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .product-card-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card-image {
        height: 280px;
    }
}
