/**
 * Alvasco Distribution Shop Styles
 * Navy + Orange brand, subcategory rows, product cards
 */

:root {
    --ads-navy: #00263E;
    --ads-orange: #F57E36;
    --ads-orange-hover: #d96920;
    --ads-bg: #ffffff;
    --ads-bg-soft: #f8f9fa;
    --ads-border: #e5e8eb;
    --ads-text: #1a2332;
    --ads-text-muted: #6b7280;
    --ads-success: #16a34a;
    --ads-shadow: 0 1px 3px rgba(0, 38, 62, 0.08);
    --ads-shadow-hover: 0 8px 24px rgba(0, 38, 62, 0.12);
    --ads-radius: 12px;
}

/* ============================================================
   SHOP WRAPPER
   ============================================================ */
.ads-shop-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px 60px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ads-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ============================================================
   DELIVERY BANNER
   ============================================================ */
.ads-delivery-banner {
    background: var(--ads-navy);
    color: #fff;
    padding: 10px 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin: 0 -16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.ads-delivery-icon {
    font-size: 16px;
    color: var(--ads-orange);
}

/* ============================================================
   SHOP HEADER
   ============================================================ */
.ads-shop-header {
    text-align: center;
    margin: 24px 0 36px;
}
.ads-shop-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--ads-navy);
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}
.ads-shop-subtitle {
    font-size: 16px;
    color: var(--ads-text-muted);
    margin: 0;
}

/* ============================================================
   SUBCATEGORY ROW
   ============================================================ */
.ads-subcategory-row {
    margin-bottom: 48px;
    position: relative;
}

.ads-row-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 0 4px;
}
.ads-row-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--ads-navy);
    margin: 0;
    position: relative;
    padding-left: 14px;
}
.ads-row-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 22px;
    background: var(--ads-orange);
    border-radius: 2px;
}
.ads-row-count {
    font-size: 13px;
    color: var(--ads-text-muted);
    font-weight: 500;
}

/* ============================================================
   SWIPER OVERRIDES
   ============================================================ */
.ads-product-swiper {
    overflow: hidden;
    padding: 4px 0 32px;
    position: relative;
}
.ads-product-swiper .swiper-wrapper {
    align-items: stretch;
}
.ads-product-swiper .swiper-slide {
    height: auto;
    width: auto;
}

/* Custom nav arrows */
.ads-swiper-prev,
.ads-swiper-next {
    color: var(--ads-navy) !important;
    background: #fff;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    box-shadow: var(--ads-shadow);
    transition: all 0.2s ease;
}
.ads-swiper-prev:hover,
.ads-swiper-next:hover {
    background: var(--ads-navy);
    color: #fff !important;
    transform: scale(1.05);
}
.ads-swiper-prev::after,
.ads-swiper-next::after {
    font-size: 14px !important;
    font-weight: 800 !important;
}
.ads-swiper-prev.swiper-button-disabled,
.ads-swiper-next.swiper-button-disabled {
    opacity: 0.3;
}

/* Pagination */
.ads-swiper-pagination {
    bottom: 0 !important;
}
.ads-swiper-pagination .swiper-pagination-bullet {
    background: var(--ads-text-muted);
    opacity: 0.4;
}
.ads-swiper-pagination .swiper-pagination-bullet-active {
    background: var(--ads-orange);
    opacity: 1;
}

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.ads-product-card {
    width: 280px;
    background: #fff;
    border: 1px solid var(--ads-border);
    border-radius: var(--ads-radius);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 1px 3px rgba(15, 37, 64, 0.04);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.ads-product-card * {
    font-family: inherit;
}
.ads-product-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 24px -12px rgba(15, 37, 64, 0.18);
    transform: translateY(-2px);
}

.ads-product-image-wrap {
    position: relative;
    background: #ffffff;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-bottom: 1px solid #eef1f5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ads-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
    display: block;
    transition: transform 0.4s ease;
}
.ads-product-card:hover .ads-product-image {
    transform: scale(1.03);
}

/* SKU chip — top-left of image (Avi's design) */
.ads-product-sku-chip {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: var(--ads-text-muted);
    font-family: "SF Mono", "Monaco", "Cascadia Code", "Roboto Mono", monospace !important;
    font-size: 9.5px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 5px;
    border: 1px solid #eef1f5;
    letter-spacing: 0;
    line-height: 1.3;
    pointer-events: none;
    max-width: calc(100% - 100px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Hide the legacy badge */
.ads-stock-badge {
    display: none !important;
}

.ads-product-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ads-product-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--ads-text);
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

/* Pack pill — light grey-blue rounded rect with cube icon */
.ads-product-pack {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    align-self: flex-start;
    background: #f1f4f8;
    color: var(--ads-navy);
    font-size: 10.5px;
    font-weight: 600;
    padding: 3px 7px;
    border-radius: 5px;
    line-height: 1.3;
    white-space: nowrap;
    border: none;
}
.ads-product-pack-icon {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    color: var(--ads-navy);
}

/* Price block — separated by faint dashed line, two-tier layout */
.ads-product-price-row {
    margin-top: auto;
    padding-top: 6px;
    border-top: 1px dashed var(--ads-border);
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ads-product-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--ads-text);
    line-height: 1.2;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline;
}
.ads-product-price .ads-price-ccy {
    font-size: 10px;
    color: var(--ads-text-muted);
    font-weight: 600;
    margin-right: 2px;
    letter-spacing: 0;
}
.ads-product-price .ads-price-num {
    /* the big bold number — inherits from .ads-product-price */
}
.ads-product-price .ads-price-per {
    font-size: 10.5px;
    color: var(--ads-text-muted);
    font-weight: 500;
    margin-left: 2px;
    letter-spacing: 0;
}

.ads-product-unit-price {
    font-size: 10.5px;
    color: #c4c9d4;
    margin-top: 0;
    font-weight: 400;
    line-height: 1.3;
    font-style: italic;
    opacity: 0.95;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: transparent !important;
}
.ads-product-unit-price b {
    color: #9ca3af;
    font-weight: 600;
    font-style: italic;
    background: transparent !important;
    text-decoration: none;
}

/* Actions row — stepper LEFT, Add button RIGHT, side-by-side */
.ads-product-actions {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 8px;
    align-items: stretch;
    margin-top: 4px;
}

.ads-add-to-cart-btn {
    background: var(--ads-navy);
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 0 6px;
    height: 34px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    font-family: inherit;
    line-height: 1;
    /* Theme/Woo button rules can leak a margin-top here; pin it firmly. */
    margin: 0 !important;
    align-self: stretch;
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
}
.ads-add-to-cart-btn:hover {
    background: #1a3556;
    transform: none;
}
.ads-add-to-cart-btn.is-loading {
    opacity: 0.7;
    cursor: wait;
}
.ads-add-to-cart-btn.is-success {
    background: var(--ads-success);
}
.ads-add-icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}
.ads-btn-icon {
    font-size: 18px;
    line-height: 1;
}

/* ============================================================
   FOOTER CTA
   ============================================================ */
.ads-shop-footer-cta {
    text-align: center;
    margin-top: 60px;
    padding: 30px 20px;
    background: var(--ads-bg-soft);
    border-radius: var(--ads-radius);
    border: 1px dashed var(--ads-border);
}
.ads-shop-footer-cta p {
    margin: 0;
    color: var(--ads-text);
    font-size: 15px;
}
.ads-shop-footer-cta strong {
    color: var(--ads-navy);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.ads-shop-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--ads-text-muted);
}

/* ============================================================
   FLOATING CART INDICATOR
   ============================================================ */
