/* WooCommerce Archive Styles */

:root {
    --vbbk-luxury-gold: #c9aa53;
    --vbbk-luxury-brown: #8D6E63;
    --vbbk-luxury-tan: #f9f5f0; /* Lighter luxury beige for shop area */
    --vbbk-text-dark: #1a1a1a;
    --vbbk-text-muted: #888888;
    --vbbk-bg-sidebar: #f9f5f0;
    --vbbk-border-light: #e8e1da;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

ul.product-categories {
    padding: 0;
    margin: 0;
    list-style: none;
}

/* Page Header */
.shop-page-header {
    text-align: center;
    padding: 100px 0 120px;
    position: relative;
    overflow: hidden;
}

.shop-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/breadcrumb-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.8; /* Increased opacity as requested to ensure it's visible */
    z-index: 1;
    pointer-events: none;
}

.shop-page-header .container {
    position: relative;
    z-index: 2;
}

.shop-page-header h1 {
    font-family: var(--font-heading);
    font-size: 48px;
    margin-bottom: 10px;
    font-weight: 400;
    color: var(--brand-navy);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.shop-breadcrumbs {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--vbbk-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.shop-breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.shop-breadcrumbs .sep {
    margin: 0 10px;
}

/* Category Slider */
.shop-category-bar {
    background: var(--vbbk-luxury-gold);
    padding: 30px 0;
    margin-bottom: 50px;
}

.category-swiper {
    padding: 0 20px;
}

.category-items-wrapper {
    display: flex;
    align-items: center;
    transition-timing-function: linear !important; /* Critical for smooth marquee */
}

/* Slide styles */
.swiper-slide {
    width: auto !important;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-thumb {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.category-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-name {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 400;
}

/* Layout */
.shop-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
}

/* Sidebar */
.shop-sidebar {
    background: var(--vbbk-bg-sidebar);
    padding: 10px;
    align-self: start;
}

.shop-sidebar .widget-title {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--vbbk-text-dark);
    border: none;
    padding: 0;
}

/* Luxury Category List */
.product-categories-list {
    list-style: none;
    padding: 0;
    margin: 5px 0 0; /* Reduced top margin */
}

.cat-item {
    border-bottom: 1px solid var(--vbbk-border-light);
    transition: all 0.3s ease;
}

.cat-row {
    display: flex;
    align-items: stretch;
}

.cat-item:first-child {
    border-top: 1px solid var(--vbbk-border-light);
}

.cat-item a,
.cat-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    text-decoration: none;
    color: var(--vbbk-text-dark);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: all 0.3s ease;
}

.cat-item.cat-child a {
    padding-left: 15px; /* Better indent for hierarchy */
    font-size: 13px;
    font-weight: 500;
    opacity: 0.9;
}

.cat-link {
    flex: 1;
}

.cat-toggle {
    border: none;
    background: transparent;
    color: var(--vbbk-luxury-gold);
    width: 28px;
    min-width: 28px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.cat-toggle-icon {
    display: inline-block;
    font-size: 13px;
    line-height: 1;
}

.cat-item.has-children.is-open > .cat-row .cat-toggle-icon,
.cat-item.current-cat-ancestor > .cat-row .cat-toggle-icon,
.cat-item.current-cat > .cat-row .cat-toggle-icon {
    transform: rotate(180deg);
}

.cat-children {
    display: none;
}

.cat-item.has-children.is-open > .cat-children,
.cat-item.current-cat-ancestor > .cat-children,
.cat-item.current-cat > .cat-children {
    display: block;
}

.product-categories-list.sub-categories {
    margin: 0 0 0 12px;
    padding-left: 8px;
    border-left: 1px solid var(--vbbk-border-light);
}

.product-categories-list.sub-categories .cat-item:first-child {
    border-top: none;
}

.cat-name {
    flex-grow: 1;
    font-weight: 600;
}

.cat-count {
    color: #bbb;
    font-size: 11px;
    font-weight: 600;
    margin-right: 15px;
    background: #fdfdfd;
    padding: 2px 8px;
    border-radius: 10px;
}

.cat-item.current-cat > .cat-row .cat-link,
.cat-item.current-cat-ancestor > .cat-row .cat-link {
    font-weight: 700;
}

.cat-arrow {
    font-size: 16px;
    color: var(--vbbk-luxury-gold);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.cat-item:hover > .cat-row > .cat-link {
    padding-left: 10px;
    color: var(--vbbk-luxury-gold);
}

.cat-item:hover > .cat-row .cat-arrow {
    opacity: 1;
    transform: translateX(0);
}

.cat-item:hover > .cat-row .cat-count {
    background: var(--vbbk-luxury-gold);
    color: #fff;
}

/* Luxury Brand Filter */
.widget_product_brands .brand-list {
    list-style: none;
    padding: 0;
    margin: 5px 0 0;
}

.brand-item {
    border-bottom: 1px solid var(--vbbk-border-light);
    transition: all 0.3s ease;
}

.brand-item:first-child {
    border-top: 1px solid var(--vbbk-border-light);
}

.brand-label {
    display: flex;
    align-items: center;
    padding: 12px 0;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--vbbk-text-dark);
    transition: all 0.3s ease;
}

.brand-label input[type="radio"] {
    display: none;
}

.radio-custom {
    display: block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--vbbk-border-light);
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    background: #fff;
    transition: all 0.3s ease;
}

.brand-label:hover .radio-custom {
    border-color: var(--vbbk-luxury-gold);
}

.brand-label input[type="radio"]:checked + .radio-custom {
    border-color: var(--vbbk-luxury-gold);
}

.brand-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--vbbk-luxury-gold);
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(201, 170, 83, 0.5);
}

