/* ===== SMADH SHOP — PUBLIC THEME ===== */
/* Ayurveda Brand: #173f29 (deep forest green), #d9b53f (herbal gold) */

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

:root {
    --orange: #173f29;
    --orange-light: #255239;
    --orange-dark: #0f291b;
    --orange-rgb: 23, 63, 41;
    --green: #2a6b46;
    --green-light: #3ba363;
    --green-dark: #1b452d;
    --green-rgb: 42, 107, 70;
    --gold: #d9b53f;
    --gold-light: #ecd074;
    --gold-dark: #b89528;
    --gold-rgb: 217, 181, 63;
    --bg: #fcfaf5;
    --bg-white: #ffffff;
    --sidebar-bg: #d8e6dc;
    --sidebar-hover: #cad9c8;
    --sidebar-border: #b8ccba;
    --text-dark: #131f18;
    --text-muted: #52665a;
    --text-light: #8da193;
    --border: #e8e2d5;
    --shadow-sm: 0 1px 3px rgba(23,63,41,0.06);
    --shadow-md: 0 4px 12px rgba(23,63,41,0.08);
    --shadow-lg: 0 8px 30px rgba(23,63,41,0.1);
    --shadow-xl: 0 20px 60px rgba(23,63,41,0.12);
    --font-sans: Arial, Helvetica, sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== DARK MODE ===== */
[data-theme="dark"] {
    --orange: #38a368;
    --orange-light: #5cb887;
    --orange-dark: #246e43;
    --orange-rgb: 56, 163, 104;
    --green: #4caf50;
    --green-light: #81c784;
    --green-dark: #388e3c;
    --green-rgb: 76, 175, 80;
    --gold: #e9c44f;
    --gold-light: #f5db7a;
    --gold-dark: #cda11f;
    --gold-rgb: 233, 196, 79;
    --bg: #0a120e;
    --bg-white: #121e18;
    --sidebar-bg: #0c1510;
    --sidebar-hover: #15241c;
    --sidebar-border: #243a2e;
    --text-dark: #e6ede8;
    --text-muted: #93ab9e;
    --text-light: #627c6e;
    --border: #192d23;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.6);
}
[data-theme="dark"] .site-header {
    background: #0c1712;
    border-color: var(--border);
}
[data-theme="dark"] .category-scroll-wrap { background: var(--bg); }
[data-theme="dark"] .search-bar input,
[data-theme="dark"] .mobile-search-bar input {
    background: #13241c;
    border-color: var(--border);
    color: var(--text-dark);
}
[data-theme="dark"] .search-dropdown {
    background: var(--bg-white);
    border-color: var(--border);
}
[data-theme="dark"] .product-card {
    background: var(--bg-white);
    border-color: var(--border);
}
[data-theme="dark"] .product-img {
    background: #172b21;
}
[data-theme="dark"] .category-card {
    background: var(--bg-white);
    border-color: var(--border);
}
[data-theme="dark"] .category-icon {
    background: rgba(var(--orange-rgb), 0.15);
}
[data-theme="dark"] .mobile-bottom-nav {
    background: #0c1712;
    border-color: var(--border);
}
[data-theme="dark"] .site-footer {
    background: #050a08;
    --footer-link-hover: var(--orange);
    --footer-accent: var(--orange);
}
[data-theme="dark"] .scroll-arrow {
    background: #1c3227;
    border: 2px solid #2d503e;
    color: #ffffff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
[data-theme="dark"] .pd-info-card {
    background: var(--bg-white);
}
[data-theme="dark"] .pd-sticky-bar {
    background: #0c1712;
    border-color: var(--border);
}
[data-theme="dark"] .pd-meta-chip {
    background: #172b21;
    color: var(--text-muted);
}
[data-theme="dark"] .pd-trust-badges .trust-badge {
    color: var(--text-muted);
}
[data-theme="dark"] .pd-desc-box {
    background: #172b21;
    border-color: var(--border);
}
[data-theme="dark"] .categories-modal {
    background: var(--bg-white);
}
[data-theme="dark"] .toast {
    background: var(--bg-white);
    color: var(--text-dark);
    border-color: var(--border);
}
[data-theme="dark"] .nav-scroll a {
    color: var(--text-muted);
}
[data-theme="dark"] .nav-scroll a.active {
    color: var(--orange);
}
[data-theme="dark"] .breadcrumb-bar {
    background: var(--bg);
}
[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #070c09 0%, #11261a 100%);
}
[data-theme="dark"] .hero::after {
    background: radial-gradient(circle, rgba(var(--orange-rgb), 0.04) 0%, transparent 70%);
}

/* Dark mode smooth transition */
body, .site-header, .product-card, .category-card, .mobile-bottom-nav,
.site-footer, .pd-info-card, .pd-sticky-bar, .search-bar input,
.scroll-arrow, .categories-modal, .toast, .usp-strip, .usp-item h4, .usp-item p, .usp-icon {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

/* Theme toggle button */
.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}
.theme-toggle:hover { color: var(--orange); }
.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    position: absolute;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}
.theme-toggle .icon-sun { opacity: 1; transform: rotate(0deg) scale(1); }
.theme-toggle .icon-moon { opacity: 0; transform: rotate(-90deg) scale(0.5); }
[data-theme="dark"] .theme-toggle .icon-sun { opacity: 0; transform: rotate(90deg) scale(0.5); }
[data-theme="dark"] .theme-toggle .icon-moon { opacity: 1; transform: rotate(0deg) scale(1); }
[data-theme="dark"] .theme-toggle { color: #fbbf24; }

/* Theme switch circular reveal overlay */
.theme-switch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    pointer-events: none;
}
.theme-switch-overlay.to-dark {
    background: #0f0f14;
}
.theme-switch-overlay.to-light {
    background: #f8f9fa;
}

/* View Transitions API — modern browsers */
::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}
::view-transition-new(root) {
    z-index: 99999;
}

/* Toggle pulse + glow during switch */
@keyframes togglePulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(var(--orange-rgb),0.4); }
    40% { transform: scale(1.25); box-shadow: 0 0 0 12px rgba(var(--orange-rgb),0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(var(--orange-rgb),0); }
}
.theme-toggle.switching {
    animation: togglePulse 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4, h5, h6, .section-title h2, .hero-text h1 {
    font-family: var(--font-sans);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    color: white;
    text-align: center;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
}
.announcement-bar i { margin-right: 6px; }

/* ===== HEADER ===== */
.site-header {
    background: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    border-bottom: 2px solid var(--orange);
}

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

.logo-wrap { flex-shrink: 0; display: flex; align-items: center; }
.logo-wrap .logo-img,
.logo-wrap img { height: 65px; width: auto; display: block; }
.logo-wrap .logo-img--dark { display: none; }
.logo-wrap .logo-text {
    font-size: 24px;
    font-weight: 900;
    color: var(--orange);
    line-height: 1.15;
}
[data-theme="dark"] .logo-wrap .logo-img--light { display: none; }
[data-theme="dark"] .logo-wrap .logo-img--dark { display: block; }
[data-theme="dark"] .logo-wrap .logo-text { color: #fff; }

.search-bar {
    flex: 1;
    max-width: 560px;
    position: relative;
    display: none;
}
.search-bar input {
    width: 100%;
    padding: 10px 44px 10px 16px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    background: var(--bg);
}
.search-bar input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(var(--orange-rgb), 0.15);
}
.search-bar button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--orange);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.search-bar button:hover { background: var(--orange-dark); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}
.header-btn i { font-size: 16px; }
.header-btn:hover { background: var(--bg); }

.btn-login {
    background: var(--orange);
    color: white !important;
    border-radius: 50px;
    padding: 8px 20px;
}
.btn-login:hover { background: var(--orange-dark) !important; }

.btn-text-desktop { display: none; }

.mobile-search-toggle {
    display: flex;
    font-size: 20px;
    color: var(--text-dark);
    padding: 8px;
}

.mobile-search-bar {
    display: none;
    padding: 0 16px 12px;
}
.mobile-search-bar.active { display: block; }
.mobile-search-bar input {
    width: 100%;
    padding: 10px 16px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 14px;
    outline: none;
    background: var(--bg);
}
.mobile-search-bar input:focus { border-color: var(--orange); }

/* ===== CATEGORY NAV ===== */
.category-nav {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: relative;
    display: flex;
    align-items: stretch;
}
.category-nav-scroll-wrap {
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}
.category-nav-scroll-wrap::-webkit-scrollbar { display: none; }
.category-nav-scroll-wrap.dragging { cursor: grabbing; user-select: none; }
.category-nav-inner {
    display: flex;
    gap: 0;
    min-width: max-content;
}
.category-nav-inner a {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 6px;
}
.category-nav-inner a:hover,
.category-nav-inner a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.07);
}

/* Arrow buttons */
.cat-nav-arrow {
    flex-shrink: 0;
    width: 36px;
    border: none;
    background: var(--bg-white);
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    border-bottom: 1px solid var(--border);
}
.cat-nav-arrow--left { box-shadow: 3px 0 6px rgba(0,0,0,0.06); border-right: 1px solid var(--border); }
.cat-nav-arrow--right { box-shadow: -3px 0 6px rgba(0,0,0,0.06); border-left: 1px solid var(--border); }
.cat-nav-arrow:hover { color: var(--primary); background: rgba(var(--primary-rgb), 0.07); }
.cat-nav-arrow.hidden { opacity: 0; pointer-events: none; }

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, #fdfaf4 0%, #edf5ee 100%);
    padding: 32px 0 40px;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(var(--green-rgb), 0.08) 0%, transparent 70%);
    border-radius: var(--radius-full);
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 12px;
}
.hero-text h1 span.orange { color: var(--orange); }
.hero-text h1 span.green { color: var(--green); }
.hero-text p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 20px;
    max-width: 480px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--orange);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(var(--orange-rgb), 0.3);
}
.btn-primary i { font-size: 15px; }
.btn-primary:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--orange-rgb), 0.4);
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--green);
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    border: 2px solid var(--green);
    transition: var(--transition);
}
.btn-secondary:hover {
    background: var(--green);
    color: white;
    transform: translateY(-2px);
}

.hero-badges {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.hero-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}
.hero-badge i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    font-size: 14px;
}
.hero-badge.green i { background: rgba(var(--green-rgb), 0.08); color: var(--green); }
.hero-badge.orange i { background: rgba(var(--orange-rgb), 0.08); color: var(--orange); }

/* ===== PROMO CAROUSEL ===== */
.promo-carousel-section { padding: 20px 0 8px; }
.promo-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}
.promo-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.promo-slide {
    min-width: 100%;
    flex-shrink: 0;
    padding: 0 4px;
    box-sizing: border-box;
}
.promo-slide-img {
    display: block;
    width: 100%;
    padding-bottom: 36.15%; /* reduced another 1.1x */
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    height: 0;
}
.promo-slide-img img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}
/* Desktop: two slides side by side (single banner still full width via modifier) */
@media (min-width: 768px) {
    .promo-slide { min-width: 50%; }
    .promo-carousel--single .promo-slide { min-width: 100%; }
    .promo-dots { display: flex; }
}
.promo-card {
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.promo-card::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
}
.promo-card.orange { background: linear-gradient(135deg, var(--orange), var(--orange-light)); }
.promo-card.green { background: linear-gradient(135deg, var(--green), var(--green-light)); }
.promo-card.dark { background: linear-gradient(135deg, #1a1a2e, #2d2d44); }
.promo-card h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}
.promo-card p {
    font-size: 14px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}
.promo-tag {
    display: inline-flex;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
    width: fit-content;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.promo-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 14px 0 6px;
}
.promo-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}
.promo-dot.active {
    background: var(--orange);
    width: 28px;
    border-radius: 5px;
}

/* ===== SECTION TITLES ===== */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.section-title h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
}
.section-title h2 .accent { color: var(--orange); }
.section-title a {
    font-size: 13px;
    font-weight: 600;
    color: var(--orange);
    display: flex;
    align-items: center;
    gap: 4px;
}
.section-title a:hover { color: var(--orange-dark); }

/* ===== CATEGORY CARDS ===== */
.categories-section { padding: 32px 0; }
.category-scroll-wrap {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0 -16px;
    padding: 0 16px;
}
.category-scroll-wrap::-webkit-scrollbar { display: none; }
.category-grid {
    display: flex;
    gap: 12px;
    min-width: max-content;
}
.category-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: block;
    width: 130px;
    flex-shrink: 0;
}
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--orange);
    transform: scaleX(0);
    transition: var(--transition);
}
.category-card:hover::before { transform: scaleX(1); }
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.category-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.category-card:nth-child(odd) .category-icon {
    background: rgba(var(--orange-rgb), 0.1);
    color: var(--orange);
}
.category-card:nth-child(even) .category-icon {
    background: rgba(var(--green-rgb), 0.1);
    color: var(--green);
}
.category-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}
.category-card span {
    font-size: 12px;
    color: var(--text-light);
}