.ads-cart-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--ads-navy);
    color: #fff;
    padding: 14px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 38, 62, 0.3);
    display: none;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    font-size: 14px;
    max-width: 360px;
}
.ads-cart-toast.is-visible {
    display: flex;
    animation: ads-toast-in 0.3s ease;
}
.ads-cart-toast a {
    color: var(--ads-orange);
    text-decoration: none;
    font-weight: 700;
    margin-left: auto;
}
.ads-cart-toast a:hover {
    text-decoration: underline;
}
@keyframes ads-toast-in {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 768px) {
    .ads-shop-wrapper {
        padding: 0 12px 40px;
    }
    .ads-delivery-banner {
        margin: 0 -12px 16px;
        font-size: 11px;
        padding: 8px 12px;
    }
    .ads-product-card {
        width: 220px;
    }
    .ads-row-title {
        font-size: 18px;
    }
    .ads-swiper-prev,
    .ads-swiper-next {
        display: none !important;
    }
    .ads-cart-toast {
        right: 12px;
        left: 12px;
        bottom: 12px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .ads-product-card {
        width: 180px;
    }
    .ads-product-image-wrap {
        aspect-ratio: 1 / 1;
    }
    .ads-product-name {
        font-size: 13px;
    }
    .ads-product-price {
        font-size: 16px;
    }
    /* Tighten the actions row on narrow cards so stepper + Add still fit side-by-side */
    .ads-product-actions {
        grid-template-columns: 72px 1fr;
        gap: 6px;
    }
    .ads-qty-stepper {
        grid-template-columns: 20px 1fr 20px;
    }
    .ads-product-pack {
        font-size: 10px;
        padding: 3px 6px;
    }
    .ads-product-sku-chip {
        font-size: 9px;
        padding: 2px 5px;
    }
}

/* ============================================================
   GRID LAYOUT (alvas.co-style)
   ============================================================ */

/* Top category nav (pills above the grid) */
.ads-grid-category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 18px 0 24px;
    border-bottom: 1px solid var(--ads-border);
    margin-bottom: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ads-cat-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    background: #fff;
    color: var(--ads-navy);
    border: 1px solid var(--ads-border);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.ads-cat-pill:hover {
    background: var(--ads-bg-soft);
    border-color: var(--ads-navy);
    color: var(--ads-navy);
}
.ads-cat-pill.is-active {
    background: var(--ads-orange);
    border-color: var(--ads-orange);
    color: #fff;
}

/* Two-column shell: sidebar + main */
.ads-grid-shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: start;
}

/* Sidebar */
.ads-grid-sidebar {
    background: #fff;
    border: 1px solid var(--ads-border);
    border-radius: var(--ads-radius);
    padding: 20px;
}

.ads-filter-section {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--ads-border);
}
.ads-filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ads-filter-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--ads-navy);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 12px;
}

.ads-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ads-filter-list li {
    margin: 0;
    padding: 0;
}
.ads-filter-list a {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    color: var(--ads-text);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s;
}
.ads-filter-list a:hover {
    color: var(--ads-orange);
}
.ads-filter-list a.is-active {
    color: var(--ads-orange);
    font-weight: 700;
}
.ads-filter-list a span {
    color: var(--ads-text-muted);
    font-size: 12px;
}

.ads-filter-help {
    margin: 4px 0;
    font-size: 13px;
    color: var(--ads-text);
}
.ads-filter-help strong {
    color: var(--ads-navy);
    font-weight: 600;
}

/* Main grid area */
.ads-grid-main {
    min-width: 0;
}

.ads-grid-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--ads-bg-soft);
    border: 1px solid var(--ads-border);
    border-radius: 8px;
    margin-bottom: 24px;
}

.ads-toolbar-count {
    font-size: 14px;
    color: var(--ads-text-muted);
    font-weight: 500;
}

/* ---- Sort dropdown (v0.6.7) ---- */
.ads-toolbar-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ads-sort-label {
    font-size: 12px;
    color: var(--ads-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0;
    font-weight: 600;
    white-space: nowrap;
}
.ads-sort-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff;
    border: 1px solid var(--ads-border);
    border-radius: 6px;
    padding: 8px 32px 8px 12px;
    font-size: 14px;
    font-family: inherit;
    color: var(--ads-text, #0F2540);
    cursor: pointer;
    transition: all 0.15s ease;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%230F2540' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 4.5 6 7.5 9 4.5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    min-width: 180px;
    line-height: 1.3;
}
.ads-sort-select:hover {
    border-color: var(--ads-text, #0F2540);
}
.ads-sort-select:focus {
    outline: none;
    border-color: var(--ads-text, #0F2540);
    box-shadow: 0 0 0 3px rgba(15, 37, 64, 0.12);
}

.ads-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ads-toolbar-label {
    font-size: 12px;
    color: var(--ads-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-right: 4px;
}
.ads-layout-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--ads-border);
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--ads-text);
    text-decoration: none;
}
.ads-layout-btn:hover {
    border-color: var(--ads-navy);
}
.ads-layout-btn.is-active {
    background: var(--ads-orange);
    border-color: var(--ads-orange);
    color: #fff;
}

/* Grid of products (alvas.co-style — 4 columns desktop)
 * IMPORTANT: minmax(0, 1fr) instead of plain 1fr prevents Swiper-induced grid blowup.
 * With plain 1fr, a Swiper-initialized card can read offsetWidth before the column
 * resolves, causing a circular content-driven inflation up to scrollWidth (~26M px). */
.ads-grid-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

/* Override card width when in grid mode (was fixed 280px in row mode).
 * min-width: 0 is the second line of defense against the Swiper grid-blowup bug. */
.ads-product-card.ads-card-grid {
    width: 100%;
    min-width: 0;
}

/* Pagination */
.ads-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 40px 0 20px;
    flex-wrap: wrap;
}
.ads-page-link {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--ads-border);
    border-radius: 6px;
    color: var(--ads-navy);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}
.ads-page-link:hover {
    border-color: var(--ads-navy);
    background: var(--ads-bg-soft);
}
.ads-page-link.is-current {
    background: var(--ads-orange);
    border-color: var(--ads-orange);
    color: #fff;
}
.ads-page-next {
    padding: 0 16px;
}

/* Grid responsive */
@media (max-width: 1100px) {
    .ads-grid-shell {
        grid-template-columns: 220px 1fr;
        gap: 24px;
    }
    .ads-grid-products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}
@media (max-width: 900px) {
    .ads-grid-shell {
        grid-template-columns: 1fr;
    }
    .ads-grid-sidebar {
        position: static;
    }
    .ads-grid-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 520px) {
    .ads-grid-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .ads-grid-toolbar {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
        padding: 12px;
    }
    .ads-toolbar-sort {
        width: 100%;
        justify-content: space-between;
    }
    .ads-sort-select {
        flex: 1;
        min-width: 0;
    }
    .ads-cat-pill {
        font-size: 13px;
        padding: 6px 14px;
    }
}

/* ============================================================
   v0.3 — FILTER SYSTEM
   ============================================================ */

/* ---- Accordion icon ---- */
.ads-filter-section .ads-toggle-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.2s ease;
    font-size: 9px;
    color: #9ca3af;
}
.ads-filter-section.is-open .ads-toggle-icon {
    transform: translateY(-50%) rotate(180deg);
}
.ads-filter-section .ads-filter-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}
.ads-filter-section.is-open .ads-filter-content {
    max-height: 600px;
    overflow: visible;
}
.ads-filter-section .ads-filter-title {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 18px;
}
.ads-filter-title-static {
    cursor: default !important;
}
.ads-filter-content.is-open-static {
    max-height: none !important;
    overflow: visible !important;
}

/* ---- Filter checkbox styling ---- */
.ads-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    cursor: pointer;
    font-size: 13px;
    color: var(--ads-text);
    transition: color 0.15s;
}
.ads-filter-checkbox:hover {
    color: var(--ads-orange);
}
.ads-filter-checkbox.is-active {
    color: var(--ads-orange);
    font-weight: 600;
}
.ads-filter-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--ads-orange);
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}
.ads-filter-checkbox span {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}
.ads-filter-checkbox .ads-count {
    color: var(--ads-text-muted);
    font-size: 11px;
    font-weight: 400;
}
.ads-filter-checkbox .ads-pack-range {
    color: var(--ads-text-muted);
    font-size: 11px;
    margin-left: 4px;
}

/* Disabled options (zero count) */
.ads-filter-list li.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}
.ads-filter-list li.is-disabled .ads-filter-checkbox {
    cursor: not-allowed;
}

/* ---- Need Help section ---- */
.ads-filter-help-section .ads-filter-title-static {
    font-size: 13px;
    font-weight: 700;
    color: var(--ads-navy);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 12px;
    cursor: default;
}
.ads-filter-help {
    margin: 4px 0;
    font-size: 13px;
    color: var(--ads-text);
}
.ads-filter-help strong {
    color: var(--ads-navy);
    font-weight: 600;
}
.ads-filter-help-small {
    font-size: 11px;
    color: var(--ads-text-muted);
    margin-top: 8px;
}