.brand-name {
    flex-grow: 1;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.brand-count {
    color: #bbb;
    font-size: 11px;
    font-weight: 600;
    background: #fdfdfd;
    padding: 2px 8px;
    border-radius: 10px;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.brand-label:hover .brand-name {
    color: var(--vbbk-luxury-gold);
}

.brand-label:hover .brand-count {
    background: var(--vbbk-luxury-gold);
    color: #fff;
}

.brand-label input[type="radio"]:checked ~ .brand-name {
    color: var(--vbbk-luxury-gold);
    font-weight: 700;
}

.brand-label input[type="radio"]:checked ~ .brand-count {
    background: var(--vbbk-luxury-gold);
    color: #fff;
}




/* Tag Cloud Overlay */
.tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tagcloud a {
    padding: 8px 16px;
    background: #000;
    color: #fff !important;
    text-decoration: none;
    font-size: 12px !important;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.tagcloud a:hover {
    background: var(--vbbk-luxury-gold);
    color: #fff;
}

/* Price Filter Styling */
.widget_price_filter .price_slider {
    margin-bottom: 20px !important;
    background: #ddd !important;
    height: 4px !important;
    border: none !important;
}

.widget_price_filter .ui-slider-range {
    background: #000 !important;
}

.widget_price_filter .ui-slider-handle {
    background: #000 !important;
    width: 16px !important;
    height: 16px !important;
    top: -6px !important;
    border-radius: 50% !important;
    border: none !important;
    cursor: pointer !important;
}

.widget_price_filter .price_slider_amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--vbbk-text-muted);
}

.widget_price_filter .price_slider_amount .button {
    order: 2;
    background: #000;
    color: #fff;
    padding: 8px 20px;
    border: none;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s;
}

.widget_price_filter .price_slider_amount .button:hover {
    background: var(--vbbk-luxury-gold);
}

/* Filter Banner */
.sidebar-promo-banner {
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.sidebar-promo-banner img {
    width: 100%;
    display: block;
    transition: transform 1s ease;
}

.sidebar-promo-banner:hover img {
    transform: scale(1.1);
}

.promo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 30px 20px;
    color: #fff;
    text-align: center;
}

.promo-title {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 5px;
    font-weight: 400;
}

.promo-subtitle {
    font-family: var(--font-body);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* Product Toolbar */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px 0;
    border-top: 1px solid var(--vbbk-border-light);
    margin-bottom: 40px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--vbbk-text-muted);
}

.view-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.view-switcher {
    display: flex;
    gap: 8px;
}

.view-switcher button {
    background: #fff;
    border: 1px solid var(--vbbk-border-light);
    border-radius: 999px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: var(--vbbk-text-muted);
    transition: all 0.25s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.view-switcher button:hover {
    border-color: var(--vbbk-luxury-gold);
    color: var(--vbbk-luxury-gold);
}

.view-switcher button.active {
    background: var(--vbbk-luxury-gold);
    color: #fff;
    border-color: var(--vbbk-luxury-gold);
}

.orderby-wrapper select,
.catalog-ordering select {
    padding: 8px 15px;
    border: 1px solid var(--vbbk-border-light);
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--vbbk-text-dark);
    background: #fff;
    cursor: pointer;
}

