/* ============================================
   WOOCOMMERCE - SHOP PAGE
   4 columns, compact cards, modern layout
   ============================================ */

/* Shop Layout - no sidebar by default, full width */
.bt-shop-layout {
    display: flex;
    flex-direction: column;
    gap: var(--bt-space-xl);
    padding: var(--bt-space-xl) 0 var(--bt-space-3xl);
    max-width: 100%;
    overflow: visible;
}

.bt-shop-layout.bt-has-sidebar {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--bt-space-xl);
}

/* Sidebar */
.bt-shop-sidebar {
    padding: var(--bt-space-md);
    border-radius: var(--bt-radius-lg);
    height: fit-content;
    position: sticky;
    top: calc(var(--bt-header-height) + 16px);
    font-size: var(--bt-fs-sm);
    min-width: 0;
}

.bt-shop-content {
    min-width: 0;
    max-width: 100%;
    overflow: visible;
}

.bt-shop-sidebar .widget {
    margin-bottom: var(--bt-space-lg);
}

.bt-shop-sidebar .widget-title,
.bt-shop-sidebar .widgettitle {
    font-size: var(--bt-fs-sm);
    font-weight: var(--bt-fw-semibold);
    margin-bottom: var(--bt-space-sm);
    padding-bottom: var(--bt-space-xs);
    border-bottom: 2px solid var(--bt-primary);
    color: var(--bt-text-primary);
}

.bt-shop-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bt-shop-sidebar ul li {
    padding: 4px 0;
}

.bt-shop-sidebar ul li a {
    color: var(--bt-text-secondary);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color var(--bt-transition-fast);
}

.bt-shop-sidebar ul li a:hover {
    color: var(--bt-primary);
}

/* Shop Controls */
.bt-shop-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--bt-space-md);
    margin-bottom: var(--bt-space-lg);
    flex-wrap: wrap;
    padding: var(--bt-space-sm) 0;
}

.bt-shop-quick-info {
    padding: 14px 0 0;
}

.bt-shop-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.bt-shop-quick-item {
    padding: 12px 14px;
    border: 1px solid var(--bt-border-color);
    border-radius: var(--bt-radius-lg);
    background: linear-gradient(135deg, rgba(var(--bt-primary-rgb), 0.08), rgba(var(--bt-accent-rgb), 0.03));
}

.bt-shop-quick-item strong {
    display: block;
    margin-bottom: 3px;
    color: var(--bt-text-primary);
    font-size: 0.82rem;
}

.bt-shop-quick-item span {
    display: block;
    color: var(--bt-text-muted);
    font-size: 0.7rem;
    line-height: 1.5;
}

.bt-shop-controls-left {
    display: flex;
    align-items: center;
    gap: var(--bt-space-md);
}

.bt-shop-controls-right {
    display: flex;
    align-items: center;
    gap: var(--bt-space-sm);
}

.woocommerce-result-count {
    color: var(--bt-text-muted);
    font-size: 0.75rem;
    margin: 0;
}

.woocommerce-ordering select {
    background: var(--bt-input-bg);
    border: 1px solid var(--bt-input-border);
    border-radius: var(--bt-radius-md);
    color: var(--bt-text-primary);
    padding: 6px 10px;
    font-size: 0.8rem;
    cursor: pointer;
}

/* Grid/List View Toggle */
.bt-view-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bt-glass-bg);
    border: 1px solid var(--bt-border-color);
    border-radius: var(--bt-radius-md);
    padding: 3px;
}

.bt-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    border-radius: var(--bt-radius-sm);
    color: var(--bt-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.bt-view-btn:hover {
    color: var(--bt-text-primary);
}

.bt-view-btn.bt-active {
    background: var(--bt-primary);
    color: #fff;
}

.bt-view-btn svg {
    width: 16px;
    height: 16px;
}

/* Products Per Page Selector */
.bt-per-page {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--bt-text-muted);
}

.bt-per-page select {
    background: var(--bt-input-bg);
    border: 1px solid var(--bt-input-border);
    border-radius: var(--bt-radius-sm);
    color: var(--bt-text-primary);
    padding: 4px 8px;
    font-size: 0.75rem;
    cursor: pointer;
}

/* Active Filters Display */
.bt-active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: var(--bt-space-sm) 0;
    margin-bottom: var(--bt-space-md);
}

.bt-active-filters:empty {
    display: none;
}

.bt-filter-label {
    font-size: 0.72rem;
    color: var(--bt-text-muted);
    font-weight: var(--bt-fw-medium);
}

.bt-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(var(--bt-primary-rgb), 0.1);
    border: 1px solid rgba(var(--bt-primary-rgb), 0.2);
    border-radius: var(--bt-radius-full);
    font-size: 0.7rem;
    color: var(--bt-primary);
}

.bt-filter-tag-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    background: var(--bt-primary);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    font-size: 10px;
    line-height: 1;
    transition: all 0.2s ease;
}

.bt-filter-tag-remove:hover {
    background: var(--bt-danger);
    transform: scale(1.1);
}

.bt-clear-filters {
    font-size: 0.7rem;
    color: var(--bt-danger);
    text-decoration: none;
    margin-left: 8px;
    transition: opacity 0.2s;
}

.bt-clear-filters:hover {
    opacity: 0.7;
}

/* ============================================
   PRODUCT GRID - 4 COLUMNS (Shop Page)
   Compact cards for better display
   ============================================ */
.woocommerce ul.products,
.bt-shop-content ul.products,
.bt-shop-section.woocommerce ul.products {
    display: grid;
    /* Default 6-column fallback. Theme inline CSS (bitstech_customizer_css)
       overrides this with the user's selected column count at higher
       specificity (html body.bt-theme + !important). */
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
}

/* Kill ALL WooCommerce float/width/clear overrides */
.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
    content: none !important;
}

.woocommerce ul.products li.product {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    float: none !important;
    clear: none !important;
}

/* Override WooCommerce .first/.last classes */
.woocommerce ul.products li.product.first,
.woocommerce ul.products li.product.last {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    clear: none !important;
}

/* Remove WooCommerce default onsale badge (we use our own) */
.woocommerce ul.products li.product .onsale,
.woocommerce span.onsale {
    display: none !important;
}

/* ============================================
   PRODUCT CARD (Shop Page - Compact)
   ============================================ */
.bt-product-card {
    list-style: none;
    height: 100%;
}

.bt-product-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    border-radius: var(--bt-radius-md);
    transition: all var(--bt-transition-base);
    background: var(--bt-bg-card);
}

.bt-product-card-inner:hover {
    transform: translateY(-3px);
    box-shadow: var(--bt-shadow-glow);
    border-color: rgba(var(--bt-primary-rgb), 0.3);
}

/* Product Image - Compact & Balanced */
.bt-product-image {
    position: relative;
    overflow: hidden;
    background: var(--bt-bg-elevated);
    aspect-ratio: 1 / 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bt-product-image a {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.bt-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
    display: block;
}

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

.bt-product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Badges - Compact */
.bt-product-badges {
    position: absolute;
    top: 5px;
    left: 5px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 2;
}

.bt-product-badges .bt-badge {
    font-size: 0.5rem;
    padding: 2px 6px;
}

/* Quick Actions - Compact */
.bt-product-actions {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.25s ease;
    z-index: 2;
}

.bt-product-card:hover .bt-product-actions {
    opacity: 1;
    transform: translateY(0);
}

/* Wishlisted buttons always visible */
.bt-product-actions:has(.bt-wishlisted),
.bt-product-actions.bt-has-wishlisted {
    opacity: 1;
    transform: translateY(0);
}

.bt-product-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    background: rgba(0,0,0, 0.5) !important;
    border: none !important;
    outline: none !important;
    border-radius: 5px !important;
    color: rgba(255,255,255,0.85) !important;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-sizing: border-box !important;
    font-size: 0 !important;
}

a.bt-product-action,
button.bt-product-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    padding: 0 !important;
    margin: 0 !important;
}

.bt-product-action svg {
    display: block !important;
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    min-height: 12px !important;
    pointer-events: none;
    flex-shrink: 0 !important;
    margin: auto !important;
}

.bt-product-action:hover {
    background: var(--bt-primary);
    color: #fff;
}

/* Wishlisted state */
.bt-wishlist-btn.bt-wishlisted {
    background: var(--bt-danger) !important;
    color: #fff !important;
    border-color: var(--bt-danger) !important;
}

.bt-wishlist-btn.bt-wishlisted svg {
    fill: #fff !important;
    stroke: #fff !important;
}

/* Wishlist button on single product */
.bt-product-single-actions .bt-wishlist-btn.bt-wishlisted {
    background: rgba(255, 23, 68, 0.1) !important;
    border-color: var(--bt-danger) !important;
    color: var(--bt-danger) !important;
}

.bt-product-single-actions .bt-wishlist-btn.bt-wishlisted svg {
    fill: var(--bt-danger) !important;
    stroke: var(--bt-danger) !important;
}

/* Front-page pcard wishlisted */
.bt-pcard-act.bt-wishlisted {
    background: var(--bt-danger) !important;
    color: #fff !important;
    border-color: var(--bt-danger) !important;
}

.bt-pcard-act.bt-wishlisted svg {
    fill: #fff !important;
    stroke: #fff !important;
}

/* Toast notification */
.bt-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    padding: 14px 24px;
    border-radius: var(--bt-radius-md);
    font-size: var(--bt-fs-sm);
    font-weight: var(--bt-fw-medium);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    transform: translateY(20px);
    opacity: 0;
    animation: bt-toast-in 0.3s ease forwards;
    pointer-events: none;
}

.bt-toast--success { background: var(--bt-success); color: var(--bt-dark); }
.bt-toast--info { background: var(--bt-primary); }
.bt-toast--remove { background: var(--bt-text-muted); }

.bt-toast.bt-toast--out {
    animation: bt-toast-out 0.3s ease forwards;
}

@keyframes bt-toast-in {
    to { transform: translateY(0); opacity: 1; }
}

@keyframes bt-toast-out {
    to { transform: translateY(20px); opacity: 0; }
}

html[data-theme="light"] .bt-product-action {
    background: rgba(255,255,255, 0.9);
    color: #666;
}

html[data-theme="light"] .bt-product-action:hover {
    background: var(--bt-primary);
    color: #fff;
}

/* Product Info - Compact & Modern */
.bt-product-info {
    padding: 12px 14px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bt-product-cat {
    font-size: 0.62rem;
    color: var(--bt-text-muted);
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bt-product-cat a { color: var(--bt-text-muted); text-decoration: none; }

.bt-product-title {
    font-size: 0.82rem;
    font-weight: var(--bt-fw-semibold);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.4em * 2);
}

.bt-product-title a { color: var(--bt-text-primary); text-decoration: none; }
.bt-product-title a:hover { color: var(--bt-accent); }

/* Rating - Compact */
.bt-product-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 3px;
}

