:root {
    --brand-crimson: #9e1b1b;
    --brand-crimson-hover: #801212;
    --text-dark: #1a202c;
    --text-muted: #718096;
    --bg-light: #f7fafc;
    --border-color: #e2e8f0;
    --radius-premium: 12px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --star-gold: #ffb100;
    --b-dark: #1a202c;
    --b-cream: #fffcf4;
    --b-cream-deep: #fef7e3;
    --t-muted: #5a6578;
    --p-transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.position-relative { position: relative !important; }
.cart-badge {
    position: absolute !important;
    top: -6px !important;
    right: -10px !important;
    background-color: var(--brand-crimson) !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    min-width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 4px !important;
    border: 1px solid #ffffff !important;
    box-shadow: 0 2px 6px rgba(158, 27, 27, 0.25) !important;
    z-index: 99 !important;
    pointer-events: none !important;
}
.shop-hero {
    background: linear-gradient(135deg, #fffcf4 0%, #fef7e3 100%);
    padding: 40px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}
.shop-hero h1 { font-size: 32px; font-weight: 800; color: var(--text-dark); margin-bottom: 8px; }
.shop-hero p { color: var(--text-muted); font-size: 14px; }
.shop-container { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.top-toolbar {
    display: flex; justify-content: space-between; align-items: center;
    background: #ffffff; padding: 16px 24px; border-radius: var(--radius-premium);
    border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); margin-bottom: 24px; gap: 16px;
}
.search-wrapper { position: relative; flex-grow: 1; max-width: 480px; }
.search-wrapper i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.modern-search-input {
    width: 100%; padding: 12px 16px 12px 44px; border: 1px solid var(--border-color);
    border-radius: 50px; outline: none; font-size: 14px; font-weight: 500; transition: var(--transition-smooth);
}
.modern-search-input:focus { border-color: var(--brand-crimson); box-shadow: 0 0 0 3px rgba(158, 27, 27, 0.1); }
.toolbar-actions { display: flex; align-items: center; gap: 12px; }
.mobile-filter-trigger {
    display: none; background: #ffffff; border: 1px solid var(--border-color);
    padding: 12px 20px; border-radius: 50px; font-weight: 600; font-size: 14px;
    cursor: pointer; gap: 8px; align-items: center;
}
.shop-layout-mesh { display: grid; grid-template-columns: 280px 1fr; gap: 30px; align-items: start; }
.filter-sidebar { background: #ffffff; border: 1px solid var(--border-color); border-radius: var(--radius-premium); padding: 24px; box-shadow: var(--shadow-sm); position: sticky; top: 20px; }
.filter-section { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.filter-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.filter-section h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.filter-links-list { list-style: none; }
.filter-links-list li { margin-bottom: 10px; }
.filter-links-list a { display: flex; justify-content: space-between; text-decoration: none; color: var(--text-dark); font-size: 14px; font-weight: 500; transition: var(--transition-smooth); }
.filter-links-list a:hover, .filter-links-list li.active a { color: var(--brand-crimson); padding-left: 4px; }
.filter-links-list span.count { background: #f1f5f9; color: var(--text-muted); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.custom-checkbox-row { display: flex; align-items: center; margin-bottom: 12px; cursor: pointer; font-size: 14px; font-weight: 500; user-select: none; }
.custom-checkbox-row input { margin-right: 10px; accent-color: var(--brand-crimson); width: 16px; height: 16px; }
.product-catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 products per row on desktop */
    gap: 30px;
    width: 100%;
}

/* 2 products per row strictly for mobile devices */
@media (max-width: 768px) {
    .product-catalog-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 products per row */
        gap: 12px;                             /* Adjust gap if needed to fit smaller screens */
    }
}

.premium-product-card {
    background: #ffffff; border: 1px solid var(--border-color); border-radius: var(--radius-premium);
    overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
    position: relative; transition: var(--transition-smooth);
}
.premium-product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(158, 27, 27, 0.15); }

.card-media-box { position: relative; width: 100%; height: 260px; background-color: #fafafa; overflow: hidden; touch-action: pan-y; padding: 12px; }

.gallery-slide-img { width: 100% !important; height: 100% !important; object-fit: contain !important; object-position: center !important; display: none; }
.gallery-slide-img.active { display: block !important; }

.card-slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-color); width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 4;
    opacity: 0; visibility: hidden; transition: var(--transition-smooth); color: var(--text-dark);
}
.card-slider-btn:hover { background-color: var(--brand-crimson); color: #ffffff; border-color: var(--brand-crimson); }
.card-media-box:hover .card-slider-btn { opacity: 1; visibility: visible; }
.slider-prev { left: 8px; }
.slider-next { right: 8px; }
.gallery-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 4; transition: var(--transition-smooth); }
.gallery-dots .dot { width: 6px; height: 6px; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 50%; }
.gallery-dots .dot.active { background: var(--brand-crimson); width: 14px; border-radius: 4px; }
.card-content-block { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; text-align: center; }
.card-content-block h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; height: 42px; overflow: hidden; }
.card-content-block h3 a { text-decoration: none; color: var(--text-dark); transition: var(--transition-smooth); }
.card-content-block h3 a:hover { color: var(--brand-crimson); }
.sentiment-badge-panel {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    background: #f1f5f9; border: 1px solid var(--border-color); padding: 6px 14px;
    border-radius: 30px; margin: 0 auto 14px auto; cursor: pointer;
    transition: var(--transition-smooth); user-select: none;
}
.sentiment-badge-panel i { color: var(--brand-crimson); font-size: 11px; }
.sentiment-badge-panel .sentiment-score { font-size: 12px; font-weight: 800; color: var(--text-dark); }
.sentiment-badge-panel .sentiment-label { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.sentiment-badge-panel:hover { background: #fff5f5; border-color: #feb2b2; transform: scale(1.02); }
.sentiment-badge-panel:hover .sentiment-label { color: var(--brand-crimson); }
.price-panel { font-size: 18px; font-weight: 700; color: var(--brand-crimson); margin-bottom: 14px; }
.variant-capsules-group { display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; margin-top: auto; }
.capsule-option { position: relative; }
.capsule-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.capsule-ui-label { display: block; padding: 6px 12px; border: 1px solid var(--border-color); background: #ffffff; border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--text-dark); cursor: pointer; transition: var(--transition-smooth); }
.capsule-option input[type="radio"]:checked + .capsule-ui-label { border-color: var(--brand-crimson); background-color: #fff5f5; color: var(--brand-crimson); }
.action-tray { display: flex; gap: 6px; width: 100%; }
.btn-main-cart {
    flex-grow: 1; height: 42px; background-color: var(--brand-crimson); color: #ffffff;
    border: 1px solid var(--brand-crimson); font-weight: 700; font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.5px; border-radius: 8px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 6px; transition: var(--transition-smooth);
}
.btn-main-cart:hover { background-color: var(--brand-crimson-hover); border-color: var(--brand-crimson-hover); box-shadow: 0 4px 12px rgba(158, 27, 27, 0.2); }
.btn-main-cart[disabled] { opacity: 0.65; pointer-events: none; background-color: #718096 !important; border-color: #718096 !important; box-shadow: none !important; }

.reviews-side-drawer { 
    position: fixed; top: 0; right: -420px; width: 400px; height: 100vh; 
    background: #ffffff; box-shadow: -6px 0 24px rgba(0,0,0,0.08); z-index: 9999; 
    display: flex; flex-direction: column; transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1); 
}
.reviews-side-drawer.open { right: 0; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; background: #fffcf4; padding: 20px 24px; border-bottom: 1px solid var(--border-color); }
.drawer-header h3 { font-size: 16px; font-weight: 800; color: var(--text-dark); margin: 0; }
.btn-drawer-close { background: none; border: none; font-size: 18px; color: var(--text-muted); cursor: pointer; transition: var(--transition-smooth); }
.btn-drawer-close:hover { color: var(--brand-crimson); }
.drawer-body-scroller { flex-grow: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.drawer-section-title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-dark); margin: 0 0 14px 0; border-bottom: 2px solid var(--border-color); padding-bottom: 6px; }
.drawer-reviews-feed-container { display: flex; flex-direction: column; gap: 12px; }
.compact-review-card { background: var(--bg-light); border: 1px solid var(--border-color); border-radius: 8px; padding: 14px; }
.compact-review-card .card-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 12px; }
.compact-review-card .user { font-weight: 700; color: var(--text-dark); }
.compact-review-card .date { color: var(--text-muted); font-weight: 500; }
.compact-review-card p { font-size: 13px; color: #2d3748; line-height: 1.5; margin: 6px 0 0 0; font-weight: 500; }
.input-group-row { margin-bottom: 14px; }
.input-group-row label { display: block; font-size: 12px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.input-text-field { width: 100%; border: 1px solid var(--border-color); padding: 10px 12px; border-radius: 6px; outline: none; font-size: 13px; transition: var(--transition-smooth); }
.input-text-field:focus { border-color: var(--brand-crimson); }
.interactive-rating-stars { display: flex; gap: 6px; font-size: 18px; margin-bottom: 4px; }
.interactive-rating-stars i { color: #e2e8f0; cursor: pointer; transition: var(--transition-smooth); }
.interactive-rating-stars i.selected { color: var(--star-gold); }
.btn-submit-review { width: 100%; background: var(--brand-crimson); border: 1px solid var(--brand-crimson); color: #ffffff; padding: 12px; font-weight: 700; border-radius: 6px; cursor: pointer; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; transition: var(--transition-smooth); }
.btn-submit-review:hover { background: var(--brand-crimson-hover); }
.drawer-lockout-cta-box { text-align: center; background: #fffcf4; border: 1px dashed #fbd38d; border-radius: 8px; padding: 20px; }
.drawer-lockout-cta-box p { font-size: 13px; font-weight: 600; color: #7b341e; margin: 0 0 14px 0; line-height: 1.5; }
.btn-lockout-login {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; background: #dd6b20; color: #ffffff; border: 1px solid #dd6b20;
    padding: 11px; font-weight: 700; font-size: 12px; border-radius: 6px;
    text-transform: uppercase; letter-spacing: 0.5px; text-decoration: none; transition: var(--transition-smooth);
}
.btn-lockout-login:hover { background: #c05621; border-color: #c05621; }

.quickview-drawer-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(26, 32, 44, 0.25); backdrop-filter: blur(4px);
    z-index: 10000; display: none;
}
.quickview-drawer-overlay.active { display: block; }
.quickview-side-drawer {
    position: fixed; top: 0; right: -560px; width: 520px; height: 100vh;
    background: var(--b-cream); border-left: 2px solid var(--b-dark);
    box-shadow: -10px 0 40px rgba(0,0,0,0.03); z-index: 10001;
    display: flex; flex-direction: column; overflow-y: auto;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.quickview-side-drawer.open { right: 0; }
.btn-quickview-close {
    position: absolute; top: 20px; right: 20px; background: none;
    border: none; font-size: 22px; color: var(--b-dark); cursor: pointer; z-index: 10002;
}
.quickview-body-loader { display: flex; flex-direction: column; width: 100%; }
.drawer-content-essence { padding: 40px 30px; display: flex; flex-direction: column; align-items: flex-start; }
.drawer-meta-tag { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--t-muted); margin-bottom: 8px; }
.drawer-content-essence h2 { font-size: 32px; font-weight: 800; text-transform: uppercase; line-height: 1.1; margin-bottom: 10px; }
.drawer-price { font-size: 24px; font-weight: 800; margin-bottom: 20px; }
.drawer-section-heading { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--t-muted); margin-bottom: 10px; }
.drawer-action-tray { display: flex; gap: 12px; width: 100%; }
.drawer-quantity-stepper { display: flex; border: 1px solid var(--b-dark); height: 48px; }
.drawer-quantity-stepper button { background: transparent; border: none; width: 36px; font-size: 16px; font-weight: 700; cursor: pointer; }
.drawer-quantity-stepper input { width: 40px; border: none; background: transparent; text-align: center; font-size: 13px; font-weight: 700; outline: none; }
.btn-drawer-cart { flex-grow: 1; height: 48px; background: var(--b-dark); color: var(--b-cream); border: 1px solid var(--b-dark); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: var(--p-transition); }
.btn-drawer-cart:hover { background: transparent; color: var(--b-dark); }
.drawer-specs-sheet { width: 100%; border-top: 1px solid var(--b-dark); }
.spec-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(26, 32, 44, 0.06); font-size: 12px; font-weight: 700; }
.spec-row label { color: var(--t-muted); text-transform: uppercase; }

@media (max-width: 992px) {
    .shop-layout-mesh { 
        grid-template-columns: 1fr; 
    }
    
    .filter-sidebar { 
        position: fixed; 
        bottom: -100%; 
        left: 0 !important; 
        right: 0;
        top: auto !important;
        width: 100%;
        max-height: 85vh;
        z-index: 10005; 
        overflow-y: auto; 
        border-radius: 20px 20px 0 0; 
        border: none;
        border-top: 2px solid var(--b-dark);
        box-shadow: 0 -10px 30px rgba(0,0,0,0.15);
        transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
        padding: 24px 24px 40px 24px;
    }
    
    .filter-sidebar.open { 
        bottom: 0; 
    }
    
    .mobile-filter-trigger { 
        display: flex; 
        height: 46px;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--text-dark);
        background: var(--text-dark);
        color: #ffffff;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-radius: 8px;
    }
    .mobile-filter-trigger:hover {
        background: var(--brand-crimson);
        border-color: var(--brand-crimson);
    }
    
    .sidebar-overlay { 
        display: none; 
        position: fixed; 
        top: 0; 
        left: 0; 
        width: 100vw; 
        height: 100vh; 
        background: rgba(26, 32, 44, 0.4); 
        backdrop-filter: blur(2px);
        z-index: 10004; 
    }
    
    .sidebar-overlay.active { 
        display: block; 
    }
    
    .card-slider-btn { 
        display: none !important; 
    }

    .filter-section .custom-checkbox-row {
        display: inline-flex;
        margin-right: 8px;
        margin-bottom: 10px;
        font-size: 13px;
        padding: 8px 16px;
        border: 1px solid var(--border-color);
        background: #ffffff;
        border-radius: 30px;
        transition: var(--transition-smooth);
    }
    
    .filter-section .custom-checkbox-row input[type="radio"],
    .filter-section .custom-checkbox-row input[type="checkbox"] {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }
    
    .filter-section .custom-checkbox-row:has(input:checked) {
        border-color: var(--brand-crimson);
        background-color: #fff5f5;
        color: var(--brand-crimson);
        font-weight: 700;
    }
    
    .filter-section h4 {
        margin-bottom: 12px;
        font-size: 12px;
    }
    
    .filter-links-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .filter-links-list li {
        margin-bottom: 0;
    }
    .filter-links-list a {
        padding: 8px 16px;
        border: 1px solid var(--border-color);
        background: #ffffff;
        border-radius: 30px;
    }
    .filter-links-list li.active a {
        border-color: var(--brand-crimson);
        background-color: #fff5f5;
        color: var(--brand-crimson);
        font-weight: 700;
        padding-left: 16px;
    }
}

@media (max-width: 576px) {
    .top-toolbar { flex-direction: column; align-items: stretch; }
    .toolbar-actions { justify-content: space-between; }
    .mobile-filter-trigger { flex: 1; justify-content: center; text-align: center; }
    .reviews-side-drawer { width: 100vw; right: -100vw; }
    .quickview-side-drawer { width: 100vw; right: -100vw; border-left: none; }
}

.drawer-media-canvas {
        position: relative;
        width: 100%;
        height: 320px;
        background-color: #f8fafc;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        border-radius: 12px;
        margin-bottom: 20px;
        padding: 12px;
        border: 1px solid var(--border-color, #e2e8f0);
        touch-action: pan-y;
    }
    
    .drawer-media-canvas .gallery-slide-img { 
        width: 100% !important; 
        height: 100% !important; 
        object-fit: contain !important; 
        object-position: center !important; 
        display: none; 
    }
    .drawer-media-canvas .gallery-slide-img.active { 
        display: block !important; 
    }
    
    .drawer-slider-btn {
        position: absolute; 
        top: 50%; 
        transform: translateY(-50%); 
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid var(--border-color, #e2e8f0); 
        width: 36px; 
        height: 36px; 
        border-radius: 50%;
        display: flex; 
        align-items: center; 
        justify-content: center; 
        cursor: pointer; 
        z-index: 10;
        color: var(--text-dark, #1a202c);
        transition: all 0.25s ease;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
    .drawer-slider-btn:hover { 
        background-color: var(--brand-crimson, #9e1b1b); 
        color: #ffffff; 
        border-color: var(--brand-crimson, #9e1b1b); 
    }
    .drawer-prev { left: 12px; }
    .drawer-next { right: 12px; }
    
    .drawer-gallery-dots { 
        position: absolute; 
        bottom: 12px; 
        left: 50%; 
        transform: translateX(-50%); 
        display: flex; 
        gap: 6px; 
        z-index: 10; 
    }
    .drawer-gallery-dots .dot { 
        width: 6px; 
        height: 6px; 
        background: rgba(0, 0, 0, 0.25); 
        border: 1px solid rgba(255, 255, 255, 0.6); 
        border-radius: 50%; 
        transition: all 0.25s ease;
    }
    .drawer-gallery-dots .dot.active { 
        background: var(--brand-crimson, #9e1b1b); 
        width: 14px; 
        border-radius: 4px; 
    }

    .drawer-error-msg {
        padding: 40px;
        text-align: center;
        font-weight: 700;
        color: var(--brand-crimson, #9e1b1b);
    }
    .drawer-meta-tag {
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        color: var(--brand-crimson, #9e1b1b);
        letter-spacing: 0.5px;
        display: inline-block;
        margin-bottom: 6px;
    }
    .drawer-content-essence h2 {
        font-size: 22px;
        font-weight: 800;
        color: var(--text-dark, #1a202c);
        margin-bottom: 10px;
    }
    .drawer-brief-snippet {
        font-size: 14px; 
        font-weight: 600;
        color: #4a5568;
        line-height: 1.5;
        margin-bottom: 14px;
    }
    .drawer-full-description {
        font-size: 13.5px;
        font-weight: 400;
        color: var(--text-muted, #718096);
        line-height: 1.6;
        margin-bottom: 24px;
    }
    .drawer-divider {
        border: 0;
        border-top: 1px dashed var(--border-color, #e2e8f0);
        margin: 16px 0;
    }
    .drawer-section-heading {
        font-size: 14px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--text-dark, #1a202c);
        margin-bottom: 12px;
    }
    .drawer-spec-heading-margin {
        margin-top: 24px;
    }
    .drawer-specs-sheet .spec-row {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border-bottom: 1px solid var(--border-color, #e2e8f0);
        font-size: 13px;
    }
    .spec-row label { font-weight: 700; color: var(--text-dark, #1a202c); }
    .spec-row span { color: var(--text-muted, #718096); font-weight: 500; }
    .drawer-no-specs {
        font-size: 13px;
        color: var(--text-muted, #718096);
        padding: 10px 0;
        font-style: italic;
    }
