/* ==========================================================================
   CSS Variables & Reset (Minimalist Earth Tone)
   ========================================================================== */
:root {
    /* Color System (Ultra-Modern High-End Dark) */
    --bg-dark: #0F0F12; /* Rich Deep Onyx */
    --bg-light: #F8F9FA; /* Pure Bone White */
    
    /* Active Theme Mappings */
    --bg-color: var(--bg-dark);
    --bg-elevated: #18181C; /* Polished Graphite */
    --bg-glass: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.08);
    
    --text-primary: var(--bg-light);
    --text-secondary: #94A3B8; /* Muted Slate */
    --text-dark: #0F0F12;
    
    /* Modern Accent (Electric Coral / Fuego) */
    --accent-primary: #FF4D2D; 
    --accent-earth: var(--accent-primary); 
    --accent-glow: rgba(255, 77, 45, 0.35);
    --accent-hover: rgba(255, 77, 45, 0.15);
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-main: 'Outfit', sans-serif;
    
    /* Layout */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-pill: 50px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: -1px;
}
.section-title span {
    color: var(--text-secondary);
    font-weight: 400;
}
.text-center { text-align: center; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.w-100 { width: 100%; }

/* ==========================================================================
   Buttons (Earth Accent)
   ========================================================================== */
button { font-family: var(--font-main); border: none; cursor: pointer; }

/* Primary Button */
.btn-primary, .btn-primary-sm {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    transition: var(--transition);
    background-color: var(--accent-earth) !important;
    color: var(--bg-light) !important;
    text-align: center;
    border: none;
    box-shadow: none;
}
.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--accent-glow) !important;
}
.btn-primary:disabled {
    background-color: #333 !important;
    color: #666 !important;
    box-shadow: none !important;
    cursor: not-allowed;
}

.btn-primary-sm { 
    padding: 0.6rem 1.2rem; 
    font-size: 0.9rem; 
    box-shadow: 0 0 10px var(--accent-glow) !important;
}

/* Outline Button */
.btn-outline {
    background-color: transparent !important;
    color: var(--text-primary) !important;
    border: 1.5px solid var(--accent-earth) !important;
    border-radius: var(--radius-pill);
    padding: 1rem 2rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}
.btn-outline:hover {
    background-color: var(--accent-hover) !important;
    transform: translateY(-3px);
}

.btn-text {
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}
.btn-text:hover { color: var(--text-primary); }

.btn-back {
    background: transparent;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-back:hover { color: var(--accent-earth); }

/* ==========================================================================
   Navbar (Light Theme)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0; width: 100%; z-index: 100;
    background: var(--bg-light);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.nav-container {
    max-width: 1200px; margin: 0 auto;
    padding: 1rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
}
.nav-logo { 
    height: 35px; 
    filter: invert(1) brightness(0.1); 
}
.nav-actions { display: flex; gap: 1.5rem; align-items: center; color: var(--text-dark); }
.nav-actions .btn-text { color: var(--text-dark); }
.nav-actions .btn-text:hover { color: var(--accent-earth); }

.cart-btn { position: relative; color: var(--text-dark); }
.cart-badge {
    background-color: var(--accent-earth);
    color: var(--bg-light);
    border-radius: 50px;
    padding: 0.1rem 0.5rem;
    font-size: 0.75rem;
    margin-left: 5px;
    font-weight: bold;
}

/* ==========================================================================
   App Container & Views
   ========================================================================== */
.app-container {
    max-width: 1200px; margin: 0 auto;
    padding: 8rem 2rem 4rem;
    min-height: 100vh;
}
.view {
    display: none;
    animation: fadeIn 0.4s ease;
}
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   Catalog Layout & Sidebar
   ========================================================================== */
.catalog-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    align-items: start;
}

.catalog-sidebar {
    position: sticky;
    top: 100px;
    background: var(--bg-elevated);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.sidebar-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1.5rem; border-bottom: 1px solid var(--border-glass); padding-bottom: 0.5rem;
}
.sidebar-header h3 { font-size: 1.2rem; }

