/* =========================================================
   Company
   PRODUCTS.CSS
========================================================= */


/* =========================================================
   NEW ARRIVALS SECTION
========================================================= */

.new-arrivals {
    width: 100%;
    padding: 120px 4%;
    background: #ffffff;
}


/* =========================================================
   PRODUCT GRID
========================================================= */

.product-grid {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 14px;
}


/* =========================================================
   PRODUCT CARD
========================================================= */

.product-card {
    display: block;

    min-width: 0;

    color: inherit;
    text-decoration: none;

    cursor: pointer;
}


/* =========================================================
   PRODUCT IMAGE AREA
========================================================= */

.product-image {
    position: relative;

    width: 100%;
    aspect-ratio: 4 / 5;

    overflow: hidden;

    background: #f1efe9;
}


/* =========================================================
   PRODUCT PHOTOS
========================================================= */

.product-photos {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;
}


.product-photo {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        opacity 0.5s ease,
        transform 0.8s ease;
}


/* FIRST IMAGE */

.primary-photo {
    z-index: 1;
    opacity: 1;
}


/* SECOND IMAGE */

.secondary-photo {
    z-index: 2;
    opacity: 0;
}


/* =========================================================
   IMAGE HOVER
========================================================= */

.product-card:hover .primary-photo {
    opacity: 0;
}


.product-card:hover .secondary-photo {
    opacity: 1;
}


.product-card:hover .product-photo {
    transform: scale(1.03);
}


/* =========================================================
   PRODUCT BADGE
========================================================= */

.product-badge {
    position: absolute;

    top: 14px;
    left: 14px;

    z-index: 10;

    padding: 7px 11px;

    background: rgba(255, 255, 255, 0.95);
    color: #111;

    font-size: 8px;
    font-weight: 600;

    line-height: 1;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}


/* =========================================================
   VIEW PRODUCT BUTTON
========================================================= */

.product-hover {
    position: absolute;

    left: 14px;
    right: 14px;
    bottom: 14px;

    z-index: 10;

    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.96);
    color: #111;

    opacity: 0;

    transform: translateY(12px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        background 0.3s ease;
}


.product-hover span {
    font-size: 9px;
    font-weight: 500;

    letter-spacing: 1.6px;
}


.product-card:hover .product-hover {
    opacity: 1;

    transform: translateY(0);
}


.product-hover:hover {
    background: #111;
    color: #fff;
}


/* =========================================================
   PRODUCT DETAILS
========================================================= */

.product-details {
    width: 100%;

    padding: 17px 2px 28px;

    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    gap: 18px;
}


/* LEFT INFORMATION */

.product-details > div {
    min-width: 0;
}


/* CATEGORY */

.product-category {
    margin: 0 0 6px;

    color: #8a877f;

    font-size: 8px;
    font-weight: 500;

    letter-spacing: 1.4px;

    line-height: 1.5;

    text-transform: uppercase;
}


/* PRODUCT NAME */

.product-details h3 {
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 15px;
    font-weight: 400;

    line-height: 1.45;
}


/* PRICE */

.product-price {
    margin: 0;

    flex-shrink: 0;

    color: #333;

    font-size: 11px;

    line-height: 1.5;

    white-space: nowrap;
}


/* =========================================================
   IMAGE ERROR / EMPTY IMAGE AREA
========================================================= */

.product-image img {
    background: #f1efe9;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .new-arrivals {
        padding: 100px 4%;
    }


    .product-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .new-arrivals {
        padding: 75px 15px;
    }


    .product-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 8px;
    }


    .product-image {
        aspect-ratio: 4 / 5;
    }


    .product-badge {
        top: 9px;
        left: 9px;

        padding: 6px 8px;

        font-size: 7px;
    }


    /* Mobile-এ দ্বিতীয় hover image বন্ধ */

    .secondary-photo {
        display: none;
    }


    .primary-photo {
        opacity: 1 !important;
    }


    .product-card:hover .primary-photo {
        opacity: 1;
    }


    .product-card:hover .product-photo {
        transform: none;
    }


    /* Mobile-এ hover button প্রয়োজন নেই */

    .product-hover {
        display: none;
    }


    .product-details {
        padding: 12px 1px 22px;

        flex-direction: column;

        gap: 5px;
    }


    .product-category {
        margin-bottom: 4px;

        font-size: 7px;

        letter-spacing: 1px;
    }


    .product-details h3 {
        font-size: 13px;

        line-height: 1.4;
    }


    .product-price {
        font-size: 10px;

        white-space: normal;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .product-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }


    .product-details h3 {
        font-size: 15px;
    }

}
/* =========================================================
   ALL PRODUCTS PAGE
========================================================= */

