/* ================================================
   IES STORE - CUSTOMER STOREFRONT CSS
   Premium, modern e-commerce styling
   ================================================ */

:root {
    /* Premium Color Palette */
    --store-primary: #0f172a;       /* Deep Slate */
    --store-primary-light: #1e293b; 
    --store-accent: #0ea5e9;        /* Vibrant Sky Blue */
    --store-accent-hover: #0284c7;  
    --store-accent-glow: rgba(14, 165, 233, 0.4);
    
    --store-bg: #f8fafc;
    --store-surface: #ffffff;
    --store-text: #1e293b;
    --store-text-muted: #64748b;
    
    --store-border: #e2e8f0;
    --store-border-hover: #cbd5e1;
    
    --store-radius-sm: 8px;
    --store-radius: 16px;
    --store-radius-lg: 24px;
    
    --store-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --store-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    --store-shadow-hover: 0 20px 40px rgba(15, 23, 42, 0.12);
    
    --store-font: 'Inter', system-ui, sans-serif;
    --store-heading-font: 'Space Grotesk', system-ui, sans-serif;
    
    --store-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === BASE & ANIMATIONS === */
* { box-sizing: border-box; }
body.store-body {
    font-family: var(--store-font);
    background-color: var(--store-bg);
    color: var(--store-text);
    line-height: 1.6;
    margin: 0; padding: 0;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 80px; 
}
h1, h2, h3, h4, h5, h6 { font-family: var(--store-heading-font); margin: 0 0 1rem; color: var(--store-primary); font-weight: 700; }
a { color: var(--store-accent); text-decoration: none; transition: var(--store-transition); }
a:hover { color: var(--store-accent-hover); }
img { max-width: 100%; height: auto; display: block; }

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* === LAYOUT === */
.store-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 100px 1.5rem 2rem; /* Clear fixed nav */
}
.store-view { display: none; animation: fadeSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.store-view.active { display: block; }

/* === HEADER / NAV (Glassmorphism) === */
.store-header-inner {
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--store-radius-lg);
    padding: 0.75rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--store-shadow-sm);
    position: sticky;
    top: 90px; /* Below main nav */
    z-index: 90;
}
.store-brand {
    font-family: var(--store-heading-font);
    font-size: 1.5rem; font-weight: 800; 
    color: var(--store-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}
.store-nav-actions { display: flex; align-items: center; gap: 0.75rem; }

/* Secondary Header Buttons */
.nav-pill-btn {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--store-surface);
    border: 1px solid var(--store-border);
    border-radius: 100px;
    color: var(--store-text);
    font-weight: 600; font-size: 0.875rem;
    cursor: pointer;
    transition: var(--store-transition);
    position: relative;
}
.nav-pill-btn:hover {
    border-color: var(--store-accent);
    color: var(--store-accent);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.1);
    transform: translateY(-1px);
}
.cart-badge {
    position: absolute; top: -5px; right: -5px;
    background: var(--store-accent); color: white;
    font-size: 0.7rem; font-weight: 800;
    width: 20px; height: 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 2px white;
}

/* === HERO SECTION === */
.store-hero {
    background: url('../store-hero-bg.png') center/cover no-repeat;
    border-radius: var(--store-radius-lg);
    padding: 5rem 3rem; margin: 2rem 0 4rem;
    position: relative; overflow: hidden;
    display: flex; align-items: center;
    box-shadow: var(--store-shadow);
}
/* Dark Overlay for Text Legibility */
.store-hero::before {
    content: ''; position: absolute; inset: 0;
    background: rgba(15, 23, 42, 0.7);
    z-index: 1;
}
/* Grid Pattern Overlay */
.store-hero::after {
    content: ''; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 1;
}
.store-hero-content { 
    position: relative; z-index: 2; 
    max-width: 600px;
}
.store-hero h1 { 
    color: white; font-size: 3.5rem; line-height: 1.1; 
    margin-bottom: 1.5rem; letter-spacing: -0.02em;
    animation: fadeSlideUp 0.6s ease-out;
}
.store-hero p { 
    font-size: 1.125rem; color: #cbd5e1; 
    margin-bottom: 2.5rem; line-height: 1.7;
    animation: fadeSlideUp 0.6s ease-out 0.1s both;
}
.store-hero .s-btn {
    animation: fadeSlideUp 0.6s ease-out 0.2s both;
}