.close-sidebar-btn { display: none; font-size: 1.5rem; padding: 0; line-height: 1; }

.filter-group { margin-bottom: 1.5rem; }
.filter-group h4 { font-size: 0.95rem; margin-bottom: 0.8rem; color: var(--text-dark); font-weight: 600; }

.filter-options { display: flex; flex-direction: column; gap: 0.5rem; }
.filter-options label {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.9rem; color: var(--text-secondary); cursor: pointer;
}
.filter-options input[type="checkbox"] {
    accent-color: var(--accent-earth);
    width: 16px; height: 16px;
    cursor: pointer;
}

.filter-options-grid {
    display: grid; grid-template-columns: 1fr 1fr;
}

.price-range input[type="range"] {
    width: 100%; margin-bottom: 0.5rem; accent-color: var(--accent-earth);
}

.mobile-filter-btn { display: none; }

@media (max-width: 900px) {
    .catalog-layout { grid-template-columns: 1fr; }
    .catalog-sidebar {
        position: fixed; top: 0; left: -100%; width: 300px; height: 100vh;
        z-index: 200; border-radius: 0; transition: left 0.3s ease;
        max-height: 100vh; box-shadow: 20px 0 50px rgba(0,0,0,0.5);
    }
    .catalog-sidebar.open { left: 0; }
    .close-sidebar-btn { display: block; }
    .mobile-filter-btn { display: block; }
}

/* ==========================================================================
   Catalog Grid
   ========================================================================== */
.grid-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}
.product-card {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid color-mix(in srgb, var(--accent-earth) 30%, transparent);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}
.product-card:hover { 
    transform: translateY(-5px); 
    border-color: var(--accent-earth); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.product-img-wrapper {
    position: relative; padding-top: 100%; background: #f5f5f5; overflow: hidden;
}
.product-img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-img { transform: scale(1.05); }
.product-info { padding: 1.5rem; color: var(--text-dark); }
.product-info h5 { font-size: 1.1rem; margin-bottom: 0.5rem; font-weight: 700; }
.product-info p { color: #4a4a4a; }
.price { color: var(--text-dark); font-weight: 600; margin-bottom: 1rem; }

/* ==========================================================================
   Product Detail
   ========================================================================== */
.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--bg-elevated);
    padding: 3rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
}
.detail-img { width: 100%; border-radius: var(--radius-sm); }
.detail-info h2 { font-size: 2.5rem; margin-bottom: 1rem; line-height: 1.1; font-weight: 800; }
.detail-price { font-size: 1.8rem; color: var(--text-primary); font-weight: 800; margin-bottom: 2rem; }

.variant-group { margin-bottom: 2rem; }
.variant-group h4 { margin-bottom: 0.8rem; color: var(--text-secondary); font-weight: 500; }

/* Selectors */
select {
    width: 100%; padding: 1rem;
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid color-mix(in srgb, var(--accent-earth) 30%, transparent);
    border-radius: var(--radius-sm);
    font-family: inherit; font-size: 1rem;
    margin-bottom: 1rem;
}
select:focus { outline: none; border-color: var(--accent-earth); box-shadow: 0 0 0 2px var(--accent-glow); }

.size-selector { display: flex; gap: 0.5rem; }
.size-btn {
    width: 45px; height: 45px;
    border-radius: var(--radius-sm);
    background: var(--bg-color); 
    border: 1.5px solid var(--border-glass);
    color: var(--text-primary); font-weight: 600;
    transition: var(--transition);
}
.size-btn:hover { border-color: var(--accent-earth); background: var(--accent-hover); }
.size-btn.active { background: var(--accent-earth); color: var(--bg-light); border-color: var(--accent-earth); }