/* ===== PRODUCT CARDS ===== */
.products-section { padding: 32px 0; }
.products-scroll-wrap {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0 -16px;
    padding: 0 16px;
    cursor: grab;
    scroll-behavior: smooth;
}
.products-scroll-wrap:active { cursor: grabbing; }
.products-scroll-wrap::-webkit-scrollbar { display: none; }

/* Scroll arrow buttons */
.scroll-section { position: relative; }
.scroll-arrow {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--bg-white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-dark);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}
.scroll-arrow:hover { background: var(--orange); color: white; border-color: var(--orange); }
.scroll-arrow.left { left: -8px; }
.scroll-arrow.right { right: -8px; }
@media (min-width: 768px) {
    .scroll-arrow { display: flex; }
}
.products-row {
    display: flex;
    gap: 12px;
    min-width: max-content;
}
.product-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    width: 165px;
    flex-shrink: 0;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.product-img {
    width: 100%;
    height: 140px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    position: relative;
    flex-shrink: 0;
}
.product-img img {
    max-height: 100%;
    object-fit: contain;
}
.product-img--slider {
    padding: 0;
    overflow: hidden;
}
.product-img-slider {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 140px;
}
.product-img-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.55s ease;
    pointer-events: none;
}
.product-img-slide.is-active {
    opacity: 1;
    z-index: 1;
}
.product-img-slide img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}
@media (prefers-reduced-motion: reduce) {
    .product-img-slide {
        transition: none;
    }
    .product-img-slide:not(.is-active) {
        display: none;
    }
}
.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--green);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 50px;
    text-transform: uppercase;
}
.product-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}
.product-info h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-price {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}
.product-price-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}
.product-price .rate {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
}
.product-price .cost {
    font-size: 12px;
    color: var(--text-light);
    text-decoration: line-through;
}
.product-mrp {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
}
.product-price .product-variant-hint {
    margin-left: 0;
    flex-shrink: 0;
    align-self: flex-start;
}
.product-add-btn {
    width: 100%;
    padding: 8px;
    background: var(--orange);
    color: white;
    border: none;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
    margin-top: auto;
}
.product-add-btn:hover { background: var(--orange-dark); }

/* In-cart qty control on product cards */
.product-add-btn.in-cart {
    background: var(--green);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    gap: 0;
    cursor: default;
    min-height: 38px;
}
.product-add-btn.in-cart:hover { background: var(--green); }
.card-qty-minus, .card-qty-plus {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 100%;
    min-height: 38px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
    color: white;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.card-qty-minus:hover, .card-qty-plus:hover { background: rgba(0,0,0,0.15); }
.card-qty-minus:active, .card-qty-plus:active { background: rgba(0,0,0,0.25); transform: scale(0.92); }
.card-qty-num {
    font-size: 15px;
    font-weight: 900;
    min-width: 32px;
    text-align: center;
    color: white;
    letter-spacing: 0.5px;
}

/* ===== GROUP SECTIONS ===== */
.group-section { padding: 24px 0; }

/* ===== USP STRIP ===== */
.usp-strip {
    background: linear-gradient(135deg, #fff8f0, #f0fdf4);
    padding: 32px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.usp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.usp-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.usp-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.usp-item:nth-child(odd) .usp-icon { background: rgba(var(--orange-rgb),0.1); color: var(--orange); }
.usp-item:nth-child(even) .usp-icon { background: rgba(var(--green-rgb),0.1); color: var(--green); }
.usp-item h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
}
.usp-item p {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.3;
}

/* USP strip: dark mode (keep dedicated surface — global --text-* flips light on dark theme) */
[data-theme="dark"] .usp-strip {
    background: linear-gradient(135deg, #1a1816 0%, #121a17 50%, #14161c 100%);
    border-top-color: #2a2a3a;
    border-bottom-color: #2a2a3a;
}
[data-theme="dark"] .usp-item:nth-child(odd) .usp-icon {
    background: rgba(var(--orange-rgb), 0.2);
    color: #fdba74;
}
[data-theme="dark"] .usp-item:nth-child(even) .usp-icon {
    background: rgba(var(--green-rgb), 0.18);
    color: #86efac;
}
[data-theme="dark"] .usp-item h4 {
    color: #eaeaf0;
}
[data-theme="dark"] .usp-item p {
    color: #9ca3af;
}

/* ===== FOOTER ===== */
.site-footer {
    --footer-link-hover: var(--green-light);
    --footer-accent: var(--green-light);
    background: var(--text-dark);
    color: #d1d5db;
    padding: 48px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
}
.footer-brand p {
    font-size: 13px;
    line-height: 1.7;
    margin-top: 12px;
    color: #9ca3af;
}
.footer-brand img {
    height: 60px;
    filter: brightness(10);
}
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    font-size: 15px;
    transition: var(--transition);
}
.footer-social a:hover {
    background: var(--footer-accent);
    color: white;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--footer-accent);
    border-radius: 2px;
}
.footer-col ul li a {
    font-size: 13px;
    color: #9ca3af;
    padding: 4px 0;
    display: block;
    transition: var(--transition);
}
.footer-col ul li a:hover {
    color: var(--footer-link-hover);
    padding-left: 4px;
}
.contact-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #9ca3af;
}
.contact-item i {
    color: var(--footer-accent);
    width: 16px;
    text-align: center;
    margin-top: 3px;
}
.contact-item a.footer-contact-link {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}
.contact-item a.footer-contact-link:hover {
    color: var(--footer-link-hover);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
}
.footer-bottom p {
    font-size: 12px;
    color: #6b7280;
}
.footer-bottom .payment-icons {
    display: flex;
    gap: 8px;
}
.footer-bottom .payment-icons i {
    font-size: 24px;
    color: #6b7280;
}

/* ===== FOOTER — MOBILE APP STYLES ===== */
.footer-mobile-brand { display: none; }
.footer-mobile-social { display: none; }
.footer-acc-icon { display: none; }

@media (max-width: 767px) {
    .usp-strip { display: none; }
    .footer-desktop-only { display: none !important; }

    .site-footer { padding: 24px 0 80px; }

    .footer-mobile-brand {
        display: flex;
        align-items: center;
        gap: 12px;
        padding-bottom: 16px;
        margin-bottom: 8px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .footer-mobile-brand img {
        height: 48px;
        filter: brightness(10);
    }
    .footer-mobile-brand p {
        font-size: 12px;
        color: #9ca3af;
        line-height: 1.4;
    }

    .footer-grid { gap: 0; margin-bottom: 0; }

    .footer-accordion {
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .footer-acc-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        padding: 14px 0;
        margin-bottom: 0 !important;
        padding-bottom: 14px !important;
        user-select: none;
    }
    .footer-acc-toggle::after { display: none; }
    .footer-acc-icon {
        display: inline-block;
        font-size: 12px;
        color: #6b7280;
        transition: transform 0.3s ease;
    }
    .footer-accordion.open .footer-acc-icon {
        transform: rotate(180deg);
    }
    .footer-acc-body {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        padding: 0;
    }
    .footer-accordion.open .footer-acc-body {
        max-height: 300px;
        padding-bottom: 12px;
    }

    .footer-mobile-social {
        display: flex;
        justify-content: center;
        gap: 12px;
        padding: 20px 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .footer-mobile-social a {
        width: 40px;
        height: 40px;
        border-radius: var(--radius-full);
        background: rgba(255,255,255,0.08);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #d1d5db;
        font-size: 16px;
        transition: var(--transition);
    }
    .footer-mobile-social a:hover {
        background: var(--footer-accent);
        color: white;
    }

    .footer-bottom { padding: 16px 0; }
    .footer-bottom p { font-size: 11px; }
    .footer-bottom .payment-icons i { font-size: 20px; }
    .back-to-top { bottom: 72px; right: 16px; width: 38px; height: 38px; font-size: 15px; }
}
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--orange);
    color: white;
    border-radius: var(--radius-full);
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition);
    font-size: 18px;
}
.back-to-top.visible { display: flex; }
.back-to-top:hover {
    background: var(--orange-dark);
    transform: translateY(-3px);
}

/* ===== MOBILE BOTTOM NAV ===== */
.mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
}
.mobile-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
    gap: 3px;
}
.mobile-bottom-nav a i { font-size: 18px; }
.mobile-bottom-nav a.active { color: var(--orange); }

/* ===== RESPONSIVE ===== */
@media (min-width: 640px) {
    .product-card { width: 180px; }
    .category-card { width: 140px; }
}

@media (min-width: 768px) {
    .container { padding: 0 24px; }
    .mobile-bottom-nav { display: none; }
    .mobile-search-toggle { display: none; }
    .search-bar { display: block; }
    .btn-text-desktop { display: inline !important; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-text h1 { font-size: 36px; }
    .footer-bottom { flex-direction: row; justify-content: space-between; }
    body { padding-bottom: 0; }
    .category-card { width: 150px; }
}

@media (min-width: 1024px) {
    .header-top { padding: 14px 0; }
    .logo-wrap img { height: 75px; }
    .hero { padding: 48px 0 56px; }
    .hero-content { flex-direction: row; align-items: center; justify-content: space-between; }
    .hero-text { max-width: 55%; }
    .hero-text h1 { font-size: 42px; }
    .usp-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; }
    .product-card { width: 200px; }
    .category-card { width: 160px; }
}

@media (max-width: 767px) {
    body { padding-bottom: 56px; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ===== BREADCRUMB ===== */
.breadcrumb-bar {
    background: var(--bg);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.breadcrumb-bar a { color: var(--text-muted); transition: var(--transition); }
.breadcrumb-bar a:hover { color: var(--orange); }
.breadcrumb-bar i { margin: 0 8px; font-size: 10px; color: var(--text-light); }
.breadcrumb-bar span { color: var(--text-dark); font-weight: 600; }

/* ===== PRODUCT DETAIL — MOBILE APP FEEL ===== */
.pd-main {
    display: flex;
    flex-direction: column;
}
.pd-hero {
    position: relative;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    overflow: hidden;
}
.pd-hero img {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    padding: 16px;
}
.pd-hero .pd-placeholder {
    font-size: 80px;
    color: var(--border);
}
.pd-hero-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pd-gallery-thumbs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 0 4px 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.pd-gallery-thumb {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 2px solid var(--border);
    border-radius: var(--radius-md, 10px);
    background: var(--bg-white, #fff);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pd-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pd-gallery-thumb.is-active {
    border-color: var(--primary, #f3630f);
    box-shadow: 0 0 0 1px var(--primary, #f3630f);
}
.pd-back-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
    z-index: 10;
    transition: var(--transition);
}
.pd-back-btn:hover { background: white; transform: scale(1.1); }
.pd-discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--orange);
    color: white;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 50px;
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.pd-body { padding: 0 0 120px; }
.pd-info-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin-top: -16px;
    position: relative;
    z-index: 5;
    padding: 20px 16px 16px;
}
.pd-category {
    display: inline-block;
    background: rgba(var(--green-rgb), 0.1);
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pd-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 10px;
}
.pd-pricing {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.pd-rate {
    font-size: 26px;
    font-weight: 900;
    color: var(--orange);
}
.pd-cost {
    font-size: 16px;
    color: var(--text-light);
    text-decoration: line-through;
}
.pd-mrp-plain {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
}
.pd-discount {
    background: rgba(var(--orange-rgb), 0.1);
    color: var(--orange);
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
}
/* Variant picker chips */
.pd-variant-picker {
    margin: 12px 0 16px;
}
.pd-variant-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.pd-variant-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.pd-variant-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 16px;
    border-radius: 12px;
    border: 2px solid var(--border);
    background: var(--bg-white);
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    transition: all .15s;
    line-height: 1.3;
}
.pd-variant-chip .pd-variant-price {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}
.pd-variant-chip:hover {
    border-color: var(--orange);
}
.pd-variant-chip.is-active {
    border-color: var(--orange);
    background: rgba(var(--orange-rgb), .08);
    color: var(--orange-dark);
}
.pd-variant-chip.is-active .pd-variant-price {
    color: var(--orange);
}
[data-theme="dark"] .pd-variant-chip {
    background: #1e1e2e;
    border-color: rgba(255,255,255,.12);
}
[data-theme="dark"] .pd-variant-chip.is-active {
    background: rgba(var(--orange-rgb), .15);
    border-color: var(--orange);
}

.pd-meta-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.pd-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}
.pd-chip i { color: var(--green); font-size: 12px; }

.pd-desc-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 12px;
}
.pd-desc-card h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}
.pd-desc-card h3 i { color: var(--orange); margin-right: 6px; }
.pd-desc-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Desktop-only Add to Cart actions — hidden on mobile */
.pd-desktop-actions {
    display: none;
}

.pd-trust-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 16px;
}
.pd-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}
.pd-trust-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(var(--green-rgb),0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--green);
}
.pd-trust-item span {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.3;
}

.pd-related { margin-top: 24px; }
.pd-related-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 14px;
}