/* ---- Active filter pills ---- */
.ads-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 0 18px;
    border-bottom: 1px solid var(--ads-border);
    margin-bottom: 18px;
}
.ads-active-filters-label {
    font-size: 12px;
    color: var(--ads-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-right: 4px;
}
.ads-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 4px 4px 12px;
    background: var(--ads-bg-soft);
    border: 1px solid var(--ads-border);
    border-radius: 999px;
    font-size: 12px;
    color: var(--ads-text);
}
.ads-filter-pill-remove {
    background: var(--ads-orange);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    transition: background 0.15s;
}
.ads-filter-pill-remove:hover {
    background: var(--ads-orange-hover);
}
.ads-filters-clear-all {
    margin-left: 4px;
    font-size: 12px;
    color: var(--ads-text-muted);
    text-decoration: underline;
}
.ads-filters-clear-all:hover {
    color: var(--ads-navy);
}

/* ============================================================
   PRICE SLIDER (dual handle)
   ============================================================ */
.ads-price-slider-wrap {
    padding: 6px 0;
}
.ads-price-display {
    text-align: center;
    font-size: 14px;
    color: var(--ads-navy);
    font-weight: 600;
    margin-bottom: 14px;
}
.ads-price-slider {
    position: relative;
    height: 4px;
    margin: 14px 8px 8px;
}
.ads-price-track {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #e5e7eb;
    border-radius: 999px;
}
.ads-price-fill {
    position: absolute;
    top: 0;
    height: 4px;
    background: var(--ads-orange);
    border-radius: 999px;
    pointer-events: none;
}
.ads-price-slider input[type="range"] {
    position: absolute;
    top: -7px;
    left: -8px;
    right: -8px;
    width: calc(100% + 16px);
    height: 18px;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
    margin: 0;
    padding: 0;
}
.ads-price-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ads-navy);
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    cursor: pointer;
    pointer-events: auto;
    margin: 0;
}
.ads-price-slider input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ads-navy);
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    cursor: pointer;
    pointer-events: auto;
}
.ads-price-bounds {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--ads-text-muted);
    margin-top: 8px;
    padding: 0 8px;
}

/* ============================================================
   MOBILE FILTER (slide-up panel)
   ============================================================ */
.ads-mobile-filter-trigger {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: var(--ads-navy);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(0, 38, 62, 0.35);
    cursor: pointer;
    align-items: center;
    gap: 8px;
}
.ads-mobile-filter-trigger:hover {
    background: #001828;
}

.ads-mobile-filter-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    display: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.ads-mobile-filter-backdrop.is-open {
    display: block;
    opacity: 1;
}

.ads-mobile-filter-panel {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 99999;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.ads-mobile-filter-panel.is-open {
    transform: translateY(0);
}

.ads-mobile-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--ads-border);
    flex-shrink: 0;
}
.ads-mobile-filter-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--ads-navy);
    letter-spacing: 0.06em;
}
.ads-mobile-filter-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: var(--ads-text-muted);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ads-mobile-filter-close:hover {
    background: var(--ads-bg-soft);
    color: var(--ads-navy);
}

.ads-mobile-filter-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}
.ads-mobile-filter-nav {
    width: 38%;
    background: var(--ads-bg-soft);
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    border-right: 1px solid var(--ads-border);
}
.ads-mobile-filter-nav li {
    padding: 14px 16px;
    font-size: 13px;
    color: var(--ads-text);
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all 0.15s;
}
.ads-mobile-filter-nav li:hover {
    background: #fff;
}
.ads-mobile-filter-nav li.is-active {
    background: #fff;
    color: var(--ads-orange);
    border-left-color: var(--ads-orange);
    font-weight: 600;
}

.ads-mobile-filter-options {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}
.ads-mobile-chip-group {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
}
.ads-mobile-chip-group.is-active {
    display: flex;
}
.ads-mobile-chip-group .ads-price-slider-wrap {
    width: 100%;
    padding: 12px 4px;
}
.ads-mobile-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid var(--ads-border);
    border-radius: 999px;
    font-size: 13px;
    color: var(--ads-text);
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}
.ads-mobile-chip:hover {
    border-color: var(--ads-navy);
}
.ads-mobile-chip.is-active {
    background: var(--ads-orange);
    border-color: var(--ads-orange);
    color: #fff;
}
.ads-mobile-chip.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}
.ads-mobile-chip input[type="checkbox"] {
    display: none;
}

.ads-mobile-filter-footer {
    display: flex;
    gap: 10px;
    padding: 14px 18px;
    border-top: 1px solid var(--ads-border);
    background: #fff;
    flex-shrink: 0;
}
.ads-mobile-filter-clear,
.ads-mobile-filter-show {
    flex: 1;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: inherit;
}
.ads-mobile-filter-clear {
    background: var(--ads-bg-soft);
    color: var(--ads-text);
}
.ads-mobile-filter-show {
    background: var(--ads-orange);
    color: #fff;
}
.ads-mobile-filter-show:hover {
    background: var(--ads-orange-hover);
}

/* Mobile filter trigger only visible on small screens */
@media (max-width: 900px) {
    .ads-mobile-filter-trigger {
        display: inline-flex;
    }
    .ads-grid-sidebar {
        display: none !important;
    }
    .ads-grid-shell {
        grid-template-columns: 1fr !important;
    }
}

/* Hide mobile panel on desktop */
@media (min-width: 901px) {
    .ads-mobile-filter-panel,
    .ads-mobile-filter-backdrop,
    .ads-mobile-filter-trigger {
        display: none !important;
    }
}

/* Lock body scroll when mobile panel open */
body.ads-mobile-filter-active {
    overflow: hidden;
}

/* Mobile chip filter count */
.ads-mobile-filter-count {
    background: var(--ads-orange);
    color: #fff;
    border-radius: 999px;
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 4px;
}


/* ============================================================
   v0.3.1 — Cart Drawer + Range Filters + Right-aligned counts
   ============================================================ */

/* ---- justify-content: flex-end for counts (per request) ---- */
.ads-filter-checkbox span {
    justify-content: flex-end !important;
    text-align: left;
}
.ads-filter-checkbox > span > span:first-child {
    margin-right: auto;
}

/* ---- Range filter (Pack Size / MOQ) ---- */
.ads-range-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 4px 0;
}
.ads-range-field {
    position: relative;
}
.ads-range-select {
    width: 100%;
    padding: 8px 28px 8px 12px;
    font-size: 13px;
    border: 1px solid var(--ads-border);
    border-radius: 6px;
    background: #fff;
    color: var(--ads-text);
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%239ca3af' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.ads-range-select:hover {
    border-color: var(--ads-navy);
}
.ads-range-select:focus {
    outline: none;
    border-color: var(--ads-orange);
    box-shadow: 0 0 0 3px rgba(245, 126, 54, 0.15);
}

/* Mobile pack range full-width */
.ads-mobile-chip-group .ads-range-filters {
    width: 100%;
}

/* ============================================================
   CART DRAWER (slide from right)
   ============================================================ */
.ads-cart-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99996;
    display: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.ads-cart-drawer-backdrop.is-open {
    display: block;
    opacity: 1;
}

.ads-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    max-width: 90vw;
    background: #fff;
    z-index: 99997;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    font-family: inherit;
}
.ads-cart-drawer.is-open {
    transform: translateX(0);
}

body.ads-cart-drawer-active {
    overflow: hidden;
}

/* Header */
.ads-cart-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--ads-border);
    flex-shrink: 0;
}
.ads-cart-drawer-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ads-navy);
    margin: 0;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ads-cart-drawer-count {
    background: var(--ads-orange);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    min-width: 22px;
    text-align: center;
}
.ads-cart-drawer-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: var(--ads-text-muted);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.ads-cart-drawer-close:hover {
    background: var(--ads-bg-soft);
    color: var(--ads-navy);
}

/* Body */
.ads-cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}
.ads-cart-drawer-empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--ads-text-muted);
}

/* Items list */
.ads-cart-drawer-items {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ads-cart-drawer-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--ads-border);
    position: relative;
}
.ads-cart-drawer-item-img {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border: 1px solid var(--ads-border);
    border-radius: 4px;
    overflow: hidden;
    background: var(--ads-bg-soft);
}
.ads-cart-drawer-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}
.ads-cart-drawer-item-info {
    flex: 1;
    min-width: 0;
}
.ads-cart-drawer-item-sku {
    font-size: 11px;
    color: var(--ads-text-muted);
    margin-bottom: 2px;
}
.ads-cart-drawer-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ads-navy);
    line-height: 1.3;
    margin-bottom: 6px;
    word-wrap: break-word;
}
.ads-cart-drawer-item-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--ads-text);
}
.ads-cart-drawer-item-qty {
    color: var(--ads-text-muted);
}
.ads-cart-drawer-item-price {
    font-weight: 700;
    color: var(--ads-navy);
}
.ads-cart-drawer-item-remove {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    color: var(--ads-text-muted);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}
.ads-cart-drawer-item-remove:hover {
    color: #dc2626;
    background: #fef2f2;
}