/* Color Swatches (Earth ring when active) */
.color-selector { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.color-swatch {
    width: 35px; height: 35px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--border-glass);
    transition: var(--transition);
}
.color-swatch:hover { transform: scale(1.1); }
.color-swatch.active {
    border: 2px solid var(--accent-earth);
    transform: scale(1.1);
    box-shadow: 0 0 0 2px var(--bg-color), 0 0 0 4px var(--accent-earth);
}

/* ==========================================================================
   Cart
   ========================================================================== */
.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}
.cart-items { display: flex; flex-direction: column; gap: 1rem; }
.cart-item {
    display: flex; gap: 1.5rem;
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 1.5rem; border-radius: var(--radius-md);
    border: 1px solid color-mix(in srgb, var(--accent-earth) 30%, transparent);
    align-items: center;
}
.cart-item-img { width: 80px; height: 80px; border-radius: var(--radius-sm); object-fit: cover; }
.cart-item-info { flex-grow: 1; }
.cart-item-info h4 { margin-bottom: 0.3rem; font-weight: 700; }
.cart-item-info p { color: #4a4a4a; font-size: 0.85rem; }
.cart-item-price { font-weight: 800; font-size: 1.1rem; }
.cart-item-actions { display: flex; align-items: center; gap: 1rem; }
.qty-btn { 
    width: 30px; height: 30px; border-radius: 50%; 
    background: transparent; color: var(--text-dark); 
    font-weight: bold; border: 1.5px solid var(--accent-earth); 
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem; padding-bottom: 2px;
}
.qty-btn:hover { background: var(--accent-hover); }
.remove-btn { color: #e63946; background: transparent; font-size: 0.85rem; text-decoration: underline; cursor: pointer; border: none; }

.cart-summary {
    background: var(--bg-elevated);
    padding: 2rem; border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    height: fit-content;
}
.cart-summary h3 { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-glass); font-weight: 700; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 1rem; color: var(--text-secondary); }
.summary-row.total { font-size: 1.5rem; font-weight: 800; color: var(--text-primary); margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border-glass); }
.shipping-note { font-size: 0.8rem; color: var(--text-secondary); margin-top: 1rem; margin-bottom: 1.5rem; }

/* ==========================================================================
   Checkout
   ========================================================================== */
.checkout-container {
    max-width: 600px; margin: 0 auto;
    background: var(--bg-elevated);
    padding: 3rem; border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
}
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; color: var(--text-secondary); font-size: 0.9rem; }
.form-group input, .form-group select {
    width: 100%; padding: 1rem;
    background: var(--bg-light); color: var(--text-dark);
    border: 1px solid color-mix(in srgb, var(--accent-earth) 30%, transparent); 
    border-radius: var(--radius-sm);
    font-family: inherit; font-size: 1rem;
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--accent-earth); box-shadow: 0 0 0 2px var(--accent-glow); }

.alert-box {
    background: var(--accent-hover);
    border-left: 4px solid var(--accent-earth);
    padding: 1rem; border-radius: var(--radius-sm);
    color: var(--text-primary); font-size: 0.9rem;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px);
    background: var(--bg-light); color: var(--text-dark);
    padding: 1rem 2rem; border-radius: var(--radius-pill); font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1.5px solid var(--accent-earth);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
    opacity: 0;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-color);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    padding: 2rem;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--accent-earth);
}

.modal-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.modal-images {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-images img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glass);
}

/* ==========================================================================
   Tweaks Panel
   ========================================================================== */
.tweaks-panel {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--bg-light);
    padding: 15px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--border-glass);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tweaks-panel h5 {
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}
.tweak-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s;
}
.tweak-btn:hover { transform: scale(1.1); }
.tweak-btn.active { border-color: var(--text-dark); }