/* STICKY BOTTOM BAR (mobile only) */
.pd-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.pd-sticky-price {
    display: flex;
    flex-direction: column;
    min-width: 70px;
}
.pd-sticky-amount {
    font-size: 20px;
    font-weight: 900;
    color: var(--text-dark);
}
.pd-sticky-mrp {
    font-size: 12px;
    color: var(--text-light);
    text-decoration: line-through;
}
.pd-sticky-mrp--plain {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
}
.pd-sticky-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.pd-sticky-cart-btn {
    padding: 10px 20px;
    background: var(--orange);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.pd-sticky-cart-btn:hover { background: var(--orange-dark); transform: translateY(-1px); }
.pd-sticky-cart-btn:active { transform: scale(0.97); }
.qty-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.qty-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-dark);
    background: var(--bg);
    cursor: pointer;
    transition: var(--transition);
}
.qty-btn:hover { background: var(--border); }
.qty-selector input {
    width: 50px;
    height: 40px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    border: none;
    outline: none;
    background: var(--bg-white);
    -moz-appearance: textfield;
}
.qty-selector input::-webkit-outer-spin-button,
.qty-selector input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-sm { border-width: 1px; }
.qty-sm .qty-btn { width: 32px; height: 32px; font-size: 12px; }
.qty-sm span { width: 36px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }

.pd-add-to-cart {
    flex: 1;
    min-width: 180px;
    padding: 12px 24px;
    background: var(--orange);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.pd-add-to-cart:hover { background: var(--orange-dark); transform: translateY(-2px); }

.pd-features {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.pd-feat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}
.pd-feat i { color: var(--green); font-size: 16px; }

/* ===== ARCHIVE / SEARCH GRID ===== */
.archive-section, .search-section { padding: 24px 0 40px; }
.archive-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.archive-header h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
}
.archive-header span {
    font-size: 14px;
    color: var(--text-muted);
}
.archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.archive-grid .product-card {
    width: auto;
    flex-shrink: unset;
}

/* ===== ARCHIVE LAYOUT + CATEGORY SIDEBAR ===== */
.archive-section,
.search-section {
    background: var(--bg);
}
.archive-layout {
    display: flex;
    align-items: flex-start;
    gap: 0;
}
.archive-main.is-loading {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.15s ease;
}
.archive-main {
    flex: 1;
    min-width: 0;
}
.archive-section .archive-main,
.search-section .archive-main {
    background: var(--bg-white);
    border-left: 1px solid var(--border);
    box-shadow: -4px 0 24px rgba(var(--orange-rgb), 0.04);
}
.archive-main .container {
    padding-left: 12px;
    padding-right: 12px;
}
.archive-section .breadcrumb-bar .container,
.search-section .archive-main > .container {
    max-width: 100%;
}
.category-sidebar {
    flex-shrink: 0;
    width: 92px;
    background: var(--sidebar-bg);
    border-right: 2px solid var(--sidebar-border);
    box-shadow: 4px 0 16px rgba(var(--orange-rgb), 0.12);
    position: sticky;
    top: var(--shop-sticky-offset, 0px);
    align-self: flex-start;
    max-height: calc(100dvh - var(--shop-sticky-offset, 0px) - var(--shop-bottom-offset, 0px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 50;
}
.category-sidebar-all {
    flex-shrink: 0;
    z-index: 2;
    background: var(--sidebar-bg);
    border-bottom: 1px solid var(--sidebar-border);
}
.category-sidebar-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
.category-sidebar-nav {
    display: flex;
    flex-direction: column;
    padding-bottom: 12px;
}
.category-sidebar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 4px;
    text-decoration: none;
    color: var(--text-dark);
    border-bottom: 1px solid var(--sidebar-border);
    transition: background 0.15s ease;
}
.category-sidebar-item:hover {
    background: var(--sidebar-hover);
}
.category-sidebar-item.active {
    background: var(--bg-white);
    border-left: 3px solid var(--orange);
    padding-left: 1px;
    box-shadow: inset 0 0 0 1px rgba(var(--orange-rgb), 0.08);
}
.category-sidebar-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border: 1px solid var(--sidebar-border);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}
.category-sidebar-item.active .category-sidebar-thumb {
    border-color: rgba(var(--orange-rgb), 0.25);
    box-shadow: 0 2px 8px rgba(var(--orange-rgb), 0.12);
}
.category-sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.category-sidebar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--orange);
    font-size: 20px;
}
.category-sidebar-label {
    font-size: 10px;
    line-height: 1.25;
    text-align: center;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    max-width: 100%;
}
[data-theme="dark"] .category-sidebar {
    border-right-color: var(--sidebar-border);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.45);
}
[data-theme="dark"] .archive-section .archive-main,
[data-theme="dark"] .search-section .archive-main {
    border-left-color: var(--sidebar-border);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.35);
}
[data-theme="dark"] .category-sidebar-item {
    border-bottom-color: var(--sidebar-border);
}
[data-theme="dark"] .category-sidebar-item.active {
    background: var(--bg-white);
}
[data-theme="dark"] .category-sidebar-thumb {
    border-color: var(--sidebar-border);
}
@media (max-width: 768px) {
    :root {
        --shop-bottom-offset: 56px;
    }
    .archive-section,
    .search-section {
        padding-bottom: 72px;
    }
}
@media (min-width: 769px) {
    :root {
        --shop-bottom-offset: 0px;
    }
    .category-sidebar {
        width: 148px;
    }
    .category-sidebar-thumb {
        width: 60px;
        height: 60px;
    }
    .category-sidebar-label {
        font-size: 11px;
    }
    .category-sidebar-item {
        padding: 10px 8px;
    }
}
@media (min-width: 1024px) {
    .category-sidebar {
        width: 200px;
    }
    .category-sidebar-thumb {
        width: 72px;
        height: 72px;
    }
    .category-sidebar-label {
        font-size: 13px;
        -webkit-line-clamp: 4;
    }
    .category-sidebar-item {
        padding: 14px 12px;
    }
}

/* Home: left sidebar top-aligned with content (category pages jaisa) */
.home-archive-section {
    padding-top: 0;
}
.home-archive-section .archive-layout {
    align-items: flex-start;
}
.home-archive-section .category-sidebar {
    align-self: flex-start;
}
@media (max-width: 768px) {
    .home-archive-section {
        padding-bottom: 72px;
    }
}

/* ===== SEARCH PAGE ===== */
.search-page-bar {
    margin-bottom: 24px;
}
.search-page-bar form {
    position: relative;
}
.search-page-bar input {
    width: 100%;
    padding: 14px 52px 14px 20px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    background: var(--bg-white);
    transition: var(--transition);
}
.search-page-bar input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(var(--orange-rgb),0.15); }
.search-page-bar button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--orange);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 16px;
}
.search-page-bar button:hover { background: var(--orange-dark); }

/* ===== SEARCH DROPDOWN ===== */
.search-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1100;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 4px;
}
.search-result-item {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
}
.search-result-item:hover { background: var(--bg); }
.search-result-item:last-of-type { border-bottom: none; }
.sri-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px 10px 16px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}
.sri-img {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.sri-img img { width: 100%; height: 100%; object-fit: contain; }
.sri-img i { font-size: 18px; color: var(--text-light); }
.sri-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sri-name { font-size: 13px; font-weight: 600; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sri-price { font-size: 13px; font-weight: 700; color: var(--orange); }
.sri-price-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}
.sri-price-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.sri-variant-hint { font-size: 10px; margin-left: 0; }
.sri-mrp-line { font-size: 11px; line-height: 1.2; }
.sri-mrp {
    font-weight: 600;
    color: var(--text-light);
}
.sri-mrp--strike {
    text-decoration: line-through;
}

/* Search Cart Button */
.search-dropdown .search-result-item {
    min-width: 0;
}
.search-dropdown .sri-cart-btn {
    position: relative;
    z-index: 2;
}
.sri-cart-btn {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 2px solid var(--green, #16a34a);
    background: var(--green, #16a34a);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    transition: all .2s;
    padding: 0;
}
.sri-cart-btn:hover { background: #15803d; border-color: #15803d; }
.sri-cart-btn.in-cart {
    width: auto;
    min-width: 80px;
    background: var(--green, #16a34a);
    border-color: var(--green, #16a34a);
    color: #fff;
    gap: 0;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
}
.sri-qty-minus, .sri-qty-plus {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 34px;
    cursor: pointer;
    font-size: 12px;
    transition: background .15s;
}
.sri-qty-minus:hover, .sri-qty-plus:hover { background: rgba(255,255,255,.2); }
.sri-qty-num {
    font-size: 13px;
    font-weight: 800;
    min-width: 24px;
    text-align: center;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}
.search-view-all {
    display: block;
    text-align: center;
    padding: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--orange);
    border-top: 1px solid var(--border);
}
.search-view-all:hover { background: var(--bg); }

.search-bar { position: relative; }
.mobile-search-bar { position: relative; }

/* ===== CART PAGE ===== */
.cart-section { padding: 24px 0 40px; }
.cart-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 24px;
}
.cart-title i { color: var(--orange); margin-right: 8px; }
.cart-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.cart-items-list { display: flex; flex-direction: column; gap: 12px; }
.cart-item {
    display: flex;
    gap: 12px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    transition: var(--transition);
}
.cart-item:hover { box-shadow: var(--shadow-sm); }
.cart-item-img {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-img i { font-size: 28px; color: var(--text-light); }
.cart-item-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}
.cart-item-name:hover { color: var(--orange); }
.cart-item-price { font-size: 15px; font-weight: 800; color: var(--orange); }
.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}
.cart-item-subtotal {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-left: auto;
}
.cart-remove-btn {
    color: var(--text-light);
    font-size: 14px;
    padding: 4px;
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border: none;
}
.cart-remove-btn:hover { color: #ef4444; }

.cart-summary {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    position: sticky;
    top: 80px;
    height: fit-content;
}
.cart-summary h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-dark);
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 8px 0;
    color: var(--text-muted);
}
.cart-summary-row.total {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
}
.delivery-free { color: var(--green); font-weight: 700; }
.cart-summary-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}
.btn-outline-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    border: 2px solid var(--orange);
    color: var(--orange);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition);
}
.btn-outline-full:hover { background: var(--orange); color: white; }

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}
.empty-state > i {
    font-size: 64px;
    color: var(--border);
    margin-bottom: 16px;
}
.empty-state h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.empty-state p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ===== CART BADGE ===== */
.header-cart-btn { position: relative; }
.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--orange);
    color: white;
    font-size: 10px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.mobile-cart-link, .mobile-notif-link { position: relative; }
.mobile-cart-badge {
    position: absolute;
    top: 4px;
    right: 50%;
    transform: translateX(14px);
    background: var(--orange);
    color: white;
    font-size: 9px;
    font-weight: 800;
    width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 140px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--green);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: var(--shadow-lg);
    /* Hidden toast must not intercept taps (e.g. vendor portal fixed tab bar is z-index 200). */
    pointer-events: none;
}
.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.toast.error { background: #ef4444; }

/* ===== CATEGORIES MODAL ===== */
.categories-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    justify-content: center;
    align-items: flex-end;
}
.categories-modal-overlay.active {
    display: flex;
}
.categories-modal {
    background: var(--bg-white);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.categories-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 12px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg-white);
    z-index: 1;
}
.categories-modal-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
}
.categories-modal-header h3 i { color: var(--orange); margin-right: 8px; }
.categories-modal-header button {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-muted);
    cursor: pointer;
    border: none;
    transition: var(--transition);
}
.categories-modal-header button:hover { background: var(--border); }
.categories-modal-body { padding: 8px 0; }
.cat-modal-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.cat-modal-item:hover { background: var(--bg); }
.cat-modal-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--bg);
    border: 1px solid var(--border);
}
.cat-modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
.cat-modal-icon {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.cat-modal-icon.orange { background: rgba(var(--orange-rgb),0.1); color: var(--orange); }
.cat-modal-icon.green { background: rgba(var(--green-rgb),0.1); color: var(--green); }
.cat-modal-item span {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}
.cat-modal-arrow { color: var(--text-light); font-size: 12px; }

/* ===== BOTTOM MODALS (Account + Mini Cart) ===== */
.btm-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 2000;
    justify-content: center;
    align-items: flex-end;
}
.btm-modal-overlay.active { display: flex; }

/* Variant picker (pack size) — global overlay; hidden until .vp-visible */
.vp-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 2100;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}
.vp-overlay[hidden] {
    display: none !important;
}
.vp-overlay.vp-visible {
    display: flex;
}
body.vp-open {
    overflow: hidden;
}
.vp-sheet {
    background: #fff;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 480px;
    padding: 8px 20px calc(20px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.vp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 800;
    color: #1a1a2e;
}
.vp-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.05);
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.vp-body {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    max-height: 45vh;
    overflow-y: auto;
}
.vp-chip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    min-width: 100px;
}
.vp-chip-active {
    border-color: var(--orange);
    background: rgba(var(--orange-rgb), 0.06);
}
.vp-chip-label {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
}
.vp-chip-price {
    font-size: 12px;
    font-weight: 600;
    color: var(--orange);
}
.vp-confirm {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(var(--orange-rgb), 0.25);
}
.vp-confirm:hover {
    filter: brightness(1.03);
}
[data-theme="dark"] .vp-sheet {
    background: #1e293b;
}
[data-theme="dark"] .vp-header {
    color: #f1f5f9;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .vp-chip {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .vp-chip-label {
    color: #f1f5f9;
}