/* Footer */
.ads-cart-drawer-footer {
    padding: 18px 20px;
    border-top: 1px solid var(--ads-border);
    background: #fff;
    flex-shrink: 0;
}
.ads-cart-drawer-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 15px;
}
.ads-cart-drawer-subtotal span {
    color: var(--ads-text);
    font-weight: 500;
}
.ads-cart-drawer-subtotal strong {
    color: var(--ads-navy);
    font-size: 18px;
    font-weight: 700;
}
.ads-cart-drawer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.ads-cart-drawer-view-cart,
.ads-cart-drawer-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
}
.ads-cart-drawer-view-cart {
    background: #fff;
    color: var(--ads-navy);
    border: 1px solid var(--ads-border);
}
.ads-cart-drawer-view-cart:hover {
    background: var(--ads-bg-soft);
    border-color: var(--ads-navy);
}
.ads-cart-drawer-checkout {
    background: var(--ads-orange);
    color: #fff;
    border: 1px solid var(--ads-orange);
}
.ads-cart-drawer-checkout:hover {
    background: var(--ads-orange-hover);
    border-color: var(--ads-orange-hover);
    color: #fff;
}
.ads-cart-drawer-delivery-note {
    margin: 12px 0 0;
    font-size: 11px;
    color: var(--ads-text-muted);
    text-align: center;
    font-weight: 500;
}

/* Mobile cart drawer takes full width */
@media (max-width: 480px) {
    .ads-cart-drawer {
        width: 100%;
        max-width: 100%;
    }
}


/* ============================================================
   v0.3.2 — Mobile filter as navy bar + Cart bubble + WhatsApp + Sticky fix + Stock indicator
   ============================================================ */

/* ---- Sidebar — scroll with page (alvas.co behavior) ---- */
.ads-grid-sidebar {
    position: static;
    top: auto;
    max-height: none;
    height: auto;
    overflow: visible;
}

/* ---- Mobile filter trigger as full-width navy bar ---- */
.ads-mobile-filter-trigger {
    /* Override the floating round button */
    display: none !important;
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    border-radius: 4px !important;
    padding: 14px 18px !important;
    background: var(--ads-navy) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    box-shadow: none !important;
    margin: 0 0 18px 0 !important;
    z-index: 1 !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    cursor: pointer !important;
    border: none !important;
    font-family: inherit !important;
}
.ads-mobile-filter-trigger:hover {
    background: #001828 !important;
    transform: none !important;
}
.ads-mobile-filter-trigger svg {
    width: 16px !important;
    height: 16px !important;
}
.ads-mobile-filter-trigger span:first-of-type {
    /* "Filters" text or "Show Filters" */
    font-size: 15px;
    font-weight: 600;
}

@media (max-width: 900px) {
    .ads-mobile-filter-trigger {
        display: flex !important;
    }
}

/* ---- Stock indicator — top-right pill, white bg, coloured dot ---- */
.ads-stock-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff;
    border: 1px solid var(--ads-border);
    padding: 3px 8px 3px 7px;
    border-radius: 999px;
    font-size: 9.5px;
    font-weight: 600;
    color: var(--ads-text);
    text-transform: none;
    letter-spacing: 0.02em;
    box-shadow: 0 1px 2px rgba(15, 37, 64, 0.05);
    z-index: 3;
    white-space: nowrap;
}
.ads-stock-indicator .ads-stock-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #16a34a;
    box-shadow: 0 0 0 2.5px rgba(22, 163, 74, 0.15);
}
/* Legacy ::before is no longer used (we render an inner span) — neutralize */
.ads-stock-indicator::before { content: none; }
@keyframes ads-pulse {
    0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); }
    70% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

/* Hide the old badge */
.ads-stock-badge {
    display: none !important;
}

/* ============================================================
   FLOATING CART BUBBLE (bottom-right on desktop and mobile)
   ============================================================ */
.ads-cart-bubble {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9990;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    color: var(--ads-navy);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}
.ads-cart-bubble:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16), 0 2px 6px rgba(0, 0, 0, 0.1);
}
.ads-cart-bubble svg {
    width: 26px;
    height: 26px;
    stroke: var(--ads-navy);
    stroke-width: 1.8;
    fill: none;
}
.ads-cart-bubble-count {
    position: absolute;
    top: -2px;
    left: -2px;
    background: var(--ads-orange);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    min-width: 26px;
    height: 26px;
    padding: 0 7px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(245, 126, 54, 0.3);
}
.ads-cart-bubble-count.is-empty {
    /* Show "0" instead of hiding — matches the design */
    display: inline-flex;
}

/* ============================================================
   WHATSAPP FLOATER (above cart bubble)
   ============================================================ */
.ads-whatsapp-bubble {
    position: fixed;
    bottom: 96px; /* sits above cart bubble */
    right: 24px;
    z-index: 9990;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366; /* WhatsApp green */
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    transition: all 0.2s ease;
}
.ads-whatsapp-bubble:hover {
    background: #1ebe57;
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}
.ads-whatsapp-bubble svg {
    width: 28px;
    height: 28px;
}

/* On mobile, position closer to edge */
@media (max-width: 600px) {
    .ads-cart-bubble,
    .ads-whatsapp-bubble {
        right: 16px;
        width: 52px;
        height: 52px;
    }
    .ads-cart-bubble {
        bottom: 16px;
    }
    .ads-whatsapp-bubble {
        bottom: 80px;
    }
}

/* Hide bubbles when cart drawer or mobile filter panel is open */
body.ads-cart-drawer-active .ads-cart-bubble,
body.ads-cart-drawer-active .ads-whatsapp-bubble,
body.ads-mobile-filter-active .ads-cart-bubble,
body.ads-mobile-filter-active .ads-whatsapp-bubble {
    opacity: 0;
    pointer-events: none;
}


/* ============================================================
   v0.3.4 — Search bar + Quick View + Pink suppression
   ============================================================ */

/* ---- Suppress pink/theme accent across the shop ---- */
/* Many themes (Astra, Hello Elementor) inject pink/blue accents into form
   elements like checkboxes, range inputs, dropdowns. Force our brand colors. */
.ads-shop-wrapper input[type="checkbox"],
.ads-shop-wrapper input[type="radio"],
.ads-shop-wrapper input[type="range"] {
    accent-color: var(--ads-orange) !important;
}
.ads-shop-wrapper select:focus,
.ads-shop-wrapper input:focus {
    outline: none !important;
    border-color: var(--ads-orange) !important;
    box-shadow: 0 0 0 3px rgba(245, 126, 54, 0.15) !important;
}
/* Remove any theme-injected ::selection pink */
.ads-shop-wrapper ::selection,
.ads-qv-overlay ::selection,
.ads-cart-drawer ::selection {
    background: var(--ads-orange);
    color: #fff;
}
/* Override common theme pink accent variables */
.ads-shop-wrapper, .ads-qv-overlay, .ads-cart-drawer, .ads-mobile-filter-panel {
    --e-global-color-accent: var(--ads-orange);
    --e-global-color-secondary: var(--ads-navy);
    --astra-global-color-0: var(--ads-orange);
    --astra-global-color-1: var(--ads-navy);
}

/* ============================================================
   SEARCH BAR (above filters)
   ============================================================ */
.ads-grid-search-row {
    margin: 0 0 18px 0;
}
.ads-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}
.ads-search-form {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--ads-border);
    border-radius: 999px;
    padding: 4px 4px 4px 20px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.ads-search-form:focus-within {
    border-color: var(--ads-navy);
    box-shadow: 0 1px 3px rgba(0, 38, 62, 0.12);
}
.ads-search-input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 14px;
    padding: 10px 8px !important;
    color: var(--ads-text);
    font-family: inherit;
    height: auto !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}
.ads-search-input::placeholder {
    color: var(--ads-text-muted);
}
.ads-search-input:focus {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}
.ads-search-submit {
    background: var(--ads-bg-soft);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
    padding: 0;
}
.ads-search-submit:hover {
    background: #e5e7eb;
}

