/* =============================================
   SUN G COMPUTERS - White Theme E-Commerce CSS
   Clean & Professional
   ============================================= */

/* ---------- CSS Custom Properties ---------- */
:root {
    --bg: #ffffff;
    --bg-card: #ffffff;
    --bg-surface: #f5f5f5;
    --bg-header: #ffffff;
    --bg-footer: #f8f8f8;
    --accent: #ff7f2a;
    --accent-hover: #ff9a52;
    --accent-glow: rgba(255, 127, 42, 0.15);
    --ok: #2ec876;
    --danger: #d54d4d;
    --info: #3b82f6;
    --whatsapp: #25d366;
    --call: #2563eb;
    --line: rgba(0, 0, 0, 0.1);
    --line-soft: rgba(0, 0, 0, 0.06);
    --text: #222222;
    --text-body: #444444;
    --text-muted: #666666;
    --text-subtle: #999999;
    --radius: 8px;
    --radius-sm: 6px;
    --radius-xs: 4px;
    --container: 1320px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --transition: 0.25s ease;
    --font: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

html, body {
    min-height: 100%;
}

body {
    font-family: var(--font);
    color: var(--text-body);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text);
    line-height: 1.3;
}

/* ---------- Utility Classes ---------- */
.container {
    width: min(var(--container), 94vw);
    margin: 0 auto;
    padding: 0 16px;
}

.muted { color: var(--text-muted); font-size: 0.9rem; }
.empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.stack { display: flex; flex-direction: column; gap: 12px; }

.flash {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border-left: 3px solid var(--accent);
    color: var(--text-body);
    font-size: 0.9rem;
    display: none;
}
.flash.show { display: block; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    white-space: nowrap;
    min-height: 42px;
    line-height: 1.2;
    text-align: center;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover {
    background: var(--accent-hover);
    filter: brightness(1.1);
    box-shadow: 0 4px 16px var(--accent-glow);
}
.btn-primary:disabled {
    background: #ccc;
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
    filter: none;
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-body);
    border: 1px solid var(--line);
}
.btn-secondary:hover {
    background: var(--line);
    color: var(--text);
}

.btn-ghost {
    background: transparent;
    color: var(--text-body);
    border: 1px solid var(--line);
}
.btn-ghost:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: var(--text-muted);
    color: var(--text);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-danger:hover {
    background: #c0392b;
    filter: brightness(1.1);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: #fff;
}
.btn-whatsapp:hover {
    background: #20b858;
    filter: brightness(1.1);
}

/* ---------- Pills / Chips ---------- */
.pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text-muted);
    transition: all var(--transition);
    white-space: nowrap;
}
.pill:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255, 127, 42, 0.08);
}
.pill.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ---------- Form Elements ---------- */
.input, .textarea, .select, input[type="search"],
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="tel"] {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--bg-surface);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.9rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.input:focus, .textarea:focus, .select:focus,
input:focus, textarea:focus, select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.textarea, textarea {
    min-height: 80px;
    resize: vertical;
}

.select, select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-body);
}

::placeholder { color: var(--text-subtle); }
::-webkit-search-cancel-button { -webkit-appearance: none; }

/* =============================================
   1. HEADER
   ============================================= */

/* Top Strip */
.top-bar {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff;
    font-size: 0.78rem;
    padding: 7px 0;
    font-weight: 500;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.top-bar-links {
    display: flex;
    gap: 16px;
}

.top-bar-links a {
    color: #fff;
    font-weight: 600;
    transition: opacity var(--transition);
}
.top-bar-links a:hover { opacity: 0.8; }

/* Main Header */
header {
    background: var(--bg-header);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-soft);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 20px;
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    flex-shrink: 0;
}
.brand span {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .5px;
    line-height: 1.2;
    max-width: 180px;
    white-space: normal;
    color: #ff6600;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent), #ff5500);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Navigation Menu */
.menu {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.menu a {
    padding: 8px 14px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-body);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}
.menu a:hover { color: var(--accent); background: rgba(255, 127, 42, 0.08); }
.menu a.active { color: var(--accent); }


/* Search Bar in Header */
.header-search {
    display: flex;
    flex: 1;
    max-width: 460px;
    position: relative;
}

.header-search input {
    padding-right: 44px;
    background: var(--bg-surface);
    border: 1px solid var(--line);
}

.header-search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-xs);
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: background var(--transition);
}
.header-search-btn:hover { background: var(--accent-hover); }

/* Cart Button */
.cart-btn {
    position: relative;
}

.cart-count {
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    padding: 0 5px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

/* =============================================
   2. HERO CAROUSEL
   ============================================= */
.hero {
    margin: 24px 0;
}

.hero-wrap {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}

.hero-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, #f8f8f8, #f0f0f0);
}

.hero-carousel-card {
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

/* Hero Media/Slides */
.hero-media-shell {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), #e05500);
    color: #fff;
    font-size: 5rem;
    font-weight: 800;
    opacity: 0.5;
}

.hero-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 24px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-slide-caption strong {
    color: var(--text);
    font-size: 1rem;
}

.hero-slide-caption span {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* Hero Dots */
.hero-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 12px;
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}
.hero-dot.active, .hero-dot:hover {
    background: var(--accent);
    transform: scale(1.2);
}

/* Hero Copy */
.hero-copy {
    position: relative;
    padding: 32px 28px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    background: var(--accent-glow);
    color: var(--accent);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    width: fit-content;
    border: 1px solid rgba(255, 127, 42, 0.3);
}

.hero-copy h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.15;
}

.hero-copy p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 520px;
}

.hero-ticker {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-soft);
    width: fit-content;
}

.hero-ticker-label {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.82rem;
}

#heroTickerText {
    color: var(--text-body);
    font-size: 0.82rem;
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

/* Hero Prev/Next Arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 10;
    transition: all var(--transition);
    backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: var(--accent); border-color: var(--accent); }
.hero-arrow.prev { left: 12px; }
.hero-arrow.next { right: 12px; }

/* =============================================
   3. HORIZONTAL SCROLL PRODUCT SECTIONS
   ============================================= */