.products-page-header {
    padding: 110px 4% 70px;

    text-align: center;

    background: #f7f5f0;
}


.products-page-header h1 {
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(48px, 6vw, 82px);

    font-weight: 400;

    line-height: 1;
}


.products-page-description {
    max-width: 600px;

    margin: 25px auto 0;

    color: #77736c;

    font-size: 13px;

    line-height: 1.8;
}


/* =========================================================
   FILTER
========================================================= */

.products-filter-section {
    padding: 0 4%;

    background: #fff;

    border-bottom: 1px solid #e5e2dc;
}


.products-filter {
    min-height: 75px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 35px;

    overflow-x: auto;

    scrollbar-width: none;
}


.products-filter::-webkit-scrollbar {
    display: none;
}


.product-filter-btn {
    position: relative;

    flex-shrink: 0;

    padding: 28px 0;

    border: 0;

    background: transparent;

    color: #8a877f;

    font-size: 9px;
    font-weight: 500;

    letter-spacing: 1.5px;

    cursor: pointer;

    transition: color 0.25s ease;
}


.product-filter-btn:hover {
    color: #111;
}


.product-filter-btn::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 19px;

    height: 1px;

    background: #111;

    transform: scaleX(0);

    transition: transform 0.25s ease;
}


.product-filter-btn.active {
    color: #111;
}


.product-filter-btn.active::after {
    transform: scaleX(1);
}


/* =========================================================
   ALL PRODUCTS GRID
========================================================= */

.all-products-section {
    padding: 65px 4% 140px;

    background: #fff;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .products-page-header {
        padding: 75px 20px 55px;
    }


    .products-page-header h1 {
        font-size: 46px;
    }


    .products-filter-section {
        padding: 0;
    }


    .products-filter {
        justify-content: flex-start;

        min-height: 65px;

        padding: 0 16px;

        gap: 25px;
    }


    .product-filter-btn {
        padding: 23px 0;
    }


    .product-filter-btn::after {
        bottom: 15px;
    }


    .all-products-section {
        padding: 35px 15px 90px;
    }

}
/* =========================================================
   PRODUCT DETAIL PAGE
========================================================= */

.product-breadcrumb {
    width: 100%;

    padding: 28px 4%;

    display: flex;
    align-items: center;

    gap: 10px;

    border-bottom: 1px solid #e8e5df;

    background: #fff;

    color: #89857e;

    font-size: 8px;

    letter-spacing: 1.3px;

    text-transform: uppercase;
}


.product-breadcrumb a {
    color: #89857e;

    text-decoration: none;

    transition: color 0.25s ease;
}


.product-breadcrumb a:hover {
    color: #111;
}


/* =========================================================
   PRODUCT DETAIL LAYOUT
========================================================= */

.product-detail-page {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(380px, 0.75fr);

    background: #fff;
}


/* =========================================================
   IMAGE GALLERY
========================================================= */

.product-detail-gallery {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 2px;

    background: #fff;
}


.product-detail-image {
    width: 100%;

    min-height: 700px;

    background: #f1efe9;

    overflow: hidden;
}


.product-detail-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.8s ease;
}


.product-detail-image:hover img {
    transform: scale(1.02);
}


/* =========================================================
   PRODUCT INFORMATION
========================================================= */

.product-detail-info {
    position: relative;

    padding: 80px 9%;

    background: #faf9f6;
}


.product-info-inner {
    position: sticky;

    top: 130px;
}


.product-detail-category {
    margin: 0 0 20px;

    color: #8a877f;

    font-size: 9px;

    letter-spacing: 1.7px;

    text-transform: uppercase;
}


.product-detail-info h1 {
    max-width: 500px;

    margin: 0;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(38px, 4vw, 64px);

    font-weight: 400;

    line-height: 1.05;
}