.btm-modal {
    background: #fff;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s cubic-bezier(.4,0,.2,1);
    padding: 8px 20px 24px;
    -webkit-overflow-scrolling: touch;
}
.btm-modal-handle {
    width: 36px; height: 4px;
    background: rgba(0,0,0,.12);
    border-radius: 2px;
    margin: 0 auto 14px;
}

/* Profile */
.btm-modal-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 12px 24px;
    border-bottom: 1px solid rgba(0,0,0,.04);
    margin-bottom: 8px;
}
.btm-modal-avatar {
    width: 64px; height: 64px;
    border-radius: 16px;
    background: var(--orange);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(var(--orange-rgb),.2);
}
.btm-modal-name { font-size: 18px; font-weight: 800; color: #1a1a2e; }
.btm-modal-email { font-size: 13px; color: #888; margin-top: 4px; }

/* Action Links */
.btm-modal-actions { padding: 4px 0; display: flex; flex-direction: column; gap: 0; }
.btm-modal-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 6px;
    border-bottom: 1px solid rgba(0,0,0,.04);
    text-decoration: none;
    transition: background .2s;
    -webkit-tap-highlight-color: transparent;
}
.btm-modal-action:active { background: rgba(0,0,0,.03); border-radius: 12px; }
.btm-modal-action:last-child { border-bottom: none; }
.btm-modal-action span { flex: 1; font-size: 14px; font-weight: 700; color: #1a1a2e; }

/* Action Icons - Soft rounded squares */
.btm-modal-action-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
    /* Default (e.g. Profile) */
    background: #fff4ed; color: var(--orange);
}
.btm-modal-action-icon.blue { background: #f0f5ff; color: #3b82f6; }
.btm-modal-action-icon.indigo { background: #eef2ff; color: #6366f1; }
.btm-modal-action-icon.yellow { background: #fefce8; color: #ca8a04; }
.btm-modal-action-icon.orange { background: #fff8eb; color: #d97706; }
.btm-modal-action-icon.green { background: #f0fdf4; color: #22c55e; }
.btm-modal-action-icon.teal { background: #ecfdf5; color: #059669; }
.btm-modal-action-icon.purple { background: #f5f3ff; color: #8b5cf6; }
.btm-modal-action-icon.red { background: #fef2f2; color: #ef4444; }

.btm-modal-arrow { color: #d1d5db; font-size: 14px; }
.btm-modal-action.danger span { color: #ef4444; }

/* Login button */
.btm-modal-login-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px;
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: #fff; font-size: 14px; font-weight: 700;
    border-radius: 14px; text-decoration: none;
    box-shadow: 0 4px 15px rgba(var(--orange-rgb),.25);
    transition: all .2s ease;
}
.btm-modal-login-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(var(--orange-rgb),.35); }
.btm-modal-login-btn i { font-size: 16px !important; margin: 0 !important; display: inline !important; color: #fff !important; }

/* Modal Header (cart) */
.btm-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0 14px;
    border-bottom: 1px solid rgba(0,0,0,.05);
    margin-bottom: 4px;
}
.btm-modal-header h3 {
    font-size: 17px; font-weight: 800; color: #1a1a2e;
    display: flex; align-items: center; gap: 8px;
}
.btm-modal-viewall {
    font-size: 12px; font-weight: 600; color: var(--orange);
    text-decoration: none; display: flex; align-items: center; gap: 4px;
}
.btm-modal-viewall:hover { text-decoration: underline; }

/* Cart Items */
.btm-modal-cart-content { padding: 4px 0; }
.mini-cart-items { max-height: 45vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.mini-cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 2px;
    border-bottom: 1px solid rgba(0,0,0,.04);
}
.mini-cart-item:last-child { border-bottom: none; }
.mini-cart-item-img {
    width: 48px; height: 48px;
    border-radius: 10px;
    background: #f8f8fa;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; flex-shrink: 0;
}
.mini-cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.mini-cart-item-img i { font-size: 16px; color: #ccc; }
.mini-cart-item-info { flex: 1; min-width: 0; }
.mini-cart-item-name {
    font-size: 13px; font-weight: 700; color: #1a1a2e;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mini-cart-item-meta { font-size: 11px; color: #999; margin-top: 2px; }
.mini-cart-item-price { font-size: 14px; font-weight: 800; color: #1a1a2e; flex-shrink: 0; }

/* Cart Footer */
.mini-cart-footer {
    padding: 14px 0 0;
    border-top: 1.5px solid rgba(0,0,0,.06);
    margin-top: 4px;
}
.mini-cart-total {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 15px; font-weight: 800; color: #1a1a2e;
    margin-bottom: 12px;
}
.btm-modal-checkout-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 14px;
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: #fff; font-size: 15px; font-weight: 700;
    border-radius: 14px; text-decoration: none;
    box-shadow: 0 4px 15px rgba(var(--orange-rgb),.25);
    transition: all .2s ease;
}
.btm-modal-checkout-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(var(--orange-rgb),.35); }

/* Empty / Loading */
.btm-modal-empty {
    text-align: center; padding: 32px 0;
}
.btm-modal-empty i { font-size: 40px; color: #ddd; margin-bottom: 12px; display: block; }
.btm-modal-empty p { font-size: 14px; color: #999; margin-bottom: 16px; }
.btm-modal-loading {
    text-align: center; padding: 24px 0;
    font-size: 13px; color: #999;
}
.btm-modal-loading i { margin-right: 6px; }

/* Dark mode */
[data-theme="dark"] .btm-modal { background: #1a1a24; }
[data-theme="dark"] .btm-modal-handle { background: rgba(255,255,255,.12); }
[data-theme="dark"] .btm-modal-name,
[data-theme="dark"] .btm-modal-header h3,
[data-theme="dark"] .btm-modal-action span,
[data-theme="dark"] .mini-cart-item-name,
[data-theme="dark"] .mini-cart-item-price,
[data-theme="dark"] .mini-cart-total { color: #eaeaf0; }
[data-theme="dark"] .mini-cart-item-img { background: #12121a; }

/* ===== AUTH PAGE ===== */
.auth-section {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    background: #f8f8fa;
}
.auth-container { width: 100%; max-width: 480px; margin: 0 auto; }
.auth-card {
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    border: none;
    min-height: calc(100vh - 120px);
}
@media (min-width: 520px) {
    .auth-section { padding: 40px 16px; align-items: center; }
    .auth-card { border-radius: 24px; box-shadow: 0 8px 40px rgba(0,0,0,.06); border: 1px solid rgba(0,0,0,.04); min-height: auto; }
}
.auth-progress {
    height: 3px;
    background: rgba(0,0,0,.04);
    position: relative;
}
.auth-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--orange), var(--orange-light));
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 2px 2px 0;
}
.auth-steps { position: relative; overflow: hidden; }
.auth-step {
    padding: 40px 24px 32px;
    text-align: center;
    display: none;
    animation: authFadeIn 0.4s ease;
}
@media (min-width: 520px) { .auth-step { padding: 40px 36px 36px; } }
.auth-step.active { display: block; }
.auth-step.exit-left { animation: authSlideOutLeft 0.3s ease forwards; }
.auth-step.exit-right { animation: authSlideOutRight 0.3s ease forwards; }
.auth-step.enter-right { animation: authSlideInRight 0.3s ease forwards; }
.auth-step.enter-left { animation: authSlideInLeft 0.3s ease forwards; }
@keyframes authFadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes authSlideOutLeft { to { opacity: 0; transform: translateX(-100%); } }
@keyframes authSlideOutRight { to { opacity: 0; transform: translateX(100%); } }
@keyframes authSlideInRight { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }
@keyframes authSlideInLeft { from { opacity: 0; transform: translateX(-100%); } to { opacity: 1; transform: translateX(0); } }

.auth-icon {
    width: 56px; height: 56px;
    margin: 0 auto 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(var(--orange-rgb),.1), rgba(255,138,61,.08));
    color: var(--orange);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
}
.auth-icon.green { background: linear-gradient(135deg, rgba(34,197,94,.1), rgba(34,197,94,.05)); color: #22c55e; }
.auth-icon.blue { background: linear-gradient(135deg, rgba(59,130,246,.1), rgba(59,130,246,.05)); color: #3b82f6; }

.auth-step h2 { font-size: 24px; font-weight: 800; color: #1a1a2e; margin-bottom: 4px; letter-spacing: -0.3px; }
.auth-subtitle { font-size: 14px; color: #888; margin-bottom: 24px; line-height: 1.4; }
.auth-email-badge {
    display: inline-block;
    background: rgba(var(--orange-rgb),.06);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--orange);
    margin-bottom: 20px;
    border: 1px solid rgba(var(--orange-rgb),.12);
}
.auth-form-group { text-align: left; margin-bottom: 14px; }
.auth-form-group label { display: block; font-size: 11px; font-weight: 700; color: #999; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.auth-input-wrap {
    display: flex; align-items: center; gap: 10px;
    background: #f8f8fa; border: 1.5px solid rgba(0,0,0,.06);
    border-radius: 14px; padding: 0 16px;
    transition: all .2s ease;
}
.auth-input-wrap:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(var(--orange-rgb),0.08); background: #fff; }
.auth-input-wrap i { color: #bbb; font-size: 15px; flex-shrink: 0; }
.auth-input-wrap input {
    flex: 1; border: none; background: none; padding: 15px 0;
    font-size: 15px; color: #1a1a2e; outline: none; font-family: inherit; font-weight: 500;
}
.auth-input-wrap input::placeholder { color: #bbb; font-weight: 400; }
.auth-eye { background: none; border: none; color: #bbb; cursor: pointer; padding: 4px; font-size: 15px; }
.phone-wrap .phone-prefix {
    font-size: 15px; font-weight: 700; color: #1a1a2e;
    padding-right: 10px; border-right: 1.5px solid rgba(0,0,0,.08);
    flex-shrink: 0;
}
.auth-btn {
    width: 100%; padding: 15px 24px; border: none;
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: white; font-size: 15px; font-weight: 700;
    border-radius: 14px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: all .2s ease; position: relative;
    box-shadow: 0 4px 15px rgba(var(--orange-rgb),0.25);
    margin-top: 8px;
}
.auth-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(var(--orange-rgb),0.35); }
.auth-btn:active { transform: translateY(0); }
.auth-btn-loader { display: none; }
.auth-btn.loading .auth-btn-text,
.auth-btn.loading .auth-btn-arrow { display: none; }
.auth-btn.loading .auth-btn-loader { display: inline-block; }

.auth-btn-email {
    background: transparent; border: 1.5px solid rgba(0,0,0,.12); color: #1a1a2e; box-shadow: none;
}
.auth-btn-email:hover { box-shadow: 0 4px 15px rgba(0,0,0,.05); transform: translateY(-1px); }
.auth-btn-outline {
    width: 100%; padding: 13px 24px; border: 1.5px solid rgba(0,0,0,.08);
    background: #fff; color: #1a1a2e; font-size: 14px; font-weight: 600;
    border-radius: 14px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: all .2s ease;
}
.auth-btn-outline:hover { border-color: var(--orange); color: var(--orange); }
.auth-divider { text-align: center; margin: 18px 0; position: relative; }
.auth-divider::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.06); }
.auth-divider span { position: relative; background: #fff; padding: 0 14px; font-size: 11px; color: #bbb; text-transform: uppercase; font-weight: 600; letter-spacing: .3px; }
.auth-error {
    display: none; margin-top: 12px; padding: 10px 14px;
    background: rgba(239,68,68,0.06); border: 1px solid rgba(239,68,68,0.15);
    border-radius: 12px; color: #ef4444; font-size: 13px; font-weight: 500;
}
.auth-back {
    background: none; border: none; color: #bbb; font-size: 13px;
    cursor: pointer; margin-top: 18px; display: inline-flex; align-items: center; gap: 6px;
    transition: all .2s ease; font-weight: 500;
}
.auth-back:hover { color: var(--orange); }
.auth-resend { font-size: 13px; color: #999; margin-top: 16px; }
.auth-resend button { background: none; border: none; color: var(--orange); font-weight: 600; cursor: pointer; font-size: 13px; }
.auth-resend button:disabled { color: #bbb; cursor: default; }

/* OTP Boxes */
.otp-inputs { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; }
.otp-box {
    width: 46px; height: 54px; text-align: center;
    font-size: 22px; font-weight: 800; color: #1a1a2e;
    border: 1.5px solid rgba(0,0,0,.08); border-radius: 14px;
    background: #f8f8fa; outline: none; transition: all .2s ease;
    font-family: inherit;
}
.otp-box:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(var(--orange-rgb),0.08); background: #fff; }

/* Locked fields */
.auth-locked-fields { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; justify-content: center; }
.auth-locked-field {
    display: flex; align-items: center; gap: 6px;
    background: #f8f8fa; padding: 8px 14px;
    border-radius: 50px; font-size: 12px; color: #888;
    border: 1px solid rgba(0,0,0,.04);
}
.auth-locked-field i { font-size: 10px; color: #bbb; }
.auth-locked-field strong { color: #1a1a2e; }

/* Success */
.auth-success-icon { font-size: 64px; color: #22c55e; margin-bottom: 16px; animation: authBounce 0.6s ease; }
@keyframes authBounce {
    0% { transform: scale(0); } 50% { transform: scale(1.2); } 100% { transform: scale(1); }
}

/* Dark mode */
[data-theme="dark"] .auth-section { background: #0e0e14; }
[data-theme="dark"] .auth-card { background: #1a1a24; border-color: #2a2a3a; }
[data-theme="dark"] .auth-divider span { background: #1a1a24; }
[data-theme="dark"] .otp-box { background: #12121a; border-color: #2a2a3a; color: #eaeaf0; }
[data-theme="dark"] .auth-input-wrap { background: #12121a; border-color: #2a2a3a; }
[data-theme="dark"] .auth-input-wrap input { color: #eaeaf0; }
[data-theme="dark"] .auth-email-badge { background: rgba(var(--orange-rgb),.08); border-color: rgba(var(--orange-rgb),.15); }
[data-theme="dark"] .auth-locked-field { background: #12121a; border-color: #2a2a3a; }
[data-theme="dark"] .auth-locked-field strong { color: #eaeaf0; }
[data-theme="dark"] .auth-btn-email { border-color: #2a2a3a; color: #eaeaf0; }
[data-theme="dark"] .auth-btn-outline { background: #12121a; border-color: #2a2a3a; color: #eaeaf0; }
[data-theme="dark"] .phone-wrap .phone-prefix { color: #eaeaf0; border-color: #2a2a3a; }
[data-theme="dark"] .auth-step h2 { color: #eaeaf0; }
[data-theme="dark"] .auth-form-group label { color: #777; }

/* ===== RESPONSIVE — NEW PAGES ===== */
@media (max-width: 767px) {
    /* Prevent horizontal overflow */
    body { overflow-x: hidden; }

    /* === APP-LIKE HEADER === */
    .header-top { padding: 8px 0; gap: 8px; }
    .logo-wrap img { height: 50px; }
    .header-btn { padding: 6px 10px; font-size: 12px; }
    .header-btn i { font-size: 15px; }
    .btn-login { padding: 6px 14px; }
    .container { padding: 0 12px; }

    /* === EDGE-TO-EDGE CAROUSEL === */
    .promo-carousel-section { padding: 12px 0 4px; }
    .promo-card { padding: 20px 18px; min-height: 110px; border-radius: var(--radius-md); }
    .promo-card h3 { font-size: 18px; }
    .promo-card p { font-size: 12px; }
    .promo-tag { font-size: 10px; padding: 3px 10px; margin-bottom: 6px; }
    .promo-dots { padding: 10px 0 4px; }
    .promo-dot { width: 8px; height: 8px; }
    .promo-dot.active { width: 22px; }

    /* === COMPACT SECTIONS === */
    .categories-section { padding: 16px 0; }
    .products-section { padding: 16px 0; }
    .section-title { margin-bottom: 12px; }
    .section-title h2 { font-size: 17px; font-weight: 800; }
    .section-title a { font-size: 12px; }

    /* === COMPACT CATEGORY PILLS === */
    .category-grid { gap: 8px; }
    .category-card {
        width: 88px;
        padding: 12px 8px;
        border-radius: var(--radius-sm);
    }
    .category-icon {
        width: 42px;
        height: 42px;
        margin: 0 auto 8px;
        border-radius: var(--radius-sm);
        font-size: 18px;
    }
    .category-card h3 { font-size: 11px; font-weight: 600; }
    .category-card span { font-size: 10px; }
    .category-card::before { height: 2px; }

    /* === COMPACT PRODUCT CARDS === */
    .products-row { gap: 8px; }
    .product-card {
        width: 145px;
        border-radius: var(--radius-sm);
    }
    .product-img { height: 120px; padding: 8px; }
    .product-badge { font-size: 9px; padding: 2px 6px; top: 6px; left: 6px; }
    .product-info { padding: 8px 10px; }
    .product-info h4 { font-size: 12px; margin-bottom: 4px; }
    .product-price .rate { font-size: 15px; font-weight: 800; }
    .product-price .cost { font-size: 11px; }
    .product-price .product-mrp { font-size: 10px; }
    .product-add-btn {
        padding: 8px;
        font-size: 11px;
        border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    }

    /* === PRODUCT DETAIL APP FEEL === */
    .pd-sticky-bar { bottom: 56px; }
    .pd-body { padding-bottom: 140px; }
    .breadcrumb-bar { display: none; }
    .pd-info-card { padding: 20px 16px; }
    .pd-desktop-actions { display: none !important; }

    /* === BOTTOM SPACING & NAV === */
    .mobile-bottom-nav { z-index: 110; }
    .back-to-top { bottom: 72px; right: 12px; width: 36px; height: 36px; font-size: 14px; }

    /* === SEARCH BAR MOBILE === */
    .mobile-search-bar input { padding: 10px 14px; font-size: 14px; border-radius: var(--radius-sm); }

    /* === OVERALL PAGE BOTTOM PADDING === */
    .site-footer { margin-bottom: 0; }
}
@media (min-width: 640px) {
    .archive-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
    .archive-grid { grid-template-columns: repeat(3, 1fr); }
    .cart-layout { grid-template-columns: 1fr 320px; }
    .categories-modal {
        border-radius: var(--radius-xl);
        margin: auto;
    }
    .categories-modal-overlay { align-items: center; }
    .toast { bottom: 40px; }

    /* ===== Product Detail — Desktop Professional Layout ===== */
    .pd-main {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        align-items: start;
        padding: 32px 0;
    }
    .pd-hero-wrap {
        position: sticky;
        top: 100px;
    }
    .pd-hero {
        min-height: 400px;
        border-radius: var(--radius-lg);
        border: 1px solid var(--border);
        background: var(--bg);
    }
    .pd-hero img {
        max-height: 450px;
        padding: 32px;
    }
    .pd-gallery-thumb {
        width: 72px;
        height: 72px;
    }
    .pd-body {
        padding: 0 0 40px;
    }
    .pd-info-card {
        margin-top: 0;
        border-radius: var(--radius-lg);
        padding: 0;
        background: transparent;
    }
    .pd-category {
        font-size: 12px;
        padding: 4px 14px;
        margin-bottom: 12px;
    }
    .pd-title {
        font-size: 28px;
        margin-bottom: 16px;
    }
    .pd-rate { font-size: 32px; }
    .pd-cost { font-size: 18px; }
    .pd-discount { font-size: 13px; padding: 3px 10px; }
    .pd-pricing { margin-bottom: 16px; }
    .pd-meta-chips { margin-bottom: 8px; }
    .pd-chip {
        font-size: 13px;
        padding: 6px 14px;
    }
    .pd-desc-card {
        margin-top: 20px;
        padding: 20px;
        border-radius: var(--radius-lg);
    }
    .pd-desc-card h3 { font-size: 15px; }
    .pd-desc-card p { font-size: 14px; }

    /* Desktop inline Add to Cart */
    .pd-desktop-actions {
        display: flex;
        align-items: flex-end;
        gap: 16px;
        margin-top: 24px;
        padding: 20px 0;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }
    .pd-desktop-qty {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    .pd-desktop-qty label {
        font-size: 12px;
        font-weight: 700;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    .pd-desktop-qty .qty-selector {
        border-width: 2px;
        border-radius: var(--radius-md);
    }
    .pd-desktop-qty .qty-btn {
        width: 44px;
        height: 44px;
        font-size: 15px;
    }
    .pd-desktop-qty .qty-selector span {
        width: 52px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        font-weight: 800;
    }
    .pd-desktop-cart-btn {
        flex: 1;
        padding: 14px 32px;
        background: var(--orange);
        color: white;
        border: none;
        border-radius: var(--radius-md);
        font-size: 16px;
        font-weight: 800;
        cursor: pointer;
        transition: var(--transition);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        letter-spacing: 0.3px;
        box-shadow: 0 4px 15px rgba(var(--orange-rgb), 0.3);
    }
    .pd-desktop-cart-btn:hover {
        background: var(--orange-dark);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(var(--orange-rgb), 0.4);
    }
    .pd-desktop-cart-btn:active {
        transform: scale(0.98);
    }
    .pd-desktop-cart-btn i {
        font-size: 18px;
    }

    /* Trust badges — horizontal row on desktop */
    .pd-trust-row {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        margin-top: 24px;
        padding: 20px;
        background: var(--bg);
        border-radius: var(--radius-lg);
        border: 1px solid var(--border);
    }
    .pd-trust-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    .pd-trust-item span {
        font-size: 12px;
    }

    /* Hide mobile sticky bar on desktop */
    .pd-sticky-bar {
        display: none;
    }

    /* Related section styling */
    .pd-related {
        margin-top: 40px;
        padding-top: 32px;
        border-top: 1px solid var(--border);
    }
    .pd-related-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
}
@media (min-width: 1024px) {
    .pd-title { font-size: 32px; }
    .pd-rate { font-size: 36px; }
    .archive-grid { grid-template-columns: repeat(4, 1fr); }
    .pd-hero { min-height: 480px; }
    .pd-hero img { max-height: 480px; padding: 40px; }
    .pd-main { gap: 40px; }
}
@media (min-width: 1200px) {
    .pd-main { gap: 48px; }
    .pd-hero { min-height: 520px; }
    .pd-hero img { max-height: 520px; }
}

/* ========================= POLICY PAGES ========================= */
.policy-section {
    padding: 100px 0 60px;
    min-height: 80vh;
}
@media (max-width: 768px) {
    .policy-section { padding: 80px 0 40px; }
}

.policy-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
}
@media (max-width: 768px) {
    .policy-card { padding: 24px 16px; border-radius: 12px; }
}

.policy-card h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.policy-card h1 i {
    color: var(--orange);
    font-size: 24px;
}
@media (max-width: 768px) {
    .policy-card h1 { font-size: 22px; }
    .policy-card h1 i { font-size: 20px; }
}

.policy-updated {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.policy-card h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-top: 28px;
    margin-bottom: 12px;
}

.policy-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-top: 16px;
    margin-bottom: 8px;
}

.policy-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.policy-card ul {
    margin: 0 0 16px 0;
    padding: 0 0 0 20px;
}
.policy-card ul li {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 6px;
}
.policy-card ul li strong {
    color: var(--text);
}

.policy-card a {
    color: var(--orange);
    text-decoration: none;
    font-weight: 500;
}
.policy-card a:hover {
    text-decoration: underline;
}

/* Policy highlight boxes */
.policy-highlight {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0 28px;
}
.policy-highlight > i {
    font-size: 28px;
    flex-shrink: 0;
    margin-top: 2px;
}
.policy-highlight h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
}
.policy-highlight p {
    margin: 0 0 4px;
    font-size: 14px;
}

.policy-highlight.no-returns {
    background: linear-gradient(135deg, rgba(239,68,68,0.08), rgba(239,68,68,0.04));
    border: 1px solid rgba(239,68,68,0.2);
}
.policy-highlight.no-returns > i {
    color: #ef4444;
}
.policy-highlight.no-returns h3 {
    color: #ef4444;
}

.policy-highlight.shipping-info {
    background: linear-gradient(135deg, rgba(34,197,94,0.08), rgba(34,197,94,0.04));
    border: 1px solid rgba(34,197,94,0.2);
}
.policy-highlight.shipping-info > i {
    color: #22c55e;
}
.policy-highlight.shipping-info h3 {
    color: #22c55e;
}

.policy-note {
    background: rgba(234,179,8,0.08);
    border: 1px solid rgba(234,179,8,0.2);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px !important;
    color: var(--text) !important;
}
.policy-note i {
    color: #eab308;
    margin-right: 4px;
}

/* Shipping table */
.shipping-table-wrap {
    overflow-x: auto;
    margin: 16px 0;
}
.shipping-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.shipping-table th,
.shipping-table td {
    padding: 14px 16px;
    text-align: left;
    border: 1px solid var(--border);
}
.shipping-table th {
    background: var(--bg);
    font-weight: 600;
    color: var(--text);
}
.shipping-table td {
    color: var(--text-muted);
}
.shipping-table td i {
    margin-right: 6px;
    color: var(--orange);
}

/* Contact box */
.policy-contact {
    background: var(--bg);
    border-radius: 10px;
    padding: 16px 20px;
    margin-top: 8px;
}
.policy-contact p {
    margin: 6px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.policy-contact i {
    color: var(--orange);
    width: 16px;
    text-align: center;
}

/* Coupon storefront popup */
.coupon-popup-overlay {
    display: none; position: fixed; inset: 0; z-index: 2100; background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px); align-items: center; justify-content: center; padding: 20px; box-sizing: border-box;
}
.coupon-popup-overlay.active { display: flex; }
.coupon-popup-overlay.closing { opacity: 0; transition: opacity .3s ease; }
.coupon-popup {
    width: 100%; max-width: 400px; background: #fff; border-radius: 20px; overflow: hidden; position: relative;
    box-shadow: 0 24px 60px rgba(var(--orange-rgb), 0.28), 0 8px 24px rgba(0,0,0,.12);
    border: 1px solid rgba(var(--orange-rgb), 0.2); animation: pkCouponPop .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes pkCouponPop { from { opacity: 0; transform: scale(.94) translateY(12px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.coupon-popup-overlay.closing .coupon-popup { transform: scale(.96) translateY(8px); opacity: 0; transition: .3s ease; }
.coupon-popup__close {
    position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: none; border-radius: 50%;
    background: rgba(255,255,255,.2); color: #fff; font-size: 18px; cursor: pointer; z-index: 2;
    display: flex; align-items: center; justify-content: center;
}
.coupon-popup__close:hover { background: rgba(255,255,255,.35); }
.coupon-popup__hero {
    background: linear-gradient(135deg, var(--orange-dark) 0%, var(--orange) 50%, var(--green) 100%);
    padding: 24px 22px 20px; color: #fff; text-align: center;
}
.coupon-popup__logo {
    width: 88px; height: 88px; margin: 0 auto 14px; border-radius: 50%;
    background: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,.15); padding: 10px; box-sizing: border-box;
}
.coupon-popup__logo img {
    max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
}
.coupon-popup__logo-text {
    font-size: 11px; font-weight: 900; color: var(--orange); line-height: 1.2; text-align: center;
}
.coupon-popup__hero h2 { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: -0.02em; }
.coupon-popup__hero p { margin: 8px 0 0; font-size: 14px; font-weight: 600; opacity: .92; }
.coupon-popup__discount { font-size: 18px; font-weight: 800; margin-top: 10px; color: #fff; }
.coupon-popup__body { padding: 20px 22px 22px; text-align: center; }
.coupon-popup__code-wrap {
    display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 16px;
}
.coupon-popup__code {
    font-size: 26px; font-weight: 900; letter-spacing: .08em; color: var(--orange);
    background: rgba(var(--orange-rgb), 0.08); border: 2px dashed rgba(var(--orange-rgb), 0.35); border-radius: 12px; padding: 12px 20px;
}
.coupon-popup__meta { font-size: 12px; color: #64748b; font-weight: 600; margin-bottom: 16px; line-height: 1.5; }
.coupon-popup__actions { display: flex; flex-direction: column; gap: 10px; }
.coupon-popup__btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 16px; border-radius: 14px;
    border: none; font-size: 15px; font-weight: 800; cursor: pointer; font-family: inherit; transition: transform .15s, box-shadow .15s;
}
.coupon-popup__btn--primary {
    background: linear-gradient(135deg, var(--orange), var(--orange-light)); color: #fff; text-decoration: none;
    box-shadow: 0 4px 16px rgba(var(--orange-rgb), 0.3);
}
.coupon-popup__btn--primary:hover { transform: translateY(-1px); color: #fff; box-shadow: 0 6px 20px rgba(var(--orange-rgb), 0.35); }
.coupon-popup__btn--ghost { background: #f8fafc; color: var(--orange); border: 2px solid rgba(var(--orange-rgb), 0.25); }
.coupon-popup__btn--ghost:hover { border-color: var(--orange); background: rgba(var(--orange-rgb), 0.06); }
.coupon-popup__btn--ghost.copied { color: var(--green); border-color: rgba(var(--green-rgb), 0.45); background: rgba(var(--green-rgb), 0.08); }
@media (max-width: 480px) {
    .coupon-popup { max-width: 100%; border-radius: 16px; }
    .coupon-popup__code { font-size: 22px; padding: 10px 16px; }
    .coupon-popup__logo { width: 72px; height: 72px; }
}
[data-theme="dark"] .coupon-popup { background: #1e1e2e; border-color: rgba(var(--orange-rgb), 0.35); }
[data-theme="dark"] .coupon-popup__logo { background: #fff; }
[data-theme="dark"] .coupon-popup__code { background: rgba(var(--orange-rgb), 0.15); color: var(--orange-light); border-color: rgba(var(--orange-rgb), 0.4); }
[data-theme="dark"] .coupon-popup__btn--ghost { background: #2a2a3e; border-color: #444; color: #e2e8f0; }
[data-theme="dark"] .coupon-popup__meta { color: #94a3b8; }

/* Dark mode for policy pages */
[data-theme="dark"] .policy-card { background: #1e1e2e; }
[data-theme="dark"] .policy-contact { background: #2a2a3e; }

/* ========================= CHECKOUT BUTTON ========================= */
.btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 8px;
}
.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--orange-rgb),0.3);
    color: #fff;
}

/* ========================= USER DROPDOWN ========================= */
.user-dropdown-wrap { position: relative; }
.btn-user {
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 8px;
    transition: background 0.2s;
}
.btn-user:hover { background: rgba(var(--orange-rgb),0.1); }
.user-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.08);
    min-width: 220px;
    z-index: 1000;
    overflow: hidden;
    animation: ddSlide 0.2s ease;
}
[data-theme="dark"] .user-dropdown { background: #1e1e2e; border-color: rgba(255,255,255,0.08); }
.user-dropdown.show { display: block; }
@keyframes ddSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.user-dropdown-header {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
}
[data-theme="dark"] .user-dropdown-header { border-color: rgba(255,255,255,0.06); }
.user-dropdown-header strong {
    font-size: 14px;
    color: var(--text);
}
.user-dropdown-header small {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}
.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
    transition: background 0.15s;
}
.user-dropdown a:hover { background: rgba(var(--orange-rgb),0.06); }
.user-dropdown a i { width: 16px; color: var(--orange); text-align: center; flex-shrink: 0; }
.user-dropdown .logout-link { color: #ef4444; border-top: 1px solid rgba(0,0,0,0.06); }
[data-theme="dark"] .user-dropdown .logout-link { border-color: rgba(255,255,255,0.06); }
.user-dropdown .logout-link i { color: #ef4444; }

/* ========================= ACCOUNT PAGE ========================= */
.account-section {
    padding: 100px 0 60px;
    min-height: 80vh;
}
@media (max-width: 768px) { .account-section { padding: 80px 0 40px; } }

.account-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}
@media (max-width: 768px) {
    .account-layout { grid-template-columns: 1fr; gap: 16px; }
}

.account-sidebar {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.06);
}
[data-theme="dark"] .account-sidebar { background: #1e1e2e; border-color: rgba(255,255,255,0.06); }

.account-avatar {
    text-align: center;
    padding: 28px 20px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
[data-theme="dark"] .account-avatar { border-color: rgba(255,255,255,0.06); }
.avatar-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.account-avatar h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 2px;
}
.account-avatar p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.account-nav { padding: 8px 0; }
.account-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.15s;
    border-left: 3px solid transparent;
}
.account-nav-item:hover { background: rgba(var(--orange-rgb),0.04); color: var(--text); }
.account-nav-item.active {
    background: rgba(var(--orange-rgb),0.06);
    color: var(--orange);
    border-left-color: var(--orange);
    font-weight: 600;
}
.account-nav-item i { width: 18px; text-align: center; }
.account-nav-item.logout { color: #ef4444; }
.account-nav-item.logout:hover { background: rgba(239,68,68,0.04); }

.account-content {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.06);
    overflow: hidden;
}
[data-theme="dark"] .account-content { background: #1e1e2e; border-color: rgba(255,255,255,0.06); }

.account-tab { display: none; padding: 28px; }
.account-tab.active { display: block; }
@media (max-width: 768px) { .account-tab { padding: 20px 16px; } }

.account-tab h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.account-tab h2 i { color: var(--orange); }

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 600px) { .profile-grid { grid-template-columns: 1fr; } }
.profile-field {
    background: var(--bg);
    border-radius: 10px;
    padding: 14px 16px;
}
.profile-field label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 4px;
    display: block;
}
.profile-field .profile-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

/* Order cards */
.orders-list { display: flex; flex-direction: column; gap: 10px; }
.order-card {
    background: var(--bg);
    border-radius: 12px;
    padding: 16px;
    transition: box-shadow 0.2s;
}
.order-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.order-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.order-number { display: flex; flex-direction: column; }
.order-id {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}
.order-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}
.order-status {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.order-status.status-orange { background: rgba(var(--orange-rgb),0.1); color: var(--orange); }
.order-status.status-green { background: rgba(34,197,94,0.1); color: #22c55e; }
.order-status.status-blue { background: rgba(59,130,246,0.1); color: #3b82f6; }
.order-status.status-red { background: rgba(239,68,68,0.1); color: #ef4444; }
.order-status.status-gray { background: rgba(107,114,128,0.1); color: #6b7280; }

.order-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.order-total {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
}
.order-pay-btn, .order-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s;
}
.order-pay-btn {
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: #fff;
}
.order-pay-btn:hover { transform: translateY(-1px); color: #fff; }
.order-view-btn {
    background: var(--bg);
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.order-view-btn:hover { color: var(--orange); border-color: var(--orange); }

.empty-state.small { padding: 40px 20px; }
.empty-state.small i { font-size: 40px; }
.empty-state.small h3 { font-size: 16px; }

/* ========================= APP-STYLE ACCOUNT PAGE ========================= */
.app-account {
    padding: 16px 0 100px;
    max-width: 480px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
}

/* Profile Hero */
.app-profile-hero {
    text-align: center;
    padding: 32px 20px 24px;
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    border-radius: 20px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}
.app-profile-hero::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}
.app-profile-hero::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}
.app-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border: 3px solid rgba(255,255,255,0.3);
}
.app-name {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 2px;
}
.app-email {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin: 0 0 14px;
}
.app-logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: background 0.2s;
}
.app-logout-btn:hover { background: rgba(255,255,255,0.25); color: #fff; }

/* Tab Switcher */
.app-tabs {
    display: flex;
    background: #ffffff;
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
}
[data-theme="dark"] .app-tabs { background: #1e1e2e; border-color: rgba(255,255,255,0.06); }
.app-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s;
}
.app-tab.active {
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: #fff;
    box-shadow: 0 4px 12px rgba(var(--orange-rgb),0.25);
}
.app-tab i { font-size: 14px; }

/* Panels */
.app-panel { display: none; }
.app-panel.active { display: block; animation: appFadeIn 0.3s ease; }
@keyframes appFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Info Card */
.app-info-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    margin-bottom: 16px;
}
[data-theme="dark"] .app-info-card { background: #1e1e2e; border-color: rgba(255,255,255,0.06); }

.app-info-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: background 0.15s;
}
[data-theme="dark"] .app-info-row { border-color: rgba(255,255,255,0.04); }
.app-info-row:last-child { border-bottom: none; }
.app-info-row:hover { background: rgba(var(--orange-rgb),0.02); }

.app-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(var(--orange-rgb),0.08);
    color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.app-info-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.app-info-text small {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.app-info-text span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Quick Actions */
.app-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.app-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 12px;
    background: #ffffff;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}
[data-theme="dark"] .app-action-btn { background: #1e1e2e; border-color: rgba(255,255,255,0.06); }
.app-action-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.app-action-btn i {
    font-size: 22px;
    color: var(--orange);
}
.app-action-btn span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

/* Order Cards */
.app-order-card {
    display: block;
    background: #ffffff;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.2s;
    text-decoration: none;
    color: inherit;
}
[data-theme="dark"] .app-order-card { background: #1e1e2e; border-color: rgba(255,255,255,0.06); }
.app-order-card:active { transform: scale(0.98); }

/* Orders list — highlight by fulfilment state */
.app-order-card--progress {
    border-left: 4px solid #f97316;
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.06) 0%, #ffffff 12%, #ffffff 100%);
    box-shadow: 0 2px 14px rgba(249, 115, 22, 0.08);
}
[data-theme="dark"] .app-order-card--progress {
    background: linear-gradient(90deg, rgba(251, 146, 60, 0.12) 0%, #1e1e2e 14%, #1e1e2e 100%);
    border-color: rgba(255, 255, 255, 0.06);
    border-left-color: #fb923c;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}
.app-order-card--delivered {
    border-left: 4px solid #22c55e;
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.09) 0%, #f0fdf4 14%, #ffffff 100%);
    box-shadow: 0 2px 14px rgba(34, 197, 94, 0.1);
}
[data-theme="dark"] .app-order-card--delivered {
    background: linear-gradient(90deg, rgba(74, 222, 128, 0.14) 0%, #14532d 18%, #1e1e2e 100%);
    border-color: rgba(255, 255, 255, 0.06);
    border-left-color: #4ade80;
    box-shadow: 0 4px 20px rgba(74, 222, 128, 0.08);
}
.app-order-card--cancelled {
    border-left: 4px solid #9ca3af;
    background: linear-gradient(90deg, rgba(156, 163, 175, 0.12) 0%, #f9fafb 12%, #ffffff 100%);
    opacity: 0.96;
}
[data-theme="dark"] .app-order-card--cancelled {
    background: linear-gradient(90deg, rgba(156, 163, 175, 0.1) 0%, #292524 14%, #1e1e2e 100%);
    border-color: rgba(255, 255, 255, 0.06);
    border-left-color: #78716c;
    opacity: 1;
}

.app-order-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}
.app-order-preview {
    font-size: 12px;
    line-height: 1.45;
    margin: 0 0 10px;
    color: var(--text-muted);
    word-break: break-word;
}
.app-order-preview__dot {
    opacity: 0.45;
    margin: 0 5px;
    user-select: none;
}
.app-order-preview__name {
    color: var(--text);
    font-weight: 600;
    opacity: 0.92;
}
.app-order-preview__more {
    display: inline-block;
    margin-left: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--orange);
}
[data-theme="dark"] .app-order-preview__more {
    color: #fb923c;
}

.app-orders-sentinel {
    height: 1px;
    margin: 0;
    padding: 0;
    pointer-events: none;
    visibility: hidden;
}
.app-orders-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 12px 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}
.app-orders-loading__spin {
    color: var(--orange);
    font-size: 14px;
}

.app-order-id {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}
.app-order-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.app-order-status {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}
.st-unpaid { background: rgba(var(--orange-rgb),0.1); color: var(--orange); }
.st-paid { background: rgba(34,197,94,0.1); color: #22c55e; }
.st-partial { background: rgba(59,130,246,0.1); color: #3b82f6; }
.st-overdue { background: rgba(239,68,68,0.1); color: #ef4444; }
.st-cancelled, .st-draft { background: rgba(107,114,128,0.1); color: #6b7280; }
.st-pending { background: rgba(255,152,0,0.1); color: #ff9800; }
.st-confirmed { background: rgba(33,150,243,0.1); color: #2196f3; }
.st-processing { background: rgba(255,193,7,0.12); color: #f59e0b; }
.st-shipped { background: rgba(103,58,183,0.1); color: #673ab7; }
.st-delivered { background: rgba(76,175,80,0.1); color: #4caf50; }
.st-cod { background: rgba(0,150,136,0.1); color: #009688; }

.app-order-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,0.04);
}
[data-theme="dark"] .app-order-bottom { border-color: rgba(255,255,255,0.04); }
.app-order-total {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
}
.app-btn-pay {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s;
}
.app-btn-pay:hover { transform: translateY(-1px); color: #fff; }
.app-btn-view {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 10px;
    background: var(--bg);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--border);
    transition: all 0.2s;
}
.app-btn-view:hover { color: var(--orange); border-color: var(--orange); }

/* Empty State */
.app-empty-orders {
    text-align: center;
    padding: 48px 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
}
[data-theme="dark"] .app-empty-orders { background: #1e1e2e; border-color: rgba(255,255,255,0.06); }
.app-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(var(--orange-rgb),0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.app-empty-icon i { font-size: 26px; color: var(--orange); }
.app-empty-orders h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 4px;
}
.app-empty-orders p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* Desktop: center but keep app-like feel */
@media (min-width: 769px) {
    .app-account { padding-top: 20px; max-width: 600px; }
}

/* ========================= ORDER DETAIL & FORM STYLES ========================= */
.od-back {
    margin-bottom: 14px;
}
.od-back a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--orange);
    text-decoration: none;
}

.od-pay-success {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 18px 20px 16px;
    margin-bottom: 16px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 38%, #a7f3d0 100%);
    border: 1px solid rgba(16, 185, 129, 0.35);
    box-shadow:
        0 4px 24px rgba(16, 185, 129, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    color: #064e3b;
}
[data-theme="dark"] .od-pay-success {
    background: linear-gradient(145deg, #064e3b 0%, #047857 50%, #059669 100%);
    border-color: rgba(52, 211, 153, 0.35);
    color: #ecfdf5;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.od-pay-success__shine {
    position: absolute;
    top: -40%;
    right: -15%;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, transparent 68%);
    pointer-events: none;
}
[data-theme="dark"] .od-pay-success__shine {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 65%);
}
.od-pay-success__badge {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(145deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45);
    border: 3px solid rgba(255, 255, 255, 0.85);
    z-index: 1;
}
[data-theme="dark"] .od-pay-success__badge {
    border-color: rgba(236, 253, 245, 0.35);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.od-pay-success__check {
    color: #fff;
    font-size: 22px;
    line-height: 1;
    display: flex;
}
.od-pay-success__body {
    position: relative;
    z-index: 1;
    min-width: 0;
    flex: 1;
    padding-top: 2px;
}
.od-pay-success__title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #065f46;
}
[data-theme="dark"] .od-pay-success__title {
    color: #ecfdf5;
}
.od-pay-success__detail {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    color: #047857;
    opacity: 0.95;
}
[data-theme="dark"] .od-pay-success__detail {
    color: #d1fae5;
}
.od-pay-success__sub {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    color: #0f766e;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(16, 185, 129, 0.2);
}
[data-theme="dark"] .od-pay-success__sub {
    color: rgba(236, 253, 245, 0.92);
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(52, 211, 153, 0.2);
}

/* Order detail — AJAX status refresh (crossfade + stagger) */
.od-order-status-root {
    position: relative;
}
.od-order-status-root > .od-progress,
.od-order-status-root > .od-progress--cancelled {
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s ease;
    will-change: opacity, transform;
}
.od-order-status-root.od-order-status--swap-out > .od-progress,
.od-order-status-root.od-order-status--swap-out > .od-progress--cancelled {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
    pointer-events: none;
    filter: saturate(0.92);
}
.od-order-status-root.od-order-status--swap-in > .od-progress,
.od-order-status-root.od-order-status--swap-in > .od-progress--cancelled {
    animation: odStatusCardEnter 0.62s cubic-bezier(0.34, 1.12, 0.64, 1) both;
}
@keyframes odStatusCardEnter {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.97);
        box-shadow: 0 0 0 rgba(var(--orange-rgb), 0);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    }
}
.od-order-status-root.od-order-status--swap-in .od-progress-head .od-progress-current-badge {
    animation: odBadgePop 0.55s cubic-bezier(0.34, 1.2, 0.64, 1) 0.12s both;
}
@keyframes odBadgePop {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.od-order-status-root.od-order-status--swap-in .od-progress-step {
    animation: odProgressStepEnter 0.48s cubic-bezier(0.34, 1.1, 0.64, 1) both;
}
.od-order-status-root.od-order-status--swap-in .od-progress-step:nth-child(1) {
    animation-delay: 0.04s;
}
.od-order-status-root.od-order-status--swap-in .od-progress-step:nth-child(2) {
    animation-delay: 0.11s;
}
.od-order-status-root.od-order-status--swap-in .od-progress-step:nth-child(3) {
    animation-delay: 0.18s;
}
.od-order-status-root.od-order-status--swap-in .od-progress-step:nth-child(4) {
    animation-delay: 0.25s;
}
@keyframes odProgressStepEnter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
[data-theme='dark'] .od-order-status-root.od-order-status--swap-in > .od-progress {
    animation-name: odStatusCardEnterDark;
}
@keyframes odStatusCardEnterDark {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
    }
}
@media (prefers-reduced-motion: reduce) {
    .od-order-status-root > .od-progress,
    .od-order-status-root > .od-progress--cancelled {
        transition: none;
        will-change: auto;
    }
    .od-order-status-root.od-order-status--swap-in > .od-progress,
    .od-order-status-root.od-order-status--swap-in > .od-progress--cancelled,
    .od-order-status-root.od-order-status--swap-in .od-progress-step,
    .od-order-status-root.od-order-status--swap-in .od-progress-head .od-progress-current-badge {
        animation: none !important;
    }
}

/* Order detail — status progress */
.od-progress {
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    border-radius: 18px;
    padding: 18px 14px 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
[data-theme="dark"] .od-progress {
    background: linear-gradient(180deg, #252536 0%, #1e1e2e 100%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
.od-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}
.od-progress-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}
.od-progress-head .app-order-status {
    flex-shrink: 0;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
}
.od-progress-head .app-order-status.st-pending { background: #fef3c7; color: #b45309; }
.od-progress-head .app-order-status.st-confirmed { background: #dbeafe; color: #1d4ed8; }
.od-progress-head .app-order-status.st-processing { background: #ffedd5; color: #c2410c; }
.od-progress-head .app-order-status.st-shipped { background: #ede9fe; color: #6d28d9; }
.od-progress-head .app-order-status.st-delivered { background: #dcfce7; color: #15803d; }
.od-progress-head .app-order-status.st-cancelled { background: #fee2e2; color: #b91c1c; }
[data-theme="dark"] .od-progress-head .app-order-status.st-pending { background: rgba(251, 191, 36, 0.2); color: #fcd34d; }
[data-theme="dark"] .od-progress-head .app-order-status.st-confirmed { background: rgba(59, 130, 246, 0.25); color: #93c5fd; }
[data-theme="dark"] .od-progress-head .app-order-status.st-processing { background: rgba(251, 146, 60, 0.2); color: #fdba74; }
[data-theme="dark"] .od-progress-head .app-order-status.st-shipped { background: rgba(167, 139, 250, 0.25); color: #c4b5fd; }
[data-theme="dark"] .od-progress-head .app-order-status.st-delivered { background: rgba(74, 222, 128, 0.2); color: #86efac; }
[data-theme="dark"] .od-progress-head .app-order-status.st-cancelled { background: rgba(248, 113, 113, 0.2); color: #fca5a5; }
.od-progress-hint {
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-muted);
}
.od-progress-track {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: flex-start;
    width: 100%;
}
.od-progress-step {
    flex: 1;
    min-width: 0;
    text-align: center;
    margin: 0;
    padding: 0;
}
.od-progress-step-inner {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
}
.od-progress-rail {
    flex: 1;
    min-width: 6px;
    height: 4px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.08);
    align-self: center;
}
[data-theme="dark"] .od-progress-rail {
    background: rgba(255, 255, 255, 0.1);
}
.od-progress-rail.is-filled {
    background: linear-gradient(90deg, #22c55e, #4ade80);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.35);
}
.od-progress-dot {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: #f1f5f9;
    color: #94a3b8;
    border: 2px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
[data-theme="dark"] .od-progress-dot {
    background: #2d2d3d;
    color: #64748b;
    border-color: rgba(255, 255, 255, 0.12);
}
.od-progress-step.is-upcoming .od-progress-dot {
    opacity: 0.85;
}
.od-progress-step.is-current .od-progress-dot:not(.od-progress-dot--bike) {
    background: linear-gradient(145deg, var(--orange), var(--orange-light));
    color: #fff;
    border-color: rgba(var(--orange-rgb), 0.45);
    box-shadow: 0 6px 20px rgba(var(--orange-rgb), 0.45);
    transform: scale(1.06);
    animation: od-pulse-soft 2.2s ease-in-out infinite;
}
/* "On the way" — merged processing + shipped; floating bike */
.od-progress-step--bike.is-current .od-progress-dot.od-progress-dot--bike {
    background: linear-gradient(145deg, var(--orange), var(--orange-light));
    color: #fff;
    border-color: rgba(var(--orange-rgb), 0.45);
    font-size: 15px;
    transform: scale(1.06);
    animation: od-bike-ride 2s ease-in-out infinite;
}
@keyframes od-bike-ride {
    0%, 100% {
        transform: scale(1.06) translateY(0);
        box-shadow: 0 6px 20px rgba(var(--orange-rgb), 0.45);
    }
    50% {
        transform: scale(1.06) translateY(-6px);
        box-shadow: 0 10px 28px rgba(var(--orange-rgb), 0.55);
    }
}
@media (prefers-reduced-motion: reduce) {
    .od-progress-step--bike.is-current .od-progress-dot.od-progress-dot--bike {
        animation: none;
    }
}
.od-progress-step.is-complete .od-progress-dot {
    background: linear-gradient(145deg, #16a34a, #22c55e);
    color: #fff;
    border-color: rgba(22, 163, 74, 0.4);
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}
@keyframes od-pulse-soft {
    0%, 100% { box-shadow: 0 6px 20px rgba(var(--orange-rgb), 0.45); }
    50% { box-shadow: 0 6px 28px rgba(var(--orange-rgb), 0.62); }
}
.od-progress-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    line-height: 1.2;
    padding: 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.od-progress-step.is-current .od-progress-label {
    color: #ea580c;
    font-weight: 800;
}
.od-progress-step--bike.is-current .od-progress-label {
    color: #c2410c;
}
[data-theme="dark"] .od-progress-step--bike.is-current .od-progress-label {
    color: #fdba74;
}
[data-theme="dark"] .od-progress-step.is-current .od-progress-label {
    color: #fb923c;
}
.od-progress-step.is-complete .od-progress-label {
    color: #15803d;
}
[data-theme="dark"] .od-progress-step.is-complete .od-progress-label {
    color: #4ade80;
}

.od-progress--cancelled {
    background: linear-gradient(145deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid rgba(239, 68, 68, 0.25);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.12);
}
[data-theme="dark"] .od-progress--cancelled {
    background: linear-gradient(145deg, #3f1d1d 0%, #292524 100%);
    border-color: rgba(248, 113, 113, 0.35);
}
.od-progress-cancelled-inner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 4px 2px;
}
.od-progress-cancelled-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(220, 38, 38, 0.15);
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
[data-theme="dark"] .od-progress-cancelled-icon {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
}
.od-progress-cancelled-title {
    font-size: 16px;
    font-weight: 800;
    color: #991b1b;
    margin-bottom: 6px;
}
[data-theme="dark"] .od-progress-cancelled-title {
    color: #fecaca;
}
.od-progress-cancelled-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #7f1d1d;
}
[data-theme="dark"] .od-progress-cancelled-text {
    color: rgba(254, 202, 202, 0.88);
}

@media (max-width: 380px) {
    .od-progress-dot {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    .od-progress-label {
        font-size: 9px;
        letter-spacing: 0.02em;
    }
}

.od-header-card {
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 16px;
    color: #fff;
}
.od-header-top { display: flex; justify-content: space-between; align-items: flex-start; }
.od-number { font-size: 18px; font-weight: 800; }
.od-date { font-size: 12px; color: rgba(255,255,255,0.8); margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.od-header-card .app-order-status { background: rgba(255,255,255,0.2); color: #fff; }
.od-note { font-size: 12px; color: rgba(255,255,255,0.85); margin: 12px 0 0; display: flex; align-items: flex-start; gap: 6px; }

.od-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.od-section-title i { color: var(--orange); font-size: 14px; }

.od-items-card, .od-summary-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    margin-bottom: 16px;
}
[data-theme="dark"] .od-items-card, [data-theme="dark"] .od-summary-card { background: #1e1e2e; border-color: rgba(255,255,255,0.06); }

.od-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
[data-theme="dark"] .od-item { border-color: rgba(255,255,255,0.04); }
.od-item:last-child { border-bottom: none; }
.od-item-name { font-size: 14px; font-weight: 600; color: var(--text); }
.od-item-desc { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.od-item-name-row { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px; }
.od-item-name-row .od-item-name { flex: 1; min-width: 0; }
.od-free-pill {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #fff;
    background: #22c55e;
    padding: 2px 8px;
    border-radius: 6px;
    line-height: 1.3;
    flex-shrink: 0;
}
.od-item--free { background: linear-gradient(90deg, rgba(34, 197, 94, 0.06), transparent); }
.od-item-variant { font-size: 11px; color: var(--text-muted); margin-top: 4px; font-weight: 600; }
.od-free-meta { font-weight: 600; color: #15803d; }
.od-item-total--end { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.od-free-total-label { font-size: 16px; font-weight: 800; color: #16a34a; }
.od-free-list-ref { font-size: 12px; font-weight: 600; color: var(--text-muted); text-decoration: line-through; opacity: 0.9; }
.od-item-meta { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.od-item-total { font-size: 15px; font-weight: 700; color: var(--text); flex-shrink: 0; margin-left: 12px; }

.od-sum-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text-muted);
}
.od-sum-row.total { font-size: 16px; font-weight: 800; color: var(--text); }
.od-sum-row.discount span:last-child { color: #22c55e; }
.od-free { color: #22c55e; font-weight: 600; }
.od-mrp-note { font-size: 13px; color: var(--text-muted); }
.od-mrp-note small { font-weight: 500; opacity: 0.85; font-size: 11px; }
.od-sum-savings span:first-child { display: flex; align-items: center; gap: 6px; font-weight: 700; color: #166534; }
.od-sum-savings .od-savings-val { color: #16a34a; font-weight: 800; font-size: 15px; }
.od-savings-disclaimer {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 12px 16px 0;
    padding: 0;
    opacity: 0.9;
}
.od-savings-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 14px;
    padding: 16px 18px;
    border-radius: 16px;
    background: linear-gradient(125deg, #059669 0%, #10b981 45%, #34d399 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.28);
    position: relative;
    overflow: hidden;
}
.od-savings-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    pointer-events: none;
}
.od-savings-banner__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.od-savings-banner__body { position: relative; z-index: 1; min-width: 0; }
.od-savings-banner__title { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.92; }
.od-savings-banner__amount { font-size: 24px; font-weight: 900; line-height: 1.1; margin-top: 4px; letter-spacing: -0.02em; }
.od-savings-banner__meta { font-size: 12px; font-weight: 600; margin-top: 6px; opacity: 0.92; line-height: 1.35; }
[data-theme="dark"] .od-sum-savings span:first-child { color: #86efac; }
[data-theme="dark"] .od-sum-savings .od-savings-val { color: #4ade80; }
[data-theme="dark"] .od-savings-banner { box-shadow: 0 8px 28px rgba(0,0,0,0.35); }

.od-sum-divider { height: 1px; background: rgba(0,0,0,0.06); margin: 0 16px; }
[data-theme="dark"] .od-sum-divider { background: rgba(255,255,255,0.06); }

.od-actions { margin-top: 8px; }

.od-reorder-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 0 0 12px;
    padding: 8px 10px;
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(var(--orange-rgb), 0.08), rgba(var(--green-rgb), 0.06));
    border: 1px solid rgba(var(--orange-rgb), 0.15);
}
[data-theme="dark"] .od-reorder-wrap {
    background: linear-gradient(145deg, rgba(var(--orange-rgb), 0.12), rgba(var(--green-rgb), 0.08));
    border-color: rgba(255, 255, 255, 0.08);
}
.od-reorder-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 6px;
    padding: 7px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), #ea580c);
    box-shadow: 0 2px 8px rgba(var(--orange-rgb), 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.od-reorder-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--orange-rgb), 0.38);
}
.od-reorder-btn:disabled {
    opacity: 0.85;
    cursor: wait;
}
.od-reorder-hint {
    flex: 1 1 140px;
    margin: 0;
    min-width: 0;
    font-size: 11px;
    line-height: 1.35;
    color: var(--text-muted);
}
@media (max-width: 360px) {
    .od-reorder-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    .od-reorder-btn {
        justify-content: center;
    }
    .od-reorder-hint {
        text-align: center;
    }
}

.od-pay-full, .od-view-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s;
}
.od-pay-full:hover, .od-view-full:hover { transform: translateY(-2px); }

.app-order-arrow { color: var(--text-muted); font-size: 14px; }

/* Edit / Change Pwd Buttons */
.app-edit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin: 12px 0 6px;
    transition: transform 0.2s;
}
.app-edit-btn:hover { transform: translateY(-1px); }
.app-edit-btn.outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border, rgba(0,0,0,0.1));
    margin-top: 0;
}
.app-edit-btn.outline:hover { border-color: var(--orange); color: var(--orange); }

/* Form Styles */
.app-edit-form { margin-bottom: 12px; }
.app-form-group {
    margin-bottom: 12px;
}
.app-form-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.app-form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    background: var(--bg);
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.app-form-group input:focus { border-color: var(--orange); }
[data-theme="dark"] .app-form-group input { border-color: rgba(255,255,255,0.08); }

.app-form-group select,
.app-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    background: var(--bg);
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}
.app-form-group select:focus,
.app-form-group textarea:focus { border-color: var(--orange); }
[data-theme="dark"] .app-form-group select,
[data-theme="dark"] .app-form-group textarea { border-color: rgba(255,255,255,0.08); }

.app-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.app-form-actions { display: flex; gap: 8px; margin-top: 4px; }
.app-btn-save {
    flex: 1;
    padding: 13px;
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.app-btn-cancel {
    flex: 0.6;
    padding: 13px;
    background: transparent;
    color: var(--text-muted);
    border: 1.5px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
[data-theme="dark"] .app-btn-cancel { border-color: rgba(255,255,255,0.08); }

/* Toast messages */
.app-toast {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.app-toast.success { background: rgba(34,197,94,0.1); color: #22c55e; }
.app-toast.error { background: rgba(239,68,68,0.1); color: #ef4444; }

/* ── Mobile Cart Value & Hide User Menu ── */
.cart-value-mobile { display: none; }
.hide-on-mobile { }

/* ── Global Sticky Cart Bar ── */
.global-cart-bar {
    position: fixed;
    bottom: 56px;
    left: 0;
    right: 0;
    z-index: 95;
    padding: 0 12px 8px;
    animation: gcbSlideUp .3s ease;
}
@keyframes gcbSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.global-cart-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #16a34a, #15803d);
    border-radius: 14px;
    padding: 10px 12px 10px 16px;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 4px 16px rgba(22,163,74,.35);
    transition: transform .15s;
}
.global-cart-bar-inner:hover { transform: translateY(-1px); color: #fff; }
.gcb-left { display: flex; align-items: center; gap: 8px; }
.gcb-count {
    background: #fff;
    color: #16a34a;
    font-size: 12px;
    font-weight: 800;
    min-width: 22px;
    height: 22px;
    line-height: 22px;
    border-radius: 11px;
    text-align: center;
    padding: 0 6px;
}
.gcb-label { font-size: 13px; font-weight: 600; opacity: .9; }
.gcb-right { display: flex; align-items: center; gap: 10px; }
.gcb-total { font-size: 16px; font-weight: 800; }
.gcb-btn {
    font-size: 12px;
    font-weight: 700;
    background: rgba(255,255,255,.2);
    padding: 5px 12px;
    border-radius: 8px;
}
@media (min-width: 768px) {
    .global-cart-bar {
        bottom: 20px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        max-width: 480px;
        width: 100%;
    }
    @keyframes gcbSlideUp {
        from { transform: translateX(-50%) translateY(100%); opacity: 0; }
        to { transform: translateX(-50%) translateY(0); opacity: 1; }
    }
}

/* Floating “order on the way” (above bottom nav + above global cart bar when visible; z-index below cart) */
.pk-transit-order-bar {
    position: fixed;
    left: 12px;
    right: 52px;
    bottom: 66px;
    z-index: 94;
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    border: 1px solid rgba(var(--orange-rgb), 0.35);
    box-shadow: 0 8px 28px rgba(var(--orange-rgb), 0.28);
    text-decoration: none;
    color: #f0fdf4;
    font-size: 13px;
    line-height: 1.3;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    animation: pkTransitIn 0.35s ease;
}
@keyframes pkTransitIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.pk-transit-order-bar:hover {
    box-shadow: 0 10px 32px rgba(var(--orange-rgb), 0.38);
    border-color: rgba(var(--gold-rgb), 0.45);
    color: #fff;
}
.pk-transit-order-bar__icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange-dark);
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(var(--gold-rgb), 0.35);
}
.pk-transit-order-bar__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pk-transit-order-bar__title {
    font-weight: 800;
    font-size: 13px;
    color: #fff;
    letter-spacing: 0.02em;
}
.pk-transit-order-bar__sub {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pk-transit-order-bar__chev {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--gold-light);
    opacity: 0.95;
}
body.pk-gcb-visible .pk-transit-order-bar {
    bottom: 128px;
}
@media (min-width: 768px) {
    .pk-transit-order-bar {
        left: 50%;
        right: auto;
        width: min(440px, calc(100vw - 96px));
        margin: 0;
        transform: translateX(-50%);
        bottom: 28px;
    }
    @keyframes pkTransitIn {
        from { opacity: 0; transform: translateX(-50%) translateY(12px); }
        to { opacity: 1; transform: translateX(-50%) translateY(0); }
    }
    .pk-transit-order-bar:hover {
        transform: translateX(-50%) translateY(-1px);
    }
    body.pk-gcb-visible .pk-transit-order-bar {
        bottom: 96px;
    }
}
@media (max-width: 767px) {
    body.pk-transit-visible .back-to-top {
        bottom: 118px;
    }
    body.pk-transit-visible.pk-gcb-visible .back-to-top {
        bottom: 132px;
    }
    .hide-on-mobile { display: none !important; }
    .cart-value-mobile {
        display: inline-block;
        font-size: 13px;
        font-weight: 700;
        color: #fff;
        margin-left: 4px;
    }
    .header-cart-btn {
        display: inline-flex !important;
        align-items: center;
        gap: 4px;
        background: var(--green, #16a34a) !important;
        color: #fff !important;
        padding: 6px 14px !important;
        border-radius: 20px !important;
        font-size: 13px;
        text-decoration: none;
    }
    .header-cart-btn i { color: #fff; }
    .header-cart-btn .cart-badge {
        position: static;
        background: #fff;
        color: var(--green, #16a34a);
        font-size: 11px;
        font-weight: 800;
        min-width: 20px;
        height: 20px;
        line-height: 20px;
        border-radius: 10px;
        text-align: center;
        padding: 0 5px;
    }
}

/* ===== Vendor login page (dedicated layout) ===== */