.scroll-section {
    margin: 36px 0;
}

.scroll-section .section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.scroll-section .section-head h2 {
    position: relative;
    padding-bottom: 8px;
}

.scroll-section .section-head h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.scroll-row-wrap {
    position: relative;
}

.scroll-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.scroll-row::-webkit-scrollbar { display: none; }

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid var(--line);
    z-index: 5;
    transition: all var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.scroll-btn:hover { background: var(--accent); border-color: var(--accent); }
.scroll-btn.left { left: -12px; }
.scroll-btn.right { right: -12px; }

/* =============================================
   4. PRODUCT GRID & CARDS
   ============================================= */
.section {
    margin: 36px 0;
}

.section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.section-head h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.section-head p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4px;
}

/* Catalog Layout */
.catalog-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: start;
}

.catalog-sidebar {
    position: sticky;
    top: 80px;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--line-soft);
}

.catalog-sidebar h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--text);
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group:last-child { margin-bottom: 0; }

.filter-group h4 {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.category-filter-list, .stock-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.catalog-main { min-width: 0; }

/* Search */
.controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.controls-search { margin-bottom: 20px; }

.search, input[type="search"] {
    width: 100%;
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--bg-card);
    color: var(--text);
    font-size: 0.9rem;
    transition: all var(--transition);
}
.search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

/* Product Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* Product Card */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line-soft);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

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

.card-media-link {
    display: block;
}

.card-media {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-surface);
}

.card-media img, .product-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-media img,
.card:hover .product-photo {
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    border-radius: var(--radius-xs);
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
}

.stock {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 10px;
    border-radius: var(--radius-xs);
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 3;
}
.stock.in { background: rgba(46, 200, 118, 0.2); color: var(--ok); }
.stock.out { background: rgba(213, 77, 77, 0.2); color: var(--danger); }

/* Media Slider within Card */
.media-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.media-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid var(--line);
    opacity: 0;
    transition: opacity var(--transition);
    z-index: 4;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.card:hover .slide-btn { opacity: 1; }
.slide-btn.prev { left: 6px; }
.slide-btn.next { right: 6px; }
.slide-btn:hover { background: var(--accent); }

.slide-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: 50px;
    z-index: 4;
}

/* Card Body */
.card-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card-title-link { display: block; }
.card-title-link:hover .title { color: var(--accent); }

.cat {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 0.5px;
}

.title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition);
}

.spec {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.price strong {
    font-size: 1.05rem;
    color: var(--text);
    font-weight: 700;
}

.price s {
    font-size: 0.82rem;
    color: var(--text-subtle);
}

.discount-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-xs);
    background: rgba(46, 200, 118, 0.15);
    color: var(--ok);
    font-size: 0.72rem;
    font-weight: 700;
}

.card-body .btn {
    margin-top: auto;
    width: 100%;
}

/* =============================================
   5. FILTER MODAL
   ============================================= */
.filter-modal {
    position: fixed;
    top: 0;
    right: -100%;
    width: 340px;
    max-width: 90vw;
    height: 100vh;
    background: var(--bg-card);
    z-index: 200;
    transition: right 0.35s ease;
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.filter-modal.show { right: 0; }

.filter-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line-soft);
}

.filter-modal-head h3 { font-size: 1.1rem; }

.filter-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-surface);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    border: none;
    transition: background var(--transition);
}
.filter-modal-close:hover { background: var(--danger); }

.filter-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.filter-modal-foot {
    padding: 16px 20px;
    border-top: 1px solid var(--line-soft);
}

.filter-modal-foot .btn { width: 100%; }

.filter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.filter-overlay.show { opacity: 1; pointer-events: auto; }

/* =============================================
   6. CATEGORY GRID
   ============================================= */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.cat-card {
    background: var(--bg-card);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.cat-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 127, 42, 0.12);
}

.cat-icon {
    font-size: 2rem;
    display: block;
}

.cat-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

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

/* =============================================
   7. CART MODAL / PANEL
   ============================================= */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 300;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
    overflow-y: auto;
}

.modal.show {
    opacity: 1;
    pointer-events: auto;
}

.panel {
    background: var(--bg-card);
    width: 560px;
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    border-left: 1px solid var(--line-soft);
}

.modal.show .panel { transform: translateX(0); }

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line-soft);
    flex-shrink: 0;
}

.panel-head h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.panel-body {
    flex: 1;
    padding: 20px 24px;
    overflow-y: auto;
}

.panel-foot {
    padding: 20px 24px;
    border-top: 1px solid var(--line-soft);
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Cart Line Items */
.line-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line-soft);
}

.line-item:last-child { border-bottom: none; }

.line-item strong {
    color: var(--text);
    font-size: 0.92rem;
}

.line-item .muted {
    font-size: 0.82rem;
}

/* Quantity Controls */
.qty {
    display: flex;
    align-items: center;
    gap: 2px;
}

.qty button, .qty-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-xs);
    background: var(--bg-surface);
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    cursor: pointer;
    transition: all var(--transition);
}
.qty button:hover, .qty-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.qty span, .qty-val {
    min-width: 32px;
    text-align: center;
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

/* Total Row */
.total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-top: 1px solid var(--line-soft);
    font-size: 1.05rem;
}

.total-row span { color: var(--text-body); }
.total-row strong { color: var(--accent); font-size: 1.2rem; }

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    cursor: pointer;
    transition: all var(--transition);
}

.payment-option:hover { border-color: var(--accent); }

.payment-option input[type="radio"] {
    width: auto;
    accent-color: var(--accent);
}

.payment-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.payment-label strong {
    font-size: 0.9rem;
    color: var(--text);
}

.payment-label small {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* UPI QR Section */
.upi-qr-section {
    text-align: center;
    padding: 16px;
    background: var(--bg-surface);
    border-radius: var(--radius);
    border: 1px solid var(--line-soft);
}

.upi-qr-section img {
    margin: 0 auto;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

/* =============================================
   8. AUTH MODAL
   ============================================= */
#authModal .panel {
    max-width: 520px;
    margin: auto;
    min-height: auto;
    border-radius: var(--radius);
    border: 1px solid var(--line-soft);
    transform: translateY(24px) scale(0.97);
    opacity: 0;
    transition: all 0.3s ease;
}

#authModal.show .panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

#authModal {
    justify-content: center;
    align-items: center;
}