/* Responsive */
@media (max-width: 768px) {
    .product-detail-container, .cart-container { grid-template-columns: 1fr; gap: 2rem; padding: 1.5rem; }
    .checkout-container { padding: 1.5rem; }
    .nav-actions .btn-text { display: none; }
    .cart-item { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Catalog & Product Detail Refinements (High Contrast & Swatches)
   ========================================================================== */
.btn-catalog-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1.2rem;
    margin-top: 0.75rem;
    background: var(--accent-earth) !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--radius-pill);
    border: none;
    box-shadow: 0 4px 14px var(--accent-glow);
    transition: var(--transition);
    cursor: pointer;
}
.btn-catalog-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px var(--accent-glow);
    filter: brightness(1.1);
}

.color-swatch-container {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
}
.color-swatch {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
}
.color-swatch:hover {
    transform: scale(1.15);
}
.color-swatch.active {
    border-color: var(--accent-earth);
    box-shadow: 0 0 0 3px var(--accent-glow);
    transform: scale(1.1);
}

.option-chip-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.option-chip {
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius-pill);
    background: var(--bg-elevated);
    border: 1.5px solid var(--border-glass);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}
.option-chip:hover {
    border-color: var(--accent-earth);
    background: var(--accent-hover);
}
.option-chip.active {
    background: var(--accent-earth) !important;
    color: #ffffff !important;
    border-color: var(--accent-earth) !important;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.detail-preview-box {
    position: relative;
    width: 100%;
    height: 420px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 1.5rem;
}
.detail-preview-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
}
.position-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    color: var(--accent-earth);
    border: 1px solid var(--border-glass);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Modal Config Overlay */
.modal-config-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow-y: auto;
    animation: fadeInModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-config-card {
    position: relative;
    background: var(--bg-dark);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    max-width: 960px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}
.modal-close-btn:hover {
    background: var(--accent-earth);
    color: #ffffff;
    transform: scale(1.1);
}

.info-trust-box {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.info-trust-box strong {
    color: var(--text-primary);
}

@keyframes fadeInModal {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 768px) {
    .modal-config-card {
        padding: 1rem;
        max-height: 95vh;
    }
    .modal-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }
    .detail-preview-box {
        height: 240px !important;
    }
    .modal-close-btn {
        top: 0.6rem !important;
        right: 0.6rem !important;
        width: 34px !important;
        height: 34px !important;
        font-size: 1.2rem !important;
    }
}

/* Cart Drawer Flotante (Slide-Over Panel) */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: flex-end;
    animation: fadeInModal 0.25s ease-out;
}

.cart-drawer-panel {
    background: var(--bg-dark);
    color: var(--text-primary);
    width: 100%;
    max-width: 440px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
    border-left: 1px solid var(--border-glass);
    animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-glass);
    background: var(--bg-elevated);
}

.cart-drawer-close {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}
.cart-drawer-close:hover {
    color: var(--accent-earth);
}

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cart-drawer-footer {
    padding: 1.5rem;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-glass);
}

/* Drawer Cart Item Card Styling */
.cart-drawer-body .cart-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    transition: var(--transition);
}

.cart-drawer-body .cart-item-img {
    width: 68px;
    height: 68px;
    object-fit: contain;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 4px;
    flex-shrink: 0;
}

.cart-drawer-body .cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-drawer-body .cart-item-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-drawer-body .cart-item-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

.cart-drawer-body .cart-item-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--accent-earth);
    margin-top: 0.3rem;
}

.cart-drawer-body .cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cart-drawer-body .qty-controls {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    padding: 2px 6px;
}

.cart-drawer-body .qty-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-weight: 800;
    font-size: 1rem;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}
.cart-drawer-body .qty-btn:hover {
    background: var(--accent-earth);
    color: #fff;
}

.cart-drawer-body .qty-val {
    font-size: 0.85rem;
    font-weight: 700;
    min-width: 16px;
    text-align: center;
}

.cart-drawer-body .remove-btn {
    background: transparent;
    border: none;
    color: #ef4444;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 2px 4px;
    opacity: 0.8;
    transition: var(--transition);
}
.cart-drawer-body .remove-btn:hover {
    opacity: 1;
    text-decoration: underline;
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}