/* Search dropdown */
.ads-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--ads-border);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    z-index: 100;
    max-height: 480px;
    overflow-y: auto;
}
.ads-search-loading,
.ads-search-no-results {
    padding: 18px;
    text-align: center;
    color: var(--ads-text-muted);
    font-size: 13px;
}
.ads-search-result {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--ads-border);
    text-decoration: none;
    color: var(--ads-text);
    transition: background 0.15s;
}
.ads-search-result:last-child { border-bottom: none; }
.ads-search-result:hover {
    background: var(--ads-bg-soft);
    text-decoration: none;
    color: var(--ads-text);
}
.ads-search-result img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: var(--ads-bg-soft);
    border-radius: 4px;
    padding: 4px;
}
.ads-search-result-info {
    min-width: 0;
}
.ads-search-result-sku {
    font-size: 11px;
    color: var(--ads-text-muted);
    margin-bottom: 2px;
}
.ads-search-result-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--ads-navy);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ads-search-result-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--ads-navy);
    flex-shrink: 0;
    white-space: nowrap;
}
.ads-search-result-price .woocommerce-Price-amount {
    color: var(--ads-navy);
}

/* ============================================================
   QUICK VIEW POPUP
   ============================================================ */
body.ads-qv-active {
    overflow: hidden;
}
.ads-qv-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 38, 62, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.ads-qv-overlay.is-open {
    display: flex;
    opacity: 1;
}
.ads-qv-modal {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.ads-qv-overlay.is-open .ads-qv-modal {
    transform: translateY(0) scale(1);
}

.ads-qv-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: var(--ads-navy);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.ads-qv-close:hover {
    background: var(--ads-navy);
    color: #fff;
}

.ads-qv-content {
    overflow-y: auto;
    max-height: 90vh;
}
.ads-qv-loading {
    padding: 80px 20px;
    text-align: center;
    color: var(--ads-text-muted);
}
.ads-qv-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--ads-bg-soft);
    border-top-color: var(--ads-orange);
    border-radius: 50%;
    margin: 0 auto 14px;
    animation: ads-qv-spin 0.8s linear infinite;
}
@keyframes ads-qv-spin {
    to { transform: rotate(360deg); }
}

.ads-qv-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    min-height: 480px;
}
.ads-qv-image {
    position: relative;
    background: var(--ads-bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    aspect-ratio: 1 / 1;
    min-width: 0;
    overflow: hidden;
}
.ads-qv-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.ads-qv-image .ads-stock-indicator {
    top: auto;
    left: auto;
    bottom: 16px;
    right: 16px;
    height: auto;
}
.ads-qv-details {
    padding: 32px 30px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    min-width: 0;
}
.ads-qv-sku {
    font-size: 12px;
    color: var(--ads-text-muted);
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}
.ads-qv-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--ads-navy);
    margin: 0 0 8px;
    line-height: 1.3;
}
.ads-qv-category {
    font-size: 12px;
    color: var(--ads-orange);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 18px;
}
.ads-qv-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--ads-border);
    border-bottom: 1px solid var(--ads-border);
    margin-bottom: 18px;
}
.ads-qv-price {
    font-size: 30px;
    font-weight: 800;
    color: var(--ads-navy);
    line-height: 1;
}
.ads-qv-unit-price {
    font-size: 13px;
    color: var(--ads-text-muted);
    font-weight: 500;
}
.ads-qv-meta-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid #f3f4f6;
}
.ads-qv-meta-row:last-of-type {
    border-bottom: none;
    margin-bottom: 12px;
}
.ads-qv-meta-label {
    color: var(--ads-text-muted);
    font-weight: 500;
}
.ads-qv-meta-value {
    color: var(--ads-text);
    font-weight: 600;
    text-align: right;
}
.ads-qv-description {
    font-size: 13px;
    color: var(--ads-text);
    line-height: 1.6;
    margin: 14px 0 18px;
    padding-top: 14px;
    border-top: 1px solid var(--ads-border);
}
.ads-qv-description p { margin: 0 0 8px; }
.ads-qv-description p:last-child { margin-bottom: 0; }

.ads-qv-actions {
    margin-top: auto;
    padding-top: 14px;
}
.ads-qv-add-to-cart {
    width: 100% !important;
    background: var(--ads-orange) !important;
    color: #fff !important;
    border: 1px solid var(--ads-orange) !important;
    border-radius: 8px !important;
    padding: 14px 22px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: background 0.2s ease;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
.ads-qv-add-to-cart:hover {
    background: var(--ads-orange-hover) !important;
    border-color: var(--ads-orange-hover) !important;
}
.ads-qv-add-to-cart .ads-btn-icon { display: none; }
.ads-qv-delivery-note {
    margin: 12px 0 0;
    font-size: 11px;
    color: var(--ads-text-muted);
    text-align: center;
    font-weight: 500;
}

/* Mobile quick view */
@media (max-width: 768px) {
    .ads-qv-modal {
        max-height: 100vh;
        border-radius: 0;
        max-width: 100%;
    }
    .ads-qv-card {
        grid-template-columns: 1fr;
    }
    .ads-qv-image {
        aspect-ratio: 1.5 / 1;
        padding: 20px;
    }
    .ads-qv-details {
        padding: 24px 20px;
    }
}

/* ============================================================
   QUICK VIEW button overlay on product card
   ============================================================ */
.ads-product-image-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}
.ads-product-name.ads-quick-view-trigger {
    cursor: pointer;
}
.ads-product-name.ads-quick-view-trigger:hover {
    color: var(--ads-orange);
}
.ads-product-quick-view {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    color: var(--ads-navy);
    border: none;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 3;
}
.ads-product-card:hover .ads-product-quick-view {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}
.ads-product-quick-view:hover {
    background: var(--ads-navy);
    color: #fff;
}
.ads-product-quick-view svg {
    width: 14px;
    height: 14px;
}

/* Hide quick view on mobile/touch (no hover) */
@media (max-width: 900px) {
    .ads-product-quick-view {
        display: none !important;
    }
}

/* ============================================================
   IMPROVED CART BUBBLE — better icon, white BG, cleaner
   ============================================================ */