/* =============================================
   9. CANCEL ORDER MODAL
   ============================================= */
#cancelModal .panel {
    max-width: 520px;
    margin: auto;
    min-height: auto;
    border-radius: var(--radius);
    border: 1px solid var(--line-soft);
    transform: translateY(24px) scale(0.97);
    opacity: 0;
    transition: all 0.3s ease;
}

#cancelModal.show .panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

#cancelModal {
    justify-content: center;
    align-items: center;
}

#cancelReasonButtons {
    flex-wrap: wrap;
}

/* =============================================
   10. TRUST / STATS BAR
   ============================================= */
.trust-bar {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--line-soft);
    margin: 24px 0;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-body);
    font-weight: 500;
}

.trust-icon {
    font-size: 1.3rem;
    color: var(--accent);
}

/* Stats Bar (like 500+ sold) */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--line-soft);
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* =============================================
   11. FEATURES / WHY CHOOSE US
   ============================================= */
.why-bottom { margin: 48px 0; }

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.why-card {
    background: var(--bg-card);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 28px 22px;
    transition: all var(--transition);
    border-top: 3px solid transparent;
}

.why-card:hover {
    border-top-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.why-icon {
    font-size: 2rem;
    margin-bottom: 14px;
}

.why-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.why-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* =============================================
   12. FOOTER
   ============================================= */
footer {
    background: var(--bg-footer);
    padding: 48px 0 0;
    margin-top: 60px;
    border-top: 1px solid var(--line-soft);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}

.footer-col p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }

.footer-payments {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 20px 0;
    margin-top: 32px;
    border-top: 1px solid var(--line-soft);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-payments span {
    padding: 4px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xs);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-body);
}

.footer-bottom {
    padding: 16px 0;
    margin-top: 12px;
    border-top: 1px solid var(--line-soft);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-subtle);
}

/* =============================================
   13. FLOATING BUTTONS (FABs)
   ============================================= */
.floating-buttons {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 90;
}

.fab {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all var(--transition);
    text-decoration: none;
}

.fab:hover {
    transform: scale(1.1);
}

.fab-call {
    background: var(--call);
}
.fab-call:hover { background: #1d4ed8; }

.fab-whatsapp {
    background: var(--whatsapp);
    animation: fabPulse 2s infinite;
}
.fab-whatsapp:hover { background: #20b858; }

@keyframes fabPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.fab svg {
    width: 24px;
    height: 24px;
}

/* =============================================
   14. TOAST NOTIFICATIONS
   ============================================= */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: var(--bg-card);
    color: var(--text-body);
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--accent);
    box-shadow: var(--shadow-lg);
    min-width: 280px;
    max-width: 420px;
    font-size: 0.88rem;
    transform: translateX(120%);
    transition: transform 0.35s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast.show { transform: translateX(0); }
.toast.success { border-left-color: var(--ok); }
.toast.info { border-left-color: var(--accent); }
.toast.error { border-left-color: var(--danger); }

.toast-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 4px;
    flex-shrink: 0;
}

/* =============================================
   15. PRODUCT DETAIL PAGE (PDP)
   ============================================= */

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text-subtle); }

/* PDP Grid */
.product-page { padding: 24px 0; }

.pdp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* PDP Gallery */
.pdp-gallery {
    position: sticky;
    top: 80px;
}

.pdp-main-img {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line-soft);
    aspect-ratio: 1;
}

.pdp-main-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
    cursor: zoom-in;
}

.pdp-main-img:hover img { transform: scale(1.15); }

.pdp-main-img .discount-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    font-size: 0.82rem;
}

.pdp-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}
.pdp-thumbs::-webkit-scrollbar { display: none; }

.pdp-thumb {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-xs);
    overflow: hidden;
    border: 2px solid var(--line-soft);
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color var(--transition);
}

.pdp-thumb:hover { border-color: var(--text-muted); }
.pdp-thumb.active { border-color: var(--accent); }

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

/* PDP Info */
.pdp-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pdp-category {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 0.5px;
}

.pdp-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.25;
}

.pdp-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    background: var(--accent-glow);
    color: var(--accent);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    width: fit-content;
    border: 1px solid rgba(255, 127, 42, 0.3);
}

.pdp-price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pdp-old-price {
    font-size: 1rem;
    color: var(--text-subtle);
    text-decoration: line-through;
}

.pdp-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
}

.pdp-discount {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-xs);
    background: rgba(46, 200, 118, 0.15);
    color: var(--ok);
    font-size: 0.85rem;
    font-weight: 700;
}

.pdp-stock {
    font-size: 0.88rem;
    font-weight: 600;
}
.pdp-stock.in-stock { color: var(--ok); }
.pdp-stock.out-stock { color: var(--danger); }

.pdp-spec {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.6;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-soft);
}

.pdp-spec strong {
    color: var(--text);
}

/* Pincode Checker */
.pdp-pincode-check {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pdp-pincode-check label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-body);
}

.pdp-pincode-row {
    display: flex;
    gap: 8px;
}

.pdp-pincode-row input {
    flex: 1;
    max-width: 200px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--bg-surface);
    color: var(--text);
    font-size: 0.9rem;
}

.pdp-pincode-row input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-glow);
}

#pdpPinResult {
    font-size: 0.82rem;
    font-weight: 500;
}

/* Quantity Row */
.pdp-qty-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pdp-qty-row label {
    font-weight: 600;
    color: var(--text-body);
    font-size: 0.9rem;
}

.qty-ctrl {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qty-ctrl .qty-btn {
    border: none;
    border-radius: 0;
    width: 40px;
    height: 40px;
}

.qty-ctrl .qty-val {
    min-width: 48px;
    text-align: center;
    font-weight: 700;
    color: var(--text);
    font-size: 1rem;
    background: var(--bg-surface);
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
}

/* PDP Add to Cart */
.pdp-add-cart {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
}

/* PDP Trust */
.pdp-trust {
    display: flex;
    gap: 20px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-soft);
    flex-wrap: wrap;
}

