/* Category collection page */
.category-listing-page {
    color: #1c1b1a;
    background: #fff;
    /* padding-bottom: 72px; */
}

.category-listing-heading {
    padding: 28px 24px 24px;
    text-align: center;
}

.category-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: min(1260px, 100%);
    margin: 0 auto 26px;
    color: #9a9188;
    font: 12px Georgia, 'Times New Roman', serif;
    text-align: left;
}

.category-breadcrumb a {
    color: #80766d;
    text-decoration: none;
}

.category-breadcrumb a:hover {
    color: #334633;
    text-decoration: underline;
}

.category-breadcrumb span {
    margin: 0 8px;
}

.category-breadcrumb-current {
    color: #51483f;
}

.category-listing-heading h1 {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(30px, 3vw, 46px);
    font-weight: 700;
}

.category-products {
    max-width: 1260px;
    padding: 0 24px;
}

.category-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    margin-bottom: 4px;
    border-bottom: 1px solid #eee;
}

.category-filter-trigger,
.category-sort select {
    border: 0;
    background: transparent;
    color: #51483f;
    cursor: pointer;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 13px;
}

.category-filter-trigger {
    padding: 10px 0;
}

.category-filter-trigger i {
    margin-right: 8px;
    color: #8c8177;
}

.category-sort {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #8c8177;
    font: 12px Georgia, 'Times New Roman', serif;
}

.category-sort select {
    padding: 8px 0 8px 4px;
    color: #51483f;
}

.category-result-count {
    margin: 14px 0 20px;
    color: #8c8177;
    font: 12px Georgia, 'Times New Roman', serif;
}

.category-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 38px 16px;
}

.category-product-card {
    min-width: 0;
    background: #fff;
}

/* ---------- Image box: badha product ni image same size (square) ---------- */
.category-product-card .category-product-image {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f2f0eb;
}

.category-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}

.category-product-card:hover .category-product-image img {
    transform: scale(1.04);
}

.category-quick-view {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 0;
    border: 0;
    background: rgba(51, 70, 51, 0.92);
    color: #fff;
    cursor: pointer;
    font: 600 13px var(--font-body, Arial, sans-serif);
    letter-spacing: 0.4px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.category-product-card:hover .category-quick-view,
.category-quick-view:focus-visible {
    transform: translateY(0);
}

.category-product-discount {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    padding: 5px 8px;
    background: #9c3657;
    color: #fff;
    font: 11px Georgia, 'Times New Roman', serif;
}

.category-product-info {
    padding: 18px;
    text-align: center;
}

.category-product-info h2 {
    margin: 0 0 6px;
    font: 14px/1.35 Georgia, 'Times New Roman', serif;
}

.category-product-info h2 a {
    color: #51483f;
    text-decoration: none;
}

.category-product-rating {
    color: #777066;
    font: 12px Georgia, 'Times New Roman', serif;
}

.category-product-rating span {
    color: #e8af00;
    letter-spacing: 1px;
}

.category-product-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
    font: 12px Georgia, 'Times New Roman', serif;
}

.category-product-price strong {
    color: #9c3657;
    font-weight: 400;
}

.category-product-price del {
    color: #958e88;
}

.category-pagination {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.category-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid #e4dfd8;
    border-right: 0;
    color: #51483f;
    font: 13px Georgia, 'Times New Roman', serif;
    text-decoration: none;
}

.category-pagination a:last-child {
    border-right: 1px solid #e4dfd8;
}

.category-pagination a.is-active {
    border-color: #51483f;
    background: #fff;
    color: #1c1b1a;
    font-weight: 700;
}

.category-feature-story {
    margin: 96px 0;
    max-width: 1120px;
}

.category-feature-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    min-height: 360px;
    margin-bottom: 86px;
    gap: 12%;
}

.category-feature-row-reverse .category-feature-image {
    order: 2;
}

.category-feature-row-reverse .category-feature-copy {
    order: 1;
}

.category-feature-image {
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #f4f0eb;
}

.category-feature-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-feature-copy {
    padding: 24px;
}

.category-feature-copy h2 {
    margin: 0 0 16px;
    color: #1c1b1a;
    font: 700 clamp(22px, 2.1vw, 32px) Georgia, 'Times New Roman', serif;
}

.category-feature-copy p {
    max-width: 330px;
    margin: 0;
    color: #777066;
    font: 15px/1.8 Georgia, 'Times New Roman', serif;
}

.category-filter-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 10001;
    display: flex;
    width: min(255px, 85vw);
    flex-direction: column;
    padding: 0 24px 18px;
    background: #fff;
    box-shadow: 8px 0 24px rgba(0, 0, 0, 0.12);
    transform: translateX(-105%);
    transition: transform 0.25s ease;
}

.category-filter-drawer.is-open {
    transform: translateX(0);
}

.category-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    border-bottom: 1px solid #e5e0da;
    font: 12px Georgia, 'Times New Roman', serif;
}

.category-filter-header button {
    border: 0;
    background: transparent;
    color: #8c8177;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.category-filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 43px;
    border: 0;
    border-bottom: 1px solid #e5e0da;
    background: transparent;
    color: #51483f;
    cursor: pointer;
    font: 12px Georgia, 'Times New Roman', serif;
    text-align: left;
}

