/* =========================================================
   PRODUCTS PAGE
========================================================= */
.products-page {
    padding: 56px 0 72px;
    background:
        radial-gradient(circle at top left, rgba(143, 211, 220, 0.12), transparent 32%),
        radial-gradient(circle at top right, rgba(245, 130, 32, 0.08), transparent 26%),
        linear-gradient(180deg, #f8f8f4 0%, #f2f2ee 100%);
}

/* =========================================================
   PRODUCTS HEADER
========================================================= */
.products-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 26px;
}

.products-header h1 {
    margin: 0 0 12px;
    font-size: clamp(2.3rem, 4vw, 3.1rem);
    line-height: 1.05;
    font-weight: 700;
    color: #011425;
    letter-spacing: -0.03em;
}

.products-intro {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: #4b5b63;
}

.product-section-heading {
    margin: 0 0 28px;
    text-align: left;
}

.product-section-heading--spaced {
    margin-top: 48px;
}

.product-section-heading h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    line-height: 1.2;
    font-weight: 700;
    color: #242424;
    letter-spacing: -0.02em;
}

/* =========================================================
   PRODUCTS GRID
========================================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.products-grid--three {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 312px));
    gap: 24px;
    justify-content: start;
    align-items: start;
    max-width: 984px;
    margin: 0;
}

/* =========================================================
   PRODUCT CARD
========================================================= */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #f3f3f1;
    border: 1px solid rgba(31, 73, 89, 0.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(1, 20, 37, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(1, 20, 37, 0.09);
}

/* =========================================================
   PRODUCT IMAGE
========================================================= */
.product-image-wrap {
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f3f1; /* same as card */
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* =========================================================
   PRODUCT BODY
========================================================= */
.product-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px 18px 18px;
}

.product-title {
    margin: 0 0 2px;
    font-size: 1.02rem;
    line-height: 1.24;
    font-weight: 700;
    color: #3b3b3b;
    letter-spacing: -0.01em;
    min-height: 0;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 6px;
}

.product-size,
.product-pcs {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.35;
    color: #6a6a6a;
    font-weight: 600;
}

/* =========================================================
   PRICE ROW
========================================================= */
.product-price-row {
    min-height: 0;
    margin: 0 0 8px;
}

.product-price {
    display: inline-block;
    font-size: 0.98rem;
    font-weight: 700;
    color: #f58220;
    min-height: 0;
}

/* =========================================================
   PRODUCT ORDER ROW
========================================================= */
.product-order-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

/* =========================================================
   QUANTITY BOX
========================================================= */
.qty-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(36, 36, 36, 0.10);
    background: #f7f7f5;
    overflow: hidden;
}

.qty-btn {
    width: 48px;
    height: 48px;
    border: 0;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 700;
    color: #011425;
    cursor: pointer;
    transition: background 0.2s ease;
}

.qty-btn:hover {
    background: rgba(143, 211, 220, 0.10);
}

.qty-input {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #011425;
    outline: none;
}

/* =========================================================
   ADD TO CART BUTTON
========================================================= */
.add-cart-btn {
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(180deg, #f7931a 0%, #f07f08 100%);
    box-shadow:
        0 10px 22px rgba(245, 130, 32, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.add-cart-btn:hover {
    transform: translateY(-1px);
    box-shadow:
        0 14px 28px rgba(245, 130, 32, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.26);
    filter: brightness(1.01);
}

/* =========================================================
   PRODUCT SUBSECTIONS
========================================================= */
.product-subsection-heading {
    margin-top: 28px;
    margin-bottom: 16px;
}

.product-subsection-heading--spaced {
    margin-top: 48px;
}

.product-subsection-heading h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1F4959;
    letter-spacing: 0.3px;
    position: relative;
    display: inline-block;
}

.product-subsection-heading h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 36px;
    height: 2px;
    background: linear-gradient(90deg, #F58220, rgba(245,130,32,0.3));
    border-radius: 2px;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1199px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .products-grid--three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: 100%;
    }
}

@media (max-width: 991px) {
    .products-page {
        padding: 44px 0 60px;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .products-grid--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
        max-width: 100%;
    }

    .product-image-wrap {
        height: 230px;
    }

    .product-title {
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    .products-header {
        margin-bottom: 24px;
    }

    .product-section-heading {
        margin-bottom: 22px;
    }

    .product-section-heading--spaced {
        margin-top: 36px;
    }

    .products-grid,
    .products-grid--three {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100%;
    }

    .product-card {
        border-radius: 18px;
    }

    .product-image-wrap {
        height: 220px;
    }

    .product-card-body {
        padding: 18px;
    }

    .product-title {
        min-height: 0;
        font-size: 1.1rem;
    }

    .qty-box,
    .qty-btn {
        height: 48px;
    }

    .qty-btn {
        width: 48px;
    }

    .add-cart-btn {
        border-radius: 12px;
    }
}