.pdp-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.pdp-trust-item span {
    color: var(--ok);
    font-weight: 700;
}

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.specs-table tr:nth-child(odd) { background: var(--bg-surface); }
.specs-table tr:nth-child(even) { background: var(--bg-card); }

.specs-table td {
    padding: 12px 16px;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--line-soft);
}

.specs-table td:first-child {
    font-weight: 600;
    color: var(--text-muted);
    width: 40%;
}

.specs-table td:last-child { color: var(--text); }

/* Related Products */
.pdp-related {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--line-soft);
}

.pdp-related h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.pdp-related h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.pdp-related-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 8px;
    scrollbar-width: none;
}
.pdp-related-grid::-webkit-scrollbar { display: none; }

.pdp-related-card {
    flex-shrink: 0;
    width: 180px;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line-soft);
    transition: all var(--transition);
    text-decoration: none;
}

.pdp-related-card:hover {
    border-color: var(--line);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pdp-related-img {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-surface);
}

.pdp-related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pdp-related-img .discount-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 0.68rem;
    padding: 2px 8px;
}

.pdp-related-info {
    padding: 10px 12px;
}

.pdp-related-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}

.pdp-related-price {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 4px;
}

/* =============================================
   ORDERS
   ============================================= */
.order-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-card {
    background: var(--bg-card);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 20px;
    transition: all var(--transition);
}

.order-card:hover {
    border-color: var(--line);
}

.order-card strong {
    color: var(--text);
    font-size: 0.95rem;
}

.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-xs);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tag-pending { background: rgba(255, 186, 8, 0.15); color: #ffba08; }
.tag-confirmed { background: rgba(46, 200, 118, 0.15); color: var(--ok); }
.tag-shipped { background: rgba(59, 130, 246, 0.15); color: var(--info); }
.tag-delivered { background: rgba(46, 200, 118, 0.2); color: var(--ok); }
.tag-cancelled { background: rgba(213, 77, 77, 0.15); color: var(--danger); }

.payment-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-xs);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
}

.payment-pending { background: rgba(255, 186, 8, 0.15); color: #ffba08; }
.payment-confirmed { background: rgba(46, 200, 118, 0.15); color: var(--ok); }
.payment-failed { background: rgba(213, 77, 77, 0.15); color: var(--danger); }

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 36px 28px;
    border: 1px solid var(--line-soft);
    text-align: center;
    margin: 36px 0;
}

.contact h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.contact > p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    text-align: left;
}

.contact-item {
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    padding: 16px;
    border: 1px solid var(--line-soft);
}

.contact-item strong {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 6px;
}

.contact-item p {
    color: var(--text);
    font-size: 0.88rem;
}

.contact-item a {
    color: var(--accent);
}
.contact-item a:hover { text-decoration: underline; }

/* =============================================
   17. ANIMATIONS
   ============================================= */

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Skeleton Loading */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-surface) 25%, var(--line-soft) 50%, var(--bg-surface) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-xs);
}

.skeleton-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line-soft);
}

.skeleton-img {
    aspect-ratio: 1;
    background: linear-gradient(90deg, var(--bg-surface) 25%, var(--line-soft) 50%, var(--bg-surface) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-text {
    height: 14px;
    margin: 12px 14px 0;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--bg-surface) 25%, var(--line-soft) 50%, var(--bg-surface) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-text:last-child { margin-bottom: 14px; width: 60%; }

/* Button Hover Animations */
.btn:hover {
    filter: brightness(1.05);
}

.btn-primary:hover {
    transform: scale(1.02);
}

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

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* =============================================
   18. MOBILE BOTTOM NAV
   ============================================= */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-header);
    border-top: 1px solid var(--line-soft);
    z-index: 95;
    padding: 6px 0 max(6px, env(safe-area-inset-bottom));
}

.mobile-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 12px;
    font-size: 0.68rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
    min-width: 56px;
}

.mobile-nav-item:hover,
.mobile-nav-item.active { color: var(--accent); }

.mobile-nav-item svg {
    width: 22px;
    height: 22px;
}

/* =============================================
   16. RESPONSIVE BREAKPOINTS
   ============================================= */