.catalog-ordering .woocommerce-ordering {
    margin: 0;
}

.catalog-ordering label {
    display: none;
}

.shop-category-description {
    margin: -18px 0 30px;
    padding: 0 8px;
    color: #000;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
}

.shop-category-description p {
    margin: 0 0 10px;
}

.shop-category-description p:last-child {
    margin-bottom: 0;
}

/* Main Product Grid (4 columns) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns as requested */
    gap: 30px;
    margin-bottom: 50px;
    transition: all 0.5s ease;
}

/* List View Refined Layout */
.products-grid.is-list-view {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Boutique Product Card Stylings */
.product-card {
    background: #fff;
    border: 1px solid #f2f2f2;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--vbbk-luxury-gold);
    transform: translateY(-5px);
}

.product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    margin-bottom: 18px;
    background: #f9f9f9;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Mobile Filter Trigger */
.mobile-filter-trigger {
    display: none !important;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--vbbk-border-light);
    border-radius: 999px;
    padding: 8px 18px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--vbbk-text-dark);
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.sidebar-mobile-header {
    display: none !important;
}



.mobile-filter-trigger i {
    color: var(--vbbk-luxury-gold);
    font-size: 16px;
}

.mobile-filter-trigger:hover {
    border-color: var(--vbbk-luxury-gold);
    color: var(--vbbk-luxury-gold);
}

/* Sidebar Overlay */
.shop-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.shop-sidebar-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Sidebar Adjustment */
@media (max-width: 1200px) {
    .mobile-filter-trigger {
        display: flex !important;
    }

    .shop-container {
        grid-template_columns: 1fr;
    }

    .shop-sidebar {
        position: fixed;
        top: 0;
        left: -320px; /* Slide out from left */
        width: 320px;
        height: 100vh;
        background: #fff;
        z-index: 1001;
        margin: 0 !important;
        overflow-y: auto;
        padding: 0; /* Let header and padding handle it */
        display: block !important; /* Ensure it shows when class is active */
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 5px 0 25px rgba(0,0,0,0.1);
    }

    .shop-sidebar.is-active {
        left: 0;
    }

    .sidebar-mobile-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 20px 25px;
        background: var(--brand-navy);
        color: #fff;
        border-bottom: 2px solid var(--vbbk-luxury-gold);
        margin-bottom: 20px;
    }

    .sidebar-mobile-header h3 {
        font-family: var(--font-heading);
        font-size: 20px;
        margin: 0;
        color: #fff;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .sidebar-close-btn {
        background: transparent;
        border: none;
        color: #fff;
        font-size: 24px;
        cursor: pointer;
        display: flex;
        align-items: center;
        transition: transform 0.3s ease;
    }

    .sidebar-close-btn:hover {
        transform: rotate(90deg);
        color: var(--vbbk-luxury-gold);
    }

    /* Add space inside sidebar content for mobile */
    .shop-sidebar .widget {
        padding: 0 25px;
        margin-bottom: 35px;
    }

    .shop-sidebar .widget-title {
        font-size: 19px;
        margin-bottom: 15px;
    }
}

/* Scroll Lock */
body.filter-open {
    overflow: hidden;
}


.product-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}

.product-category {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--vbbk-text-muted);
    margin-bottom: 2px;
}

.product-card:hover .product-title {
    color: var(--vbbk-luxury-gold);
}

.star-rating {
    position: relative;
    font-family: var(--font-body); /* Standard font characters for fallback */
    font-size: 14px;
    display: inline-flex;
    gap: 2px;
    color: var(--vbbk-luxury-gold);
}

/* Handle standard WooCommerce Star Rating structure (e.g. from widgets) */
.woocommerce-order-details .star-rating,
.star-rating[role="img"] {
    display: block;
    width: 5.4em;
    height: 1em;
    line-height: 1;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-indent: -9999px;
}