.category-filter-row span {
    color: #8c8177;
    font-size: 16px;
}

.category-filter-results {
    width: 100%;
    margin-top: auto;
    padding: 12px;
    border: 0;
    border-radius: 2px;
    background: #202c3d;
    color: #fff;
    cursor: pointer;
    font: 700 11px Georgia, 'Times New Roman', serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.category-filter-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    background: rgba(0, 0, 0, 0.28);
}

.category-filter-backdrop.is-visible {
    display: block;
}

.category-filter-locked {
    overflow: hidden;
}

/* =========================================================
   PRODUCT CARD IMAGE SLIDER
========================================================= */
.category-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;           /* bija slide no koi bhag bahar na dekhay */
}

.category-slider-track {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    height: 100%;
    transform: translateX(0);
    transition: transform 0.4s ease;
    touch-action: pan-y;        /* upar-niche scroll chalu, left-right swipe slider mate */
    will-change: transform;
}

/* Darek slide exactly box jetli width + height */
.category-slide {
    position: relative;
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
    height: 100%;
    overflow: hidden;
    background: #f2f0eb;
}

/* Image nani hoy ke moti, box ne poru bhare (same size) */
.category-slide img {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
    object-fit: cover;
    object-position: center;
}

/* slider ma hover zoom nathi joito (edge glitch aave) */
.category-product-card:hover .category-slide img {
    transform: none;
}

/* badge, arrows, dots ane quick view slider ni upar rahe */
.category-product-image .na-badge {
    z-index: 3;
}

.category-quick-view {
    z-index: 4;
}

/* ---------- Prev / Next arrows ---------- */
.cs-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 34px;
    height: 34px;
    margin-top: -17px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #334633;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.25s ease, background 0.2s ease, color 0.2s ease;
}

.cs-prev {
    left: 10px;
}

.cs-next {
    right: 10px;
}

.cs-arrow:hover {
    background: #334633;
    color: #fff;
}

.category-product-card:hover .cs-arrow,
.cs-arrow:focus-visible {
    opacity: 1;
}

/* ---------- Dots: image ni andar, matra hover par ---------- */
.category-slider-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 58px;               /* Quick View button ni upar */
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.category-product-card:hover .category-slider-dots {
    opacity: 1;
    pointer-events: auto;
}

.cs-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cs-dot.is-active {
    background: #fff;
    transform: scale(1.3);
}

/* Touch devices ma hover nathi, etle arrows ane dots hamesha dekhay */
@media (hover: none) {
    .cs-arrow {
        opacity: 1;
        width: 28px;
        height: 28px;
        margin-top: -14px;
        font-size: 10px;
    }

    .category-slider-dots {
        opacity: 1;
        bottom: 10px;
    }
}

@media (max-width: 992px) {
   
    .category-feature-story {
        margin-top: 20px;
        margin-bottom: 0;
    }
   
   .category-feature-row {
       margin-bottom: 20px;
   }
}

@media (max-width: 767px) {
    .category-products {
        padding: 0 14px;
    }

    .category-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 10px;
    }

    .category-product-info h2 {
        font-size: 12px;
    }

    .category-product-price {
        flex-wrap: wrap;
        gap: 4px 8px;
    }

    .category-feature-story {
        margin-top: 20px;
    }

    .category-feature-row,
    .category-feature-row-reverse {
        grid-template-columns: 1fr;
        gap: 18px;
        min-height: 0;
        margin-bottom: 20px;
    }

    .category-feature-row-reverse .category-feature-image,
    .category-feature-row-reverse .category-feature-copy {
        order: initial;
    }

    .category-feature-copy {
        padding: 0 10px;
        text-align: center;
    }
    .category-feature-copy h2{
        margin-bottom: 0;
    }
    .category-feature-copy p {
        margin: 0 auto;
    }
    
     .category-rating {
        gap: 4px 8px;
    }

    .category-rating .cr-stars {
        font-size: 13px;
    }

    .category-rating .cr-score,
    .category-rating .cr-reviews {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .category-listing-heading {
        padding-top: 20px;
    }

    .category-listing-heading h1 {
        font-size: 28px;
    }

    .category-product-grid {
        grid-template-columns: 1fr;
    }

    .category-sort span {
        display: none;
    }

    .cs-dot {
        width: 6px;
        height: 6px;
    }
}

/* =========================================================
   IMAGE CLICK LINK + STAR RATING ROW
========================================================= */
.category-slider-link {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.category-slider-link img {
    -webkit-user-drag: none;
    user-select: none;
}

.category-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-top: 10px;
    font-family: var(--font-body, 'Poppins', sans-serif);
}

.category-rating .cr-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #e8a52b;
    font-size: 16px;
    line-height: 1;
}

.category-rating .cr-score {
    color: #8b8ba0;
    font-size: 15px;
    line-height: 1;
}

.category-rating .cr-reviews {
    color: #2b2b33;
    font-size: 15px;
    line-height: 1;
    /* text-decoration: underline; */
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.category-rating .cr-reviews:hover {
    color: #334633;
}