.bt-product-rating .star-rating { font-size: 0.6rem; color: #ffab00; }
.bt-rating-count { font-size: 0.55rem; color: var(--bt-text-muted); }

/* Price - Compact layout */
.bt-product-price {
    margin: 0;
    line-height: 1.2;
    min-height: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bt-product-price del {
    display: block;
    margin-bottom: 1px;
    text-decoration: none;
}

.bt-product-price del .woocommerce-Price-amount {
    font-size: 0.6rem;
    color: var(--bt-text-muted);
    font-weight: var(--bt-fw-normal);
    text-decoration: line-through;
    text-decoration-color: var(--bt-text-muted);
}

.bt-product-price ins {
    text-decoration: none;
    display: block;
}

.bt-product-price > .woocommerce-Price-amount,
.bt-product-price ins .woocommerce-Price-amount {
    font-family: var(--bt-font-heading);
    font-size: 0.78rem;
    font-weight: var(--bt-fw-bold);
    color: var(--bt-text-primary);
}

/* Only color the sale price with accent */
.bt-product-price del + ins .woocommerce-Price-amount {
    color: var(--bt-accent);
}

html[data-theme="light"] .bt-product-price > .woocommerce-Price-amount,
html[data-theme="light"] .bt-product-price ins .woocommerce-Price-amount {
    color: #1a1d2e;
}

html[data-theme="light"] .bt-product-price del + ins .woocommerce-Price-amount {
    color: #753beb;
}

/* Add to Cart - Compact */
.bt-product-cart { margin-top: auto; }

.bt-product-cart .bt-add-to-cart {
    width: 100%;
    justify-content: center;
    font-size: 0.62rem !important;
    padding: 6px 8px !important;
    min-height: 32px;
}

.bt-product-cart .added_to_cart {
    display: block;
    text-align: center;
    margin-top: 2px;
    font-size: 0.55rem;
    color: var(--bt-success);
}

/* ============================================
   WOOCOMMERCE NOTICES
   ============================================ */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
    background: var(--bt-glass-bg);
    border: 1px solid var(--bt-border-color);
    border-radius: var(--bt-radius-md);
    padding: var(--bt-space-sm) var(--bt-space-md);
    color: var(--bt-text-primary);
    margin-bottom: var(--bt-space-md);
    font-size: var(--bt-fs-sm);
}
.woocommerce-message { border-left: 3px solid var(--bt-success); }
.woocommerce-info { border-left: 3px solid var(--bt-info); }
.woocommerce-error { border-left: 3px solid var(--bt-danger); }

/* ============================================
   WOOCOMMERCE BUTTONS
   ============================================ */
.woocommerce a.button, .woocommerce button.button,
.woocommerce input.button, .woocommerce #respond input#submit {
    background: linear-gradient(135deg, var(--bt-primary), var(--bt-primary-dark));
    color: #fff;
    border: none;
    border-radius: var(--bt-radius-full);
    padding: 8px 18px;
    font-family: var(--bt-font-primary);
    font-size: 0.75rem;
    font-weight: var(--bt-fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all var(--bt-transition-base);
}

.woocommerce a.button:hover, .woocommerce button.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--bt-primary-rgb), 0.3);
}

/* ============================================
   WOOCOMMERCE FORMS
   ============================================ */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    background: var(--bt-input-bg);
    border: 1px solid var(--bt-input-border);
    border-radius: var(--bt-radius-md);
    color: var(--bt-text-primary);
    padding: 10px 14px;
    font-size: var(--bt-fs-sm);
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    border-color: var(--bt-primary);
    box-shadow: 0 0 0 3px rgba(var(--bt-primary-rgb), 0.12);
    outline: none;
}

/* ============================================
   WOOCOMMERCE TABLES
   ============================================ */
.woocommerce table.shop_table {
    border: 1px solid var(--bt-border-color);
    border-radius: var(--bt-radius-md);
    overflow: hidden;
    border-collapse: separate;
    font-size: var(--bt-fs-sm);
}

.woocommerce table.shop_table th {
    background: var(--bt-glass-bg);
    color: var(--bt-text-primary);
    font-weight: var(--bt-fw-semibold);
    padding: var(--bt-space-sm) var(--bt-space-md);
    border-bottom: 1px solid var(--bt-border-color);
}

.woocommerce table.shop_table td {
    padding: var(--bt-space-sm) var(--bt-space-md);
    border-bottom: 1px solid var(--bt-border-color);
    color: var(--bt-text-secondary);
}

/* ============================================
   WOOCOMMERCE PAGINATION
   ============================================ */
.woocommerce nav.woocommerce-pagination ul {
    display: flex;
    gap: 4px;
    justify-content: center;
    border: none;
    margin-top: var(--bt-space-xl);
}

.woocommerce nav.woocommerce-pagination ul li { border: none; }

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    background: var(--bt-glass-bg);
    border: 1px solid var(--bt-border-color);
    border-radius: var(--bt-radius-sm);
    color: var(--bt-text-secondary);
    font-size: 0.8rem;
    font-weight: var(--bt-fw-medium);
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--bt-primary);
    border-color: var(--bt-primary);
    color: #fff;
}

/* ============================================
   LIGHT MODE - Shop
   ============================================ */
html[data-theme="light"] .bt-product-card-inner {
    background: #ffffff;
    border-color: rgba(0,0,0,0.06);
}

html[data-theme="light"] .bt-product-image {
    background: #f1f3f9;
}

html[data-theme="light"] .bt-product-price .woocommerce-Price-amount {
    color: #753beb;
}

html[data-theme="light"] .bt-shop-sidebar {
    background: rgba(255,255,255,0.85);
    border-color: rgba(0,0,0,0.06);
}

/* ============================================
   RESPONSIVE - Shop Grid (Compact)
   ============================================ */
/* NOTE: Desktop/tablet/mobile column counts are now controlled by
   bitstech_customizer_css() inline <style> which outputs responsive
   @media rules with body.bt-theme specificity. The rules below are
   kept ONLY as fallbacks for edge cases where the inline style hasn't loaded. */
@media (max-width: 992px) {
    .bt-shop-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .woocommerce ul.products,
    .bt-shop-content ul.products,
    .bt-shop-section.woocommerce ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .bt-shop-layout.bt-has-sidebar {
        grid-template-columns: 1fr;
    }
    .bt-shop-sidebar { position: static; }
    
    .bt-product-image {
        height: 190px;
    }
}

@media (max-width: 768px) {
    .bt-shop-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .bt-shop-quick-item {
        padding: 10px 12px;
    }
    .bt-shop-quick-item strong { font-size: 0.75rem; }
    .bt-shop-quick-item span { font-size: 0.65rem; line-height: 1.4; }

    .woocommerce ul.products,
    .bt-shop-content ul.products,
    .bt-shop-section.woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px !important;
    }
    .bt-product-info { padding: 8px 10px; }
    .bt-product-title { font-size: 0.72rem; }
    .bt-product-cat { font-size: 0.5rem; }
    
    .bt-product-image {
        height: 172px;
    }
    
    .bt-product-card-inner {
        min-height: 330px;
    }
    
    .bt-product-price .woocommerce-Price-amount { font-size: 0.7rem; }
    .bt-product-price del .woocommerce-Price-amount { font-size: 0.55rem; }
    
    .bt-product-cart .bt-add-to-cart {
        font-size: 0.55rem !important;
        padding: 4px 6px !important;
    }
}

@media (max-width: 480px) {
    .bt-product-image {
        height: 150px;
    }
    
    .bt-product-card-inner {
        min-height: 305px;
    }
    .bt-product-image img { }
    .bt-product-price .woocommerce-Price-amount { font-size: 0.65rem; }
    .bt-product-info { padding: 8px 10px; }
    .bt-product-title { font-size: 0.7rem; }
    
    .bt-product-badges .bt-badge {
        font-size: 0.45rem;
        padding: 1px 4px;
    }
    
    .bt-product-action {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        min-height: 20px !important;
        max-width: 20px !important;
        max-height: 20px !important;
    }
    
    .bt-product-action svg {
        width: 10px !important;
        height: 10px !important;
    }
}


/* ============================================
   SHOP LAYOUT OPTIONS
   ============================================ */
.bt-layout-left-sidebar {
    display: grid !important;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 18px;
    max-width: 100%;
    overflow: visible;
}

.bt-layout-right-sidebar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 18px;
    max-width: 100%;
    overflow: visible;
}

.bt-layout-no-sidebar {
    display: block;
}

.bt-layout-left-sidebar .bt-shop-content ul.products,
.bt-layout-right-sidebar .bt-shop-content ul.products {
    /* Columns controlled by bitstech_customizer_css() inline style.
       Do NOT hardcode repeat(N) here — it overrides the Customizer setting. */
}

@media (max-width: 1200px) {
    .bt-layout-left-sidebar .bt-shop-content ul.products,
    .bt-layout-right-sidebar .bt-shop-content ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* ============================================
   SHOP SIDEBAR WIDGETS - Professional Design
   ============================================ */
.bt-shop-sidebar {
    padding: var(--bt-space-md) !important;
    border-radius: var(--bt-radius-lg) !important;
    height: fit-content;
    position: sticky;
    top: calc(var(--bt-header-height) + 16px);
    background: var(--bt-glass-bg);
    border: 1px solid var(--bt-border-color);
}

.bt-sidebar-widget {
    margin-bottom: var(--bt-space-lg);
}

.bt-sidebar-widget:last-child {
    margin-bottom: 0;
}

.bt-sidebar-promo-widget {
    margin-top: var(--bt-space-xs);
}

.bt-sidebar-promo-link {
    position: relative;
    display: block;
    min-height: 320px;
    border-radius: var(--bt-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(var(--bt-primary-rgb), 0.25);
    background: linear-gradient(165deg, rgba(var(--bt-primary-rgb), 0.2), rgba(var(--bt-accent-rgb), 0.08));
    text-decoration: none;
}

.bt-sidebar-promo-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bt-sidebar-promo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 16, 40, 0.18) 0%, rgba(10, 16, 40, 0.88) 100%);
}

.bt-sidebar-promo-content {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #fff;
}

.bt-sidebar-promo-tag {
    align-self: flex-start;
    padding: 3px 10px;
    border-radius: var(--bt-radius-full);
    font-size: 0.62rem;
    font-weight: var(--bt-fw-semibold);
    letter-spacing: 0.4px;
    text-transform: uppercase;
    background: rgba(var(--bt-accent-rgb), 0.88);
    color: #091326;
}

.bt-sidebar-promo-content strong {
    font-size: 1rem;
    line-height: 1.2;
}

.bt-sidebar-promo-content small {
    font-size: 0.7rem;
    line-height: 1.5;
    opacity: 0.92;
}

.bt-flashdeal-card {
    position: relative;
    border-radius: var(--bt-radius-lg);
    border: 1px solid rgba(var(--bt-accent-rgb), 0.35);
    background: radial-gradient(circle at 10% 0%, rgba(var(--bt-accent-rgb), 0.16), rgba(var(--bt-primary-rgb), 0.06) 55%, rgba(8, 14, 34, 0.92) 100%);
    padding: 14px;
    overflow: hidden;
}

.bt-flashdeal-card::after {
    content: "";
    position: absolute;
    inset: -50% auto auto -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(var(--bt-primary-rgb), 0.22), transparent 65%);
    pointer-events: none;
}

.bt-flashdeal-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--bt-radius-full);
    font-size: 0.58rem;
    letter-spacing: 0.5px;
    font-weight: var(--bt-fw-semibold);
    background: rgba(var(--bt-accent-rgb), 0.9);
    color: #0b1a30;
    margin-bottom: 8px;
}

.bt-flashdeal-title {
    display: block;
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 4px;
    line-height: 1.35;
}

.bt-flashdeal-sub {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.86);
    line-height: 1.5;
    margin: 0 0 12px;
}

.bt-flashdeal-timer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.bt-flashdeal-unit {
    text-align: center;
    border-radius: var(--bt-radius-md);
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(8, 14, 34, 0.55);
    padding: 8px 6px;
}

.bt-flashdeal-value {
    display: block;
    font-size: 1rem;
    font-weight: var(--bt-fw-bold);
    color: var(--bt-accent);
    line-height: 1.1;
}

.bt-flashdeal-unit small {
    font-size: 0.58rem;
    color: rgba(255,255,255,0.74);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.bt-flashdeal-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.72rem !important;
}

.bt-sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: var(--bt-fw-semibold);
    margin-bottom: var(--bt-space-sm);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--bt-primary);
    color: var(--bt-text-primary);
}

.bt-sidebar-title svg {
    color: var(--bt-primary);
    flex-shrink: 0;
}

