/* Mobile filter bar and drawer styles */
.mobile-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 6%;
    border-bottom: 1px solid #E0E0E0;
    background: #FFF;
}

@media (min-width: 992px) {
    .mobile-filter-bar {
        display: none;
    }
}

.mobile-filter-trigger {
    background: none;
    border: none;
    font-family: 'Author', sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: #111;
    text-decoration: underline;
    text-underline-offset: 6px;
    cursor: pointer;
    padding: 0.5rem 0;
}

.mobile-filter-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    /* Hidden by default */
    width: 100%;
    height: 100%;
    background: #FFF;
    z-index: 3000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mobile-filter-drawer.active {
    right: 0;
}

.drawer-header {
    padding: 1rem 6%;
    display: flex;
    justify-content: flex-end;
}

.close-drawer {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 6%;
}

.drawer-section {
    margin-bottom: 2rem;
}

.drawer-title {
    font-family: 'Author', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 1.2rem;
}

/* Checkbox styling */
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    cursor: pointer;
    font-family: 'Author', sans-serif;
    font-size: 0.95rem;
    color: #444;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #FFF;
    border: 1px solid #CCC;
}

.checkbox-container:hover input~.checkmark {
    background-color: #F9F9F9;
}

.checkbox-container input:checked~.checkmark {
    background-color: #000;
    border-color: #000;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.drawer-divider {
    height: 1px;
    background: #E0E0E0;
    margin: 1.5rem 0;
}

/* Slider styling */
.price-slider-container {
    padding: 1.5rem 0;
    position: relative;
    margin-bottom: 1rem;
}

.slider-track-mobile {
    height: 2px;
    background: #111;
    width: 100%;
}

.slider-thumb-mobile {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: #000;
    border-radius: 50%;
}

.slider-thumb-mobile.left {
    left: 0;
}

.slider-thumb-mobile.right {
    right: 0;
}

.price-labels-mobile {
    display: flex;
    justify-content: space-between;
    font-family: 'Author', sans-serif;
    font-size: 0.75rem;
    color: #888;
}

/* Range Inputs */
.custom-range-inputs {
    display: flex;
    gap: 1rem;
}

.range-input-group {
    flex: 1;
}

.range-input-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #111;
    font-family: 'Author', sans-serif;
    font-size: 0.9rem;
    color: #111;
    outline: none;
}

.drawer-footer {
    padding: 1.5rem 6%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.drawer-reset {
    background: none;
    border: none;
    font-family: 'Author', sans-serif;
    font-size: 0.9rem;
    color: #9D9D9D;
    cursor: pointer;
    text-align: center;
}

.drawer-apply {
    background: #111;
    color: #FFF;
    border: none;
    padding: 1.2rem;
    font-family: 'Author', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    width: 100%;
}

/* Desktop Visibility adjustments */
@media (min-width: 992px) {
    .filters-section {
        display: block !important;
    }
}
.category-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    text-align: center;
}


.hero-image {
    width: 100% !important;
    height: 80vh !important; /* ya jo height chahiye */
    object-fit: cover !important;
    object-position: center !important;
}

.mobile-hero-img {
    display: none;
}

@media (max-width: 991px) {
    .desktop-hero-img {
        display: none !important;
    }

    .mobile-hero-img {
        display: block !important;
        max-height: 100vh;
        object-fit: cover;
        object-position: center;
    }
}

.category-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;

    background: linear-gradient(
        to top,
        #000000 0%,
        rgba(0, 0, 0, 0.8) 30%,
        rgba(217, 217, 217, 0.2) 60%,
        rgba(217, 217, 217, 0) 100%
    );
}


.hero-content {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 100%;
    padding: 0 4%;
}

.hero-subtitle {
    font-family: 'Author', sans-serif;
    font-size: 20px;
    font-weight: 400;
}

.hero-title {
    font-family: 'Vonca', sans-serif;
    font-size: 64px;
    font-weight: 500;
    line-height: 55px;
}

@media (min-width: 992px) {
    .hero-title {
        font-size: 64px;
        
    line-height: 55px;
    }
}

.filters-section {
    padding: 1.5rem 4%;
    background: #FFF;
    display: none;
    /* Hide on mobile by default */
}

@media (min-width: 992px) {
    .filters-section {
        padding: 1rem 6%;
        padding-bottom: 0.3rem;
    }
}

.filters-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 0.5rem;
}

.sort-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-label {
    font-family: 'Author', sans-serif;
    font-size: 24px;
    color: #9D9D9D;
    font-weight: 400;
}

.sort-select {
    border: none;
    font-family: 'Author', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #111;
    padding: 0.5rem;
    cursor: pointer;
    background: transparent;
    outline: none;
    padding-right: 1.2rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    appearance: none;
}

.filter-divider {
    height: 1px;
    background: #F0F0F0;
    width: 100%;
}

.price-filter-section {
    padding: 1.5rem 0;
}