/* Large Desktop */
@media (max-width: 1280px) {
    .grid { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
    .why-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Tablet Landscape */
@media (max-width: 1024px) {
    .grid { grid-template-columns: repeat(3, 1fr); }

    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .catalog-sidebar {
        position: static;
        border-radius: var(--radius);
    }

    .category-filter-list, .stock-filter-list {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        scrollbar-width: none;
    }
    .category-filter-list::-webkit-scrollbar, .stock-filter-list::-webkit-scrollbar { display: none; }

    .hero-carousel-card { min-height: 340px; }
    .hero-media-shell { height: 340px; }

    .pdp-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .pdp-gallery { position: static; }

    .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    :root {
        --container: 100%;
    }

    .container { padding: 0 12px; }

    .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    .top-bar-inner {
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }
    .top-bar-links { justify-content: center; gap: 12px; }
    /* Header Mobile */
    .nav {
        flex-wrap: wrap;
        gap: 10px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .hamburger { display: flex; }

    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 4px;
        padding-top: 8px;
        border-top: 1px solid var(--line-soft);
        order: 10;
    }

    .menu.open { display: flex; }

    .menu a {
        width: 100%;
        padding: 10px 12px;
        border-radius: var(--radius-sm);
    }
    .menu a:hover { background: var(--bg-surface); }

    .menu .btn {
        width: 100%;
    }

    /* Hero */
    .hero-carousel-card { min-height: auto; }
    .hero-media-shell { height: 250px; }
    .hero-copy { padding: 20px 16px; }
    .hero-copy h1 { font-size: 1.4rem; }
    .hero-dots { bottom: 60px; }

    /* Sections */
    .section-head { flex-direction: column; gap: 8px; }

    .why-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .why-card { padding: 20px 16px; }

    .trust-bar { gap: 16px; padding: 16px; }

    .contact { padding: 24px 16px; }
    .contact-grid { grid-template-columns: 1fr; }

    /* Cart Modal Full Screen */
    .panel {
        width: 100%;
    }

    /* Mobile Bottom Nav */
    .mobile-nav { display: block; }

    /* Floating buttons adjust for bottom nav */
    .floating-buttons {
        bottom: 76px;
        right: 16px;
    }

    .fab {
        width: 46px;
        height: 46px;
    }

    .fab svg {
        width: 20px;
        height: 20px;
    }

    /* Cat Grid */
    .cat-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }
    .cat-card { padding: 14px 10px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-payments { justify-content: center; }

    /* Stats */
    .stats-bar { gap: 24px; }

    /* Product page */
    .pdp-title { font-size: 1.3rem; }
    .pdp-price { font-size: 1.4rem; }
}

/* Mobile */
@media (max-width: 480px) {
    .grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

    .card-body { padding: 10px; }
    .title { font-size: 0.82rem; }
    .spec { font-size: 0.72rem; }
    .price strong { font-size: 0.92rem; }
    .price s { font-size: 0.72rem; }
    .badge { font-size: 0.62rem; padding: 2px 7px; }

    .btn { padding: 10px 16px; font-size: 0.82rem; min-height: 44px; }

    .hero-copy h1 { font-size: 1.2rem; }
    .hero-media-shell { height: 200px; }

    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn { width: 100%; }

    .panel-head { padding: 16px; }
    .panel-body { padding: 16px; }
    .panel-foot { padding: 16px; }

    .trust-bar { flex-direction: column; gap: 12px; align-items: flex-start; }

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

    .pdp-trust { flex-direction: column; gap: 10px; }

    .pdp-related-card { width: 150px; }

    .toast {
        min-width: auto;
        max-width: calc(100vw - 40px);
        font-size: 0.82rem;
    }
}

/* Small Mobile */
@media (max-width: 360px) {
    .container { padding: 0 8px; }
    .grid { gap: 6px; }

    .brand span { font-size: 0.95rem; }
    .brand-badge { width: 32px; height: 32px; font-size: 0.75rem; }

    .hero-copy { padding: 16px 12px; }
    .hero-copy h1 { font-size: 1.05rem; }
    .hero-chip { font-size: 0.7rem; }

    .card-body { padding: 8px; gap: 4px; }
    .title { font-size: 0.78rem; }
    .cat { font-size: 0.66rem; }
    .price strong { font-size: 0.85rem; }

    .pill { padding: 5px 12px; font-size: 0.75rem; }

    .pdp-title { font-size: 1.1rem; }
    .pdp-price { font-size: 1.2rem; }
}

/* Touch-friendly targets */
@media (pointer: coarse) {
    .btn, .pill, .fab, .qty-btn, .qty button,
    .slide-btn, .hero-dot, .hero-arrow,
    .cat-card, .mobile-nav-item, .pdp-thumb {
        min-height: 44px;
        min-width: 44px;
    }

    .pill { min-height: 36px; }
    .hero-dot { min-height: 32px; min-width: 32px; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .animate-on-scroll { opacity: 1; transform: none; }
}

/* =============================================
   BRAND LOGO (animated SVG)
   ============================================= */
.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.brand:hover .brand-logo {
    transform: scale(1.08);
}

/* =============================================
   MOBILE MENU BUTTON (hamburger)
   ============================================= */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}
.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* =============================================
   FOOTER BRAND ROW
   ============================================= */
.footer-brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.footer-brand-row h4 {
    color: #ff6600;
}
.footer-brand-row .brand-logo {
    width: 36px;
    height: 36px;
}

/* =============================================
   PAGE CONTENT (About, Contact, Policies)
   ============================================= */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0 60px;
}
.page-content h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}
.page-content .page-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 32px;
}
.page-content h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 32px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}
.page-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 20px;
    margin-bottom: 8px;
}
.page-content p,
.page-content li {
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 10px;
}
.page-content ul {
    padding-left: 20px;
    margin-bottom: 16px;
}
.page-content ul li {
    list-style: disc;
    margin-bottom: 6px;
}
.page-content a {
    color: var(--accent);
    text-decoration: underline;
}
.page-content a:hover {
    color: var(--accent-hover);
}

/* =============================================
   CONTACT FORM
   ============================================= */
.contact-form {
    max-width: 600px;
    margin-top: 16px;
}
.contact-methods {
    margin-bottom: 24px;
}
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
    font-size: 0.9rem;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.95rem;
    transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* =============================================
   TRACK ORDER PAGE
   ============================================= */
.track-shell {
    display: flex;
    justify-content: center;
    padding: 48px 0 60px;
}
.track-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
    width: 100%;
    max-width: 520px;
    box-shadow: var(--shadow);
}
.track-card h2 {
    color: var(--text);
    margin-bottom: 8px;
}
.track-card p {
    color: var(--text-muted);
    margin-bottom: 16px;
}
.track-result {
    text-align: left;
}
.track-result .track-status-big {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.track-result .track-items {
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin: 8px 0;
}

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb-bar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.breadcrumb a {
    color: var(--text-muted);
    transition: color 0.2s;
}
.breadcrumb a:hover {
    color: var(--accent);
}
.breadcrumb-sep {
    color: var(--text-subtle);
    font-size: 0.8rem;
}

/* =============================================
   PRODUCT PAGE (PDP)
   ============================================= */
.product-page {
    padding: 24px 0 60px;
}
.pdp-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr 320px;
    gap: 32px;
    align-items: start;
}
.pdp-gallery {
    position: sticky;
    top: 80px;
    display: flex;
    gap: 12px;
}
.pdp-thumbs-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pdp-thumb {
    width: 64px;
    height: 64px;
    border: 2px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s;
    flex-shrink: 0;
}
.pdp-thumb.active,
.pdp-thumb:hover {
    border-color: var(--accent);
}
.pdp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pdp-main-img-wrap {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    flex: 1;
}
.pdp-main-img-wrap img {
    width: 100%;
    display: block;
    object-fit: contain;
    aspect-ratio: 1;
}
.pdp-offer-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--danger);
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* PDP Details */
.pdp-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.pdp-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}
.pdp-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.pdp-badge-tag,
.pdp-cat-tag {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}
.pdp-badge-tag {
    background: rgba(255, 127, 42, 0.15);
    color: var(--accent);
    border: 1px solid rgba(255, 127, 42, 0.3);
}
.pdp-cat-tag {
    background: var(--bg-surface);
    color: var(--text-muted);
    border: 1px solid var(--line);
}
.pdp-price-block {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.pdp-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent);
}
.pdp-old-price {
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}
.pdp-discount-tag {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ok);
}
.pdp-stock-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}
.pdp-stock-status.in-stock { color: var(--ok); }
.pdp-stock-status.out-of-stock { color: var(--danger); }
.pdp-delivery-check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ok);
    font-weight: 600;
    font-size: 0.9rem;
}
.pdp-delivery-icon { display: flex; align-items: center; }
.pdp-pincode-row {
    display: flex;
    gap: 8px;
}
.pdp-pincode-input {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.95rem;
}
.pdp-pincode-input:focus {
    outline: none;
    border-color: var(--accent);
}
.pdp-pincode-btn {
    padding: 10px 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}