.product-detail-price {
    margin: 25px 0 0;

    font-size: 13px;

    letter-spacing: 0.4px;
}


.product-detail-line {
    width: 100%;

    height: 1px;

    margin: 40px 0;

    background: #ddd9d1;
}


.product-detail-description {
    max-width: 520px;

    margin: 0;

    color: #625f59;

    font-size: 13px;

    line-height: 2;
}


/* =========================================================
   PRODUCT FEATURES
========================================================= */

.product-detail-features {
    margin-top: 45px;

    border-top: 1px solid #ddd9d1;
}


.product-detail-features > div {
    min-height: 58px;

    display: flex;
    align-items: center;

    gap: 20px;

    border-bottom: 1px solid #ddd9d1;
}


.product-detail-features span {
    color: #aaa59c;

    font-size: 8px;
}


.product-detail-features p {
    margin: 0;

    font-size: 9px;

    letter-spacing: 1.3px;
}


/* =========================================================
   INQUIRY BUTTON
========================================================= */

.product-inquiry-button {
    width: 100%;

    min-height: 62px;

    margin-top: 45px;

    padding: 0 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #111;

    color: #fff;

    text-decoration: none;

    font-size: 9px;

    letter-spacing: 1.4px;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}


.product-inquiry-button:hover {
    background: #8b6a45;
}


.product-inquiry-button span {
    font-size: 17px;
}


/* =========================================================
   BACK LINK
========================================================= */

.product-back-link {
    display: inline-block;

    margin-top: 28px;

    color: #6f6b64;

    font-size: 9px;

    letter-spacing: 1.2px;

    text-decoration: none;
}


.product-back-link:hover {
    color: #111;
}


/* =========================================================
   PRODUCT NOT FOUND
========================================================= */

.product-not-found {
    min-height: 60vh;

    padding: 120px 20px;

    text-align: center;
}


.product-not-found h1 {
    margin-bottom: 35px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 45px;

    font-weight: 400;
}


.product-back-button {
    display: inline-flex;

    min-height: 52px;

    padding: 0 25px;

    align-items: center;
    justify-content: center;

    background: #111;

    color: #fff;

    font-size: 9px;

    letter-spacing: 1.4px;

    text-decoration: none;
}


/* =========================================================
   PRODUCT DETAIL TABLET
========================================================= */

@media (max-width: 1000px) {

    .product-detail-page {
        grid-template-columns: 1fr;
    }


    .product-detail-image {
        min-height: auto;

        aspect-ratio: 4 / 5;
    }


    .product-detail-info {
        padding: 70px 7%;
    }


    .product-info-inner {
        position: static;
    }

}


/* =========================================================
   PRODUCT DETAIL MOBILE
========================================================= */

@media (max-width: 600px) {

    .product-breadcrumb {
        padding: 20px 15px;

        overflow-x: auto;

        white-space: nowrap;
    }


    .product-detail-gallery {
        grid-template-columns: 1fr;

        gap: 2px;
    }


    .product-detail-image {
        aspect-ratio: 4 / 5;
    }


    .product-detail-info {
        padding: 50px 20px 75px;
    }


    .product-detail-info h1 {
        font-size: 38px;
    }


    .product-detail-line {
        margin: 30px 0;
    }


    .product-detail-features {
        margin-top: 35px;
    }


    .product-inquiry-button {
        margin-top: 35px;
    }

}
.original-price{color:#888;font-size:.75em;margin-right:8px}.discount-label{display:inline-block;background:#f8e9df;color:#8b351b;border-radius:4px;padding:4px 7px;font-size:12px;margin-left:6px}

.product-detail-image{touch-action:pan-y;user-select:none}.detail-gallery-controls{display:flex;justify-content:center;align-items:center;gap:14px;margin:16px 0}.detail-gallery-controls[hidden]{display:none}.detail-gallery-controls button{min-width:44px;min-height:44px;border:1px solid #d6c7b7;border-radius:24px;background:#fffaf5;color:#493222;padding:8px 16px;cursor:pointer}.detail-gallery-controls button:focus-visible{outline:2px solid #8b512b;outline-offset:3px}.detail-gallery-controls span{font-size:13px;font-variant-numeric:tabular-nums}