.ads-cart-bubble {
    background: #fff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

/* ============================================================
   CART DRAWER — solid white background fix
   ============================================================ */
.ads-cart-drawer {
    background: #ffffff !important;
}
.ads-cart-drawer-header,
.ads-cart-drawer-body,
.ads-cart-drawer-footer {
    background: #ffffff !important;
}


/* ============================================================
   v0.3.5 — Sidebar search + KILL Hello Elementor pink reset
   ============================================================ */

/* ---- KILL Hello Elementor reset.css pink (#CC3366) ---- */
/* The theme's reset.css applies color:#CC3366 + border:1px solid #CC3366 to ALL bare buttons.
   This nukes that everywhere on our shop UI. */
.ads-shop-wrapper button,
.ads-shop-wrapper [type="button"],
.ads-shop-wrapper [type="submit"],
.ads-cart-drawer button,
.ads-cart-drawer [type="button"],
.ads-cart-drawer [type="submit"],
.ads-mobile-filter-panel button,
.ads-mobile-filter-panel [type="button"],
.ads-mobile-filter-panel [type="submit"],
.ads-qv-overlay button,
.ads-qv-overlay [type="button"],
.ads-qv-overlay [type="submit"],
.ads-cart-bubble,
.ads-whatsapp-bubble,
.ads-mobile-filter-trigger,
.ads-search-submit,
.ads-search-result,
.ads-product-quick-view {
    color: inherit;
    border-color: transparent;
}

/* Reset on the bubble buttons specifically — they have white bg with no border */
.ads-cart-bubble {
    border: none !important;
    color: var(--ads-navy) !important;
}
.ads-whatsapp-bubble {
    border: none !important;
    color: #fff !important;
}

/* Search submit button — no pink border */
.ads-search-submit {
    border: none !important;
    color: var(--ads-navy) !important;
}

/* Magnifier icon strokes use specific colors, not currentColor */
.ads-search-submit svg circle {
    stroke: var(--ads-navy) !important;
}
.ads-search-submit svg path {
    stroke: var(--ads-orange) !important;
}

/* ---- Sidebar search bar (compact version for sidebar context) ---- */
.ads-sidebar-search {
    margin: 0 0 16px 0;
}
.ads-sidebar-search .ads-search-wrapper {
    max-width: none;
    width: 100%;
}
.ads-sidebar-search .ads-search-form {
    padding: 3px 3px 3px 14px;
    border-radius: 999px;
    border: 1px solid var(--ads-border);
    background: #fff;
}
.ads-sidebar-search .ads-search-input {
    font-size: 13px;
    padding: 7px 6px !important;
}
.ads-sidebar-search .ads-search-submit {
    width: 32px;
    height: 32px;
}
.ads-sidebar-search .ads-search-submit svg {
    width: 16px;
    height: 16px;
}

/* Press Enter hint at bottom of search dropdown */
.ads-search-enter-hint {
    padding: 10px 14px;
    font-size: 12px;
    color: var(--ads-text-muted);
    background: var(--ads-bg-soft);
    border-top: 1px solid var(--ads-border);
    text-align: center;
}
.ads-search-enter-hint kbd {
    display: inline-block;
    padding: 1px 6px;
    background: #fff;
    border: 1px solid var(--ads-border);
    border-radius: 3px;
    font-family: -apple-system, monospace;
    font-size: 10px;
    font-weight: 600;
    color: var(--ads-navy);
    box-shadow: 0 1px 0 var(--ads-border);
}
.ads-search-enter-hint strong {
    color: var(--ads-navy);
}

/* Position dropdown to align with sidebar search */
.ads-sidebar-search .ads-search-dropdown {
    /* The sidebar is narrow — let the dropdown be a bit wider so results don't crush */
    min-width: 280px;
}


/* ============================================================
   v0.4.0 — Quantity stepper + STRONGER pink kill
   ============================================================ */

/* ---- STRONGER PINK KILL (sitewide on shop pages) ---- */
/* Hello Elementor's reset.css applies pink to all bare buttons.
   The previous override only caught buttons inside our wrappers. This is broader. */
body button,
body [type="button"],
body [type="submit"],
body [type="reset"] {
    color: inherit;
    border-color: transparent;
}

/* Specifically nuke pink on hover/focus across the shop */
body button:hover,
body button:focus,
body [type="button"]:hover,
body [type="button"]:focus,
body [type="submit"]:hover,
body [type="submit"]:focus {
    color: inherit;
    border-color: transparent;
    outline-color: transparent;
}

/* Form input focus rings — kill default pink */
body input:focus,
body select:focus,
body textarea:focus {
    outline-color: transparent;
}

/* WooCommerce default button color overrides */
body .button,
body a.button,
body button.button,
body input.button {
    background: var(--ads-orange);
    color: #fff;
    border: none;
}
body .button:hover,
body a.button:hover,
body button.button:hover,
body input.button:hover {
    background: var(--ads-orange-hover);
    color: #fff;
}

/* ============================================================
   QUANTITY STEPPER — for product cards and quick view
   ============================================================ */
.ads-qty-stepper {
    display: grid;
    grid-template-columns: 24px 1fr 24px;
    align-items: center;
    border: 1px solid var(--ads-border);
    border-radius: 7px;
    overflow: hidden;
    background: #fff;
    margin: 0 !important;
    align-self: stretch;
    height: 34px;
    width: 100%;
    box-sizing: border-box;
}
.ads-qty-stepper .ads-qty-btn {
    background: transparent !important;
    border: none !important;
    color: var(--ads-text-muted) !important;
    width: 100%;
    height: 100%;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}
.ads-qty-stepper .ads-qty-btn:hover {
    background: #f8fafc !important;
    color: var(--ads-text) !important;
}
.ads-qty-stepper .ads-qty-btn:active {
    background: #eef1f5 !important;
}
.ads-qty-stepper .ads-qty-input {
    width: 100%;
    min-width: 0;
    border: none !important;
    background: transparent !important;
    text-align: center !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--ads-text) !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 100% !important;
    line-height: 1 !important;
    box-shadow: none !important;
    outline: none !important;
    -moz-appearance: textfield;
}
.ads-qty-stepper .ads-qty-input::-webkit-outer-spin-button,
.ads-qty-stepper .ads-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.ads-qty-stepper .ads-qty-input:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Quick View qty stepper - bigger, sits next to Add to Cart button */
.ads-qv-actions {
    display: grid !important;
    grid-template-columns: auto 1fr;
    gap: 12px !important;
    align-items: stretch;
}
.ads-qv-qty-stepper {
    display: flex;
    align-items: center;
    border: 1px solid var(--ads-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    height: 50px;
    width: 130px;
}
.ads-qv-qty-stepper .ads-qty-btn {
    background: transparent !important;
    border: none !important;
    color: var(--ads-navy) !important;
    width: 38px;
    height: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    transition: background 0.15s;
}
.ads-qv-qty-stepper .ads-qty-btn:hover {
    background: var(--ads-bg-soft) !important;
}
.ads-qv-qty-stepper .ads-qty-input {
    flex: 1;
    width: 54px;
    border: none !important;
    background: transparent !important;
    text-align: center !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--ads-text) !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 50px !important;
    box-shadow: none !important;
    outline: none !important;
    -moz-appearance: textfield;
}
.ads-qv-qty-stepper .ads-qty-input::-webkit-outer-spin-button,
.ads-qv-qty-stepper .ads-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.ads-qv-add-to-cart {
    height: 50px !important;
    padding: 0 22px !important;
}

/* On mobile quick view, stack qty + button vertically */
@media (max-width: 480px) {
    .ads-qv-actions {
        grid-template-columns: 1fr !important;
    }
    .ads-qv-qty-stepper {
        width: 100%;
    }
}


/* =========================================================
   PRODUCT CARD IMAGE CAROUSEL (v0.5.7)
   ========================================================= */
.ads-product-image-wrap.ads-has-carousel {
    aspect-ratio: 1 / 1;
    /* min-width: 0 prevents Swiper from forcing parent grid column to expand */
    min-width: 0;
    /* contain layout prevents Swiper's internal sizing from leaking up */
    contain: layout;
    overflow: hidden;
}

.ads-card-swiper {
    width: 100%;
    height: 100%;
    min-width: 0;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

.ads-card-swiper .swiper-wrapper {
    width: 100%;
    height: 100%;
}

.ads-card-swiper .swiper-slide {
    background: var(--ads-bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-width: 0;
    max-width: 100%;
}

.ads-card-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform 0.4s ease;
}

.ads-product-card:hover .ads-card-swiper .swiper-slide-active img {
    transform: scale(1.05);
}

/* Carousel arrows — show on card hover */
.ads-card-swiper-prev,
.ads-card-swiper-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--ads-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.15s ease, transform 0.15s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 0;
}
.ads-card-swiper-prev { left: 8px; }
.ads-card-swiper-next { right: 8px; }

.ads-product-card:hover .ads-card-swiper-prev,
.ads-product-card:hover .ads-card-swiper-next {
    opacity: 1;
}

.ads-card-swiper-prev:hover,
.ads-card-swiper-next:hover {
    background: var(--ads-orange);
    color: #fff;
    border-color: var(--ads-orange);
}

.ads-card-swiper-prev.swiper-button-disabled,
.ads-card-swiper-next.swiper-button-disabled {
    opacity: 0 !important;
    pointer-events: none;
}

/* Pagination dots — pinned to bottom of image */
.ads-card-swiper-pagination {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 5px;
    pointer-events: none;
}

.ads-card-swiper-pagination .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease, width 0.2s ease;
    pointer-events: auto;
    opacity: 1;
    margin: 0;
}

.ads-card-swiper-pagination .swiper-pagination-bullet-active {
    background: var(--ads-orange);
    width: 18px;
    border-radius: 3px;
}

/* Touch devices: always show arrows */
@media (hover: none) {
    .ads-card-swiper-prev,
    .ads-card-swiper-next {
        opacity: 0.85;
    }
}

/* =========================================================
   QUICK VIEW IMAGE CAROUSEL + THUMBS (v0.5.7)
   ========================================================= */
.ads-qv-image.ads-qv-has-carousel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* override the static aspect-ratio when in carousel mode so thumbs fit */
    aspect-ratio: auto;
    padding: 16px;
    min-width: 0;
}

.ads-qv-swiper {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--ads-bg-soft);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    min-width: 0;
    max-width: 100%;
    contain: layout;
}

.ads-qv-swiper .swiper-wrapper {
    width: 100%;
    height: 100%;
}

.ads-qv-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-width: 0;
    max-width: 100%;
}

.ads-qv-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
}

/* QV arrows */
.ads-qv-swiper-prev,
.ads-qv-swiper-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--ads-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0;
}
.ads-qv-swiper-prev { left: 12px; }
.ads-qv-swiper-next { right: 12px; }