.pdp-pincode-btn:hover { background: var(--accent-hover); }
.pdp-pin-result {
    font-size: 0.85rem;
    font-weight: 600;
}
.pdp-pin-result.success { color: var(--ok); }
.pdp-pin-result.error { color: var(--danger); }

/* PDP Specs Table */
.pdp-specs-table {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.pdp-spec-row {
    display: flex;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
}
.pdp-spec-row:last-child { border-bottom: none; }
.spec-label {
    width: 130px;
    flex-shrink: 0;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.spec-value {
    flex: 1;
    color: var(--text);
    font-size: 0.9rem;
}
.text-green { color: var(--ok); }
.text-red { color: var(--danger); }

/* PDP Buy Box */
.pdp-buy-box {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 80px;
}
.pdp-buy-price { text-align: center; }
.pdp-buy-offer {
    display: block;
    font-size: 0.8rem;
    color: var(--danger);
    font-weight: 600;
    margin-bottom: 4px;
}
.pdp-buy-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
}
.pdp-buy-discount {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}
.pdp-buy-delivery {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--ok);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: var(--radius-sm);
}
.pdp-qty-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.pdp-qty-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.pdp-qty-btn:hover { border-color: var(--accent); color: var(--accent); }
.pdp-qty-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    min-width: 30px;
    text-align: center;
}
.pdp-add-btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
}
.pdp-buy-btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    background: var(--ok);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}
.pdp-buy-btn:hover { background: #1ea54e; filter: brightness(1.1); }
.btn-buy-now { background: var(--ok); color: #fff; }
.btn-buy-now:hover { background: #1ea54e; }
.btn-disabled {
    background: #ddd;
    color: #999;
    cursor: not-allowed;
}
.btn-success {
    background: var(--ok) !important;
    color: #fff !important;
}

.pdp-trust-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}
.pdp-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--ok);
    font-weight: 600;
}

/* PDP Related Products */
.pdp-related {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}
.pdp-related .section-header {
    margin-bottom: 20px;
}
.pdp-related h2 {
    font-size: 1.3rem;
    font-weight: 700;
}
.section-line {
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin-top: 8px;
}
.scroll-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}
.scroll-row::-webkit-scrollbar { height: 4px; }
.scroll-row::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