.filter-label-text {
    font-family: 'Author', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #9D9D9D;
    margin-bottom: 2rem;
    display: block;
}

.price-slider-full {
    position: relative;
    width: 100%;
    margin-bottom: 1.5rem;
}

.slider-line {
    height: 2px;
    background: #EEE;
    width: 100%;
}

.slider-range {
    position: absolute;
    top: 50%;
    height: 2px;
    background: #000;
    transform: translateY(-50%);
    z-index: 1;
    left: 0;
    right: 0;
}

.slider-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #000;
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.slider-dot:hover {
    transform: translate(-50%, -50%) scale(1.2);
}

.slider-dot.left {
    left: 0;
}

.slider-dot.right {
    left: 100%;
}

.price-boxes-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 1rem;
}

.price-input-group {
    border: 1px solid #E0E0E0;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    min-width: 140px;
}

.currency-prefix {
    font-family: 'Author', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #111;
}

.price-input {
    border: none;
    background: transparent;
    font-family: 'Author', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #7A7A7A;
    width: 100%;
    outline: none;
}

/* Hide number input arrows */
.price-input::-webkit-outer-spin-button,
.price-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.active-filters-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.active-label,
.reset-link {
    font-family: 'Author', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #9D9D9D;
    text-decoration: none;
}

.reset-link:hover {
    color: #111;
}

/* --- Inner Image Slider Styles --- */
.product-image-area {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fdfdfd;
}

.image-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.image-track img {
    min-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.inner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.product-card:hover .inner-arrow {
    opacity: 1;
}

.inner-arrow.prev {
    left: 10px;
}

.inner-arrow.next {
    right: 10px;
}

.image-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.image-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ddd;
    transition: background 0.3s ease;
    cursor: pointer;
}

.image-dots span.active {
    background: #111;
}

/* Mobile/Tablet Only Product Cards */
@media (min-width: 992px) {
    .mobile-tablet-only {
        display: none !important;
    }
}
@media (max-width: 767px) {
  .product-name {
    color: #000 !important;
    font-family: Vonca !important;
    font-size: 12px !important;
    font-style: normal !important;
    font-weight: 500 !important;
    line-height: normal !important;
    text-transform: uppercase !important;
  }
  .product-price {
    color: #666 !important;
    font-family: "DM Sans" !important;
    font-size: 10px !important;
    font-style: normal !important;
    font-weight: 500 !important;
    line-height: normal !important;
    text-transform: uppercase !important;
  }
}

/* ── Archive page header — always white, black icons ── */
.diamond-page ~ * .header,
body.tax-product_cat .header,
body.tax-product_cat .header.scrolled {
    background-color: #FFFFFF !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.tax-product_cat .header-top,
body.tax-product_cat .header.scrolled .header-top {
    background-color: #FFFFFF !important;
}

body.tax-product_cat .header.scrolled .nav-icon,
body.tax-product_cat .header-top .nav-icon {
    filter: none !important;
}

body.tax-product_cat .header.scrolled .nav-container .nav-icon,
body.tax-product_cat .nav-links a,
body.tax-product_cat .header.scrolled .nav-links a {
    color: #000 !important;
    filter: none !important;
}

/* ── Archive page — logo always black, home icon always black ── */
body.tax-product_cat .header.scrolled .logo {
    filter: none !important;
}

body.tax-product_cat .header-top .nav-icon,
body.tax-product_cat .header.scrolled .header-top .nav-icon {
    filter: none !important;
}

/* ── Archive page — home icon & all icons always black on scroll ── */
body.tax-product_cat .header.scrolled .header-top .nav-icon,
body.tax-product_cat .header.scrolled .nav-container .nav-icon,
body.tax-product_cat .header.scrolled .nav-icon {
    filter: none !important;
}

/* ── Mobile — product card expert-btn always visible ── */
@media (max-width: 767px) {
    .product-card .expert-btn {
        opacity: 1 !important;
        visibility: visible !important;
        max-height: 50px !important;
        padding: 0.9rem !important;
        margin-top: 1rem !important;
        border-width: 1px !important;
    }
}

/* ── Mobile — expert-btn single line fix ── */
@media (max-width: 767px) {
    .product-card .expert-btn {
        flex-direction: row !important;
        gap: 6px !important;
        font-size: 7px !important;
        padding: 0.6rem 0.5rem !important;
        white-space: nowrap !important;
    }

    .product-card .expert-btn img,
    .product-card .expert-btn .whatsapp-icon {
        width: 15px !important;
        height: 15px !important;
        flex-shrink: 0 !important;
    }
}

/* ── Archive page — prevent horizontal overflow (mobile only) ── */
@media (max-width: 767px) {
    body.tax-product_cat {
        overflow-x: hidden !important;
    }

    body.tax-product_cat .diamond-page {
        overflow-x: hidden !important;
    }
}

/* ── Mobile — product-grid-section left/right padding fix ── */
@media (max-width: 767px) {
    .product-grid-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}