/* === BUTTONS === */
.s-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.875rem 1.75rem; border-radius: 100px; font-weight: 600;
    font-family: inherit; font-size: 1rem; cursor: pointer;
    border: none; transition: var(--store-transition); gap: 0.5rem;
}
.s-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.s-btn-primary { 
    background: var(--store-accent); color: white; 
    box-shadow: 0 4px 15px var(--store-accent-glow);
}
.s-btn-primary:hover:not(:disabled) { 
    background: var(--store-accent-hover); 
    transform: translateY(-2px); 
    box-shadow: 0 8px 25px var(--store-accent-glow);
}
.s-btn-outline { 
    background: transparent; border: 2px solid var(--store-border); 
    color: var(--store-text); 
}
.s-btn-outline:hover { 
    border-color: var(--store-accent); color: var(--store-accent); 
    background: rgba(14, 165, 233, 0.05);
}
.s-btn-white {
    background: white; color: var(--store-primary);
}
.s-btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.s-btn-full { width: 100%; border-radius: var(--store-radius-sm); }

/* === PRODUCT GRID & FILTERS === */
.toolbar-filters {
    display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.5rem;
    align-items: center; justify-content: space-between;
}
.search-input-wrapper {
    position: relative; flex: 1; min-width: 280px; max-width: 400px;
}
.search-input-wrapper svg {
    position: absolute; left: 1.25rem; top: 50%; transform: translateY(-50%); color: var(--store-text-muted);
}
.store-input {
    width: 100%; padding: 0.875rem 1.25rem; border: 1px solid var(--store-border);
    border-radius: 100px; font-family: inherit; font-size: 1rem;
    background: var(--store-surface); color: var(--store-text);
    transition: var(--store-transition);
}
.search-input-wrapper .store-input { padding-left: 3rem; }
.store-input:focus { 
    outline: none; border-color: var(--store-accent); 
    box-shadow: 0 0 0 4px var(--store-accent-glow); 
}

.category-chips { display: flex; gap: 0.75rem; overflow-x: auto; padding-bottom: 0.5rem; scrollbar-width: none; }
.category-chips::-webkit-scrollbar { display: none; }
.chip {
    padding: 0.6rem 1.25rem; border-radius: 100px; background: var(--store-surface);
    border: 1px solid var(--store-border); color: var(--store-text-muted);
    font-size: 0.875rem; font-weight: 600; cursor: pointer; white-space: nowrap;
    transition: var(--store-transition);
}
.chip.active, .chip:hover { 
    background: var(--store-primary); color: white; border-color: var(--store-primary); 
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

/* === PRODUCT CARDS === */
.product-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}
.product-card {
    background: var(--store-surface); border-radius: var(--store-radius);
    overflow: hidden; border: 1px solid var(--store-border);
    transition: var(--store-transition);
    display: flex; flex-direction: column;
    position: relative;
}
.product-card:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--store-shadow-hover); 
    border-color: var(--store-border-hover); 
}
.product-image-wrap { 
    position: relative; aspect-ratio: 4/3; overflow: hidden; 
    background: var(--store-bg); display: flex; align-items: center; justify-content: center; 
}
.product-image-wrap img { 
    width: 100%; height: 100%; object-fit: contain; 
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); 
}
.product-card:hover .product-image-wrap img { transform: scale(1.08); }

.product-badge {
    position: absolute; top: 1rem; left: 1rem; 
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(4px);
    color: var(--store-primary); border: 1px solid rgba(0,0,0,0.05);
    font-size: 0.75rem; font-weight: 700; padding: 0.35rem 0.75rem; 
    border-radius: 100px; z-index: 2; box-shadow: var(--store-shadow-sm);
}