/* Search Form */
.bt-sidebar-search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.bt-sidebar-search {
    width: 100%;
    font-size: 0.78rem !important;
    padding: 10px 40px 10px 12px !important;
    border-radius: var(--bt-radius-md) !important;
    background: var(--bt-bg-elevated) !important;
    border: 1px solid var(--bt-border-color) !important;
    color: var(--bt-text-primary);
    transition: all var(--bt-transition-fast);
}

.bt-sidebar-search:focus {
    border-color: var(--bt-primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--bt-primary-rgb), 0.1);
    outline: none;
}

.bt-sidebar-search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bt-primary);
    border: none;
    border-radius: var(--bt-radius-sm);
    color: #fff;
    cursor: pointer;
    transition: all var(--bt-transition-fast);
}

.bt-sidebar-search-btn:hover {
    background: var(--bt-primary-dark);
    transform: translateY(-50%) scale(1.05);
}

/* Categories */
.bt-sidebar-cats {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 280px;
    overflow-y: auto;
}

.bt-sidebar-cats::-webkit-scrollbar {
    width: 4px;
}

.bt-sidebar-cats::-webkit-scrollbar-track {
    background: var(--bt-bg-elevated);
    border-radius: 2px;
}

.bt-sidebar-cats::-webkit-scrollbar-thumb {
    background: var(--bt-primary);
    border-radius: 2px;
}

.bt-sidebar-cats > li {
    margin-bottom: 2px;
}

.bt-sidebar-cats > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: var(--bt-text-secondary);
    font-size: 0.78rem;
    text-decoration: none;
    border-radius: var(--bt-radius-sm);
    transition: all var(--bt-transition-fast);
    background: transparent;
}

.bt-sidebar-cats > li > a:hover,
.bt-sidebar-cats > li.bt-active > a {
    background: rgba(var(--bt-primary-rgb), 0.1);
    color: var(--bt-primary);
    padding-left: 16px;
}

.bt-cat-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bt-cat-count {
    font-size: 0.6rem;
    color: var(--bt-text-muted);
    background: var(--bt-bg-elevated);
    padding: 2px 8px;
    border-radius: var(--bt-radius-full);
    font-weight: var(--bt-fw-medium);
    min-width: 24px;
    flex-shrink: 0;
    line-height: 1;
    text-align: center;
}

.bt-sidebar-subcats {
    list-style: none;
    padding: 4px 0 4px 20px;
    margin: 0;
    border-left: 2px solid rgba(var(--bt-primary-rgb), 0.2);
    margin-left: 12px;
}

.bt-sidebar-subcats li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    color: var(--bt-text-muted);
    font-size: 0.72rem;
    text-decoration: none;
    transition: all var(--bt-transition-fast);
    border-radius: var(--bt-radius-sm);
}

.bt-sidebar-subcats li a:hover { 
    color: var(--bt-primary);
    background: rgba(var(--bt-primary-rgb), 0.05);
}

/* Price Slider */
.bt-price-slider-wrap {
    padding: 8px 0;
}

.bt-price-range-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: var(--bt-bg-elevated);
    border-radius: var(--bt-radius-md);
    font-size: 0.75rem;
    font-weight: var(--bt-fw-semibold);
}

.bt-price-min-val,
.bt-price-max-val {
    color: var(--bt-primary);
}

.bt-price-separator {
    color: var(--bt-text-muted);
}

.bt-price-slider {
    position: relative;
    height: 6px;
    margin: 20px 8px;
}

.bt-price-track {
    position: absolute;
    width: 100%;
    height: 6px;
    background: var(--bt-bg-elevated);
    border-radius: 3px;
}

.bt-price-range {
    position: absolute;
    height: 6px;
    background: linear-gradient(90deg, var(--bt-primary), var(--bt-accent));
    border-radius: 3px;
    left: 0;
    right: 0;
}

.bt-price-input {
    position: absolute;
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    top: 0;
}

.bt-price-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--bt-primary);
    border: 3px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: transform 0.15s ease;
}

.bt-price-input::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.bt-price-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--bt-primary);
    border: 3px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.bt-price-filter-btn {
    width: 100%;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px !important;
    font-size: 0.72rem !important;
}

.bt-price-quick-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--bt-border-color);
}

.bt-price-quick {
    display: block;
    padding: 6px 8px;
    font-size: 0.68rem;
    color: var(--bt-text-muted);
    text-decoration: none;
    text-align: center;
    border-radius: var(--bt-radius-sm);
    background: var(--bt-bg-elevated);
    transition: all var(--bt-transition-fast);
}

.bt-price-quick:hover {
    background: rgba(var(--bt-primary-rgb), 0.1);
    color: var(--bt-primary);
}

/* Best Sellers Slider - Card Style */
.bt-bestseller-widget {
    background: linear-gradient(135deg, rgba(var(--bt-primary-rgb), 0.05) 0%, rgba(var(--bt-accent-rgb), 0.03) 100%);
    border-radius: var(--bt-radius-lg);
    padding: var(--bt-space-md) !important;
    border: 1px solid rgba(var(--bt-primary-rgb), 0.1);
}

.bt-bestseller-slider {
    position: relative;
    overflow: hidden;
}

.bt-bestseller-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bt-bestseller-slide {
    flex: 0 0 100%;
    padding: 4px;
}

.bt-bestseller-card {
    display: block;
    text-decoration: none;
    background: var(--bt-bg-card);
    border-radius: var(--bt-radius-md);
    overflow: hidden;
    border: 1px solid var(--bt-border-color);
    transition: all 0.3s ease;
}

.bt-bestseller-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-color: var(--bt-primary);
}

.bt-bestseller-img {
    position: relative;
    aspect-ratio: 1;
    background: var(--bt-bg-elevated);
    overflow: hidden;
}

.bt-bestseller-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 0.4s ease;
}

.bt-bestseller-card:hover .bt-bestseller-img img {
    transform: scale(1.08);
}

.bt-sale-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--bt-radius-full);
    text-transform: uppercase;
}

.bt-bestseller-info {
    padding: 12px;
    text-align: center;
}

.bt-bestseller-title {
    display: block;
    font-size: 0.82rem;
    font-weight: var(--bt-fw-semibold);
    color: var(--bt-text-primary);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}

.bt-bestseller-price {
    display: block;
    margin-bottom: 10px;
}

.bt-bestseller-price .woocommerce-Price-amount {
    font-size: 0.95rem;
    font-weight: var(--bt-fw-bold);
    color: var(--bt-accent);
}

.bt-bestseller-price del {
    display: block;
    margin-bottom: 2px;
}

.bt-bestseller-price del .woocommerce-Price-amount {
    font-size: 0.72rem;
    color: var(--bt-text-muted);
    font-weight: normal;
}

.bt-bestseller-price ins {
    text-decoration: none;
}

.bt-bestseller-btn {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--bt-primary), var(--bt-primary-dark));
    color: #fff;
    font-size: 0.72rem;
    font-weight: var(--bt-fw-semibold);
    border-radius: var(--bt-radius-full);
    transition: all 0.3s ease;
}

.bt-bestseller-card:hover .bt-bestseller-btn {
    background: linear-gradient(135deg, var(--bt-accent), var(--bt-primary));
    transform: scale(1.05);
}

.bt-bestseller-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--bt-border-color);
}

.bt-bestseller-prev,
.bt-bestseller-next {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bt-bg-elevated);
    border: 1px solid var(--bt-border-color);
    border-radius: 50%;
    color: var(--bt-text-secondary);
    cursor: pointer;
    transition: all 0.25s ease;
}

.bt-bestseller-prev:hover,
.bt-bestseller-next:hover {
    background: var(--bt-primary);
    border-color: var(--bt-primary);
    color: #fff;
    transform: scale(1.1);
}

.bt-bestseller-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bt-bestseller-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bt-text-muted);
    opacity: 0.3;
    cursor: pointer;
    transition: all 0.25s ease;
}

.bt-bestseller-dot:hover {
    opacity: 0.6;
}

.bt-bestseller-dot.bt-active {
    width: 24px;
    border-radius: 4px;
    background: var(--bt-primary);
    opacity: 1;
}

/* Light mode */
html[data-theme="light"] .bt-bestseller-widget {
    background: linear-gradient(135deg, rgba(117,59,235,0.04) 0%, rgba(0,224,240,0.02) 100%);
}

html[data-theme="light"] .bt-bestseller-card {
    background: #fff;
}

html[data-theme="light"] .bt-bestseller-img {
    background: #f5f7fa;
}

html[data-theme="light"] .bt-bestseller-price .woocommerce-Price-amount {
    color: #753beb;
}

/* Tags */
.bt-sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bt-sidebar-tag {
    padding: 3px 10px;
    font-size: 0.65rem;
    color: var(--bt-text-muted);
    background: var(--bt-glass-bg);
    border: 1px solid var(--bt-border-color);
    border-radius: var(--bt-radius-full);
    text-decoration: none;
    transition: all var(--bt-transition-fast);
}

.bt-sidebar-tag:hover {
    border-color: var(--bt-primary);
    color: var(--bt-primary);
    background: rgba(var(--bt-primary-rgb), 0.08);
}

/* ============================================
   SHOP HERO WRAP — covers BOTH page header + banner
   so background image overlay extends through full hero area
   ============================================ */
.bt-shop-hero-wrap {
    position: relative;
    overflow: hidden;
}
.bt-shop-hero-wrap-has-bg {
    /* Reserve stacking + ensure children sit above bg image */
    isolation: isolate;
}
.bt-shop-hero-wrap .bt-shop-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.bt-shop-hero-wrap .bt-shop-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.30;
    filter: blur(0.5px);
}
.bt-shop-hero-wrap .bt-shop-hero-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 80% at 0% 50%, rgba(var(--bt-primary-rgb), 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 50% 80% at 100% 50%, rgba(var(--bt-accent-rgb), 0.15) 0%, transparent 55%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.30) 0%, rgba(0, 0, 0, 0.55) 100%);
}

/* Page header + banner sit above bg image inside wrap */
.bt-shop-hero-wrap .bt-page-header,
.bt-shop-hero-wrap .bt-shop-banner {
    position: relative;
    z-index: 1;
}

/* When wrap has bg image: page header becomes transparent so the bg shows through */
.bt-shop-hero-wrap-has-bg .bt-page-header,
.bt-shop-hero-wrap-has-bg .bt-page-header.bt-page-header-shop {
    background: transparent !important;
    border-bottom-color: transparent !important;
}
/* Make page header text legible on dark overlay */
.bt-shop-hero-wrap-has-bg .bt-page-header .bt-page-title,
.bt-shop-hero-wrap-has-bg .bt-page-header h1 {
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
.bt-shop-hero-wrap-has-bg .bt-page-header .bt-shop-meta-item,
.bt-shop-hero-wrap-has-bg .bt-page-header .bt-shop-meta-sep,
.bt-shop-hero-wrap-has-bg .bt-page-header .bt-breadcrumb,
.bt-shop-hero-wrap-has-bg .bt-page-header .bt-breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}
.bt-shop-hero-wrap-has-bg .bt-page-header .bt-breadcrumb a:hover {
    color: #fff;
}
.bt-shop-hero-wrap-has-bg .bt-page-header .bt-shop-search-input {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.bt-shop-hero-wrap-has-bg .bt-page-header .bt-shop-search-input::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

/* Banner inside wrap with bg: drop its own gradient bg (use wrap's bg) */
.bt-shop-hero-wrap-has-bg .bt-shop-banner {
    background: transparent;
}
.bt-shop-hero-wrap-has-bg .bt-shop-banner .bt-shop-slide {
    background: transparent !important;
}

/* ============================================
   SHOP PROMO BANNER SLIDER
   ============================================ */
.bt-shop-banner {
    /* CSS variables driven by Customizer (via inline style) */
    --bt-shop-banner-h: 100vh;            /* default = full viewport (matches homepage hero) */
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    background: linear-gradient(180deg, rgba(var(--bt-primary-rgb), 0.08) 0%, var(--bt-bg-primary) 100%);
}

/* When Customizer height is set (e.g. 100vh, 90vh, 600px) */
.bt-shop-banner.bt-shop-banner-has-height {
    min-height: var(--bt-shop-banner-h);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Background overlay image (legacy in-banner — kept for back-compat if used directly) */
.bt-shop-banner .bt-shop-banner-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.bt-shop-banner .bt-shop-banner-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.30;
    filter: blur(0.5px);
}
.bt-shop-banner .bt-shop-banner-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 80% at 0% 50%, rgba(var(--bt-primary-rgb), 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 50% 80% at 100% 50%, rgba(var(--bt-accent-rgb), 0.15) 0%, transparent 55%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.55) 100%);
}

