/* =========================================================
   PRODUCTS PAGE
========================================================= */

.products-section {
    width: 100%;
    min-height: 100vh;

    background: #f7f1e6;

    padding: 110px 32px 80px;
}


/* =========================================================
   PAGE HEADER
========================================================= */

.products-header {
    width: 100%;
    max-width: 1320px;

    margin: 0 auto 34px;

    text-align: left;
}

.products-header h1 {
    margin: 0 0 7px;

    color: #243b2a;

    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.8px;

    line-height: 1.2;
}

.products-header p {
    max-width: 700px;

    margin: 0;

    color: #6f8b6c;

    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   PRODUCT GRID
========================================================= */

.products-grid {
    width: 100%;
    max-width: 1320px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;
}


/* =========================================================
   PRODUCT CARD
========================================================= */

.product-card {
    width: 100%;

    background: #ffffff;

    border: 1px solid rgba(36, 59, 42, 0.10);

    border-radius: 15px;

    overflow: hidden;

    box-shadow:
        0 6px 20px rgba(36, 59, 42, 0.055);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 12px 30px rgba(36, 59, 42, 0.10);
}


/* =========================================================
   PRODUCT IMAGE
========================================================= */

.product-image-wrapper {
    width: 100%;

    aspect-ratio: 4 / 3;

    background: #f4efe5;

    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.35s ease;
}

.product-card:hover .product-image {
    transform: scale(1.025);
}

.product-image-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #6f8b6c;

    font-size: 13px;
}


/* =========================================================
   PRODUCT CONTENT
========================================================= */

.product-content {
    padding: 15px 17px 17px;
}

.product-name {
    margin: 0;

    color: #243b2a;

    font-size: 19px;
    font-weight: 700;

    line-height: 1.3;
}


/* =========================================================
   SHOPPING AREA
========================================================= */

.product-cart-area {
    margin-top: 13px;

    padding-top: 13px;

    border-top:
        1px solid rgba(36, 59, 42, 0.09);
}


/* =========================================================
   FIELD
========================================================= */

.product-field {
    margin-bottom: 10px;
}

.product-field label {
    display: block;

    margin-bottom: 5px;

    color: #243b2a;

    font-size: 11px;
    font-weight: 700;
}


/* =========================================================
   SIZE SELECT
========================================================= */

.size-select {
    width: 100%;

    height: 39px;

    padding: 0 35px 0 11px;

    border:
        1px solid rgba(36, 59, 42, 0.16);

    border-radius: 8px;

    background: #ffffff;

    color: #243b2a;

    font-size: 13px;

    outline: none;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.size-select:focus {
    border-color: #b08c21;

    box-shadow:
        0 0 0 3px rgba(176, 140, 33, 0.10);
}


/* =========================================================
   QUANTITY
========================================================= */

.quantity-control {
    width: 100%;
    height: 39px;

    display: flex;
    align-items: stretch;

    border:
        1px solid rgba(36, 59, 42, 0.16);

    border-radius: 8px;

    overflow: hidden;

    background: #ffffff;
}

.quantity-button {
    width: 40px;

    padding: 0;

    border: 0;

    background: #f4efe5;

    color: #243b2a;

    font-size: 17px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.quantity-button:hover {
    background: #243b2a;

    color: #ffffff;
}

.quantity-input {
    flex: 1;

    min-width: 0;

    height: 39px;

    border: 0;

    background: #ffffff;

    color: #243b2a;

    text-align: center;

    font-size: 13px;
    font-weight: 600;

    outline: none;
}

.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;

    margin: 0;
}

.quantity-input {
    -moz-appearance: textfield;
}


/* =========================================================
   AVAILABILITY MESSAGE
========================================================= */

.availability-message {
    min-height: 17px;

    margin: 6px 0 7px;

    color: #243b2a;

    font-size: 11px;
    font-weight: 700;

    text-align: center;

    transition:
        color 0.2s ease;
}

.availability-message.error {
    color: #9a3f32;
}

.availability-message.checking {
    color: #6f8b6c;
}


/* =========================================================
   ADD TO CART
========================================================= */

.add-to-cart-form {
    margin: 0;
}

.add-to-cart-button {
    width: 100%;

    height: 40px;

    border:
        1px solid #b08c21;

    border-radius: 8px;

    background: #b08c21;

    color: #ffffff;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        opacity 0.2s ease,
        transform 0.2s ease;
}

.add-to-cart-button:hover:not(:disabled) {
    background: #96771c;

    transform: translateY(-1px);
}

.add-to-cart-button:disabled {
    background: #d4c9aa;

    border-color: #d4c9aa;

    color: #ffffff;

    cursor: not-allowed;

    opacity: 0.8;
}


/* =========================================================
   SOLD OUT CARD STATE
========================================================= */

.product-card.sold-out .size-select {
    border-color:
        rgba(154, 63, 50, 0.25);
}


/* =========================================================
   EMPTY STATE
========================================================= */

.products-empty {
    max-width: 600px;

    margin: 45px auto 0;

    padding: 35px 25px;

    background: #ffffff;

    border-radius: 14px;

    text-align: center;

    box-shadow:
        0 5px 18px rgba(36, 59, 42, 0.055);
}

.products-empty h2 {
    margin: 0 0 8px;

    color: #243b2a;

    font-size: 22px;
}

.products-empty p {
    margin: 0;

    color: #6f8b6c;

    font-size: 13px;

    line-height: 1.6;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .products-section {
        padding-left: 24px;
        padding-right: 24px;
    }

    .products-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 20px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 680px) {

    .products-section {
        padding:
            95px
            14px
            65px;
    }

    .products-header {
        margin-bottom: 25px;
    }

    .products-header h1 {
        font-size: 29px;
    }

    .products-header p {
        font-size: 13px;
    }

    .products-grid {
        grid-template-columns: 1fr;

        gap: 17px;
    }

    .product-image-wrapper {
        aspect-ratio: 4 / 3;
    }

    .product-content {
        padding: 15px;
    }

    .product-name {
        font-size: 18px;
    }

}