.product-info { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: 0.75rem; color: var(--store-text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; margin-bottom: 0.5rem; }
.product-title { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.75rem; font-family: var(--store-font); line-height: 1.4; color: var(--store-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.product-pricing-row {
    margin-top: auto; display: flex; align-items: center; justify-content: space-between;
}
.product-pricing { display: flex; flex-direction: column; }
.price { font-size: 1.25rem; font-weight: 800; color: var(--store-primary); font-family: var(--store-heading-font); }
.mrp { font-size: 0.875rem; color: var(--store-text-muted); text-decoration: line-through; }

/* Icon-only Add to cart button for grid */
.add-cart-icon-btn {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--store-bg); border: 1px solid var(--store-border);
    color: var(--store-primary); display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--store-transition);
}
.product-card:hover .add-cart-icon-btn:not(:disabled) {
    background: var(--store-primary); color: white; border-color: var(--store-primary);
}
.add-cart-icon-btn:hover:not(:disabled) {
    transform: scale(1.1); box-shadow: var(--store-shadow-sm);
}
.add-cart-icon-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* === PRODUCT DETAIL PAGE === */
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 1rem; align-items: start; }
.detail-gallery { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 100px; }
.main-image { border-radius: var(--store-radius); overflow: hidden; background: var(--store-bg); aspect-ratio: 1; border: 1px solid var(--store-border); }
.main-image img { width: 100%; height: 100%; object-fit: contain; }
.thumb-list { display: flex; gap: 0.75rem; overflow-x: auto; padding-bottom: 0.5rem; }
.thumb-item { width: 80px; height: 80px; border-radius: var(--store-radius-sm); cursor: pointer; border: 2px solid transparent; overflow: hidden; opacity: 0.7; transition: var(--store-transition); }
.thumb-item:hover { opacity: 1; }
.thumb-item.active { border-color: var(--store-accent); opacity: 1; }
.thumb-item img { width: 100%; height: 100%; object-fit: contain; }

.detail-info h1 { font-size: 2.5rem; margin-bottom: 1rem; letter-spacing: -0.02em; line-height: 1.2; }
.detail-price-wrap { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; padding-bottom: 1.5rem; border-bottom: 1px solid var(--store-border); }
.detail-price { font-size: 2.5rem; font-weight: 800; color: var(--store-primary); font-family: var(--store-heading-font); }
.detail-desc { color: var(--store-text-muted); margin-bottom: 2.5rem; white-space: pre-line; font-size: 1.05rem; line-height: 1.7; }

.qty-selector { display: inline-flex; align-items: center; border: 1px solid var(--store-border); border-radius: 100px; background: var(--store-surface); height: 48px; }
.qty-btn { background: none; border: none; width: 48px; height: 100%; font-size: 1.25rem; cursor: pointer; color: var(--store-text); transition: var(--store-transition); border-radius: 100px; }
.qty-btn:hover { background: var(--store-bg); color: var(--store-accent); }
.qty-input { width: 50px; text-align: center; border: none; background: transparent; font-size: 1rem; font-weight: 700; -moz-appearance: textfield; color: var(--store-primary); }
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.detail-actions { display: flex; gap: 1rem; margin-bottom: 2rem; }