/* When background image enabled, make slide background transparent so overlay shows */
.bt-shop-banner.bt-shop-banner-has-bg .bt-shop-slide {
    background: transparent !important;
}

.bt-shop-banner-slider {
    position: relative;
    z-index: 1;                          /* above background overlay */
    height: 360px;
}

/* When custom banner height set, slider grows to fill */
.bt-shop-banner.bt-shop-banner-has-height .bt-shop-banner-slider {
    height: auto;
    flex: 1;
    min-height: var(--bt-shop-banner-h);
}

.bt-shop-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.bt-shop-slide.bt-active { opacity: 1; }

.bt-shop-slide-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    height: 100%;
    gap: var(--bt-space-2xl);
    padding: var(--bt-space-2xl) 0;
}

.bt-shop-slide-text {
    max-width: 520px;
}

.bt-shop-slide-text .bt-badge {
    margin-bottom: var(--bt-space-md);
    font-size: 0.75rem;
    padding: 5px 14px;
}

.bt-shop-slide-text h2 {
    font-size: var(--bt-fs-2xl);
    margin-bottom: var(--bt-space-sm);
    line-height: 1.25;
}

.bt-shop-slide-text p {
    font-size: var(--bt-fs-sm);
    color: var(--bt-text-secondary);
    margin-bottom: var(--bt-space-md);
    line-height: 1.7;
}

.bt-shop-slide-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: var(--bt-space-lg);
}

.bt-shop-slide-price .bt-old {
    font-size: var(--bt-fs-base);
    color: var(--bt-text-muted);
    text-decoration: line-through;
}
.bt-shop-slide-price .bt-old .woocommerce-Price-amount { color: var(--bt-text-muted); }

.bt-shop-slide-price .bt-now {
    font-family: var(--bt-font-heading);
    font-size: var(--bt-fs-2xl);
    font-weight: var(--bt-fw-extrabold);
    color: var(--bt-accent);
}
.bt-shop-slide-price .bt-now .woocommerce-Price-amount {
    color: var(--bt-accent);
    font-size: var(--bt-fs-2xl);
    font-weight: var(--bt-fw-extrabold);
}

/* Banner product image - modern card with glow */
.bt-shop-slide-img {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100%;
}

.bt-shop-slide-img img {
    position: relative;
    z-index: 1;
    max-height: 280px;
    width: auto;
    max-width: 90%;
    object-fit: contain;
    border-radius: var(--bt-radius-lg);
    background: var(--bt-bg-elevated);
    padding: 16px;
    border: 1px solid var(--bt-border-color);
    box-shadow:
        0 20px 50px rgba(0,0,0,0.3),
        0 0 30px rgba(var(--bt-primary-rgb), 0.15);
    animation: bt-banner-float 5s ease-in-out infinite;
}

@keyframes bt-banner-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

/* Glow behind image */
.bt-shop-slide-img::before {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--bt-primary-rgb), 0.25) 0%, rgba(var(--bt-accent-rgb), 0.08) 50%, transparent 70%);
    filter: blur(40px);
    z-index: 0;
}

/* Decorative ring */
.bt-shop-slide-img::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px solid rgba(var(--bt-primary-rgb), 0.1);
    z-index: 0;
    animation: bt-ring-pulse 4s ease-in-out infinite;
}

@keyframes bt-ring-pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.08); opacity: 0.1; }
}

.bt-shop-banner-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 0 var(--bt-space-lg);
}

.bt-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--bt-text-muted);
    opacity: 0.3;
    cursor: pointer;
    transition: all var(--bt-transition-base);
    padding: 0;
}

.bt-dot.bt-active {
    opacity: 1;
    background: var(--bt-primary);
    width: 28px;
    border-radius: 5px;
}

/* ============================================
   DROPDOWN FIX (dark mode)
   ============================================ */
.woocommerce-ordering select,
select {
    background-color: var(--bt-input-bg) !important;
    color: var(--bt-text-primary) !important;
    border-color: var(--bt-input-border) !important;
}

.woocommerce-ordering select option {
    background: var(--bt-bg-card);
    color: var(--bt-text-primary);
}

/* ============================================
   LIGHT MODE - Shop extras
   ============================================ */
html[data-theme="light"] .bt-shop-sidebar {
    background: rgba(255,255,255,0.9) !important;
    border-color: rgba(0,0,0,0.06) !important;
}

html[data-theme="light"] .bt-sidebar-product img {
    background: #f1f3f9;
}

html[data-theme="light"] .bt-sp-price .woocommerce-Price-amount { color: #753beb; }

html[data-theme="light"] .bt-shop-slide-price .bt-now .woocommerce-Price-amount { color: #753beb; }

/* ============================================
   RESPONSIVE - Shop sidebar + banner
   ============================================ */
@media (max-width: 992px) {
    .bt-layout-left-sidebar,
    .bt-layout-right-sidebar {
        grid-template-columns: 1fr !important;
    }
    .bt-shop-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 12px !important;
    }
    .bt-sidebar-widget {
        margin-bottom: 0;
    }
    .bt-bestseller-widget {
        grid-column: 1 / -1;
    }
    .bt-sidebar-promo-widget {
        grid-column: 1 / -1;
    }
    .bt-sidebar-promo-link {
        min-height: 220px;
    }

    /* Banner: let height flow with content, keep image visible but compact */
    .bt-shop-banner-slider {
        height: auto;
        min-height: 220px;
    }
    /* When custom height set: cap mobile height to avoid huge gaps */
    .bt-shop-banner.bt-shop-banner-has-height .bt-shop-banner-slider {
        min-height: min(var(--bt-shop-banner-h), 480px);
    }
    .bt-shop-banner.bt-shop-banner-has-height {
        min-height: min(var(--bt-shop-banner-h), 520px);
    }
    .bt-shop-slide {
        position: relative;
        inset: auto;
    }
    .bt-shop-slide:not(.bt-active) { display: none; }
    .bt-shop-slide-inner {
        grid-template-columns: 1.2fr 1fr;
        text-align: left;
        gap: var(--bt-space-md);
        padding: var(--bt-space-lg) 0;
    }
    .bt-shop-slide-text { max-width: 100%; }
    .bt-shop-slide-img { height: auto; }
    .bt-shop-slide-img img {
        max-height: 160px;
        padding: 10px;
    }
    .bt-shop-slide-img::before {
        width: 160px;
        height: 160px;
        filter: blur(28px);
    }
    .bt-shop-slide-img::after {
        width: 190px;
        height: 190px;
    }
}

@media (max-width: 768px) {
    .bt-shop-sidebar {
        grid-template-columns: 1fr;
    }
    .bt-sidebar-cats {
        max-height: 220px;
    }
    .bt-bestseller-widget {
        display: none;
    }

    .bt-shop-banner-slider { min-height: 180px; }
    .bt-shop-banner.bt-shop-banner-has-height,
    .bt-shop-banner.bt-shop-banner-has-height .bt-shop-banner-slider {
        min-height: min(var(--bt-shop-banner-h), 420px);
    }
    .bt-shop-slide-inner {
        grid-template-columns: 1.4fr 1fr;
        padding: var(--bt-space-md) 0;
    }
    .bt-shop-slide-img img { max-height: 130px; }
    .bt-shop-slide-text h2 {
        font-size: var(--bt-fs-base);
        margin-bottom: 4px;
    }
    .bt-shop-slide-text p {
        display: none;
    }
    .bt-shop-slide-text .bt-badge {
        margin-bottom: 8px;
    }
    .bt-shop-slide-price {
        margin-bottom: var(--bt-space-sm);
        flex-wrap: wrap;
    }
    .bt-shop-slide-price .bt-now,
    .bt-shop-slide-price .bt-now .woocommerce-Price-amount { font-size: var(--bt-fs-base); }
    .bt-shop-slide-price .bt-old,
    .bt-shop-slide-price .bt-old .woocommerce-Price-amount { font-size: 0.75rem; }
}

@media (max-width: 480px) {
    /* On very small phones: stack image above text, keep compact */
    .bt-shop-banner-slider { min-height: 0; }
    .bt-shop-banner.bt-shop-banner-has-height,
    .bt-shop-banner.bt-shop-banner-has-height .bt-shop-banner-slider {
        min-height: min(var(--bt-shop-banner-h), 380px);
    }
    .bt-shop-slide-inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: var(--bt-space-md) 0;
    }
    .bt-shop-slide-img {
        order: -1;
        margin-bottom: 8px;
    }
    .bt-shop-slide-img img { max-height: 110px; }
    .bt-shop-slide-img::before,
    .bt-shop-slide-img::after { display: none; }
    .bt-shop-slide-price { justify-content: center; }
}


/* ============================================
   SHOP FEATURES BAR (below products) - Modern
   ============================================ */
.bt-shop-features {
    padding: var(--bt-space-2xl) 0 var(--bt-space-3xl);
    margin-top: var(--bt-space-xl);
}

.bt-shop-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: var(--bt-glass-bg);
    border: 1px solid var(--bt-border-color);
    border-radius: var(--bt-radius-xl);
    overflow: hidden;
}

.bt-shop-feat {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
    padding: var(--bt-space-xl) var(--bt-space-lg);
    text-align: left;
    border-right: 1px solid var(--bt-border-color);
    transition: all 0.3s ease;
    min-height: 100px;
}

.bt-shop-feat:last-child { border-right: none; }

.bt-shop-feat:hover {
    background: rgba(var(--bt-primary-rgb), 0.06);
}

.bt-shop-feat-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--bt-primary-rgb), 0.12) 0%, rgba(var(--bt-accent-rgb), 0.08) 100%);
    border-radius: var(--bt-radius-md);
    color: var(--bt-primary);
}

.bt-shop-feat-icon svg {
    width: 22px;
    height: 22px;
}

.bt-shop-feat svg {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    color: var(--bt-primary);
}

.bt-shop-feat-text {
    flex: 1;
}

.bt-shop-feat strong {
    display: block;
    font-size: 0.88rem;
    font-weight: var(--bt-fw-semibold);
    color: var(--bt-text-primary);
    line-height: 1.4;
    margin-bottom: 6px;
}

.bt-shop-feat span {
    display: block;
    font-size: 0.75rem;
    color: var(--bt-text-muted);
    line-height: 1.5;
}