.ads-qv-swiper-prev:hover,
.ads-qv-swiper-next:hover {
    background: var(--ads-orange);
    color: #fff;
    border-color: var(--ads-orange);
}

.ads-qv-swiper-prev.swiper-button-disabled,
.ads-qv-swiper-next.swiper-button-disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* QV pagination dots */
.ads-qv-swiper-pagination {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.ads-qv-swiper-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease, width 0.2s ease;
    opacity: 1;
    margin: 0;
}

.ads-qv-swiper-pagination .swiper-pagination-bullet-active {
    background: var(--ads-orange);
    width: 24px;
    border-radius: 4px;
}

/* QV thumbnail rail */
.ads-qv-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px;
    scrollbar-width: thin;
}

.ads-qv-thumbs::-webkit-scrollbar {
    height: 4px;
}

.ads-qv-thumbs::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 2px;
}

.ads-qv-thumb {
    flex: 0 0 70px;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--ads-bg-soft);
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.15s ease;
    padding: 0;
    box-sizing: border-box;
}

.ads-qv-thumb:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 126, 54, 0.3);
}

.ads-qv-thumb.is-active {
    border-color: var(--ads-orange);
}

.ads-qv-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
    box-sizing: border-box;
    background: var(--ads-bg-soft);
    display: block;
}

/* Mobile: smaller thumbs */
@media (max-width: 640px) {
    .ads-qv-thumb {
        flex: 0 0 56px;
        width: 56px;
        height: 56px;
    }
    .ads-qv-swiper-prev,
    .ads-qv-swiper-next {
        width: 34px;
        height: 34px;
    }
}

/* =========================================================
   STOCK INDICATORS (v0.5.9) — Avi's spec
   "10+ in stock" if qty>10, actual qty if 1-10, "Out of stock" if 0
   ========================================================= */
.ads-stock-indicator.ads-stock-in {
    /* default — white bg, ink text */
    background: #fff;
    color: var(--ads-text);
}
.ads-stock-indicator.ads-stock-in .ads-stock-dot {
    background: #16a34a;
    box-shadow: 0 0 0 2.5px rgba(22, 163, 74, 0.15);
}

.ads-stock-indicator.ads-stock-low {
    background: #fff;
    color: #b45309;
}
.ads-stock-indicator.ads-stock-low .ads-stock-dot {
    background: #f59e0b;
    box-shadow: 0 0 0 2.5px rgba(245, 158, 11, 0.18);
}

.ads-stock-indicator.ads-stock-out {
    background: #fff;
    color: #e11d48;
}
.ads-stock-indicator.ads-stock-out .ads-stock-dot {
    background: #e11d48;
    box-shadow: 0 0 0 2.5px rgba(225, 29, 72, 0.15);
}

/* Card styling when out of stock — fade image, keep card crisp */
.ads-product-card.ads-card-out-of-stock {
    opacity: 1;
}
.ads-product-card.ads-card-out-of-stock .ads-product-image {
    opacity: 0.5;
    filter: grayscale(0.3);
}

.ads-product-card.ads-card-out-of-stock .ads-add-to-cart-btn {
    background: #f1f4f8 !important;
    color: var(--ads-text-muted) !important;
    cursor: not-allowed !important;
    pointer-events: none;
    opacity: 1;
}

.ads-product-card.ads-card-out-of-stock .ads-qty-stepper {
    opacity: 0.4;
    pointer-events: none;
}

/* =========================================================
   PRICE FORMAT — "BBD$ 30.00 Incl. VAT" (v0.5.9)
   ========================================================= */
.ads-product-price .ads-vat-suffix,
.ads-qv-price .ads-vat-suffix {
    font-size: 0.55em;
    font-weight: 500;
    color: var(--ads-text-muted);
    margin-left: 4px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* On QV, slightly bigger suffix because price is bigger */
.ads-qv-price .ads-vat-suffix {
    font-size: 0.5em;
}

/* =========================================================
   QTY CAP FEEDBACK (v0.5.9)
   ========================================================= */
.ads-qty-cap-msg {
    font-size: 11px;
    color: #dc2626;
    background: rgba(220, 38, 38, 0.08);
    padding: 5px 10px;
    border-radius: 6px;
    margin-top: 6px;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.01em;
    animation: ads-fade-slide-in 0.2s ease;
}

@keyframes ads-fade-slide-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.ads-qty-input.is-cap-flash {
    background: rgba(220, 38, 38, 0.15) !important;
    color: #dc2626 !important;
    transition: background 0.15s ease, color 0.15s ease;
}

/* =========================================================
   CART DRAWER VAT BREAKDOWN (v0.5.9)
   ========================================================= */
.ads-cart-drawer-totals {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 0;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--ads-border);
}

.ads-cart-drawer-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13px;
    color: var(--ads-text-muted);
}

.ads-cart-drawer-row strong {
    color: var(--ads-text);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.ads-cart-drawer-row.ads-cart-drawer-total-row {
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px dashed var(--ads-border);
    font-size: 15px;
    color: var(--ads-text);
    font-weight: 600;
}

.ads-cart-drawer-row.ads-cart-drawer-total-row strong {
    font-size: 18px;
    color: var(--ads-navy);
    font-weight: 800;
}

/* =========================================================
   INFINITE SCROLL LOADER (v0.6.0)
   ========================================================= */
.ads-infinite-loader {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 12px;
}

.ads-infinite-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(0, 38, 62, 0.1);
    border-top-color: var(--ads-orange);
    border-radius: 50%;
    animation: ads-spin 0.7s linear infinite;
}

.ads-infinite-msg {
    margin: 0;
    font-size: 13px;
    color: var(--ads-text-muted);
    letter-spacing: 0.02em;
}

/* Hide old numeric pagination if it ever renders */
.ads-pagination {
    display: none !important;
}


/* =================================================================
   v0.6.4 — CASCADE GUARDS
   --------------------------------------------------------
   Defends against (a) WooCommerce core selectors that target
   .button / li.product .button and inject margin/border-radius,
   and (b) any Elementor "Custom CSS" block that flat-lines the
   card's border / radius / shadow / hover with !important.

   We win with: higher selector specificity (body > wrapper >
   card class chain) + !important + last source order.
   ================================================================= */

/* (5)+(6) — Restore card border, radius, shadow, hover even when
   a custom CSS block tries to wipe them. Chain selectors so we
   beat .ads-shop-wrapper .ads-product-card.ads-card-grid {...}. */
body .ads-shop-wrapper .ads-product-card,
body .ads-shop-wrapper .ads-product-card.ads-card-grid,
body .ads-shop-wrapper .ads-product-card.ads-card-rows {
    background: #fff !important;
    border: 1px solid var(--ads-border) !important;
    border-radius: var(--ads-radius) !important;
    box-shadow: 0 1px 3px rgba(15, 37, 64, 0.04) !important;
    overflow: hidden !important;
    padding: 0 !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
}

body .ads-shop-wrapper .ads-product-card:hover,
body .ads-shop-wrapper .ads-product-card.ads-card-grid:hover,
body .ads-shop-wrapper .ads-product-card.ads-card-rows:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 6px 24px -12px rgba(15, 37, 64, 0.18) !important;
    transform: translateY(-2px) !important;
}

body .ads-shop-wrapper .ads-product-card:hover .ads-product-image,
body .ads-shop-wrapper .ads-product-card.ads-card-grid:hover .ads-product-image {
    transform: scale(1.03) !important;
}

/* (1) Layer A — WooCommerce: .woocommerce ul.products li.product .button { margin-top: 1em }.
   The Add btn is inside .ads-product-actions; pin its margin/align hard. */
body .ads-shop-wrapper .ads-product-actions .ads-add-to-cart-btn,
body .ads-shop-wrapper .ads-product-actions button.ads-add-to-cart-btn {
    margin: 0 !important;
    padding: 0 6px !important;
    height: 34px !important;
    align-self: center !important;
    border-radius: 7px !important;
}

body .ads-shop-wrapper .ads-product-actions .ads-qty-stepper {
    margin: 0 !important;
    height: 34px !important;
    align-self: center !important;
}

/* (1) Layer B — Center both children inside the actions row. */
body .ads-shop-wrapper .ads-product-actions {
    align-items: center !important;
}

/* (4) Price section — keep our top padding even if Elementor tries to override.
   Note: kept as-is so Avi's design holds — the dev report's specific
   font-size/color values were generic and would clash with Inter sizing. */