.star-rating[role="img"]::before {
    content: '★★★★★';
    position: absolute;
    top: 0;
    left: 0;
    color: #e0e0e0;
    text-indent: 0;
    font-family: serif; /* Better star look */
    letter-spacing: 2px;
}

.star-rating[role="img"] span {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    padding-top: 1.5em; /* Hide text but show pseudo content */
    display: block;
}

.star-rating[role="img"] span::before {
    content: '★★★★★';
    position: absolute;
    top: 0;
    left: 0;
    color: var(--vbbk-luxury-gold);
    text-indent: 0;
    font-family: serif;
    letter-spacing: 2px;
}

.star-rating i {
    transition: transform 0.3s ease;
    display: inline-block;
}

.product-card:hover .star-rating i {
    transform: scale(1.15);
}

/* List View Specific Overrides */
.products-grid.is-list-view .product-card {
    flex-direction: row !important;
    align-items: center !important;
    padding: 25px !important;
    display: flex !important;
    gap: 0 !important;
}

.products-grid.is-list-view .product-image-container {
    width: 240px !important;
    max-width: 240px !important;
    margin-right: 35px !important;
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
}

.products-grid.is-list-view .product-info {
    flex: 1 !important;
    gap: 12px !important;
    text-align: left !important;
    padding: 0 !important;
}

.products-grid.is-list-view .product-title {
    font-size: 24px !important;
    margin-bottom: 5px !important;
}

.products-grid.is-list-view .product-price {
    font-size: 18px !important;
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .shop-toolbar {
        align-items: flex-start;
    }

    .catalog-ordering,
    .orderby-wrapper {
        width: 100%;
    }

    .catalog-ordering select,
    .orderby-wrapper select {
        width: 100%;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Product Card Redesign */
.product-card {
    position: relative;
    background: #fff;
    padding: 0;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: #e8e8e8;
}

.product-card .product-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fdfdfd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .product-image img {
    max-width: 85%;
    max-height: 85%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.06);
}

/* Badges */
.badge-container {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 5px;
    z-index: 5;
}

.badge-label {
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    border-radius: 0;
}

.badge-sale {
    background: var(--vbbk-luxury-brown);
}

.badge-percent {
    background: #000;
}

.badge-featured {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--vbbk-luxury-gold);
    font-size: 16px;
}

/* Product Info */