/* Light mode */
html[data-theme="light"] .bt-shop-features-grid {
    background: #ffffff;
    border-color: rgba(0,0,0,0.06);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

html[data-theme="light"] .bt-shop-feat {
    border-right-color: rgba(0,0,0,0.06);
}

html[data-theme="light"] .bt-shop-feat-icon {
    background: linear-gradient(135deg, rgba(117,59,235,0.1) 0%, rgba(0,224,240,0.06) 100%);
}

@media (max-width: 992px) {
    .bt-shop-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bt-shop-feat:nth-child(2) { border-right: none; }
    .bt-shop-feat:nth-child(1),
    .bt-shop-feat:nth-child(2) {
        border-bottom: 1px solid var(--bt-border-color);
    }
}

@media (max-width: 480px) {
    .bt-shop-features-grid {
        grid-template-columns: 1fr;
    }
    .bt-shop-feat {
        border-right: none;
        border-bottom: 1px solid var(--bt-border-color);
        justify-content: flex-start;
        padding: var(--bt-space-lg);
        min-height: auto;
    }
    .bt-shop-feat:last-child { border-bottom: none; }
}


/* Light mode banner */
html[data-theme="light"] .bt-shop-banner {
    background: linear-gradient(180deg, rgba(117,59,235,0.04) 0%, #f8f9fc 100%);
}

html[data-theme="light"] .bt-shop-slide-img img {
    background: #ffffff;
    border-color: rgba(0,0,0,0.06);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1), 0 0 30px rgba(117,59,235,0.08);
}


/* ============================================
   SHOP PROMO CARDS (Customizer Section)
   2 Hero Banners + 3 Feature Cards Grid
   ============================================ */
.bt-shop-promos {
    padding: var(--bt-space-xl) 0;
}

.bt-shop-promos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

/* Hero Promo Cards - 2 large cards spanning full width */
.bt-shop-promo-hero {
    grid-column: span 1;
}

.bt-shop-promo-card-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--bt-radius-xl);
    overflow: hidden;
    height: 320px;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, rgba(117,59,235,0.2), rgba(0,224,240,0.1));
    border: 1px solid var(--bt-border-color);
    transition: all 0.3s ease;
}

.bt-shop-promo-card-hero:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(117,59,235,0.2);
    border-color: var(--bt-primary);
}

.bt-shop-promo-card-hero .bt-shop-promo-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.bt-shop-promo-card-hero .bt-shop-promo-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.bt-shop-promo-card-hero:hover .bt-shop-promo-card-img img {
    transform: scale(1.05);
}

.bt-shop-promo-card-hero .bt-shop-promo-card-content {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding: 28px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
}

.bt-shop-promo-tag {
    display: inline-block;
    background: rgba(117,59,235,0.8);
    backdrop-filter: blur(8px);
    padding: 5px 14px;
    border-radius: var(--bt-radius-full);
    font-size: 0.72rem;
    font-weight: var(--bt-fw-bold);
    margin-bottom: 10px;
    letter-spacing: 0.3px;
    color: #fff;
}

.bt-shop-promo-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 8px;
    color: #fff;
}

.bt-shop-promo-desc {
    font-size: 0.85rem;
    opacity: 0.85;
    margin: 0 0 14px;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
}

.bt-shop-promo-card-hero .bt-btn {
    display: inline-flex;
    box-shadow: 0 4px 16px rgba(117,59,235,0.4);
}

/* Feature Cards - 3 smaller cards in a row */
.bt-shop-promo-feat {
    grid-column: span 1;
}

/* Make the 3 feature cards span the full bottom row */
.bt-shop-promos-grid .bt-shop-promo-feat-1 {
    grid-column: 1 / 2;
    grid-row: 3;
}
.bt-shop-promos-grid .bt-shop-promo-feat-2 {
    grid-column: 2 / 3;
    grid-row: 3;
}
.bt-shop-promos-grid .bt-shop-promo-feat-3 {
    grid-column: 1 / -1;
    grid-row: 4;
}

.bt-shop-promo-card-feat {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: var(--bt-bg-card);
    border: 1px solid var(--bt-border-color);
    border-radius: var(--bt-radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--bt-text-primary);
    transition: all 0.3s ease;
    height: 100%;
    min-height: 120px;
}

.bt-shop-promo-card-feat:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    border-color: var(--bt-primary);
}

.bt-shop-promo-card-feat .bt-shop-promo-card-img {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--bt-bg-elevated);
}

.bt-shop-promo-card-feat .bt-shop-promo-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.bt-shop-promo-card-feat:hover .bt-shop-promo-card-img img {
    transform: scale(1.08);
}

.bt-shop-promo-card-feat .bt-shop-promo-card-content {
    padding: 16px 20px;
    flex: 1;
}

.bt-shop-promo-card-feat .bt-shop-promo-tag {
    background: linear-gradient(135deg, var(--bt-primary), var(--bt-accent));
    font-size: 0.65rem;
    padding: 3px 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bt-shop-promo-card-feat .bt-shop-promo-title {
    font-size: 0.95rem;
    font-weight: var(--bt-fw-bold);
    color: var(--bt-text-primary);
    margin-bottom: 4px;
}

.bt-shop-promo-card-feat .bt-shop-promo-desc {
    font-size: 0.78rem;
    color: var(--bt-text-muted);
    margin: 0;
    opacity: 1;
}

/* Light Mode */
html[data-theme="light"] .bt-shop-promo-card-hero {
    background: linear-gradient(135deg, rgba(117,59,235,0.08), rgba(0,224,240,0.05));
}

html[data-theme="light"] .bt-shop-promo-card-feat {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Responsive */
@media (max-width: 1024px) {
    .bt-shop-promo-card-hero {
        height: 280px;
    }
    .bt-shop-promo-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .bt-shop-promos-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .bt-shop-promo-hero {
        grid-column: span 1;
    }
    .bt-shop-promos-grid .bt-shop-promo-feat-1,
    .bt-shop-promos-grid .bt-shop-promo-feat-2,
    .bt-shop-promos-grid .bt-shop-promo-feat-3 {
        grid-column: 1;
        grid-row: auto;
    }
    .bt-shop-promo-card-hero {
        height: 240px;
    }
    .bt-shop-promo-card-hero .bt-shop-promo-card-content {
        padding: 20px;
    }
    .bt-shop-promo-title {
        font-size: 1.15rem;
    }
    .bt-shop-promo-card-feat .bt-shop-promo-card-img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .bt-shop-promo-card-hero {
        height: 200px;
    }
    .bt-shop-promo-card-hero .bt-shop-promo-card-content {
        padding: 16px;
    }
    .bt-shop-promo-title {
        font-size: 1rem;
    }
    .bt-shop-promo-desc {
        font-size: 0.78rem;
    }
}


/* ============================================
   AJAX ADD TO CART - Loading & Success States
   ============================================ */
.bt-add-to-cart {
    position: relative;
    overflow: hidden;
}

.bt-add-to-cart .bt-cart-text {
    transition: opacity 0.2s ease;
}

.bt-add-to-cart .bt-cart-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    opacity: 0;
    animation: none;
}

.bt-add-to-cart.loading .bt-cart-text {
    opacity: 0;
}

.bt-add-to-cart.loading .bt-cart-loader {
    opacity: 1;
    animation: bt-spin 0.6s linear infinite;
}

.bt-add-to-cart.added {
    background: var(--bt-success) !important;
    border-color: var(--bt-success) !important;
}

@keyframes bt-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Cart Count Bounce Animation */
.bt-cart-count {
    transition: transform 0.3s ease;
}

.bt-cart-count.bt-bounce {
    animation: bt-bounce 0.5s ease;
}

@keyframes bt-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.4); }
}

/* Cart Notification Styles */
.bt-cart-notification {
    font-family: var(--bt-font-primary);
}


/* ============================================
   LIST VIEW LAYOUT
   ============================================ */
.bt-shop-content.bt-list-view ul.products {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
}

.bt-list-view .bt-product-card-inner {
    flex-direction: row;
    align-items: stretch;
}

.bt-list-view .bt-product-image {
    width: 180px;
    min-width: 180px;
    aspect-ratio: auto;
    height: 180px;
}

.bt-list-view .bt-product-info {
    flex: 1;
    padding: var(--bt-space-md);
    display: flex;
    flex-direction: column;
}

.bt-list-view .bt-product-title {
    font-size: 0.95rem;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    margin-bottom: 6px;
}

.bt-list-view .bt-product-price {
    margin-bottom: 10px;
}

.bt-list-view .bt-product-price .woocommerce-Price-amount {
    font-size: 1rem;
}

.bt-list-view .bt-product-cart {
    margin-top: auto;
}

.bt-list-view .bt-product-cart .bt-add-to-cart {
    width: auto;
    padding: 8px 20px !important;
}

.bt-list-view .bt-product-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--bt-border-color);
}

@media (max-width: 768px) {
    .bt-list-view .bt-product-card-inner {
        flex-direction: column;
    }
    .bt-list-view .bt-product-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }
}

/* ============================================
   STOCK STATUS BADGE
   ============================================ */
.bt-stock-badge {
    position: absolute;
    bottom: 6px;
    left: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6rem;
    font-weight: var(--bt-fw-medium);
    padding: 3px 8px;
    border-radius: var(--bt-radius-full);
    z-index: 2;
}

.bt-stock-badge.bt-in-stock {
    background: rgba(34, 197, 94, 0.9);
    color: #fff;
}

.bt-stock-badge.bt-out-of-stock {
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
}

.bt-stock-badge.bt-low-stock {
    background: rgba(255, 171, 0, 0.9);
    color: #fff;
}

.bt-stock-badge svg {
    width: 8px;
    height: 8px;
}

/* ============================================
   PRODUCT DESCRIPTION (hidden in grid, shown in list)
   ============================================ */
.bt-product-description {
    display: none;
    font-size: 0.75rem;
    color: var(--bt-text-muted);
    line-height: 1.5;
    margin-bottom: 6px;
}

/* ============================================
   PRODUCT SOLD COUNT
   ============================================ */
.bt-product-sold {
    font-size: 0.62rem;
    color: var(--bt-text-muted);
    margin-bottom: 4px;
}

.bt-product-sold span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* ============================================
   OUT OF STOCK BUTTON
   ============================================ */
.bt-out-of-stock-btn {
    width: 100%;
    justify-content: center;
    opacity: 0.6;
    cursor: not-allowed;
    font-size: 0.65rem !important;
    padding: 6px 10px !important;
}

/* ============================================
   ADD TO CART BUTTON - Cart Icon
   ============================================ */
.bt-product-cart .bt-add-to-cart svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ============================================
   NO PRODUCTS FOUND
   ============================================ */
.bt-no-products {
    text-align: center;
    padding: var(--bt-space-3xl) var(--bt-space-xl);
    margin: var(--bt-space-xl) 0;
}

.bt-no-products-icon {
    margin-bottom: var(--bt-space-lg);
    opacity: 0.5;
}

.bt-no-products-icon svg {
    margin: 0 auto;
}

.bt-no-products h3 {
    font-size: var(--bt-fs-xl);
    margin-bottom: var(--bt-space-sm);
    color: var(--bt-text-primary);
}

.bt-no-products p {
    font-size: var(--bt-fs-sm);
    color: var(--bt-text-secondary);
    max-width: 400px;
    margin: 0 auto var(--bt-space-md);
}

/* ============================================
   COMPARE BUTTON
   ============================================ */
.bt-compare-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    background: rgba(0,0,0, 0.5) !important;
    border: none !important;
    border-radius: 6px !important;
    color: rgba(255,255,255,0.85) !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bt-compare-btn:hover {
    background: var(--bt-accent) !important;
    color: #fff !important;
}

.bt-compare-btn.bt-compared {
    background: var(--bt-accent) !important;
    color: #fff !important;
}

.bt-compare-btn svg {
    width: 14px !important;
    height: 14px !important;
}

html[data-theme="light"] .bt-compare-btn {
    background: rgba(255,255,255, 0.9) !important;
    color: #666 !important;
}

/* Compare Bar */
.bt-compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bt-bg-card);
    border-top: 1px solid var(--bt-border-color);
    padding: var(--bt-space-md);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.bt-compare-bar.bt-active {
    transform: translateY(0);
}