/* ===== PRODUCT CARDS (main grid) ===== */
.product-card {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--line);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.product-card .product-img {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-surface, #f5f5f5);
}
.product-card .product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.product-card:hover .product-img img {
    transform: scale(1.05);
}
.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    background: var(--accent);
    color: #fff;
}
.badge-hot { background: #ef4444; }
.badge-new { background: var(--accent); }
.badge-best-seller { background: #8b5cf6; }
.badge-popular { background: #0ea5e9; }
.product-discount {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--ok);
    color: #fff;
    z-index: 2;
}
.product-card .product-info {
    padding: 12px 14px 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-cat {
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.product-name {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-prices {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.product-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
}
.product-old-price {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: line-through;
}
.product-stock {
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.product-stock.in { color: var(--ok); }
.product-stock.out { color: var(--danger, #ef4444); }
.product-actions {
    padding: 8px 14px 14px;
    display: flex;
    gap: 8px;
}
.btn-add {
    flex: 1;
    padding: 9px 12px;
    border: none;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    background: var(--accent);
    color: #fff;
}
.btn-add:hover { background: var(--accent-hover, #ff9a52); transform: translateY(-1px); }
.btn-add.disabled { background: #ddd; color: #999; cursor: not-allowed; }
.btn-buy {
    flex: 1;
    padding: 9px 12px;
    border: none;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    background: var(--ok);
    color: #fff;
}
.btn-buy:hover { background: #1ea54e; transform: translateY(-1px); }

/* Media slider controls */
.media-slider { position: relative; width: 100%; height: 100%; }
.media-slider img { width: 100%; height: 100%; object-fit: contain; }
.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.95);
    color: #333;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.product-card:hover .slide-btn { opacity: 1; }
.slide-btn.prev { left: 6px; }
.slide-btn.next { right: 6px; }
.slide-count {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 7px;
    border-radius: 10px;
    z-index: 3;
}

@media (max-width: 768px) {
    .product-card .product-info { padding: 8px 10px 6px; }
    .product-name { font-size: 0.78rem; }
    .product-price { font-size: 0.95rem; }
    .product-actions { padding: 6px 10px 10px; gap: 6px; }
    .btn-add, .btn-buy { font-size: 0.72rem; padding: 7px 8px; }
}

/* Product Card (small - for related) */
.product-card-sm {
    min-width: 200px;
    max-width: 220px;
    flex-shrink: 0;
    scroll-snap-align: start;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}
.product-card-sm:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.product-card-sm .product-img {
    position: relative;
    background: var(--bg-surface);
}
.product-card-sm .product-img img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
}
.product-card-sm .product-discount {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--danger);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}
.product-card-sm .product-info {
    padding: 12px;
}
.product-card-sm .product-cat {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.5px;
}
.product-card-sm .product-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin: 4px 0 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card-sm .product-prices {
    display: flex;
    align-items: center;
    gap: 8px;
}
.product-card-sm .product-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}
.product-card-sm .product-old-price {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* PDP Skeleton */
.pdp-skeleton {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 24px 0;
}
.pdp-skeleton-img {
    background: var(--bg-card);
    border-radius: var(--radius);
    aspect-ratio: 1;
    animation: shimmer 1.5s infinite;
}
.pdp-skeleton-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 20px;
}
.skeleton-line {
    height: 20px;
    background: var(--bg-card);
    border-radius: 4px;
    animation: shimmer 1.5s infinite;
}
.skeleton-line.w80 { width: 80%; }
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w40 { width: 40%; }
.skeleton-line.w30 { width: 30%; }

@keyframes shimmer {
    0% { opacity: 0.6; }
    50% { opacity: 0.3; }
    100% { opacity: 0.6; }
}

/* =============================================
   EMPTY STATE
   ============================================= */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state svg {
    margin-bottom: 16px;
}
.empty-state h3,
.empty-state h2 {
    color: var(--text);
    margin-bottom: 8px;
}
.empty-state p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

/* =============================================
   SUCCESS PAGE (Payment Confirmation)
   ============================================= */
.success-page {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}
.success-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 40px 32px;
    max-width: 560px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow);
}
.success-icon {
    margin-bottom: 16px;
}
.success-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}
.success-order-id {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.success-payment-info {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-align: left;
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}
.success-payment-info.cod {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}
.success-payment-info.upi {
    background: rgba(255, 127, 42, 0.1);
    border: 1px solid rgba(255, 127, 42, 0.2);
}
.success-payment-info strong {
    color: var(--text);
    display: block;
    margin-bottom: 4px;
}
.success-payment-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}
.payment-icon {
    flex-shrink: 0;
    margin-top: 2px;
}
.success-screenshot-section {
    text-align: left;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
}
.success-screenshot-section h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.success-screenshot-section p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}
.screenshot-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.upload-btn {
    cursor: pointer;
}
.upload-status {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
}
.upload-status.info { background: rgba(59, 130, 246, 0.1); color: var(--info); }
.upload-status.success { background: rgba(46, 200, 118, 0.1); color: var(--ok); }
.upload-status.error { background: rgba(213, 77, 77, 0.1); color: var(--danger); }

.success-email-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 16px 0;
}
.success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* =============================================
   TOAST NOTIFICATIONS
   ============================================= */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 380px;
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    pointer-events: all;
}
.toast-show {
    opacity: 1;
    transform: translateX(0);
}
.toast-success { background: #1a7a3a; border-left: 4px solid var(--ok); }
.toast-error { background: #7a1a1a; border-left: 4px solid var(--danger); }
.toast-info { background: #1a3a7a; border-left: 4px solid var(--info); }
.toast-warning { background: #7a5a1a; border-left: 4px solid #f59e0b; }
.toast-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.toast-close:hover { color: #fff; }

/* =============================================
   CATEGORY ICON IMAGE
   ============================================= */
.cat-icon-img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
}

/* =============================================
   ANIMATIONS
   ============================================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   PDP RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .pdp-layout {
        grid-template-columns: 1fr 1fr;
    }
    .pdp-buy-box {
        grid-column: 1 / -1;
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .pdp-buy-price { flex: 1; min-width: 200px; }
    .pdp-trust-badges { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }
    .menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-header);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        padding: 12px 16px;
        z-index: 999;
    }
    .menu.open { display: flex; }
    .menu a {
        padding: 10px 12px;
        border-radius: var(--radius-sm);
    }

    .pdp-layout {
        grid-template-columns: 1fr;
    }
    .pdp-gallery {
        position: static;
        flex-direction: column-reverse;
    }
    .pdp-thumbs-col {
        flex-direction: row;
        overflow-x: auto;
    }
    .pdp-buy-box {
        position: static;
    }
    .pdp-skeleton {
        grid-template-columns: 1fr;
    }

    .page-content {
        padding: 24px 0 40px;
    }
    .page-content h1 { font-size: 1.5rem; }

    .success-card { padding: 28px 20px; }
    .success-title { font-size: 1.2rem; }
    .screenshot-options { flex-direction: column; }
    .success-actions { flex-direction: column; }
    .success-actions .btn { width: 100%; }

    .track-card { padding: 24px 20px; }

    .breadcrumb { font-size: 0.8rem; }
}

@media (max-width: 480px) {
    .pdp-trust-badges {
        grid-template-columns: 1fr;
    }
    .pdp-price { font-size: 1.3rem; }
    .pdp-buy-amount { font-size: 1.5rem; }
    .pdp-title { font-size: 1.2rem; }
}

/* =============================================
   ADMIN DASHBOARD STYLES
   ============================================= */

/* Login Shell */
.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a0a00 0%, #331500 50%, #4d2000 100%);
    padding: 20px;
}
.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 32px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(255,102,0,0.15), 0 4px 20px rgba(0,0,0,0.2);
}
.login-card h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ff6600;
    margin-bottom: 4px;
}
.login-card p {
    color: #64748b;
    font-size: 0.88rem;
    margin-bottom: 20px;
}
.login-card label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 4px;
    display: block;
}
.login-card .btn-primary {
    background: linear-gradient(135deg, #ff6600, #ff8533);
    border: none;
    color: #fff;
}
.login-card .btn-primary:hover {
    background: linear-gradient(135deg, #e65c00, #ff6600);
}

/* Dashboard */
.dashboard {
    display: none;
    min-height: 100vh;
    background: #fef7f0;
    padding: 24px 0 60px;
}
.dashboard.show {
    display: block;
}
.admin-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}
.admin-top h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ff6600;
}

/* Card Block */
.card-block {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #ffe0c2;
}
.card-block h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #cc5200;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}
.stat-card {
    background: linear-gradient(135deg, #fff7f0, #fff0e6);
    border: 1px solid #ffd4a8;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255,102,0,0.15);
    border-color: #ff6600;
}
.stat-card::after {
    content: 'Click for details';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    font-size: 0.6rem;
    color: #ff8533;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.stat-card:hover::after {
    opacity: 1;
}
.stat-card span {
    display: block;
    font-size: 0.78rem;
    color: #995200;
    margin-bottom: 4px;
    font-weight: 600;
}
.stat-card strong {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ff6600;
}

/* Stat Detail Modal */
.stat-detail-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}
.stat-detail-modal {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    width: 100%;
    max-width: 640px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.stat-detail-modal h3 {
    color: #ff6600;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.stat-detail-modal .close-btn {
    background: #fee2e2;
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #991b1b;
    cursor: pointer;
}
.stat-detail-modal table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.stat-detail-modal th {
    background: #fff3e6;
    color: #cc5200;
    font-weight: 700;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 2px solid #ffd4a8;
}
.stat-detail-modal td {
    padding: 10px 12px;
    border-bottom: 1px solid #fff3e6;
    color: #475569;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    align-items: end;
}
.form-grid label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    display: block;
    margin-bottom: 4px;
}

/* Table Wrap */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.table-wrap th {
    background: #fff3e6;
    font-weight: 700;
    color: #cc5200;
    padding: 10px 12px;
    text-align: left;
    white-space: nowrap;
    border-bottom: 2px solid #ffd4a8;
}
.table-wrap td {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    vertical-align: top;
}
.table-wrap tr:hover td {
    background: #f8fafc;
}
.table-wrap img {
    max-width: 48px;
    height: auto;
    border-radius: 6px;
}

/* Analytics Grid */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}
.analytics-stats-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}
.chart-card {
    min-height: 200px;
}