.product-category {
    font-size: 12px;
    color: var(--vbbk-luxury-gold);
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.product-rating {
    display: flex;
    gap: 2px;
    color: #f1c40f;
    font-size: 12px;
    margin-bottom: 12px;
}

.product-price del {
    color: #bbb;
    font-size: 13px;
    margin-right: 10px;
    text-decoration: line-through;
}

.product-price ins {
    text-decoration: none;
    font-weight: 400;
}

/* Search Widget */
.widget_product_search .widget-title {
    display: none;
}

.widget_product_search form {
    position: relative;
    border-bottom: 1px solid #000;
}

.widget_product_search input[type="search"] {
    width: 100%;
    padding: 10px 0;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 14px;
    color: #000;
}

.widget_product_search button {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
    .shop-container {
        grid-template-columns: 1fr;
    }
    
    .shop-sidebar {
        display: none; /* Consider a toggle drawer for mobile */
    }
    
    .products.columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* View Switcher Styles (Grid vs List) */
.products-grid.is-list-view {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.products-grid.is-list-view .product-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 20px;
    height: auto;
    max-width: 100%;
}

.products-grid.is-list-view .product-card-link {
    display: contents; /* Allow flex layout of inner items */
}

.products-grid.is-list-view .product-image-container {
    width: 250px;
    height: 250px;
    flex-shrink: 0;
    margin-bottom: 0;
    margin-right: 30px;
}

.products-grid.is-list-view .product-info {
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.products-grid.is-list-view .product-card:hover {
    transform: translateY(-5px);
}

.products-grid.is-list-view .product-card:hover .product-image-container {
    transform: scale(1.02);
}

/* Mobile Adjustments for List View */
@media (max-width: 768px) {
    .products-grid.is-list-view .product-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .products-grid.is-list-view .product-image-container {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .products-grid.is-list-view .product-info {
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .products.columns-3 {
        grid-template-columns: 1fr;
    }
    
    .shop-page-header h1 {
        font-size: 32px !important;
    }
    
    .category-name {
        display: none; /* Circular images only on small mobile */
    }
}

/* Main Product Grid (Fixed for Responsive) */
.products-grid.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0 0 50px;
}

/* Fix gap issue caused by clearfix pseudo-elements in grid layout */
.products-grid.products::before,
.products-grid.products::after {
    display: none !important;
}

.products-grid.products li.product,
.products-grid.products li.product-card-wrapper {
    width: auto !important;
    margin: 0 !important;
    float: none !important;
    list-style: none !important;
}

.products-grid.products li.product .product-card {
    height: 100%;
}

.products-grid.products.is-list-view {
    grid-template-columns: 1fr !important;
    gap: 20px;
}

.products-grid.products.is-list-view li.product .product-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding: 20px;
    border: 1px solid var(--vbbk-border-light);
}

.products-grid.products.is-list-view li.product .product-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0;
}

.products-grid.products.is-list-view li.product .product-info {
    padding: 0;
    text-align: left;
}

.products-grid.products.is-list-view li.product .product-title {
    font-size: 20px;
}

@media (max-width: 1024px) {
    .products-grid.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}
/* Boutique Pagination Redesign */
.woocommerce-pagination {
    margin: 60px 0 30px;
    text-align: center;
}

.woocommerce-pagination ul.page-numbers {
    display: inline-flex;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
    border: none;
}

.woocommerce-pagination ul.page-numbers li {
    border: none;
    padding: 0;
}

.woocommerce-pagination .page-numbers li a,
.woocommerce-pagination .page-numbers li span {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 50%; /* Circle look for boutique feel */
    color: var(--vbbk-text-dark);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.woocommerce-pagination .page-numbers li span.current {
    background: var(--vbbk-luxury-gold);
    color: #fff;
    border-color: var(--vbbk-luxury-gold);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(201, 170, 83, 0.3);
}

.woocommerce-pagination .page-numbers li a:hover {
    background: var(--brand-navy);
    color: #fff;
    border-color: var(--brand-navy);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(15, 42, 68, 0.2);
}

.woocommerce-pagination .page-numbers li a.prev,
.woocommerce-pagination .page-numbers li a.next {
    font-size: 18px;
    font-weight: 400;
}

@media (max-width: 768px) {
    .products-grid.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .products-grid.products.is-list-view li.product .product-card {
        grid-template-columns: 1fr;
    }

    .products-grid.products.is-list-view li.product .product-info {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .products-grid.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important; /* Force 2 columns even on very small mobile for luxury look */
        gap: 15px;
    }

    .shop-page-header h1 {
        font-size: 32px !important;
    }
}

@media (max-width: 430px) {
    .product-title,
    .products-grid.products.is-list-view li.product .product-title {
        font-size: 16px !important;
        line-height: 1.4;
    }
}

/* Desktop list view cleanup: resolve conflicting legacy rules */
@media (min-width: 1025px) {
    .products-grid.products.is-list-view {
        gap: 16px;
    }

    .products-grid.products.is-list-view li.product {
        height: auto !important;
        min-height: 0 !important;
    }

    .products-grid.products.is-list-view li.product .product-card-link {
        display: block !important;
        height: auto !important;
    }

    .products-grid.products.is-list-view li.product .product-card {
        display: grid !important;
        grid-template-columns: 240px minmax(0, 1fr);
        align-items: center;
        gap: 22px;
        height: auto !important;
        min-height: 0;
        padding: 16px 18px;
        border-radius: 12px;
    }

    .products-grid.products.is-list-view li.product .product-image {
        width: 100%;
        max-width: 240px;
        height: auto;
        aspect-ratio: 1 / 1;
        margin: 0;
        border-radius: 10px;
        overflow: hidden;
        align-self: center;
    }

    .products-grid.products.is-list-view li.product .product-info {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 8px;
        padding: 0;
        text-align: left;
        min-height: 0;
        margin: 0;
    }

    .products-grid.products.is-list-view li.product .product-title {
        font-size: 20px;
        line-height: 1.35;
        margin: 0 0 2px;
    }

    .products-grid.products.is-list-view li.product .product-price {
        margin-top: 0 !important;
        margin-bottom: 0;
        padding-top: 0;
        font-size: 18px;
        align-self: flex-start;
    }

    .products-grid.products.is-list-view li.product .badge-container {
        top: 12px;
        right: 12px;
    }
}