.bt-compare-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1320px;
    margin: 0 auto;
    gap: var(--bt-space-md);
}

.bt-compare-items {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bt-compare-item {
    position: relative;
    width: 60px;
    height: 60px;
    background: var(--bt-bg-elevated);
    border: 1px solid var(--bt-border-color);
    border-radius: var(--bt-radius-sm);
    overflow: hidden;
}

.bt-compare-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.bt-compare-item-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    background: var(--bt-danger);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bt-compare-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bt-compare-count {
    font-size: 0.8rem;
    color: var(--bt-text-muted);
}

/* ============================================
   QUICK VIEW MODAL
   ============================================ */
.bt-quickview-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.bt-quickview-overlay.bt-active {
    opacity: 1;
    visibility: visible;
}

.bt-quickview-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: var(--bt-bg-card);
    border: 1px solid var(--bt-border-color);
    border-radius: var(--bt-radius-xl);
    overflow: hidden;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bt-quickview-modal.bt-active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.bt-quickview-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bt-bg-elevated);
    border: 1px solid var(--bt-border-color);
    border-radius: 50%;
    color: var(--bt-text-primary);
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.bt-quickview-close:hover {
    background: var(--bt-danger);
    border-color: var(--bt-danger);
    color: #fff;
}

.bt-quickview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-height: 90vh;
    overflow-y: auto;
}

.bt-quickview-gallery {
    background: var(--bt-bg-elevated);
    padding: var(--bt-space-xl);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bt-quickview-gallery img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.bt-quickview-info {
    padding: var(--bt-space-xl);
    display: flex;
    flex-direction: column;
}

.bt-quickview-cat {
    font-size: 0.72rem;
    color: var(--bt-text-muted);
    margin-bottom: 6px;
}

.bt-quickview-title {
    font-size: 1.25rem;
    font-weight: var(--bt-fw-bold);
    color: var(--bt-text-primary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.bt-quickview-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.bt-quickview-price {
    margin-bottom: 16px;
}

.bt-quickview-price .woocommerce-Price-amount {
    font-size: 1.5rem;
    font-weight: var(--bt-fw-bold);
    color: var(--bt-accent);
}

.bt-quickview-price del .woocommerce-Price-amount {
    font-size: 1rem;
    color: var(--bt-text-muted);
    font-weight: normal;
}

.bt-quickview-desc {
    font-size: 0.85rem;
    color: var(--bt-text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    max-height: 120px;
    overflow-y: auto;
}

.bt-quickview-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    padding: var(--bt-space-md);
    background: var(--bt-bg-elevated);
    border-radius: var(--bt-radius-md);
}

.bt-quickview-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
}

.bt-quickview-meta-label {
    color: var(--bt-text-muted);
    min-width: 60px;
}

.bt-quickview-meta-value {
    color: var(--bt-text-primary);
    font-weight: var(--bt-fw-medium);
}

.bt-quickview-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.bt-quickview-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--bt-border-color);
    border-radius: var(--bt-radius-md);
    overflow: hidden;
}

.bt-quickview-qty button {
    width: 36px;
    height: 36px;
    background: var(--bt-bg-elevated);
    border: none;
    color: var(--bt-text-primary);
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.bt-quickview-qty button:hover {
    background: var(--bt-primary);
    color: #fff;
}

.bt-quickview-qty input {
    width: 50px;
    height: 36px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 0.9rem;
    color: var(--bt-text-primary);
}

.bt-quickview-add {
    flex: 1;
}

.bt-quickview-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bt-bg-elevated);
    border: 1px solid var(--bt-border-color);
    border-radius: var(--bt-radius-md);
    color: var(--bt-text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.bt-quickview-link:hover {
    background: var(--bt-primary);
    border-color: var(--bt-primary);
    color: #fff;
}

.bt-quickview-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.bt-quickview-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--bt-border-color);
    border-top-color: var(--bt-primary);
    border-radius: 50%;
    animation: bt-spin 0.8s linear infinite;
}

@media (max-width: 768px) {
    .bt-quickview-content {
        grid-template-columns: 1fr;
    }
    .bt-quickview-gallery {
        padding: var(--bt-space-lg);
    }
    .bt-quickview-gallery img {
        max-height: 250px;
    }
}

/* ============================================
   LOADING SKELETON
   ============================================ */
.bt-skeleton {
    position: relative;
    overflow: hidden;
    background: var(--bt-bg-elevated);
    border-radius: var(--bt-radius-md);
}

.bt-skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    animation: bt-skeleton-shimmer 1.5s infinite;
}

@keyframes bt-skeleton-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.bt-skeleton-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    background: var(--bt-bg-card);
    border: 1px solid var(--bt-border-color);
    border-radius: var(--bt-radius-md);
}

.bt-skeleton-img {
    aspect-ratio: 1;
    background: var(--bt-bg-elevated);
    border-radius: var(--bt-radius-sm);
}

.bt-skeleton-text {
    height: 12px;
    background: var(--bt-bg-elevated);
    border-radius: 4px;
}

.bt-skeleton-text.bt-w-75 { width: 75%; }
.bt-skeleton-text.bt-w-50 { width: 50%; }
.bt-skeleton-text.bt-w-25 { width: 25%; }

.bt-skeleton-btn {
    height: 32px;
    background: var(--bt-bg-elevated);
    border-radius: var(--bt-radius-full);
    margin-top: auto;
}

/* Products Loading State */
.bt-products-loading {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

@media (max-width: 1200px) {
    .bt-products-loading { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 992px) {
    .bt-products-loading { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .bt-products-loading { grid-template-columns: repeat(2, 1fr); }
}

html[data-theme="light"] .bt-skeleton::after {
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.04), transparent);
}


/* ============================================
   BRAND PARTNERS MARQUEE SLIDER
   ============================================ */
.bt-brands-marquee {
    padding: var(--bt-space-xl) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(var(--bt-primary-rgb), 0.03) 50%, transparent 100%);
    overflow: hidden;
}

.bt-brands-label {
    text-align: center;
    font-size: var(--bt-fs-sm);
    color: var(--bt-text-muted);
    margin-bottom: var(--bt-space-md);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: var(--bt-fw-medium);
}

.bt-marquee-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.bt-marquee-track {
    display: flex;
    align-items: center;
    gap: 48px;
    width: max-content;
    animation: btMarqueeScroll 30s linear infinite;
}

.bt-marquee-track:hover {
    animation-play-state: paused;
}

@keyframes btMarqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.bt-marquee-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 48px;
    color: var(--bt-text-muted);
    opacity: 0.5;
    transition: opacity 0.3s ease, color 0.3s ease, transform 0.3s ease;
    cursor: default;
}

.bt-marquee-item:hover {
    opacity: 1;
    color: var(--bt-primary);
    transform: scale(1.1);
}

.bt-marquee-item svg {
    width: 100%;
    height: 100%;
}

html[data-theme="light"] .bt-brands-marquee {
    background: linear-gradient(180deg, transparent 0%, rgba(117,59,235,0.02) 50%, transparent 100%);
}

html[data-theme="light"] .bt-marquee-item { opacity: 0.4; }
html[data-theme="light"] .bt-marquee-item:hover { opacity: 1; }

@media (max-width: 768px) {
    .bt-brands-marquee { padding: var(--bt-space-lg) 0; }
    .bt-marquee-track { gap: 32px; animation-duration: 20s; }
    .bt-marquee-item { width: 90px; height: 36px; }
    .bt-brands-label { font-size: 0.7rem; letter-spacing: 1.5px; }
}

@media (max-width: 480px) {
    .bt-marquee-track { gap: 24px; animation-duration: 15s; }
    .bt-marquee-item { width: 80px; height: 32px; }
}

/* ============================================
   SHOP SECTIONS - Featured, New Arrivals, Promo
   ============================================ */
.bt-shop-section {
    padding: var(--bt-space-xl) 0;
    position: relative;
}

.bt-shop-section.bt-featured-section {
    border-top: 1px solid rgba(var(--bt-primary-rgb), 0.12);
    background: linear-gradient(180deg, rgba(var(--bt-primary-rgb), 0.07) 0%, transparent 50%);
}

.bt-shop-section.bt-new-section {
    border-top: 1px solid var(--bt-border-color);
}

.bt-shop-section.bt-allprod-section {
    border-top: 1px solid var(--bt-border-color);
}

.bt-shop-section.woocommerce ul.products.bt-shop-section-products {
    width: 100%;
    box-sizing: border-box;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

@media (max-width: 992px) {
    .bt-shop-section.woocommerce ul.products.bt-shop-section-products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .bt-shop-section.woocommerce ul.products.bt-shop-section-products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

.bt-brands-marquee {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.bt-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--bt-space-lg);
}

.bt-section-head-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bt-section-icon {
    font-size: 1.5rem;
}

.bt-section-heading {
    font-size: 1.15rem;
    font-weight: var(--bt-fw-bold);
    color: var(--bt-text-primary);
    margin: 0;
    line-height: 1.3;
}

.bt-section-sub {
    font-size: 0.78rem;
    color: var(--bt-text-muted);
    margin: 2px 0 0;
}

.bt-section-link {
    font-size: 0.82rem;
    color: var(--bt-primary);
    text-decoration: none;
    font-weight: var(--bt-fw-medium);
    white-space: nowrap;
    transition: color 0.2s;
}

.bt-section-link:hover {
    color: var(--bt-accent);
}

/* Product Cards Row - Compact */
.bt-products-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.bt-pcard {
    background: var(--bt-bg-card);
    border: 1px solid var(--bt-border-color);
    border-radius: var(--bt-radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.bt-pcard:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: var(--bt-primary);
}

.bt-pcard-img {
    position: relative;
    aspect-ratio: 1;
    background: var(--bt-bg-elevated);
    overflow: hidden;
    max-height: 140px;
}

.bt-pcard-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
    transition: transform 0.4s ease;
}

.bt-pcard:hover .bt-pcard-img img {
    transform: scale(1.05);
}

.bt-pcard-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bt-bg-elevated), var(--bt-bg-card));
}

.bt-pcard-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: #fff;
    padding: 2px 7px;
    border-radius: var(--bt-radius-full);
    font-size: 0.58rem;
    font-weight: var(--bt-fw-bold);
    z-index: 2;
}

.bt-badge-new {
    background: linear-gradient(135deg, var(--bt-primary), var(--bt-accent)) !important;
}

.bt-pcard-actions {
    position: absolute;
    bottom: 6px;
    right: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.3s ease;
}

.bt-pcard:hover .bt-pcard-actions {
    opacity: 1;
    transform: translateY(0);
}

.bt-pcard-act {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bt-bg-card);
    border: 1px solid var(--bt-border-color);
    border-radius: 50%;
    color: var(--bt-text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.bt-pcard-act:hover {
    background: var(--bt-primary);
    color: #fff;
    border-color: var(--bt-primary);
}

.bt-pcard-info {
    padding: 10px;
}

.bt-pcard-name {
    display: block;
    font-size: 0.75rem;
    font-weight: var(--bt-fw-medium);
    color: var(--bt-text-primary);
    text-decoration: none;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
    transition: color 0.2s;
}

.bt-pcard-name:hover {
    color: var(--bt-primary);
}

.bt-pcard-price .woocommerce-Price-amount {
    font-size: 0.8rem;
    font-weight: var(--bt-fw-bold);
    color: var(--bt-primary);
}

.bt-pcard-price del .woocommerce-Price-amount {
    font-size: 0.68rem;
    color: var(--bt-text-muted);
    font-weight: normal;
}

.bt-pcard-price del {
    text-decoration: none;
}

.bt-pcard-price del .woocommerce-Price-amount {
    text-decoration: line-through;
    text-decoration-color: var(--bt-text-muted);
}

/* Light Mode */
html[data-theme="light"] .bt-pcard {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* ============================================
   PROMOTIONAL BANNER - Hero + Carousel
   ============================================ */
.bt-promo-banner {
    padding: var(--bt-space-xl) 0 var(--bt-space-lg);
}

/* Hero Promo Cards - 2 Large */
.bt-hero-promos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.bt-hero-promo {
    position: relative;
    display: block;
    border-radius: var(--bt-radius-xl);
    overflow: hidden;
    height: 360px;
    text-decoration: none;
    color: #fff;
}

.bt-hero-promo-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.bt-hero-promo:hover .bt-hero-promo-img {
    transform: scale(1.05);
}

.bt-hero-promo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.1) 100%);
    transition: background 0.3s;
}