.stock-status { font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0.75rem; border-radius: 100px; }
.stock-status.in-stock { background: #dcfce7; color: #166534; }
.stock-status.low-stock { background: #fef3c7; color: #92400e; }
.stock-status.out-stock { background: #fee2e2; color: #991b1b; }

/* === SLIDE-OUT CART (NEW) === */
.cart-overlay {
    position: fixed; inset: 0; background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(4px);
    z-index: 1000; opacity: 0; visibility: hidden; transition: var(--store-transition);
}
.cart-overlay.active { opacity: 1; visibility: visible; }

.cart-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: 100%; max-width: 450px;
    background: var(--store-surface); z-index: 1001;
    transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}
.cart-drawer.active { transform: translateX(0); }

.cart-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.5rem; border-bottom: 1px solid var(--store-border);
}
.cart-header h2 { margin: 0; font-size: 1.5rem; }
.cart-close-btn {
    background: var(--store-bg); border: none; width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: var(--store-transition); color: var(--store-text-muted);
}
.cart-close-btn:hover { background: #f1f5f9; color: var(--store-primary); transform: rotate(90deg); }

.cart-drawer-body {
    flex: 1; overflow-y: auto; padding: 1.5rem;
}
.cart-drawer-footer {
    padding: 1.5rem; border-top: 1px solid var(--store-border); background: var(--store-bg);
}

/* Cart Items inside Drawer */
.c-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; position: relative; }
.c-item-img { width: 80px; height: 80px; border-radius: var(--store-radius-sm); object-fit: cover; background: var(--store-bg); border: 1px solid var(--store-border); }
.c-item-info { flex: 1; display: flex; flex-direction: column; }
.c-item-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.25rem; color: var(--store-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c-item-price { color: var(--store-primary); font-weight: 700; margin-bottom: 0.5rem; }
.c-item-actions { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.remove-btn { background: none; border: none; color: var(--store-text-muted); cursor: pointer; padding: 4px; border-radius: 4px; transition: var(--store-transition); }
.remove-btn:hover { color: #ef4444; background: #fee2e2; }

/* === CHECKOUT PAGE === */
.cart-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; margin-top: 2rem; align-items: start; }
@media (max-width: 1024px) {
    .cart-layout { grid-template-columns: 1fr; gap: 2rem; }
}

.checkout-section { background: var(--store-surface); border-radius: var(--store-radius); padding: 2rem; border: 1px solid var(--store-border); margin-bottom: 2rem; box-shadow: var(--store-shadow-sm); }
.checkout-section h3 { font-size: 1.5rem; margin-bottom: 1.5rem; color: var(--store-primary); letter-spacing: -0.02em; }
.checkout-section h4 { font-size: 0.9rem; color: var(--store-text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1.25rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--store-text); }

/* Custom Inputs */
.store-input {
    width: 100%; padding: 0.875rem 1.25rem; border: 1px solid var(--store-border);
    border-radius: var(--store-radius-sm); font-family: inherit; font-size: 1rem;
    background: var(--store-bg); transition: var(--store-transition);
}
.store-input:focus { outline: none; border-color: var(--store-accent); background: var(--store-surface); box-shadow: 0 0 0 4px var(--store-accent-glow); }

/* Order Summary Box */
.cart-summary { background: var(--store-bg); border-radius: var(--store-radius); padding: 2rem; border: 1px solid var(--store-border); position: sticky; top: 100px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 1rem; color: var(--store-text-muted); font-size: 0.95rem; }
.summary-row.total { font-size: 1.5rem; font-weight: 800; color: var(--store-primary); margin-top: 1.5rem; padding-top: 1.5rem; border-top: 2px dashed var(--store-border); }

/* UPI Box */
.upi-box { text-align: center; padding: 2.5rem; background: #f0fdfa; border: 2px dashed var(--store-accent); border-radius: var(--store-radius); margin-bottom: 2rem; }
.upi-qr { max-width: 200px; margin: 0 auto 1.5rem; border-radius: 12px; box-shadow: var(--store-shadow); border: 4px solid white; }
.upi-id-display { font-family: monospace; font-size: 1.25rem; font-weight: bold; padding: 0.75rem 1.5rem; background: white; border-radius: 100px; display: inline-block; margin-bottom: 1rem; color: var(--store-primary); box-shadow: var(--store-shadow-sm); }

/* Auth Prompt */
.auth-prompt { text-align: center; padding: 4rem 2rem; background: var(--store-surface); border-radius: var(--store-radius); border: 1px solid var(--store-border); box-shadow: var(--store-shadow-sm); }

/* === MOBILE CART BAR === */
.mobile-cart-bar {
    display: none; /* Removed !important so we can toggle it with JS on desktop too */
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--store-surface);
    border-top: 1px solid var(--store-border);
    padding: 1rem 1.5rem;
    z-index: 99;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    cursor: pointer;
}
.mc-items { font-size: 0.875rem; color: var(--store-text-muted); margin-bottom: 0.25rem; }
.mc-price { font-size: 1.25rem; font-weight: 800; color: var(--store-primary); font-family: var(--store-heading-font); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .detail-layout { grid-template-columns: 1fr; gap: 2rem; }
    .detail-gallery { position: static; }
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; margin-top: 2rem; }
}
@media (max-width: 768px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .form-grid { grid-template-columns: 1fr; }
    .store-hero { padding: 3rem 1.5rem; text-align: center; margin: 1rem 0 2rem; }
    .store-hero h1 { font-size: 2.25rem; margin-bottom: 1rem; }
    .store-hero p { font-size: 1rem; margin-bottom: 2rem; }
    .store-hero-content { margin: 0 auto; }
    .mobile-cart-bar.active { display: flex; }
    .detail-info h1 { font-size: 1.75rem; }
    .detail-price { font-size: 2rem; }
    .thumb-item { width: 60px; height: 60px; }
}
@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .toolbar-filters { flex-direction: column; align-items: stretch; gap: 1rem; }
    .search-input-wrapper { max-width: 100%; }
    .store-header-inner { padding: 0.5rem 0.75rem; top: 70px; }
    .nav-pill-btn { padding: 0.5rem; }
    .nav-pill-btn span { display: none; } /* Hide text on small mobile, keep icons */
    .store-brand { font-size: 1.1rem; }
    .detail-actions { flex-direction: column; }
    .qty-selector { width: 100%; justify-content: space-between; }
    .s-btn-primary { width: 100%; }
    .auth-prompt { padding: 2rem 1.5rem; }
    .cart-item { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .cart-item-img { width: 80px; height: 80px; }
    .cart-item-details { width: 100%; }
    .cart-item-actions { width: 100%; justify-content: space-between; }
}

/* Amazon Promo Section */
.amazon-promo-section {
    margin-top: 5rem;
    background: linear-gradient(135deg, #232f3e, #131921);
    border-radius: var(--store-radius-lg);
    padding: 4rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    flex-wrap: wrap;
}
.amazon-promo-content { flex: 1.2; min-width: 350px; }
.amazon-promo-content h2 { color: white; margin-bottom: 1.5rem; font-size: 2.5rem; line-height: 1.2; }
.amazon-promo-content p { color: #cbd5e1; font-size: 1.2rem; margin-bottom: 2.5rem; line-height: 1.6; max-width: 500px; }
.amazon-btn {
    background: #FF9900; color: #131921; font-weight: 700; padding: 1.25rem 2.5rem;
    font-size: 1.2rem; display: inline-flex; align-items: center; gap: 0.75rem;
    border: none; border-radius: var(--store-radius-sm);
    box-shadow: 0 4px 14px rgba(255, 153, 0, 0.3);
}
.amazon-btn:hover { background: #e68a00; color: #131921; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4); }

.amazon-promo-card-wrapper { flex: 0.8; min-width: 300px; display: flex; justify-content: flex-end; }
.amazon-brand-card {
    background: white; padding: 2.5rem; border-radius: var(--store-radius);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5); text-align: center;
    width: 100%; max-width: 320px;
    transform: rotate(2deg);
}
.amazon-card-logo { max-width: 200px; filter: grayscale(1); opacity: 0.8; margin: 0 auto 1.5rem; }
.amazon-card-name { color: #131921; font-weight: 800; font-size: 1.5rem; }
.amazon-card-rating { display: flex; justify-content: center; gap: 4px; color: #FF9900; margin-top: 0.75rem; font-size: 1.25rem; }
.amazon-card-badge { color: #64748b; font-size: 1rem; margin-top: 0.5rem; }

@media (max-width: 768px) {
    .amazon-promo-section { padding: 2rem 1.5rem; margin-top: 3rem; flex-direction: column; text-align: center; gap: 2rem; }
    .amazon-promo-content { min-width: 100%; }
    .amazon-promo-content h2 { font-size: 1.5rem; }
    .amazon-promo-content p { font-size: 0.95rem; margin: 0 auto 1.5rem; }
    .amazon-promo-card-wrapper { min-width: 100%; justify-content: center; }
    .amazon-brand-card { padding: 1.5rem; width: 100%; max-width: 280px; transform: none; }
    .amazon-card-logo { max-width: 140px; }
}

/* Updated Cart Bar for All Sizes */
.mobile-cart-bar.active { 
    display: flex; 
    animation: slideUp 0.3s ease; 
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* === PROFESSIONAL PRINT STYLES === */
@media print {
    @page { size: auto; margin: 0mm; }
    body { background: white !important; color: black !important; margin: 0 !important; padding: 0 !important; }
    
    /* Hide all store elements */
    #navbar, 
    .store-container,
    .navbar,
    .store-header-inner, 
    .nav-menu, 
    .store-hero, 
    .toolbar-filters, 
    .product-grid, 
    #account-orders-list, 
    #profile-form, 
    .s-btn, 
    .mobile-cart-bar, 
    .cart-overlay, 
    .cart-drawer, 
    #toast-container, 
    .amazon-promo-section, 
    .store-view,
    footer { display: none !important; opacity: 0 !important; visibility: hidden !important; height: 0 !important; overflow: hidden !important; }
    
    .print-only { display: block !important; visibility: visible !important; opacity: 1 !important; }
    #printable-invoice { 
        position: absolute; 
        left: 0; 
        top: 0; 
        width: 100%; 
        visibility: visible !important; 
        padding: 12mm 15mm; 
        box-sizing: border-box; 
        background: white !important;
        display: block !important;
    }
}

.invoice-container {
    max-width: 850px; margin: 0 auto; padding: 0; background: #fff; color: #1a1a1a;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; line-height: 1.35;
}

.inv-header { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 1rem; border-bottom: 2px solid #f1f5f9; margin-bottom: 1.5rem; }
.inv-logo { height: 55px; margin-bottom: 0.5rem; object-fit: contain; }
.inv-company-name { font-size: 1.35rem; font-weight: 800; color: #0f172a; margin-bottom: 0.25rem; }
.inv-company-details { font-size: 0.8125rem; color: #475569; line-height: 1.5; }
.inv-company-details p { margin: 0; }
.inv-type-label { font-size: 2rem; font-weight: 900; color: #e2e8f0; text-align: right; margin-bottom: 1rem; letter-spacing: -0.02em; }
.inv-meta-grid { display: grid; grid-template-columns: 1fr; gap: 0.4rem; font-size: 0.8125rem; min-width: 220px; }
.inv-meta-item { display: flex; justify-content: space-between; gap: 1.5rem; white-space: nowrap; }
.inv-meta-item span { color: #64748b; }
.inv-meta-item strong { color: #0f172a; }

.inv-address-section { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.inv-label { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #94a3b8; margin-bottom: 0.5rem; }
.inv-address-card { padding: 1rem; background: #f8fafc; border-radius: 8px; font-size: 0.8125rem; color: #334155; line-height: 1.5; }
.inv-address-card strong { display: block; color: #0f172a; margin-bottom: 0.125rem; font-size: 1rem; }

.inv-table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
.inv-table th { background: #f1f5f9; padding: 0.75rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: #475569; text-align: left; }
.inv-table td { padding: 1rem; border-bottom: 1px solid #f1f5f9; font-size: 0.875rem; }
.inv-table .text-right { text-align: right; }
.inv-table .text-center { text-align: center; }

.inv-summary-section { display: grid; grid-template-columns: 1fr 0.85fr; gap: 3rem; margin-bottom: 2.5rem; }
.inv-notes-list { list-style: none; padding: 0; font-size: 0.75rem; color: #64748b; }
.inv-notes-list li { margin-bottom: 0.125rem; position: relative; padding-left: 0.875rem; }
.inv-notes-list li::before { content: '•'; position: absolute; left: 0; color: #cbd5e1; }

.inv-totals { display: flex; flex-direction: column; gap: 0.4rem; }
.inv-total-row { display: flex; justify-content: space-between; font-size: 0.875rem; color: #475569; }
.inv-total-row.discount { color: #059669; font-weight: 600; }
.inv-total-row.border-top { border-top: 1px solid #f1f5f9; padding-top: 0.5rem; margin-top: 0.125rem; }
.inv-grand-total { display: flex; justify-content: space-between; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 2px solid #0f172a; font-size: 1.35rem; font-weight: 800; color: #0f172a; }
.inv-total-words { font-size: 0.75rem; color: #64748b; margin-top: 0.25rem; font-style: italic; text-align: right; }

.inv-footer { border-top: 2px solid #f1f5f9; padding-top: 1.5rem; text-align: center; }
.inv-footer p { font-size: 0.875rem; font-weight: 600; color: #0f172a; margin-bottom: 0.5rem; }
.inv-footer-bottom { display: flex; justify-content: space-between; font-size: 0.75rem; color: #94a3b8; }
.text-center { text-align: center; }
.print-only { display: none; }

/* === CUSTOM PRODUCT & ENQUIRY STYLES === */
.custom-badge {
    background: #fef3c7; color: #92400e; font-size: 0.65rem; font-weight: 800;
    padding: 2px 8px; border-radius: 100px; text-transform: uppercase;
    border: 1px solid #fde68a;
}

.product-card.is-custom { border-style: dashed; border-color: var(--store-border-hover); }

.enquiry-btn { background: #f1f5f9; border: 1px solid var(--store-border); color: var(--store-accent); }
.enquiry-btn:hover { background: var(--store-accent) !important; color: white !important; }

/* Modal Styles */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(8px);
    z-index: 2000; display: flex; align-items: center; justify-content: center;
    padding: 1.5rem; opacity: 0; transition: opacity 0.3s ease;
}
.modal-overlay.show { opacity: 1; }
.modal {
    background: white; border-radius: var(--store-radius); width: 100%;
    max-width: 600px; max-height: 90vh; overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.95); transition: transform 0.3s ease;
}
.modal-overlay.show .modal { transform: scale(1); }
.modal-header { padding: 1.5rem; border-bottom: 1px solid var(--store-border); display: flex; justify-content: space-between; align-items: center; }
.modal-header h2 { margin: 0; font-size: 1.25rem; }
.modal-close { background: none; border: none; cursor: pointer; color: var(--store-text-muted); padding: 4px; border-radius: 50%; transition: all 0.2s; }
.modal-close:hover { background: var(--store-bg); color: var(--store-primary); }
.modal-body { padding: 1.5rem; }

/* Custom Enquiry Banner */
.custom-enquiry-banner {
    background: white;
    border: 2px dashed var(--store-border);
    border-radius: var(--store-radius);
    padding: 2.5rem;
    margin: 3rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    transition: var(--store-transition);
}
.custom-enquiry-banner:hover {
    border-color: var(--store-accent);
    background: rgba(14, 165, 233, 0.02);
}
.ce-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}
.ce-icon {
    width: 64px;
    height: 64px;
    background: #f0f9ff;
    color: var(--store-accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ce-text h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}
.ce-text p {
    color: var(--store-text-muted);
    margin: 0;
    font-size: 1rem;
    max-width: 500px;
}
.ce-btn {
    background: var(--store-primary);
    color: white;
    white-space: nowrap;
    padding: 1rem 2rem;
}
.ce-btn:hover {
    background: var(--store-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
}

@media (max-width: 768px) {
    .custom-enquiry-banner {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    .ce-content {
        flex-direction: column;
        gap: 1rem;
    }
    .ce-btn {
        width: 100%;
    }
}

.price-unit {
    font-size: 0.9rem;
    color: var(--store-text-muted);
    font-weight: 500;
}