body .ads-shop-wrapper .ads-product-price-row {
    padding-top: 6px !important;
    border-top: 1px dashed var(--ads-border) !important;
    margin-top: auto !important;
}

/* (2) Hide the entire actions row when the product is sold out.
   Notify isn't wired up; cleaner to remove the row entirely. */
body .ads-shop-wrapper .ads-product-card.ads-card-out-of-stock .ads-product-actions {
    display: none !important;
}

/* (3) Cart bubble — WooCommerce sets border-radius: 3px on .button selectors
   that match. Force the round shape regardless. The bubble lives outside
   .ads-shop-wrapper (appended to body root), so we target it directly with
   id+class which beats WooCommerce's compound selector (.woocommerce ul.products .button). */
body button#ads-cart-bubble.ads-cart-bubble,
body #ads-cart-bubble,
body .ads-cart-bubble {
    border-radius: 50% !important;
}


/* =================================================================
   v0.6.5 — More cascade fixes
   - Fix dark-on-dark Add button text/icon (color:inherit was stealing white)
   - Pill-shape the Add button (999px) and the stepper to match
   - Soft grey image area background
   - Out-of-stock cards get a subtle "Restocking soon" notice
   ================================================================= */

/* (1) Add button white text + icon — beats the broad .ads-shop-wrapper button reset.
   That reset has specificity 0,1,1 (one class + one tag). We use 0,3,2 by chaining
   body + wrapper + button.classname + tag, and add !important. White always. */
body .ads-shop-wrapper button.ads-add-to-cart-btn,
body .ads-shop-wrapper .ads-product-actions .ads-add-to-cart-btn {
    color: #ffffff !important;
    background: var(--ads-navy) !important;
    border-radius: 999px !important;
}
body .ads-shop-wrapper button.ads-add-to-cart-btn:hover,
body .ads-shop-wrapper .ads-product-actions .ads-add-to-cart-btn:hover {
    background: #1a3556 !important;
    color: #ffffff !important;
}
body .ads-shop-wrapper .ads-add-to-cart-btn .ads-btn-text,
body .ads-shop-wrapper .ads-add-to-cart-btn .ads-add-icon,
body .ads-shop-wrapper .ads-add-to-cart-btn span,
body .ads-shop-wrapper .ads-add-to-cart-btn svg {
    color: #ffffff !important;
}
body .ads-shop-wrapper .ads-add-to-cart-btn svg,
body .ads-shop-wrapper .ads-add-to-cart-btn .ads-add-icon {
    stroke: #ffffff !important;
    fill: none !important;
}

/* (2) Stepper — match the pill shape so it visually pairs with the Add button. */
body .ads-shop-wrapper .ads-product-actions .ads-qty-stepper {
    border-radius: 999px !important;
}

/* (3) Image area — soft grey background so the product pops; keep top corners
   matching the card radius (12px). Bottom is flush with the body. */
body .ads-shop-wrapper .ads-product-image-wrap {
    background: #f8f9fa !important;
    border-radius: 12px 12px 0 0 !important;
}

/* (4) Out-of-stock — small italic notice in place of the hidden actions row,
   so card heights stay consistent and customers know it's coming back.
   Note: PHP only renders .ads-restock-notice for sold-out cards, so no
   parent-class gating needed here — but we still scope to the wrapper. */
body .ads-shop-wrapper .ads-restock-notice {
    display: flex !important;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #9CA3AF;
    font-style: italic;
    padding: 8px 0 4px;
    line-height: 1.3;
    margin-top: 4px;
    letter-spacing: 0;
}
body .ads-shop-wrapper .ads-restock-notice .ads-restock-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    color: #9CA3AF;
    stroke: #9CA3AF;
    fill: none;
}


/* =================================================================
   v0.6.6 — Quick View modal alignment + card QV button hover fix
   - Carry the card's design language into the QV modal:
     navy pill Add btn, pill stepper, image radius+bg, italic unit
     price, neutral category tag, true-circle close
   - Fix the QV stock badge stretch
   - Fix card hover Quick View button losing its white text on hover
   ================================================================= */

/* Card quick-view overlay button — :hover was setting bg navy + color #fff,
   but the broad reset (.ads-shop-wrapper button { color: inherit }) wins,
   leaving dark text on dark navy. Force the white through. */
body .ads-shop-wrapper button.ads-product-quick-view {
    color: var(--ads-navy) !important;
    background: rgba(255, 255, 255, 0.95) !important;
}
body .ads-shop-wrapper button.ads-product-quick-view:hover,
body .ads-shop-wrapper .ads-product-card:hover button.ads-product-quick-view:hover {
    background: var(--ads-navy) !important;
    color: #ffffff !important;
}
body .ads-shop-wrapper button.ads-product-quick-view:hover svg,
body .ads-shop-wrapper button.ads-product-quick-view:hover span {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

/* (1) QV Add to Cart — navy pill, white text, beats older orange !important rule.
   We chain body + class + class so we win specificity (0,3,0) and add !important. */
body .ads-qv-overlay .ads-qv-add-to-cart,
body .ads-qv-overlay button.ads-qv-add-to-cart,
body .ads-qv-overlay button.ads-qv-add-to-cart.ads-add-to-cart-btn {
    background: var(--ads-navy) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 0 22px !important;
    height: 48px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: -0.1px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}
body .ads-qv-overlay .ads-qv-add-to-cart:hover,
body .ads-qv-overlay button.ads-qv-add-to-cart:hover {
    background: #1a3556 !important;
    color: #ffffff !important;
    border-color: transparent !important;
}
body .ads-qv-overlay .ads-qv-add-to-cart .ads-btn-text,
body .ads-qv-overlay .ads-qv-add-to-cart .ads-add-icon,
body .ads-qv-overlay .ads-qv-add-to-cart span,
body .ads-qv-overlay .ads-qv-add-to-cart svg {
    color: #ffffff !important;
}
body .ads-qv-overlay .ads-qv-add-to-cart svg,
body .ads-qv-overlay .ads-qv-add-to-cart .ads-add-icon {
    stroke: #ffffff !important;
    fill: none !important;
    width: 16px !important;
    height: 16px !important;
}

/* (2) QV qty stepper — pill shape to match Add button */
body .ads-qv-overlay .ads-qv-qty-stepper {
    border-radius: 999px !important;
    height: 48px !important;
    border: 1px solid var(--ads-border) !important;
    overflow: hidden;
}
body .ads-qv-overlay .ads-qv-qty-stepper .ads-qty-btn {
    border-radius: 0 !important;
}
body .ads-qv-overlay .ads-qv-qty-stepper .ads-qty-btn:first-child {
    border-radius: 999px 0 0 999px !important;
}
body .ads-qv-overlay .ads-qv-qty-stepper .ads-qty-btn:last-child {
    border-radius: 0 999px 999px 0 !important;
}

/* (3) QV unit price — italic, lighter grey, recessive, matches card */
body .ads-qv-overlay .ads-qv-unit-price {
    font-size: 11px !important;
    color: #c4c9d4 !important;
    font-style: italic !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
}

/* (4) QV image panel — soft cool-white background + matching left radius */
body .ads-qv-overlay .ads-qv-image {
    border-radius: 12px 0 0 12px !important;
    background: #f8f9fb !important;
}
/* On stacked mobile layout, the image is above the details — radius goes top instead */
@media (max-width: 768px) {
    body .ads-qv-overlay .ads-qv-image {
        border-radius: 12px 12px 0 0 !important;
    }
}

/* (5) QV stock badge — clean stretch bug. Only top+right, never bottom too.
   Match the dev report's "place at bottom-right" choice. */
body .ads-qv-overlay .ads-qv-image .ads-stock-indicator {
    top: auto !important;
    left: auto !important;
    bottom: 12px !important;
    right: 12px !important;
    height: auto !important;
    width: auto !important;
}

/* (6) QV category tag — neutral grey, smaller, less shouty */
body .ads-qv-overlay .ads-qv-category {
    color: #9CA3AF !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    letter-spacing: 0.3px !important;
    text-transform: uppercase !important;
    margin-bottom: 12px !important;
}

/* (7) QV last meta row — drop the trailing border so it doesn't read like
   a divider before the actions area. */
body .ads-qv-overlay .ads-qv-meta-row:last-of-type {
    border-bottom: none !important;
}

/* (8) QV close — true 36×36 circle */
body .ads-qv-overlay .ads-qv-close {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