.bt-hero-promo:hover .bt-hero-promo-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.45) 40%, rgba(0,0,0,0.15) 100%);
}

.bt-hero-promo-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 36px;
    z-index: 2;
}

.bt-hero-promo-content.bt-hero-right {
    text-align: right;
}

.bt-hero-promo-tag {
    display: inline-block;
    background: rgba(117,59,235,0.8);
    backdrop-filter: blur(8px);
    padding: 6px 16px;
    border-radius: var(--bt-radius-full);
    font-size: 0.75rem;
    font-weight: var(--bt-fw-bold);
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.bt-hero-promo-content h3 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.bt-hero-promo-content p {
    font-size: 0.88rem;
    opacity: 0.85;
    margin-bottom: 18px;
    line-height: 1.5;
}

.bt-hero-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--bt-primary);
    color: #fff;
    border-radius: var(--bt-radius-full);
    font-size: 0.88rem;
    font-weight: var(--bt-fw-bold);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(117,59,235,0.5);
}

.bt-hero-promo:hover .bt-hero-promo-btn {
    background: var(--bt-accent);
    gap: 12px;
    box-shadow: 0 4px 25px rgba(0,224,240,0.5);
}

/* Feature Cards Carousel */
.bt-feat-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--bt-radius-xl);
    padding: 4px 0;
}

.bt-feat-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 4px;
}

/* Feature Row - 3 static cards */
.bt-feat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bt-feat-card {
    background: var(--bt-bg-card);
    border: 1px solid var(--bt-border-color);
    border-radius: var(--bt-radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--bt-text-primary);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.bt-feat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    border-color: var(--bt-primary);
}

.bt-feat-card-img {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    overflow: hidden;
}

.bt-feat-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.bt-feat-card:hover .bt-feat-card-img img {
    transform: scale(1.08);
}

.bt-feat-card-info {
    padding: 16px 20px;
    flex: 1;
}

.bt-feat-card-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--bt-primary), var(--bt-accent));
    color: #fff;
    padding: 3px 10px;
    border-radius: var(--bt-radius-full);
    font-size: 0.65rem;
    font-weight: var(--bt-fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.bt-feat-card-info h4 {
    font-size: 0.95rem;
    font-weight: var(--bt-fw-bold);
    margin-bottom: 4px;
    line-height: 1.3;
}

.bt-feat-card-info p {
    font-size: 0.78rem;
    color: var(--bt-text-muted);
    margin: 0;
    line-height: 1.4;
}

/* Carousel Nav */
.bt-feat-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--bt-bg-card);
    border: 1px solid var(--bt-border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.bt-feat-nav svg {
    width: 18px;
    height: 18px;
    color: var(--bt-text-primary);
}

.bt-feat-nav:hover {
    background: var(--bt-primary);
    border-color: var(--bt-primary);
}

.bt-feat-nav:hover svg {
    color: #fff;
}

.bt-feat-prev { left: 8px; }
.bt-feat-next { right: 8px; }

/* Light Mode */
html[data-theme="light"] .bt-feat-card {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

html[data-theme="light"] .bt-feat-nav {
    background: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
    .bt-hero-promo { height: 300px; }
    .bt-hero-promo-content h3 { font-size: 1.6rem; }
    .bt-feat-row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .bt-hero-promos {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .bt-hero-promo { height: 280px; }
    .bt-hero-promo-content { padding: 24px; }
    .bt-hero-promo-content h3 { font-size: 1.4rem; }
    .bt-hero-promo-content.bt-hero-right { text-align: left; }
    .bt-feat-row { grid-template-columns: 1fr; gap: 12px; }
    .bt-feat-card-img { width: 100px; height: 100px; }
}

@media (max-width: 480px) {
    .bt-hero-promo { height: 240px; }
    .bt-hero-promo-content h3 { font-size: 1.2rem; }
    .bt-hero-promo-btn { padding: 10px 20px; font-size: 0.8rem; }
}

/* Responsive */
/* Responsive - bt-pcard */
@media (max-width: 1024px) {
    .bt-products-row {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .bt-products-row .bt-pcard:nth-child(5) {
        display: none;
    }
}

@media (max-width: 768px) {
    .bt-products-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .bt-products-row .bt-pcard:nth-child(5) {
        display: block;
    }
    
    .bt-section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .bt-section-heading {
        font-size: 1rem;
    }
    
    .bt-promo-banner {
        padding: var(--bt-space-lg) 0;
    }
    
    .bt-deal-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .bt-deal-main { padding: 24px; }
    .bt-deal-title { font-size: 1.15rem; max-width: 100%; }
    .bt-deal-desc { max-width: 100%; }
    .bt-deal-img { position: relative; right: auto; top: auto; transform: none; width: 100%; margin-top: 16px; }
    .bt-deal-img img { max-height: 200px; }
    .bt-deal-pct { font-size: 2rem; }
    .bt-deal-side { min-height: 220px; }
    
    .bt-pcard-img {
        max-height: 120px;
    }
    
    .bt-pcard-info {
        padding: 8px;
    }
    
    .bt-pcard-name {
        font-size: 0.7rem;
        margin-bottom: 4px;
    }
}

@media (max-width: 480px) {
    .bt-products-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .bt-pcard-img {
        max-height: 100px;
    }
    
    .bt-pcard-info {
        padding: 6px;
    }
    
    .bt-pcard-name {
        font-size: 0.65rem;
    }
    
    .bt-pcard-price .woocommerce-Price-amount {
        font-size: 0.72rem;
    }
    
    .bt-pcard-badge {
        font-size: 0.5rem;
        padding: 2px 5px;
    }
}
.bt-deal-section {
    padding: var(--bt-space-xl) 0;
}

.bt-deal-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    min-height: 380px;
}

/* Main Deal Card */
.bt-deal-main {
    position: relative;
    background: var(--bt-bg-card);
    border-radius: var(--bt-radius-xl);
    padding: 40px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--bt-border-color);
}

.bt-deal-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff4757, #ff6b00);
    color: #fff;
    padding: 6px 16px;
    border-radius: var(--bt-radius-full);
    font-size: 0.78rem;
    font-weight: var(--bt-fw-bold);
    margin-bottom: 16px;
    width: fit-content;
}

.bt-deal-title {
    font-size: 1.6rem;
    font-weight: var(--bt-fw-bold);
    color: var(--bt-text-primary);
    margin-bottom: 10px;
    line-height: 1.3;
    max-width: 55%;
}

.bt-deal-desc {
    font-size: var(--bt-fs-sm);
    color: var(--bt-text-muted);
    margin-bottom: 20px;
    max-width: 55%;
    line-height: 1.6;
}

/* Countdown */
.bt-deal-countdown {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.bt-cd-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bt-bg-elevated);
    border: 1px solid var(--bt-border-color);
    border-radius: var(--bt-radius-md);
    padding: 8px 12px;
    min-width: 52px;
}

.bt-cd-num {
    font-size: 1.2rem;
    font-weight: var(--bt-fw-bold);
    color: var(--bt-text-primary);
    line-height: 1;
}

.bt-cd-label {
    font-size: 0.65rem;
    color: var(--bt-text-muted);
    text-transform: uppercase;
    margin-top: 4px;
}

/* Bottom row */
.bt-deal-bottom {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bt-deal-pct {
    font-size: 2.5rem;
    font-weight: var(--bt-fw-bold);
    color: var(--bt-primary);
    line-height: 1;
}

.bt-deal-pct small {
    font-size: 1rem;
    display: block;
    color: var(--bt-text-muted);
    font-weight: var(--bt-fw-medium);
}

/* Deal Image */
.bt-deal-img {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bt-deal-img img {
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
    transition: transform 0.4s ease;
}

.bt-deal-main:hover .bt-deal-img img {
    transform: scale(1.05) rotate(-2deg);
}

.bt-deal-counter {
    position: absolute;
    bottom: 20px;
    left: 40px;
    font-size: 0.8rem;
    color: var(--bt-text-muted);
    font-weight: var(--bt-fw-medium);
}

/* Side Featured Card */
.bt-deal-side {
    position: relative;
    background: linear-gradient(135deg, var(--bt-primary), #9b59b6);
    border-radius: var(--bt-radius-xl);
    padding: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #fff;
}

.bt-deal-side-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 5px 14px;
    border-radius: var(--bt-radius-full);
    font-size: 0.72rem;
    font-weight: var(--bt-fw-bold);
    margin-bottom: 14px;
    width: fit-content;
    border: 1px solid rgba(255,255,255,0.3);
}

.bt-deal-side-title {
    font-size: 1.2rem;
    font-weight: var(--bt-fw-bold);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bt-deal-side-price {
    margin-bottom: 10px;
}

.bt-deal-side-price .woocommerce-Price-amount {
    font-size: 1.1rem;
    font-weight: var(--bt-fw-bold);
    color: var(--bt-accent);
}

.bt-deal-side-price del .woocommerce-Price-amount {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

.bt-deal-side-desc {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 16px;
    line-height: 1.5;
}

.bt-btn-outline-white {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #fff;
    color: var(--bt-primary);
    border: none;
    border-radius: var(--bt-radius-md);
    font-size: 0.82rem;
    font-weight: var(--bt-fw-bold);
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
}

.bt-btn-outline-white:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.bt-deal-side-img {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 55%;
    opacity: 0.9;
}

.bt-deal-side-img img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.3));
    transition: transform 0.4s ease;
}

.bt-deal-side:hover .bt-deal-side-img img {
    transform: scale(1.08);
}

/* Light Mode */
html[data-theme="light"] .bt-deal-main {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* ============================================
   CATEGORY SECTION TITLE
   ============================================ */
.bt-cat-section-title {
    font-size: var(--bt-fs-lg);
    font-weight: var(--bt-fw-bold);
    color: var(--bt-text-primary);
    margin-bottom: var(--bt-space-lg);
    text-align: center;
}

.bt-cat-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.bt-cat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 16px 20px;
    background: var(--bt-bg-card);
    border: 1px solid var(--bt-border-color);
    border-radius: var(--bt-radius-lg);
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.bt-cat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--cat-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.bt-cat-card:hover {
    transform: translateY(-4px);
    border-color: var(--cat-color);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.bt-cat-card:hover::before {
    transform: scaleX(1);
}

.bt-cat-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--cat-color) 12%, transparent);
    border-radius: var(--bt-radius-md);
    margin-bottom: 14px;
    transition: all 0.3s ease;
}

.bt-cat-card-icon svg {
    width: 24px;
    height: 24px;
    color: var(--cat-color);
}

.bt-cat-card:hover .bt-cat-card-icon {
    background: var(--cat-color);
    transform: scale(1.1);
}

.bt-cat-card:hover .bt-cat-card-icon svg {
    color: #fff;
}

.bt-cat-card-name {
    font-size: 0.85rem;
    font-weight: var(--bt-fw-bold);
    color: var(--bt-text-primary);
    margin-bottom: 4px;
}

.bt-cat-card-count {
    font-size: 0.72rem;
    color: var(--bt-text-muted);
}

.bt-cat-card-arrow {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 1rem;
    color: var(--bt-text-muted);
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.3s ease;
}