/* Bar Chart (CSS-based) */
.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 160px;
    padding: 12px 0;
}
.bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.bar-label {
    min-width: 90px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    text-align: right;
}
.bar-track {
    flex: 1;
    height: 24px;
    background: #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
}
.bar-fill {
    display: block;
    height: 100%;
    border-radius: 12px;
    transition: width 0.5s ease;
}
.bar-value {
    min-width: 32px;
    font-size: 0.82rem;
    font-weight: 800;
    color: #1e293b;
}
/* Bar tone colors */
.tone-placed { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.tone-in-transit { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.tone-delivered { background: linear-gradient(90deg, #10b981, #34d399); }
.tone-cancelled { background: linear-gradient(90deg, #ef4444, #f87171); }
.tone-returned { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.tone-resend { background: linear-gradient(90deg, #ec4899, #f472b6); }

/* Donut Chart */
.donut-chart-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 16px 0;
}
.donut-svg {
    width: 180px;
    height: 180px;
    transform: rotate(-90deg);
}
.donut-center-text {
    font-size: 1.1rem;
    font-weight: 800;
    fill: #ff6600;
    transform: rotate(90deg);
    transform-origin: center;
}
.donut-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.donut-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #475569;
}
.donut-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}
.donut-legend-value {
    font-weight: 800;
    color: #1e293b;
    margin-left: auto;
    padding-left: 12px;
}

/* Analytics Visitor Cards */
.analytics-visitor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}
.analytics-visitor-card {
    background: linear-gradient(135deg, #fff7f0, #ffe8d4);
    border: 1px solid #ffd4a8;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}
.av-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ff6600;
}
.av-label {
    font-size: 0.78rem;
    color: #cc5200;
    font-weight: 600;
    margin-top: 2px;
}

/* Analytics Table */
.analytics-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.analytics-table th {
    background: #fff3e6;
    font-weight: 700;
    color: #cc5200;
    padding: 8px 12px;
    text-align: left;
    border-bottom: 2px solid #ffd4a8;
}
.analytics-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f5f9;
}

/* Order status badges */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}
.badge-placed { background: #fef3c7; color: #92400e; }
.badge-confirmed { background: #dbeafe; color: #1e40af; }
.badge-shipped, .badge-in_transit { background: #e0e7ff; color: #3730a3; }
.badge-delivered { background: #d1fae5; color: #065f46; }
.badge-cancelled { background: #fee2e2; color: #991b1b; }
.badge-returned { background: #fce7f3; color: #9d174d; }
.badge-resend { background: #f3e8ff; color: #6b21a8; }

/* Mini Tags for stock status */
.mini-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 700;
}
.mini-tag.is-in { background: #d1fae5; color: #065f46; }
.mini-tag.is-low { background: #fef3c7; color: #92400e; }
.mini-tag.is-out { background: #fee2e2; color: #991b1b; }

/* Order card styles */
.order-card {
    background: #fff;
    border: 1px solid #ffe0c2;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
}
.order-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}
.status-placed { background: #fef3c7; color: #92400e; }
.status-in_transit { background: #dbeafe; color: #1e40af; }
.status-delivered { background: #d1fae5; color: #065f46; }
.status-cancelled { background: #fee2e2; color: #991b1b; }
.status-returned { background: #fce7f3; color: #9d174d; }
.status-resend { background: #f3e8ff; color: #6b21a8; }

/* Payment tags */
.payment-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.68rem;
    font-weight: 700;
}
.payment-upi { background: #ede9fe; color: #5b21b6; }
.payment-cod { background: #fef3c7; color: #92400e; }
.payment-paid { background: #d1fae5; color: #065f46; }
.payment-cod.payment-tag { background: #e0e7ff; color: #3730a3; }
.payment-pending_verification { background: #fff3e6; color: #cc5200; }

/* Empty state */
.empty {
    padding: 24px;
    text-align: center;
    color: #999;
    font-size: 0.88rem;
}

/* Admin responsive */
@media (max-width: 768px) {
    .admin-top {
        flex-direction: column;
        align-items: flex-start;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    .login-card {
        padding: 28px 20px;
    }
}

/* Print */
@media print {
    .top-bar, header, .floating-buttons, .mobile-nav,
    .modal, .toast-container, .fab { display: none !important; }
    body { background: #fff; color: #000; }
    .card, .why-card, .contact, .order-card { border: 1px solid #ccc; box-shadow: none; }
}