.bt-cat-card:hover .bt-cat-card-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--cat-color);
}

/* Light Mode */
html[data-theme="light"] .bt-cat-card {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .bt-deal-grid {
        grid-template-columns: 1fr 1fr;
        min-height: 320px;
    }
    
    .bt-deal-title { font-size: 1.3rem; }
    .bt-deal-img { width: 35%; }
    
    .bt-cat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .bt-deal-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .bt-deal-main {
        padding: 24px;
    }
    
    .bt-deal-title {
        font-size: 1.15rem;
        max-width: 100%;
    }
    
    .bt-deal-desc {
        max-width: 100%;
    }
    
    .bt-deal-img {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        margin-top: 16px;
    }
    
    .bt-deal-img img {
        max-height: 200px;
    }
    
    .bt-deal-pct {
        font-size: 2rem;
    }
    
    .bt-deal-side {
        min-height: 220px;
    }
    
    .bt-cat-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .bt-cat-card {
        padding: 20px 12px 16px;
    }
    
    .bt-cat-card-icon {
        width: 40px;
        height: 40px;
    }
    
    .bt-cat-card-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .bt-cat-card-name {
        font-size: 0.75rem;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    .bt-cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bt-deal-countdown {
        gap: 6px;
    }
    
    .bt-cd-item {
        padding: 6px 8px;
        min-width: 44px;
    }
    
    .bt-cd-num {
        font-size: 1rem;
    }
}

/* ============================================
   ALL PRODUCTS GRID - 6 Columns
   ============================================ */
.bt-allprod-section {
    padding-bottom: var(--bt-space-2xl);
}

.bt-products-grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.bt-pgrid-card {
    background: var(--bt-bg-card);
    border: 1px solid var(--bt-border-color);
    border-radius: var(--bt-radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.bt-pgrid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    border-color: var(--bt-primary);
}

.bt-pgrid-img-wrap {
    display: block;
    position: relative;
    aspect-ratio: 1;
    background: var(--bt-bg-elevated);
    overflow: hidden;
}

.bt-pgrid-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.bt-pgrid-card:hover .bt-pgrid-img-wrap img {
    transform: scale(1.06);
}

.bt-pgrid-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: #fff;
    padding: 2px 8px;
    border-radius: var(--bt-radius-full);
    font-size: 0.62rem;
    font-weight: var(--bt-fw-bold);
}

.bt-pgrid-oos {
    background: rgba(0,0,0,0.6) !important;
}

.bt-pgrid-info {
    padding: 12px;
}

.bt-pgrid-name {
    display: block;
    font-size: 0.78rem;
    font-weight: var(--bt-fw-medium);
    color: var(--bt-text-primary);
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
    transition: color 0.2s;
}

.bt-pgrid-name:hover {
    color: var(--bt-primary);
}

.bt-pgrid-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
}

.bt-pgrid-stars {
    font-size: 0.65rem;
    color: #ffab00;
    letter-spacing: 1px;
}

.bt-pgrid-rcount {
    font-size: 0.6rem;
    color: var(--bt-text-muted);
}

.bt-pgrid-price {
    margin-bottom: 8px;
}

.bt-pgrid-price .woocommerce-Price-amount {
    font-size: 0.85rem;
    font-weight: var(--bt-fw-bold);
    color: var(--bt-primary);
}

.bt-pgrid-price del .woocommerce-Price-amount {
    font-size: 0.68rem;
    color: var(--bt-text-muted);
    font-weight: normal;
    text-decoration: line-through;
}

.bt-pgrid-price del {
    text-decoration: none;
}

.bt-pgrid-cart {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    justify-content: center;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--bt-primary);
    color: var(--bt-primary);
    border-radius: var(--bt-radius-md);
    font-size: 0.72rem;
    font-weight: var(--bt-fw-bold);
    cursor: pointer;
    transition: all 0.3s ease;
}

.bt-pgrid-cart:hover {
    background: var(--bt-primary);
    color: #fff;
}

.bt-pgrid-cart svg {
    flex-shrink: 0;
}

/* Light Mode */
html[data-theme="light"] .bt-pgrid-card {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Responsive */
@media (max-width: 1200px) {
    .bt-products-grid-6 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .bt-products-grid-6 {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .bt-pgrid-info { padding: 10px; }
    .bt-pgrid-name { font-size: 0.72rem; }
    .bt-pgrid-price .woocommerce-Price-amount { font-size: 0.78rem; }
    .bt-pgrid-cart { font-size: 0.65rem; padding: 6px 8px; }
}

@media (max-width: 480px) {
    .bt-products-grid-6 {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .bt-pgrid-info { padding: 8px; }
    .bt-pgrid-name { font-size: 0.68rem; -webkit-line-clamp: 1; line-clamp: 1; }
    .bt-pgrid-rating { display: none; }
    .bt-pgrid-cart { font-size: 0.6rem; }
}

/* ============================================
   SHOP PAGE HEADER - Enhanced
   ============================================ */
.bt-shop-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.bt-shop-header-left {
    flex: 1;
}

.bt-shop-header-left .bt-page-title {
    margin-bottom: 8px;
}

.bt-shop-header-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bt-shop-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: var(--bt-text-muted);
}

.bt-shop-meta-item svg {
    opacity: 0.6;
}

.bt-shop-meta-sep {
    color: var(--bt-border-color);
    font-size: 0.6rem;
}

.bt-online-dot {
    width: 7px;
    height: 7px;
    background: #4ecdc4;
    border-radius: 50%;
    display: inline-block;
    animation: btPulseOnline 2s ease infinite;
}

@keyframes btPulseOnline {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(78,205,196,0.5); }
    50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(78,205,196,0); }
}

.bt-shop-meta-online {
    color: #4ecdc4;
}

/* Mini Search */
.bt-shop-header-right {
    flex-shrink: 0;
}

.bt-shop-search-mini {
    display: flex;
    align-items: center;
    background: var(--bt-bg-elevated);
    border: 1px solid var(--bt-border-color);
    border-radius: var(--bt-radius-full);
    overflow: hidden;
    transition: border-color 0.3s;
}

.bt-shop-search-mini:focus-within {
    border-color: var(--bt-primary);
    box-shadow: 0 0 0 3px rgba(var(--bt-primary-rgb), 0.15);
}

.bt-shop-search-input {
    background: transparent;
    border: none;
    outline: none;
    padding: 9px 16px;
    font-size: 0.8rem;
    color: var(--bt-text-primary);
    width: 200px;
}

.bt-shop-search-input::placeholder {
    color: var(--bt-text-muted);
}

.bt-shop-search-btn {
    background: var(--bt-primary);
    border: none;
    padding: 9px 14px;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    transition: background 0.3s;
}

.bt-shop-search-btn:hover {
    background: var(--bt-accent);
}

/* Topbar DateTime */
.bt-topbar-datetime {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--bt-text-muted);
    margin-right: 16px;
}

@media (max-width: 768px) {
    .bt-shop-header-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .bt-shop-header-meta {
        gap: 6px;
    }

    .bt-shop-header-right {
        width: 100%;
        max-width: 100%;
    }
    
    .bt-shop-search-mini {
        width: 100%;
        max-width: 100%;
    }
    
    .bt-shop-search-input {
        flex: 1;
        width: auto;
        min-width: 0;
    }
    
    .bt-shop-controls-right {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    
    .bt-shop-controls-right .woocommerce-ordering {
        flex: 1;
        min-width: 140px;
    }
    
    .bt-shop-controls-right .woocommerce-ordering select {
        width: 100%;
        max-width: 100%;
    }

    .bt-shop-meta-item {
        font-size: 0.7rem;
    }
    
    .bt-topbar-datetime {
        display: none;
    }
}

/* ============================================
   VARIABLE PRODUCT SWATCHES
   ============================================ */
.bt-product-variations {
    margin-bottom: 8px;
}

.bt-var-group {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.bt-var-label {
    font-size: 0.65rem;
    color: var(--bt-text-muted);
    margin-right: 2px;
}

.bt-var-chip {
    display: inline-block;
    padding: 2px 8px;
    background: var(--bt-bg-elevated);
    border: 1px solid var(--bt-border-color);
    border-radius: var(--bt-radius-full);
    font-size: 0.6rem;
    color: var(--bt-text-secondary);
}

.bt-var-more {
    font-size: 0.6rem;
    color: var(--bt-primary);
    font-weight: var(--bt-fw-bold);
}


/* ============================================
   HOME PAGE - Products Section Grid Fix
   Force 5-column compact grid on front page
   ============================================ */
.bt-products-section ul.products,
.bt-products-section ul.products.columns-6,
.bt-products-section ul.products.columns-5,
.bt-products-section ul.products.columns-4 {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 12px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    width: 100% !important;
}

.bt-products-section ul.products::before,
.bt-products-section ul.products::after {
    display: none !important;
    content: none !important;
}

.bt-products-section ul.products li.product {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    float: none !important;
    clear: none !important;
    list-style: none !important;
}

.bt-products-section ul.products li.product.first,
.bt-products-section ul.products li.product.last {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    clear: none !important;
}

/* Home page product image compact */
.bt-products-section .bt-product-image {
    height: 220px;
    min-height: 0;
    max-height: none;
}

/* Home page responsive */
@media (max-width: 1200px) {
    .bt-products-section ul.products,
    .bt-products-section ul.products.columns-6,
    .bt-products-section ul.products.columns-5,
    .bt-products-section ul.products.columns-4 {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 992px) {
    .bt-products-section ul.products,
    .bt-products-section ul.products.columns-6,
    .bt-products-section ul.products.columns-5,
    .bt-products-section ul.products.columns-4 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .bt-products-section ul.products,
    .bt-products-section ul.products.columns-6,
    .bt-products-section ul.products.columns-5,
    .bt-products-section ul.products.columns-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    
    .bt-products-section .bt-product-image {
        height: 172px;
    }
}

@media (max-width: 480px) {
    .bt-products-section .bt-product-image {
        height: 150px;
    }
}


/* ============================================
   SHOP BANNER — when background image enabled,
   make slide text more readable on top of dark overlay
   ============================================ */
.bt-shop-banner.bt-shop-banner-has-bg .bt-shop-slide-text h2 {
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
.bt-shop-banner.bt-shop-banner-has-bg .bt-shop-slide-text p {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.40);
}
.bt-shop-banner.bt-shop-banner-has-bg .bt-shop-slide-text .bt-badge {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.bt-shop-banner.bt-shop-banner-has-bg .bt-shop-slide-price .bt-old { color: rgba(255, 255, 255, 0.65); }
.bt-shop-banner.bt-shop-banner-has-bg .bt-shop-slide-price .bt-old .woocommerce-Price-amount { color: rgba(255, 255, 255, 0.65); }
.bt-shop-banner.bt-shop-banner-has-bg .bt-shop-slide-price .bt-now,
.bt-shop-banner.bt-shop-banner-has-bg .bt-shop-slide-price .bt-now .woocommerce-Price-amount { color: #fff; }

/* Light mode: keep readability when bg image enabled */
html[data-theme="light"] .bt-shop-banner.bt-shop-banner-has-bg .bt-shop-slide-text h2 { color: #fff; }
html[data-theme="light"] .bt-shop-banner.bt-shop-banner-has-bg .bt-shop-slide-text p { color: rgba(255, 255, 255, 0.92); }

/* Vertical center slide content when banner has full height */
.bt-shop-banner.bt-shop-banner-has-height .bt-shop-slide-inner {
    min-height: var(--bt-shop-banner-h);
    align-content: center;
}
@media (max-width: 768px) {
    .bt-shop-banner.bt-shop-banner-has-height .bt-shop-slide-inner {
        min-height: min(var(--bt-shop-banner-h), 480px);
    }
}
