﻿/* AllInOne marketplace redesign */
:root {
    --blue: #8b5cf6;
    --blue-dark: #6d28d9;
    --cyan: #c084fc;
    --ink: #172033;
    --muted: #6f7b8d;
    --line: #e6edf5;
    --soft: #f3f7fb;
    --card: #ffffff;
    --green: #16a05d;
    --orange: #ff8a2a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background:
        linear-gradient(90deg, rgba(139, 92, 246, 0.12) 0 14px, transparent 14px calc(100% - 14px), rgba(139, 92, 246, 0.12) calc(100% - 14px)),
        #f7f4ff;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
}
.auth-page-body { overflow: hidden; }
.auth-page-body .site-shell { min-height: 100vh; }

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { max-width: 100%; display: block; }

.site-shell {
    width: min(1420px, calc(100% - 34px));
    margin: 18px auto 0;
    background: #fff;
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: 10px;
    box-shadow: 0 26px 80px rgba(91, 33, 182, 0.13);
    overflow: visible;
}

.topbar,
.main-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
}

.topbar {
    justify-content: space-between;
    min-height: 34px;
    padding: 0 24px;
    color: var(--muted);
    font-size: 12px;
    background: #fbfdff;
}

.topbar-links { display: flex; gap: 16px; align-items: center; }
.topbar a { color: var(--blue); font-weight: 700; }
.top-offer-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #8b5cf6, #c084fc);
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(139, 92, 246, .24);
    font-size: 12px;
    font-weight: 900 !important;
}

.main-header {
    position: sticky;
    top: 0;
    z-index: 90;
    justify-content: space-between;
    gap: 18px;
    min-height: 72px;
    padding: 12px 24px;
    background: rgba(250, 247, 255, 0.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 34px rgba(50, 25, 95, .08);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 180px;
    color: var(--blue);
    font-size: 24px;
    font-weight: 900;
}

.brand img {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    object-fit: cover;
    box-shadow: 0 12px 28px rgba(139, 92, 246, 0.28);
}

.header-categories { position: relative; flex: 0 0 auto; }
.header-categories-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #1f2937;
    cursor: pointer;
    font-weight: 1000;
    box-shadow: 0 10px 28px rgba(91,33,182,.16), inset 0 0 0 1px rgba(139,92,246,.12);
    transition: transform .18s ease, box-shadow .18s ease, color .18s ease;
}
.header-categories-button:hover,
.header-categories.open .header-categories-button { color: var(--blue); transform: translateY(-1px); box-shadow: 0 16px 34px rgba(91,33,182,.22), inset 0 0 0 1px rgba(139,92,246,.22); }
.hamburger-lines,
.hamburger-lines::before,
.hamburger-lines::after {
    width: 18px;
    height: 2px;
    display: inline-block;
    border-radius: 999px;
    background: currentColor;
}
.hamburger-lines { position: relative; }
.hamburger-lines::before,
.hamburger-lines::after { content: ""; position: absolute; left: 0; }
.hamburger-lines::before { top: -6px; }
.hamburger-lines::after { top: 6px; }
.header-category-panel {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    z-index: 110;
    width: min(920px, calc(100vw - 40px));
    display: grid;
    grid-template-columns: 285px 1fr;
    max-height: min(72vh, 640px);
    overflow: hidden;
    border: 1px solid rgba(139,92,246,.18);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 32px 90px rgba(38,22,74,.22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px) scale(.98);
    transition: opacity .24s ease .08s, transform .24s ease .08s, visibility .24s ease .08s;
}
.header-category-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -28px; height: 30px; }
.header-categories.open .header-category-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
.header-category-list { position: relative; display: grid; align-content: start; overflow: visible; border-right: 2px solid #8b5cf6; background: #fbfaff; }
.header-category-row { display: contents; }
.header-category-row > a {
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 10px 14px;
    border-bottom: 1px solid #eee7fb;
    color: #273044;
    font-weight: 900;
}
.header-category-row:hover > a,
.header-category-row.active > a { background: #f2eaff; color: var(--blue); }
.header-category-list img { width: 28px; height: 28px; object-fit: contain; }
.header-subcategory-panel {
    position: absolute;
    left: 285px;
    top: 0;
    bottom: 0;
    width: calc(min(920px, calc(100vw - 40px)) - 285px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 13px 30px;
    overflow: auto;
    padding: 26px 30px;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(10px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.header-category-row:hover .header-subcategory-panel,
.header-category-row.active .header-subcategory-panel,
.header-category-row.open .header-subcategory-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}
.header-subcategory-panel h3 { grid-column: 1 / -1; margin: 0 0 4px; color: #111827; font-size: 18px; }
.header-subcategory-panel a { color: #111827; font-weight: 850; line-height: 1.35; }
.header-subcategory-panel a:hover { color: var(--blue); transform: translateX(3px); }

.search {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 620px;
    min-width: 220px;
    height: 44px;
    padding: 0 12px;
    border: 2px solid var(--blue);
    border-radius: 6px;
    background: #fff;
    color: var(--blue);
}

.search input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
}

.search button {
    border: 0;
    background: transparent;
    cursor: pointer;
}
.search-submit { display: none; }

.search-icon,
.filter-icon { position: relative; display: inline-block; width: 18px; height: 18px; }
.search-icon::before { content: ""; position: absolute; left: 2px; top: 2px; width: 10px; height: 10px; border: 2px solid var(--blue); border-radius: 50%; }
.search-icon::after { content: ""; position: absolute; right: 2px; bottom: 2px; width: 8px; height: 2px; border-radius: 999px; background: var(--blue); transform: rotate(45deg); }
.filter-icon, .filter-icon::before, .filter-icon::after { border-top: 2px solid var(--blue); }
.filter-icon::before, .filter-icon::after { content: ""; position: absolute; left: 0; }
.filter-icon::before { top: 6px; width: 14px; }
.filter-icon::after { top: 12px; width: 9px; }

.user-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 800;
}

.user-nav > a,
.account-trigger {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border-radius: 6px;
    background: #f5f8fc;
    color: var(--ink);
}

.user-nav strong {
    display: inline-grid;
    min-width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 12px;
}

.header-action-menu { position: relative; flex: 0 0 auto; }
.header-icon-action,
.login-pill {
    min-width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    background: #7357b8;
    color: #fff;
    cursor: pointer;
    font-weight: 1000;
    box-shadow: 0 12px 28px rgba(91,33,182,.22);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.header-icon-action:hover,
.login-pill:hover,
.header-action-menu.open .header-icon-action { transform: translateY(-2px); background: #8b5cf6; box-shadow: 0 18px 36px rgba(91,33,182,.30); }
.login-pill { padding: 0 18px; background: #fff; color: #111827; box-shadow: 0 10px 28px rgba(15,23,42,.08); }
.action-symbol { position: relative; width: 22px; height: 22px; display: inline-block; }
.cart-symbol::before { content: ""; position: absolute; left: 3px; top: 6px; width: 15px; height: 11px; border: 2px solid currentColor; border-top: 0; border-radius: 0 0 4px 4px; transform: skewX(-8deg); }
.cart-symbol::after { content: ""; position: absolute; left: 1px; top: 2px; width: 8px; height: 2px; background: currentColor; transform: rotate(55deg); transform-origin: left center; box-shadow: 8px 17px 0 -1px currentColor, 16px 17px 0 -1px currentColor; }
.heart-symbol::before { content: "♡"; position: absolute; inset: -7px 0 0; font-size: 32px; line-height: 1; font-weight: 900; }
.user-symbol::before { content: ""; position: absolute; left: 7px; top: 3px; width: 8px; height: 8px; border: 2px solid currentColor; border-radius: 50%; }
.user-symbol::after { content: ""; position: absolute; left: 3px; bottom: 2px; width: 16px; height: 9px; border: 2px solid currentColor; border-radius: 999px 999px 0 0; }
.header-icon-action strong {
    position: absolute;
    right: -2px;
    top: -4px;
    min-width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #a78bfa;
    color: #fff;
    font-size: 12px;
}
.header-mini-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 14px);
    z-index: 115;
    width: min(340px, calc(100vw - 28px));
    display: grid;
    gap: 14px;
    padding: 24px 18px 18px;
    border: 1px solid rgba(139,92,246,.16);
    border-radius: 0 0 22px 22px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(38,22,74,.22);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px) scale(.98);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.header-mini-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.header-action-menu:hover .header-mini-panel,
.header-action-menu:focus-within .header-mini-panel,
.header-action-menu.open .header-mini-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1); }
.header-mini-panel h3 { margin: 0; color: #1f2937; font-size: 18px; }
.header-mini-panel p { max-width: 240px; margin: 0 auto; color: #5b6474; line-height: 1.45; font-weight: 800; }
.mini-panel-button {
    min-height: 48px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff !important;
    font-weight: 1000;
    box-shadow: 0 14px 28px rgba(124,58,237,.26);
}
.mini-cart-items { display: grid; gap: 9px; text-align: left; }
.mini-cart-item { display: grid; grid-template-columns: 54px 1fr; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; background: #fbfaff; }
.mini-cart-item:hover { background: #f2eaff; }
.mini-cart-item img { width: 54px; height: 54px; object-fit: contain; border-radius: 10px; background: #fff; }
.mini-cart-item b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #1f2937; }
.mini-cart-item small { color: #7c3aed; font-weight: 900; }
.empty-box-art {
    position: relative;
    width: 132px;
    height: 110px;
    margin: 0 auto;
    background: linear-gradient(145deg, #bda7ff, #7c3aed);
    clip-path: polygon(15% 26%, 50% 8%, 86% 26%, 70% 86%, 30% 86%);
    filter: drop-shadow(0 16px 20px rgba(124,58,237,.20));
}
.empty-box-art span {
    position: absolute;
    left: 50%;
    top: -14px;
    min-width: 54px;
    transform: translateX(-50%);
    padding: 4px 14px;
    border-radius: 7px;
    background: #8b5cf6;
    color: #fff;
    font-size: 24px;
    font-weight: 1000;
}
.empty-heart-art { width: 104px; height: 104px; margin: 0 auto; display: grid; place-items: center; border-radius: 32px; background: #f2eaff; color: #8b5cf6; font-size: 64px; box-shadow: inset 0 0 0 1px rgba(139,92,246,.12); }

.account-menu { position: relative; }
.account-trigger { border: 0; cursor: pointer; }
.account-avatar { width: 30px; height: 30px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--orange)); color: #fff; font-weight: 900; }
.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 45;
    min-width: 238px;
    display: grid;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 22px 50px rgba(24, 47, 75, .16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.account-menu:hover .account-dropdown,
.account-menu:focus-within .account-dropdown,
.account-menu.open .account-dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.account-dropdown a { padding: 11px 12px; border-radius: 7px; color: var(--ink); font-weight: 900; }
.account-dropdown a:hover { background: #f5f0ff; color: var(--blue); }

.language-switcher { display: inline-flex; align-items: center; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.language-switcher a { padding: 6px 8px; border-radius: 4px; color: var(--muted); font-size: 12px; }
.language-switcher a.active { background: var(--blue); color: #fff; }

.category-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 52px;
    padding: 10px 24px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    overflow: visible;
}

.category-menu-item { position: relative; flex: 0 0 auto; }
.category-menu-item > a,
.category-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 0;
    border-radius: 999px;
    background: #f4efff;
    color: #344257;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}
.category-menu-trigger i {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .18s ease;
}
.category-menu-item:hover > a,
.category-menu-item.open > a,
.category-menu-item.open .category-menu-trigger,
.category-menu-trigger:hover { background: var(--blue); color: #fff; }
.category-menu-item:hover .category-menu-trigger { background: var(--blue); color: #fff; }
.category-menu-item:hover .category-menu-trigger i,
.category-menu-item.open .category-menu-trigger i { transform: rotate(225deg) translateY(-1px); }
.subcategory-menu { position: absolute; left: 0; top: 100%; z-index: 40; min-width: 210px; display: none; padding: 12px 8px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 20px 44px rgba(76, 29, 149, .16); }
.subcategory-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 12px; }
.category-menu-item:hover .subcategory-menu,
.category-menu-item.open .subcategory-menu { display: grid; }
.subcategory-menu a { padding: 9px 10px; border-radius: 6px; color: var(--ink); font-size: 13px; }
.subcategory-menu a:hover { background: #f5f0ff; color: var(--blue); }

@media (hover: none), (max-width: 760px) {
    .category-menu-item:hover .subcategory-menu { display: none; }
    .category-menu-item.open .subcategory-menu { display: grid; }
}

.flash { margin: 16px 24px 0; padding: 12px 14px; border-radius: 8px; background: #f2eaff; color: var(--blue-dark); font-weight: 800; }

.storefront-main,
.page-main { padding: 24px; }

.market-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr) 235px;
    gap: 18px;
    align-items: stretch;
}

.market-sidebar,
.deal-rail,
.hero-slider,
.section,
.catalog-hero {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
    box-shadow: 0 12px 32px rgba(91, 33, 182, 0.06);
}

.market-sidebar { position: relative; z-index: 20; overflow: visible; padding: 12px; }
.sidebar-title { padding: 4px 6px 12px; color: var(--ink); font-size: 15px; font-weight: 900; }
.market-sidebar a { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 10px; border-radius: 7px; color: #35445b; font-size: 14px; font-weight: 700; }
.market-sidebar a img { width: 24px; height: 24px; object-fit: contain; }
.market-sidebar a:hover,
.market-sidebar a.active { background: #f2eaff; color: var(--blue); transform: translateX(2px); }

.hero-slider { position: relative; min-height: 360px; overflow: hidden; background: radial-gradient(circle at 78% 22%, rgba(192,132,252,.34), transparent 32%), linear-gradient(135deg, #f8f3ff, #fff 54%, #efe5ff); }
.slides, .slide { height: 100%; }
.slide { display: none; align-items: center; justify-content: space-between; gap: 22px; padding: 38px 58px; }
.slide.active { display: flex; }
.slide p { margin: 0 0 8px; color: var(--blue-dark); font-size: 14px; font-weight: 900; text-transform: uppercase; }
.slide h1 { max-width: 460px; margin: 0 0 12px; color: var(--ink); font-size: clamp(34px, 5vw, 58px); line-height: .95; letter-spacing: 0; }
.slide strong { display: block; margin-bottom: 20px; color: var(--blue); font-size: 20px; }
.slide img { width: min(38%, 280px); max-height: 260px; object-fit: contain; filter: drop-shadow(0 22px 34px rgba(24, 70, 120, .18)); }
.slide.full-image-slide { padding: 0; }
.full-image-slide .full-slide-link { width: 100%; height: 100%; display: block; }
.full-image-slide img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    filter: none;
}
.hero-cta { display: inline-flex; min-height: 40px; align-items: center; padding: 0 18px; border-radius: 6px; background: var(--blue); color: #fff; font-weight: 900; }
.slider-btn { position: absolute; top: 50%; z-index: 3; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #fff; color: var(--blue); box-shadow: 0 12px 28px rgba(76, 29, 149, .16); cursor: pointer; transform: translateY(-50%); font-size: 28px; }
.slider-btn.prev { left: 14px; }
.slider-btn.next { right: 14px; }
.dots { position: absolute; left: 58px; bottom: 22px; display: flex; gap: 7px; }
.dots button, .dots span { width: 8px; height: 8px; border: 0; border-radius: 999px; background: rgba(139, 92, 246, .28); }
.dots .active, .dots button.active { width: 24px; background: var(--blue); }

.deal-rail { display: grid; gap: 12px; padding: 12px; }
.deal-card-blue { min-height: 145px; display: grid; align-content: center; gap: 8px; padding: 16px; border-radius: 8px; background: linear-gradient(135deg, #7c3aed, #c084fc); color: #fff; overflow: hidden; position: relative; }
.deal-card-blue span { font-size: 13px; font-weight: 800; opacity: .9; }
.deal-card-blue strong { max-width: 140px; font-size: 24px; line-height: 1; }
.deal-card-blue img { position: absolute; right: 8px; bottom: 4px; width: 98px; opacity: .92; }
.deal-mini-list { display: grid; gap: 10px; }
.deal-mini-list a { display: grid; grid-template-columns: 46px 1fr; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 7px; }
.deal-mini-list img { width: 46px; height: 46px; object-fit: contain; }
.deal-mini-list span { font-size: 12px; font-weight: 800; }

.section { margin-top: 22px; padding: 18px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.section-head h1, .section-head h2 { margin: 0; font-size: 22px; letter-spacing: 0; }
.section-head span, .section-head h2 span { color: var(--blue); }
.section-head a { color: var(--blue); font-weight: 900; }

.daily-offer-section {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(240px, .8fr) minmax(190px, .55fr);
    gap: 18px;
    align-items: center;
    overflow: hidden;
    padding: 24px;
    border-color: rgba(139,92,246,.22);
    background:
        radial-gradient(circle at 18% 12%, rgba(255,138,42,.18), transparent 28%),
        radial-gradient(circle at 78% 18%, rgba(139,92,246,.24), transparent 28%),
        linear-gradient(135deg, #fff, #f6f0ff 58%, #fff7ed);
}
.daily-offer-section::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px dashed rgba(139,92,246,.18);
    border-radius: 10px;
    pointer-events: none;
}
.daily-offer-copy,
.daily-offer-media,
.daily-offer-side { position: relative; z-index: 1; }
.daily-offer-copy span {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #8b5cf6;
    color: #fff;
    font-size: 12px;
    font-weight: 1000;
}
.daily-offer-copy h2 { max-width: 560px; margin: 0 0 10px; font-size: clamp(26px, 4vw, 46px); line-height: 1.02; }
.daily-offer-copy p { max-width: 580px; margin: 0; color: #5b6474; font-weight: 800; line-height: 1.55; }
.daily-offer-price { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.daily-offer-price strong { color: #f15a24; font-size: 30px; font-weight: 1000; }
.daily-offer-price del { color: #98a2b3; font-weight: 900; }
.daily-offer-price em { padding: 7px 10px; border-radius: 999px; background: #fff; color: #7c3aed; font-style: normal; font-weight: 1000; box-shadow: 0 12px 24px rgba(91,33,182,.12); }
.daily-offer-button {
    width: fit-content;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    margin-top: 18px;
    padding: 0 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
    font-weight: 1000;
    box-shadow: 0 16px 34px rgba(124,58,237,.24);
}
.daily-offer-media {
    min-height: 230px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(255,255,255,.72);
    box-shadow: inset 0 0 0 1px rgba(139,92,246,.10), 0 22px 54px rgba(91,33,182,.13);
}
.daily-offer-media img { max-width: 82%; max-height: 260px; object-fit: contain; filter: drop-shadow(0 22px 34px rgba(76,29,149,.16)); transition: transform .22s ease; }
.daily-offer-media:hover img { transform: scale(1.06) rotate(-1deg); }
.daily-offer-side { display: grid; gap: 10px; }
.daily-offer-side a { display: grid; grid-template-columns: 54px 1fr; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.78); box-shadow: inset 0 0 0 1px rgba(139,92,246,.10); }
.daily-offer-side a:hover { background: #fff; transform: translateX(3px); }
.daily-offer-side img { width: 54px; height: 54px; object-fit: contain; }
.daily-offer-side span { color: #273044; font-size: 12px; font-weight: 900; line-height: 1.3; }

.product-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.top-products-grid .product-card { box-shadow: 0 18px 40px rgba(91, 33, 182, .08); }
.top-products-grid .product-card::before {
    content: "TOP";
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 6;
    padding: 5px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff8a2a, #8b5cf6);
    color: #fff;
    font-size: 10px;
    font-weight: 1000;
    box-shadow: 0 10px 22px rgba(139,92,246,.22);
}
.product-card { position: relative; display: grid; grid-template-rows: 174px 1fr; min-height: 384px; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.product-card:hover { transform: translateY(-5px); border-color: rgba(139, 92, 246, .45); box-shadow: 0 22px 46px rgba(91, 33, 182, .14); }
.product-favorite-form {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 30;
}
.product-favorite-button {
    position: relative;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.94);
    color: #7c3aed;
    cursor: pointer;
    font-size: 27px;
    line-height: 1;
    box-shadow: 0 12px 28px rgba(91,33,182,.16);
    transition: transform .18s ease, background .18s ease, color .18s ease;
}
.product-favorite-button:hover,
.product-favorite-button.active {
    transform: scale(1.08);
    background: #8b5cf6;
    color: #fff;
}
.product-favorite-button.active::before,
.alta-heart.active::before { content: "♥"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.product-favorite-button.active,
.alta-heart.active { color: transparent; }
.alta-heart.active { background: #8b5cf6; }
.product-image { position: relative; z-index: 1; display: grid; place-items: center; min-height: 174px; height: 174px; padding: 18px; background: #f7fafc; }
.product-image img { width: 126px; height: 126px; object-fit: contain; transition: transform .2s ease; }
.product-card:hover .product-image img { transform: scale(1.08); }
.product-image > span { position: absolute; right: 10px; top: 10px; min-width: 44px; padding: 6px 5px; border-radius: 6px; background: var(--blue); color: #fff; text-align: center; font-size: 11px; font-weight: 900; pointer-events: none; }
.sold-out-badge,
.almost-sold-out-badge { position: absolute; left: 10px; top: 10px; padding: 6px 8px; border-radius: 6px; color: #fff; font-style: normal; font-size: 11px; font-weight: 900; box-shadow: 0 10px 22px rgba(76, 29, 149, .18); }
.sold-out-badge { background: #111827; }
.almost-sold-out-badge { background: linear-gradient(135deg, #ff8a2a, #ff4d4d); }
.product-info { display: grid; grid-template-rows: auto minmax(38px, auto) auto auto auto 1fr; gap: 7px; padding: 12px; }
.product-number { color: var(--muted); font-size: 11px; font-weight: 800; }
.product-info > a,
.product-title { min-height: 38px; color: var(--ink); font-size: 14px; font-weight: 900; line-height: 1.25; overflow-wrap: anywhere; }
.product-info div,
.product-price-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.product-info strong { font-size: 16px; }
.product-info del { color: #9aa5b5; font-size: 12px; }
.product-info p { margin: 0; color: var(--green); font-size: 12px; font-weight: 800; line-height: 1.35; }
.stock-status { color: var(--muted) !important; }
.stock-status.sold-out { color: #c0392b !important; }
.stock-status.almost-sold-out { color: #e86f00 !important; font-weight: 900; }
.product-info form { align-self: end; }
.product-info form button,
.sold-out-button { width: 100%; min-height: 38px; border: 0; border-radius: 6px; background: var(--blue); color: #fff; cursor: pointer; font-weight: 900; }
.product-info form button:hover { background: var(--blue-dark); }
.sold-out-button { background: #d6dde7; color: #6a7380; cursor: not-allowed; }

.category-circles { display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); gap: 14px; }
.top-category-tile { display: grid; align-content: start; gap: 10px; min-height: 178px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, #fff, #fbfaff); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.top-category-tile:hover { transform: translateY(-4px); border-color: rgba(139,92,246,.42); box-shadow: 0 18px 38px rgba(91,33,182,.12); }
.category-circle { display: grid; justify-items: center; gap: 9px; padding: 8px 6px; color: #344257; font-size: 13px; font-weight: 900; text-align: center; }
.category-circle span { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: #f4f8fc; }
.category-circle img { width: 42px; height: 42px; object-fit: contain; }
.category-circle:hover { color: var(--blue); }
.category-circle strong { font-size: 13px; }
.top-category-tile > div { display: grid; gap: 6px; }
.top-category-tile > div a { padding: 7px 9px; border-radius: 8px; background: #f3edff; color: #6d28d9; font-size: 11px; font-weight: 900; text-align: center; }
.top-category-tile > div a:hover { background: #8b5cf6; color: #fff; }
.category-tree-sidebar { gap: 8px; }
.sidebar-category-group { border: 1px solid rgba(139,92,246,.12); border-radius: 10px; background: #fff; overflow: hidden; transition: box-shadow .18s ease, transform .18s ease; }
.sidebar-category-group:hover,
.sidebar-category-group.open { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(91,33,182,.12); }
.sidebar-category-main { border: 0 !important; border-radius: 0 !important; background: transparent !important; }
.sidebar-subcategories { display: grid; max-height: 0; overflow: hidden; padding: 0 12px; transition: max-height .24s ease, padding .22s ease; }
.sidebar-category-group:hover .sidebar-subcategories,
.sidebar-category-group.open .sidebar-subcategories { max-height: 260px; padding: 0 12px 12px; }
.sidebar-subcategories a { display: block; margin-top: 6px; padding: 8px 10px; border-radius: 7px; background: #f7f3ff; color: #5b4b76; font-size: 12px; font-weight: 800; }
.sidebar-subcategories a:hover { background: var(--blue); color: #fff; }

.brand-slider { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.brand-card { min-height: 145px; position: relative; overflow: hidden; padding: 18px; border-radius: 8px; }
.brand-card span { display: inline-flex; padding: 5px 10px; border-radius: 5px; background: rgba(255,255,255,.45); font-size: 12px; font-weight: 900; }
.brand-card strong { display: block; margin-top: 24px; font-size: 22px; }
.brand-card img { position: absolute; right: 12px; bottom: 10px; width: 130px; max-height: 120px; object-fit: contain; }
.brand-card.dark { background: #2b2f39; color: #fff; }
.brand-card.yellow { background: #fff0b8; }
.brand-card.peach { background: #ffe2d0; }
.brand-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.brand-dots span { width: 7px; height: 7px; border-radius: 999px; background: #d7e0ea; }
.brand-dots span:first-child { width: 26px; background: var(--blue); }

.daily-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.daily-card { display: grid; justify-items: center; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-align: center; }
.daily-card img { width: 92px; height: 92px; object-fit: contain; }
.daily-card span { min-height: 34px; font-size: 13px; font-weight: 900; }
.daily-card strong { color: var(--ink); font-size: 13px; }
.daily-card:hover { border-color: var(--blue); transform: translateY(-3px); }

.catalog-page { display: grid; grid-template-columns: 240px 1fr; gap: 18px; align-items: start; }
.catalog-sidebar { position: sticky; top: 92px; margin: 0; }
.catalog-section { margin-top: 0; }
.catalog-hero { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; padding: 18px 20px; background: linear-gradient(135deg, #f3e8ff, #ffffff); }
.catalog-hero-offers { background: radial-gradient(circle at 12% 20%, rgba(255,138,42,.18), transparent 30%), linear-gradient(135deg, #fff7ed, #f3e8ff); }
.catalog-hero p { margin: 0 0 5px; color: var(--blue); font-weight: 900; text-transform: uppercase; font-size: 12px; }
.catalog-hero h1 { margin: 0; font-size: 28px; }
.catalog-hero > span { padding: 8px 12px; border-radius: 999px; background: #f2eaff; color: var(--blue); font-weight: 900; }
.catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.footer {
    margin-top: 28px;
    padding: 34px 24px 0;
    position: relative;
    z-index: 260;
    pointer-events: auto;
    border-top: 1px solid #eee8fb;
    background: #f7f3ff;
    color: #273044;
}
.footer-inner {
    display: grid;
    grid-template-columns: minmax(280px, 1.25fr) repeat(4, minmax(170px, .85fr));
    gap: 24px;
    align-items: start;
}
.footer-brand,
.footer-links {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #5b21b6;
    font-size: 26px;
    font-weight: 900;
}
.footer-logo img {
    width: 46px;
    height: 46px;
    border-radius: 11px;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 16px 34px rgba(91,33,182,.16);
}
.footer p { max-width: 430px; margin: 14px 0 0; color: #5f6675; line-height: 1.55; font-weight: 800; }
.footer-contact { display: grid; gap: 8px; margin-top: 18px; }
.footer a {
    position: relative;
    z-index: 2;
    color: #273044;
    pointer-events: auto;
    cursor: pointer;
}
.footer-links { display: grid; gap: 13px; align-content: start; }
.footer-links h3 { position: relative; width: fit-content; margin: 0 0 8px; color: #7c3aed; font-size: 17px; }
.footer-links h3::after { content: ""; position: absolute; left: 0; right: -22px; bottom: -9px; height: 1px; background: repeating-linear-gradient(90deg, #111827 0 6px, transparent 6px 12px); opacity: .65; }
.footer-links p { margin: 0 0 8px; font-size: 13px; }
.footer-links a { color: #4b5563; font-weight: 900; transition: color .18s ease, transform .18s ease; }
.footer-links a:hover { color: #7c3aed; transform: translateX(3px); }
.footer-social a,
.footer-contact-list a { display: inline-flex; align-items: center; gap: 11px; }
.footer-social span,
.footer-contact-list span {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: #7457b8;
    color: #fff;
    font-weight: 1000;
}
.store-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.store-buttons span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 7px;
    background: #111827;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(0,0,0,.16);
}
.footer-bottom {
    margin: 30px -24px 0;
    padding: 20px 24px;
    border-top: 1px solid #e6def6;
    color: #667085;
    font-weight: 800;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}
.footer-designer {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #98a2b3;
    font-weight: 900;
}
.footer-designer span {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #f2f4f7, #ffffff);
    color: #667085;
    font-size: 11px;
    font-weight: 1000;
    box-shadow: inset 0 0 0 1px #e4e7ec, 0 8px 18px rgba(15,23,42,.06);
}

.music-toggle { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--blue); box-shadow: 0 14px 34px rgba(139,92,246,.28); cursor: pointer; }
.music-toggle span::before { content: "♪"; color: #fff; font-size: 26px; font-weight: 900; }

.account-main { padding: 24px; }
.account-hero {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background:
        radial-gradient(circle at 8% 20%, rgba(25,182,255,.18), transparent 30%),
        linear-gradient(135deg, #ffffff, #f3e8ff);
    box-shadow: 0 18px 46px rgba(91, 33, 182, .10);
}
.account-photo-large {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 4px solid #fff;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: #fff;
    box-shadow: 0 18px 36px rgba(139,92,246,.22);
    font-size: 34px;
    font-weight: 900;
}
.account-photo-large img { width: 100%; height: 100%; object-fit: cover; }
.account-hero-copy span { display: inline-flex; margin-bottom: 8px; padding: 5px 9px; border-radius: 999px; background: #f2eaff; color: var(--blue); font-size: 12px; font-weight: 900; }
.account-hero-copy h1 { margin: 0; font-size: 32px; line-height: 1.05; }
.account-hero-copy p { margin: 8px 0 0; color: var(--muted); font-weight: 800; }
.account-orders-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 7px;
    background: var(--blue);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(139,92,246,.24);
}
.account-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.auth-card.account-card {
    display: grid;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(91, 33, 182, .08);
}
.account-card-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.account-card-head > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: #f2eaff; color: var(--blue); font-weight: 900; }
.account-card-head h2 { margin: 0; font-size: 22px; }
.account-card-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.account-card label { display: grid; gap: 7px; color: #405066; font-weight: 900; }
.account-card input { min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; outline: none; background: #fbfdff; }
.account-card input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(139,92,246,.12); background: #fff; }
.account-card button {
    min-height: 44px;
    border: 0;
    border-radius: 7px;
    background: var(--blue);
    color: #fff;
    cursor: pointer;
    font-weight: 900;
}
.account-alert { margin: 16px 0 0; padding: 12px 14px; border-radius: 8px; font-weight: 900; }
.success.account-alert { background: #e8fff3; color: #087a3f; border: 1px solid #bcefd3; }
.error.account-alert { background: #fff0f0; color: #b42318; border: 1px solid #ffd0d0; }

.site-intro {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 30% 20%, rgba(192,132,252,.35), transparent 30%),
        linear-gradient(135deg, #2e1065, #6d28d9 52%, #c084fc);
    color: #fff;
    transition: opacity .65s ease, visibility .65s ease;
}
.site-intro.hide { opacity: 0; visibility: hidden; }
.site-intro-card { display: grid; justify-items: center; gap: 14px; text-align: center; animation: introPop .8s ease both; }
.site-intro-card img { width: 86px; height: 86px; border-radius: 22px; object-fit: cover; box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.site-intro-card strong { font-size: clamp(38px, 8vw, 86px); line-height: .9; letter-spacing: 0; }
.site-intro-card p { margin: 0; font-size: clamp(16px, 2vw, 24px); font-weight: 800; color: rgba(255,255,255,.88); }
@keyframes introPop { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: translateY(0) scale(1); } }

.guest-auth-open { overflow: hidden; }
.guest-auth-open .footer,
.guest-auth-open .mobile-bottom-nav,
.guest-auth-open .mobile-category-drawer,
.guest-auth-open .mobile-bottom-overlay,
.guest-auth-open .music-toggle {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
.guest-auth-modal[hidden] { display: none; }
.guest-auth-modal { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; padding: 18px; opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s ease; }
.guest-auth-modal.open { opacity: 1; visibility: visible; }
.guest-auth-backdrop { position: absolute; inset: 0; background: radial-gradient(circle at 50% 32%, rgba(139,92,246,.25), transparent 34%), rgba(15, 9, 30, .56); backdrop-filter: blur(10px); }
.guest-auth-card { position: relative; width: min(430px, calc(100vw - 32px)); max-height: min(88vh, 620px); overflow: auto; display: grid; gap: 12px; padding: 22px; border: 1px solid rgba(139,92,246,.22); border-radius: 18px; background: linear-gradient(180deg, #fff 0%, #fbfaff 100%); box-shadow: 0 28px 80px rgba(19, 10, 38, .30); transform: translateY(18px) scale(.94); transition: transform .24s ease; }
.guest-auth-modal.open .guest-auth-card { transform: translateY(0) scale(1); }
.guest-auth-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 118px; border-radius: inherit; background: radial-gradient(circle at 28% 22%, rgba(139,92,246,.20), transparent 30%), radial-gradient(circle at 82% 14%, rgba(34,211,238,.16), transparent 26%); pointer-events: none; }
.guest-auth-close { position: absolute; right: 14px; top: 14px; z-index: 2; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f4efff; color: var(--ink); cursor: pointer; font-size: 24px; line-height: 1; box-shadow: 0 10px 24px rgba(91,33,182,.10); }
.guest-auth-visual { position: relative; min-height: 136px; display: grid; place-items: center; }
.guest-lock { position: relative; width: 172px; height: 130px; transform: scale(.82); }
.guest-lock::before { content: ""; position: absolute; inset: 18px 22px 0; border-radius: 46% 54% 49% 51%; background: #d7fff4; animation: guestBlob 5s ease-in-out infinite; }
.guest-lock-body { position: absolute; left: 72px; top: 72px; width: 104px; height: 86px; border-radius: 16px; background: #fbbf24; box-shadow: inset 0 -10px 0 rgba(0,0,0,.08), 0 18px 35px rgba(251,191,36,.28); }
.guest-lock-body::before { content: ""; position: absolute; left: 22px; top: -66px; width: 60px; height: 82px; border: 14px solid #fbbf24; border-bottom: 0; border-radius: 34px 34px 0 0; }
.guest-lock-body::after { content: ""; position: absolute; left: 48px; top: 35px; width: 10px; height: 24px; border-radius: 999px; background: #fff; box-shadow: 0 -8px 0 #fff; }
.guest-shield { position: absolute; left: 38px; top: 105px; width: 72px; height: 78px; display: grid; place-items: center; clip-path: polygon(50% 0, 95% 16%, 86% 76%, 50% 100%, 14% 76%, 5% 16%); background: #16c76a; color: #fff; font-size: 38px; font-weight: 900; box-shadow: 0 18px 35px rgba(22,199,106,.22); }
.guest-key { position: absolute; right: 28px; bottom: 24px; min-width: 112px; padding: 9px 18px; border-radius: 999px; transform: rotate(-12deg); background: linear-gradient(135deg, #0ea5e9, #38bdf8); color: #fff; font-size: 28px; letter-spacing: 5px; box-shadow: 0 18px 35px rgba(14,165,233,.25); }
.guest-auth-copy { position: relative; display: grid; gap: 10px; text-align: center; }
.guest-auth-kicker { justify-self: center; padding: 6px 10px; border-radius: 999px; background: #f2eaff; color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.guest-auth-copy h2 { margin: 0; font-size: clamp(22px, 4vw, 28px); line-height: 1.15; }
.guest-auth-bonus { margin: 0; padding: 10px 12px; border-radius: 10px; background: #eefdf4; color: #047857; font-size: 13px; font-weight: 900; }
.guest-auth-copy ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; text-align: left; }
.guest-auth-copy li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; color: #5d6676; font-size: 13px; font-weight: 800; line-height: 1.35; }
.guest-auth-copy li span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #f4efff; color: var(--blue); font-weight: 900; }
.guest-auth-actions { display: grid; gap: 8px; margin-top: 2px; }
.guest-auth-login { min-height: 46px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; font-size: 16px; font-weight: 900; box-shadow: 0 16px 32px rgba(139,92,246,.26); }
.guest-auth-register { color: var(--blue); font-weight: 900; }
@keyframes guestBlob { 0%, 100% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(5deg) scale(1.06); } }

.reveal-item { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal-item.is-visible { opacity: 1; transform: translateY(0); }

.product-showcase { display: grid; gap: 18px; }
.product-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 800; }
.product-breadcrumb a { color: var(--blue); }
.pro-detail {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(320px, .95fr);
    gap: 28px;
    align-items: start;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 20px 56px rgba(91, 33, 182, .10);
}
.pro-gallery { position: relative; display: grid; gap: 14px; }
.pro-main-image {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 520px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8f5ff, #ffffff);
    cursor: zoom-in;
    overflow: hidden;
}
.pro-main-image img { width: min(78%, 460px); max-height: 460px; object-fit: contain; filter: drop-shadow(0 20px 38px rgba(91, 33, 182, .16)); transition: transform .25s ease; }
.pro-main-image:hover img { transform: scale(1.045); }
.pro-main-image > span { position: absolute; right: 14px; top: 14px; padding: 8px 10px; border-radius: 8px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 900; }
.gallery-side-button { position: absolute; top: 46%; z-index: 3; width: 38px; height: 46px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--blue); cursor: pointer; font-size: 28px; box-shadow: 0 12px 24px rgba(91, 33, 182, .12); }
.gallery-side-button[data-gallery-prev] { left: 12px; }
.gallery-side-button[data-gallery-next] { right: 12px; }
.pro-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.pro-thumbs img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.pro-thumbs img.active, .pro-thumbs img:hover { border-color: var(--blue); box-shadow: 0 12px 24px rgba(91, 33, 182, .10); }
.pro-copy { display: grid; gap: 14px; }
.pro-copy > p:first-child { margin: 0; color: var(--muted); font-weight: 900; text-transform: uppercase; font-size: 12px; }
.detail-product-number { color: var(--blue); font-weight: 900; font-size: 13px; }
.pro-copy h1 { margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.05; }
.rating-row { display: flex; align-items: center; gap: 14px; color: var(--muted); font-weight: 900; }
.rating-row strong { color: #f59e0b; }
.price-row { display: flex; align-items: baseline; gap: 12px; }
.price-row strong { font-size: 30px; }
.price-row del { color: #9aa5b5; }
.product-description-box { padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fbfaff; }
.product-description-box h2, .product-specs h2 { margin: 0 0 8px; font-size: 18px; }
.product-description-box p { margin: 0; color: #445167; line-height: 1.6; }
.pro-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pro-actions .full { grid-column: 1 / -1; }
.option-group { display: grid; gap: 9px; grid-column: 1 / -1; }
.option-group > span { color: var(--ink); font-weight: 900; }
.option-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.option-pills label { cursor: pointer; }
.option-pills input { position: absolute; opacity: 0; pointer-events: none; }
.option-pills em { display: inline-flex; min-height: 38px; align-items: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-style: normal; font-weight: 900; }
.option-pills input:checked + em { border-color: var(--blue); background: #f2eaff; color: var(--blue); box-shadow: 0 10px 22px rgba(91, 33, 182, .10); }
.pro-actions button, .pro-actions > a { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font-weight: 900; }
.pro-actions button { border: 0; background: var(--blue); color: #fff; cursor: pointer; }
.pro-actions > a { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.product-specs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.product-specs h2 { flex-basis: 100%; }
.product-specs span { padding: 8px 10px; border-radius: 999px; background: #f2eaff; color: var(--blue); font-size: 13px; font-weight: 900; }
.review-layout { display: grid; grid-template-columns: 260px 1fr; gap: 18px; }
.review-summary, .review-card { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 16px; }
.review-score { width: 78px; height: 78px; display: grid; place-items: center; border: 3px solid #f59e0b; border-radius: 50%; font-size: 24px; font-weight: 900; }
.review-summary p { color: var(--muted); font-weight: 800; }
.review-bar { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 8px; margin-top: 9px; font-size: 12px; font-weight: 900; color: #f59e0b; }
.review-bar em { height: 8px; border-radius: 999px; background: #edf0f5; overflow: hidden; }
.review-bar i { display: block; height: 100%; border-radius: inherit; background: var(--ink); }
.review-list { display: grid; gap: 12px; }
.review-card div { display: flex; justify-content: space-between; gap: 12px; }
.review-card span { color: #f59e0b; letter-spacing: 1px; }
.review-card p { margin: 10px 0 0; color: #475569; }
.review-form-card { border: 1px solid var(--line); border-radius: 10px; background: #fbfaff; padding: 16px; }
.review-form { display: grid; gap: 12px; }
.review-form > strong { font-size: 18px; }
.review-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
    resize: vertical;
    background: #fff;
}
.review-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(139,92,246,.12); }
.review-form button, .review-login-note a {
    width: fit-content;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: var(--blue);
    color: #fff;
    cursor: pointer;
    font-weight: 900;
}
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { color: #d1d5db; cursor: pointer; font-size: 28px; line-height: 1; transition: color .14s ease, transform .14s ease; }
.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label { color: #f59e0b; }
.star-input label:hover { transform: translateY(-2px); }
.review-login-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.user-review-card { display: grid; gap: 10px; }
.review-author { display: flex !important; align-items: center; justify-content: flex-start !important; gap: 12px !important; }
.review-avatar {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: #fff !important;
    font-weight: 900;
    letter-spacing: 0 !important;
}
.review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-author em { display: block; margin-top: 3px; color: #f59e0b; font-style: normal; letter-spacing: 1px; }
.image-lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 28px; background: rgba(15, 10, 35, .78); backdrop-filter: blur(10px); }
.image-lightbox[hidden] { display: none; }
.image-lightbox img { max-width: min(980px, 92vw); max-height: 86vh; object-fit: contain; border-radius: 14px; background: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.image-lightbox button { position: fixed; right: 24px; top: 24px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font-size: 28px; cursor: pointer; }
.lightbox-open { overflow: hidden; }

.auth-pretty-main {
    display: grid;
    grid-template-columns: minmax(300px, .95fr) minmax(320px, 460px);
    gap: 22px;
    align-items: stretch;
    padding: 28px 24px;
}
.auth-visual,
.auth-pretty-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 22px 60px rgba(91, 33, 182, .12);
}
.auth-visual {
    position: relative;
    min-height: 520px;
    display: grid;
    align-content: end;
    gap: 14px;
    overflow: hidden;
    padding: 34px;
    background:
        radial-gradient(circle at 76% 18%, rgba(255,255,255,.28), transparent 28%),
        radial-gradient(circle at 20% 20%, rgba(192,132,252,.38), transparent 28%),
        linear-gradient(135deg, #4c1d95, #7c3aed 48%, #c084fc);
    color: #fff;
}
.auth-visual::before {
    content: "";
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 12px;
    pointer-events: none;
}
.auth-visual img {
    position: absolute;
    left: 34px;
    top: 34px;
    width: 70px;
    height: 70px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 18px 44px rgba(0,0,0,.24);
}
.auth-visual span { position: relative; font-size: 13px; font-weight: 900; letter-spacing: .08em; color: rgba(255,255,255,.78); }
.auth-visual h1 { position: relative; max-width: 520px; margin: 0; font-size: clamp(38px, 6vw, 72px); line-height: .95; }
.auth-visual p { position: relative; max-width: 520px; margin: 0; color: rgba(255,255,255,.84); font-size: 16px; line-height: 1.6; font-weight: 800; }
.auth-pretty-card {
    display: grid;
    align-content: center;
    gap: 15px;
    padding: 30px;
    background: #fff;
}
.auth-kicker {
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f2eaff;
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
}
.auth-pretty-card h1 { margin: 0 0 4px; font-size: 32px; }
.auth-pretty-card label { display: grid; gap: 7px; color: #405066; font-weight: 900; }
.auth-pretty-card input {
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
    background: #fbfaff;
}
.auth-pretty-card input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(139,92,246,.12); background: #fff; }
.auth-pretty-card button {
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: #fff;
    cursor: pointer;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(139,92,246,.22);
}
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.auth-links a { color: var(--blue); font-weight: 900; }
.auth-success { padding: 12px; border-radius: 8px; background: #eefdf4; color: #166534; font-weight: 900; }
.auth-action-link {
    min-height: 46px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #f2eaff;
    color: #7c3aed;
    font-weight: 1000;
    box-shadow: inset 0 0 0 1px rgba(139,92,246,.14);
}

.auth-modal-page {
    position: fixed;
    inset: 0;
    z-index: 180;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px 16px;
    overflow: auto;
    background: rgba(15, 10, 35, .34);
    backdrop-filter: blur(5px);
}
.auth-site-backdrop {
    display: none;
}
.auth-backdrop-header {
    min-height: 76px;
    display: grid;
    grid-template-columns: 180px 1fr 260px;
    gap: 22px;
    align-items: center;
    padding: 16px 22px;
    border-radius: 24px;
    background: rgba(255,255,255,.88);
    box-shadow: 0 24px 70px rgba(30, 16, 60, .18);
}
.auth-backdrop-header span {
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f7f2ff, #ffffff);
}
.auth-backdrop-header span:nth-child(2) { border: 2px solid #8b5cf6; }
.auth-backdrop-hero {
    min-height: 310px;
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 42px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 78% 30%, rgba(255,255,255,.34), transparent 28%),
        linear-gradient(135deg, #4c1d95, #8b5cf6 58%, #c084fc);
    color: #fff;
    box-shadow: 0 28px 90px rgba(45, 18, 83, .22);
}
.auth-backdrop-hero strong { font-size: clamp(46px, 7vw, 92px); line-height: .9; }
.auth-backdrop-hero p { margin: 0; font-size: 22px; font-weight: 900; }
.auth-backdrop-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.auth-backdrop-products span {
    min-height: 170px;
    border-radius: 22px;
    background: rgba(255,255,255,.90);
    box-shadow: 0 20px 60px rgba(30, 16, 60, .14);
}
.auth-email-card {
    position: relative;
    z-index: 2;
    width: min(460px, 100%);
    max-height: calc(100vh - 34px);
    overflow: auto;
    display: grid;
    gap: 15px;
    padding: 52px 30px 22px;
    border: 1px solid rgba(139,92,246,.16);
    border-radius: 22px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 28px 80px rgba(20, 12, 38, .28);
    text-align: center;
}
.auth-email-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, #7c3aed, #a78bfa, #f97316);
}
.auth-close-button {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f6f3fb;
    color: #1f2937;
    font-size: 28px;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(32, 19, 61, .08);
    transition: transform .18s ease, background .18s ease;
}
.auth-close-button:hover { transform: rotate(90deg) scale(1.04); background: #ede7fb; }
.auth-logo-wrap {
    width: 76px;
    height: 76px;
    margin: 0 auto 2px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: linear-gradient(145deg, #fff, #f3edff);
    box-shadow: 0 18px 40px rgba(139,92,246,.18);
}
.auth-logo-wrap img { width: 58px; height: 58px; object-fit: contain; border-radius: 16px; }
.auth-email-card h1 { margin: 0; color: #0f172a; font-size: 28px; line-height: 1.15; }
.auth-subtitle { margin: -8px 0 4px; color: #4b5563; font-size: 16px; font-weight: 800; }
.auth-mode-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 5px;
    border-radius: 999px;
    background: #eeeeef;
}
.auth-mode-tabs a {
    min-height: 44px;
    display: grid;
    place-items: center;
    padding: 9px 12px;
    border-radius: 999px;
    color: #77717f;
    text-decoration: none;
    font-weight: 900;
    transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.auth-mode-tabs a:hover { transform: translateY(-1px); color: #5b21b6; }
.auth-mode-tabs a.active {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
    box-shadow: inset 0 -2px 0 rgba(255,255,255,.16), 0 12px 26px rgba(124,58,237,.28);
}
.email-auth-field {
    display: grid;
    gap: 7px;
    text-align: left;
}
.email-auth-field span { padding-left: 16px; color: #4b5563; font-size: 13px; font-weight: 900; }
.email-auth-field input {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    outline: none;
    background: #fff;
    color: #111827;
    font: inherit;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(15,23,42,.04);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.email-auth-field input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139,92,246,.14), 0 14px 30px rgba(139,92,246,.12);
    transform: translateY(-1px);
}
.auth-primary-action {
    min-height: 56px;
    margin-top: 2px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    color: #fff;
    cursor: pointer;
    font-size: 17px;
    font-weight: 1000;
    box-shadow: 0 18px 34px rgba(139,92,246,.30);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.auth-primary-action:hover { transform: translateY(-2px); filter: saturate(1.06); box-shadow: 0 22px 42px rgba(139,92,246,.36); }
.auth-footer-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 2px -30px -24px;
    padding: 18px 30px;
    border-top: 1px solid #edf0f5;
    background: linear-gradient(180deg, #fff, #fbfaff);
}
.auth-footer-actions.single { justify-content: center; }
.auth-footer-actions a {
    color: #7c3aed;
    text-decoration: none;
    font-weight: 1000;
}
.auth-register-link {
    min-width: 150px;
    padding: 12px 20px;
    border-radius: 999px;
    color: #7c3aed !important;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15,23,42,.10);
}
.auth-email-card .auth-error {
    margin: 0;
    border-radius: 14px;
    text-align: left;
}

.maintenance-body { min-height: 100vh; margin: 0; overflow: hidden; background: #080313; color: #fff; }
.maintenance-screen {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
    isolation: isolate;
    background:
        radial-gradient(circle at 18% 20%, rgba(236,72,153,.28), transparent 30%),
        radial-gradient(circle at 82% 28%, rgba(34,211,238,.20), transparent 28%),
        radial-gradient(circle at 50% 90%, rgba(139,92,246,.36), transparent 38%),
        linear-gradient(135deg, #080313 0%, #1d0b36 44%, #3b0764 100%);
}
.maintenance-grid-lines { position: fixed; inset: 0; z-index: -3; background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px); background-size: 52px 52px; mask-image: radial-gradient(circle at center, #000 0 55%, transparent 82%); animation: maintenance-grid 9s linear infinite; }
.maintenance-glow { position: fixed; inset: auto -12% -24% auto; z-index: -2; width: 620px; height: 620px; border-radius: 50%; background: conic-gradient(from 180deg, rgba(236,72,153,.45), rgba(34,211,238,.22), rgba(139,92,246,.50), rgba(236,72,153,.45)); filter: blur(42px); animation: maintenance-pulse 4s ease-in-out infinite; }
.maintenance-orbit { position: fixed; z-index: -1; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); box-shadow: inset 0 0 80px rgba(255,255,255,.06); animation: maintenance-orbit 18s linear infinite; }
.orbit-one { width: 520px; height: 520px; left: -150px; top: -120px; }
.orbit-two { width: 760px; height: 760px; right: -250px; bottom: -230px; animation-duration: 26s; animation-direction: reverse; }
.maintenance-card {
    position: relative;
    width: min(680px, 100%);
    display: grid;
    justify-items: center;
    gap: 18px;
    padding: clamp(32px, 5vw, 58px);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.06));
    box-shadow: 0 42px 120px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.20);
    text-align: center;
    backdrop-filter: blur(24px);
}
.maintenance-card::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit; background: linear-gradient(135deg, rgba(255,255,255,.62), rgba(192,132,252,.05), rgba(34,211,238,.45)); opacity: .55; }
.maintenance-logo { position: relative; display: grid; place-items: center; width: 108px; height: 108px; border-radius: 30px; background: rgba(255,255,255,.12); box-shadow: 0 28px 70px rgba(0,0,0,.34); }
.maintenance-logo::after { content: ""; position: absolute; inset: -9px; border-radius: 36px; border: 2px solid rgba(255,255,255,.18); animation: maintenance-breathe 1.8s ease-in-out infinite; }
.maintenance-logo img { width: 82px; height: 82px; border-radius: 22px; object-fit: cover; }
.maintenance-loader { position: relative; width: 132px; height: 132px; display: grid; place-items: center; margin: 4px 0; border-radius: 50%; background: conic-gradient(from 0deg, #fff, #c084fc, #22d3ee, #fff); animation: maintenance-spin 1.25s linear infinite; box-shadow: 0 0 44px rgba(192,132,252,.36); }
.maintenance-loader::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: rgba(12,4,28,.88); box-shadow: inset 0 0 30px rgba(255,255,255,.08); }
.maintenance-loader span { position: relative; z-index: 1; width: 12px; height: 12px; margin: 4px; display: inline-block; border-radius: 50%; background: #fff; animation: maintenance-dots .9s ease-in-out infinite alternate; }
.maintenance-loader span:nth-child(2) { animation-delay: .14s; background: #c084fc; }
.maintenance-loader span:nth-child(3) { animation-delay: .28s; background: #22d3ee; }
.maintenance-kicker { margin: 0; color: rgba(255,255,255,.78); font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.maintenance-card h1 { margin: 0; font-size: clamp(42px, 7vw, 84px); line-height: .9; text-shadow: 0 20px 60px rgba(0,0,0,.40); }
.maintenance-card p { margin: 0; max-width: 560px; color: rgba(255,255,255,.88); line-height: 1.7; font-weight: 800; }
.maintenance-progress { width: min(440px, 100%); height: 10px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1px rgba(255,255,255,.10); }
.maintenance-progress span { display: block; width: 46%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #fff, #c084fc, #22d3ee); animation: maintenance-progress 1.35s ease-in-out infinite; box-shadow: 0 0 24px rgba(255,255,255,.45); }
.maintenance-status { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; }
.maintenance-status span { padding: 8px 11px; border-radius: 999px; background: rgba(255,255,255,.10); color: rgba(255,255,255,.80); font-size: 12px; font-weight: 900; box-shadow: inset 0 0 0 1px rgba(255,255,255,.10); }
@keyframes maintenance-spin { to { transform: rotate(360deg); } }
@keyframes maintenance-dots { from { transform: translateY(7px); opacity: .55; } to { transform: translateY(-7px); opacity: 1; } }
@keyframes maintenance-progress { 0% { transform: translateX(-115%); } 100% { transform: translateX(260%); } }
@keyframes maintenance-pulse { 0%,100% { transform: scale(.96); opacity: .7; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes maintenance-orbit { to { transform: rotate(360deg); } }
@keyframes maintenance-breathe { 0%,100% { transform: scale(.96); opacity: .40; } 50% { transform: scale(1.08); opacity: .85; } }
@keyframes maintenance-grid { to { background-position: 52px 52px; } }

.maintenance-screen {
    min-height: 100vh;
    place-items: center;
    padding: 28px;
}

.maintenance-card {
    width: min(560px, calc(100vw - 32px));
    min-height: auto;
    gap: 16px;
    padding: 30px 26px;
    border-radius: 28px;
    text-align: center;
}

.maintenance-logo {
    width: 82px;
    height: 82px;
    border-radius: 24px;
}

.maintenance-logo::after {
    inset: -7px;
    border-radius: 28px;
}

.maintenance-logo img {
    width: 62px;
    height: 62px;
    border-radius: 18px;
}

.maintenance-loader {
    width: 86px;
    height: 86px;
    margin: 0;
}

.maintenance-loader::before {
    inset: 8px;
}

.maintenance-loader span {
    width: 9px;
    height: 9px;
}

.maintenance-card h1 {
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.05;
}

.maintenance-card p {
    max-width: 460px;
    font-size: 14px;
    line-height: 1.6;
}

.maintenance-progress {
    width: min(340px, 100%);
    height: 8px;
}

.maintenance-status {
    max-width: 420px;
}

.maintenance-status span {
    padding: 7px 10px;
    font-size: 11px;
}
.auth-error { margin: 0; padding: 11px 13px; border-radius: 8px; background: #fff0f0; color: #b42318; border: 1px solid #ffd0d0; font-weight: 900; }

.content-page { display: grid; gap: 22px; }
.content-hero {
    position: relative;
    overflow: hidden;
    min-height: 310px;
    display: grid;
    align-content: end;
    gap: 12px;
    padding: 34px;
    border-radius: 14px;
    background:
        radial-gradient(circle at 82% 18%, rgba(255,255,255,.30), transparent 26%),
        radial-gradient(circle at 16% 24%, rgba(192,132,252,.35), transparent 26%),
        linear-gradient(135deg, #4c1d95, #7c3aed 52%, #c084fc);
    color: #fff;
    box-shadow: 0 24px 70px rgba(91, 33, 182, .18);
}
.content-hero::after {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 12px;
    pointer-events: none;
}
.content-hero span,
.content-hero h1,
.content-hero p { position: relative; z-index: 1; }
.content-hero span { width: fit-content; padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.content-hero h1 { max-width: 780px; margin: 0; font-size: clamp(38px, 6vw, 72px); line-height: .95; }
.content-hero p { max-width: 760px; margin: 0; color: rgba(255,255,255,.88); font-size: 17px; line-height: 1.65; font-weight: 800; }
.content-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.content-stats article,
.content-grid article {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(91, 33, 182, .08);
}
.content-stats article { display: grid; gap: 5px; padding: 20px; }
.content-stats strong { color: var(--blue); font-size: 32px; line-height: 1; }
.content-stats span { color: var(--muted); font-weight: 900; }
.content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.content-grid article { position: relative; overflow: hidden; padding: 22px; }
.content-grid article::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--blue), var(--cyan));
}
.content-grid h2 { margin: 0 0 10px; font-size: 22px; }
.content-grid p { margin: 0; color: #475569; line-height: 1.7; }
.content-grid p + p { margin-top: 12px; }
.content-grid ul { margin: 0; padding-left: 20px; color: #475569; line-height: 1.8; font-weight: 800; }
.content-grid.numbered article { counter-increment: terms; padding-top: 58px; }
.content-grid.numbered { counter-reset: terms; }
.content-grid.numbered article::after {
    content: counter(terms, decimal-leading-zero);
    position: absolute;
    left: 22px;
    top: 18px;
    color: rgba(139,92,246,.18);
    font-size: 34px;
    font-weight: 900;
}
.faq-grid article { cursor: default; transition: transform .18s ease, box-shadow .18s ease; }
.faq-grid article:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(91, 33, 182, .13); }

@media (max-width: 1180px) {
    .market-layout { grid-template-columns: 210px 1fr; }
    .pro-detail { grid-template-columns: 1fr; }
    .deal-rail { display: none; }
    .daily-offer-section { grid-template-columns: 1fr minmax(220px, .7fr); }
    .daily-offer-side { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .daily-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .site-shell { width: 100%; margin: 0; border-radius: 0; border-left: 0; border-right: 0; }
    .topbar { display: none; }
    .main-header {
        display: grid;
        position: static;
        grid-template-columns: auto 1fr;
        gap: 12px;
        padding: 12px;
        overflow: visible;
        animation: mobileHeaderFloat 5.5s ease-in-out infinite;
    }
    .brand { min-width: auto; }
    .header-categories {
        position: relative;
        order: 2;
        grid-column: 1 / -1;
        justify-self: stretch;
    }
    .header-categories-button { width: 100%; justify-content: center; }
    .header-category-panel {
        position: static;
        width: 100%;
        display: none;
        grid-template-columns: 1fr;
        max-height: min(70vh, 560px);
        margin-top: 10px;
        overflow: auto;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        transition: none;
    }
    .header-category-panel::before { display: none; }
    .header-categories.open .header-category-panel { display: grid; }
    .header-category-list {
        grid-template-columns: 1fr;
        max-height: none;
        border-right: 0;
        border-bottom: 0;
        overflow: visible;
    }
    .header-category-row {
        display: grid;
        border-bottom: 1px solid #eee7fb;
    }
    .header-category-row > a { border-bottom: 0; }
    .header-subcategory-panel {
        position: static;
        width: auto;
        display: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0 18px 18px 58px;
        background: #fff;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }
    .header-category-row:hover .header-subcategory-panel { display: none; }
    .header-category-row.open .header-subcategory-panel,
    .header-category-row.active.open .header-subcategory-panel { display: grid; }
    .search {
        position: relative;
        order: 3;
        grid-column: 1 / -1;
        max-width: none;
        width: 100%;
        min-width: 0;
        flex-basis: 100%;
        overflow: hidden;
        box-shadow: 0 10px 28px rgba(139,92,246,.14);
        animation: searchGlow 3.6s ease-in-out infinite;
    }
    .search::after {
        content: "";
        position: absolute;
        inset: -35% auto -35% -40%;
        width: 36%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.72), transparent);
        transform: skewX(-18deg);
        animation: searchShine 4.2s ease-in-out infinite;
        pointer-events: none;
    }
    .filter-icon { animation: filterBounce 2.4s ease-in-out infinite; }
    .user-nav {
        min-width: 0;
        margin-left: auto;
        flex-wrap: wrap;
        justify-content: flex-end;
        order: 4;
        position: relative;
    }
    .category-nav {
        display: flex;
        padding: 10px 12px;
        animation: categorySlideGlow 4.8s ease-in-out infinite;
    }
    .storefront-main, .page-main { padding: 14px; }
    .market-layout, .catalog-page { grid-template-columns: 1fr; }
    .account-hero { grid-template-columns: auto 1fr; }
    .account-orders-link { grid-column: 1 / -1; justify-content: center; }
    .account-settings-grid { grid-template-columns: 1fr; }
    .market-sidebar, .catalog-sidebar { position: static; display: grid; gap: 8px; padding: 10px; }
    .market-sidebar .sidebar-title { display: none; }
    .market-sidebar a { min-width: 0; }
    .hero-slider { min-height: 310px; }
    .slide { padding: 30px 42px; }
    .slide img { width: 36%; }
    .full-image-slide img { width: 100%; }
    .daily-offer-section { grid-template-columns: 1fr; }
    .daily-offer-media { min-height: 210px; }
    .daily-offer-side { grid-template-columns: 1fr; }
    .product-grid, .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-circles, .daily-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-circles {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .top-category-tile {
        min-height: 0;
        display: grid;
        gap: 8px;
        padding: 12px;
        border-radius: 16px;
    }
    .category-circle {
        grid-template-columns: 42px 1fr;
        justify-items: start;
        align-items: center;
        text-align: left;
        padding: 4px;
    }
    .category-circle span {
        width: 42px;
        height: 42px;
    }
    .category-circle img {
        width: 28px;
        height: 28px;
    }
    .top-category-tile > div {
        display: flex;
        flex-wrap: wrap;
        gap: 7px;
        padding-left: 50px;
    }
    .top-category-tile > div a {
        width: auto;
        max-width: 100%;
        padding: 7px 10px;
        border-radius: 999px;
        white-space: normal;
        text-align: left;
    }
    .brand-slider { grid-template-columns: 1fr; }
    .review-layout { grid-template-columns: 1fr; }
    .auth-pretty-main { grid-template-columns: 1fr; }
    .auth-visual { min-height: 360px; }
    .auth-modal-page { padding: 18px 14px; }
    .auth-site-backdrop { padding: 74px 22px 42px; gap: 18px; }
    .auth-backdrop-header { grid-template-columns: 1fr 1.2fr; }
    .auth-backdrop-header span:last-child { display: none; }
    .auth-backdrop-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .content-grid, .content-stats { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    body { background: #f4f8fc; }
    .brand { min-width: 0; font-size: 20px; }
    .brand span { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .brand img { width: 34px; height: 34px; }
    .header-categories { justify-self: stretch; }
    .header-categories-button { width: 100%; justify-content: center; min-height: 42px; }
    .header-category-panel {
        max-height: min(64vh, 520px);
        border-radius: 16px;
    }
    .header-category-list { grid-template-columns: 1fr; max-height: none; }
    .header-subcategory-panel { grid-template-columns: 1fr; padding-left: 48px; }
    .account-main { padding: 14px; }
    .account-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 20px 14px; }
    .account-hero-copy h1 { font-size: 27px; }
    .user-nav { width: 100%; grid-column: 1 / -1; justify-content: space-between; gap: 8px; }
    .user-nav > a, .account-trigger { padding: 0 9px; font-size: 12px; }
    .header-action-menu { position: static; }
    .header-icon-action { min-width: 46px; height: 46px; }
    .login-pill { flex: 1; height: 46px; padding: 0 12px; }
    .header-mini-panel {
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 10px);
        width: auto;
        z-index: 220;
        border-radius: 0 0 22px 22px;
    }
    .header-action-menu.open .header-mini-panel {
        display: grid;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }
    .account-menu { position: static; }
    .account-dropdown {
        position: fixed;
        left: 12px;
        right: 12px;
        top: 132px;
        width: auto;
        min-width: 0;
        max-width: none;
        border-radius: 16px;
        box-shadow: 0 26px 70px rgba(24, 47, 75, .24);
        transform: translateY(-8px) scale(.98);
    }
    .account-menu:hover .account-dropdown {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    .account-menu.open .account-dropdown,
    .account-menu:focus-within .account-dropdown {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }
    .language-switcher { margin-left: auto; }
    .main-header { grid-template-columns: 1fr; }
    .search { grid-column: 1; height: 50px; }
    .slide { padding: 26px 28px; align-items: flex-start; }
    .slide h1 { font-size: 34px; }
    .slide img { position: absolute; right: 14px; bottom: 18px; width: 38%; opacity: .9; }
    .full-image-slide img { position: static; width: 100%; height: 100%; opacity: 1; }
    .slider-btn { width: 32px; height: 32px; font-size: 22px; }
    .dots { left: 28px; }
    .section { padding: 14px; }
    .daily-offer-section { padding: 18px; }
    .daily-offer-copy h2 { font-size: 28px; }
    .daily-offer-price strong { font-size: 24px; }
    .daily-offer-media img { max-height: 210px; }
    .section-head { align-items: flex-start; }
    .product-grid, .catalog-grid { grid-template-columns: 1fr; }
    .daily-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .auth-pretty-main { padding: 14px; }
    .auth-visual { min-height: 300px; padding: 24px; }
    .auth-visual h1 { font-size: 38px; }
    .auth-pretty-card { padding: 22px; }
    .auth-email-card { gap: 14px; padding: 54px 18px 20px; border-radius: 18px; }
    .auth-close-button { right: 12px; top: 12px; width: 36px; height: 36px; font-size: 24px; }
    .auth-site-backdrop { padding: 72px 12px 28px; opacity: .58; }
    .auth-backdrop-header { grid-template-columns: 1fr; min-height: 58px; padding: 12px; }
    .auth-backdrop-header span:not(:first-child) { display: none; }
    .auth-backdrop-hero { min-height: 260px; padding: 26px; border-radius: 22px; }
    .auth-backdrop-hero p { font-size: 16px; }
    .auth-backdrop-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .auth-backdrop-products span { min-height: 120px; border-radius: 16px; }
    .auth-logo-wrap { width: 70px; height: 70px; border-radius: 20px; }
    .auth-logo-wrap img { width: 54px; height: 54px; }
    .auth-mode-tabs a { min-height: 42px; padding: 8px 7px; font-size: 13px; }
    .auth-footer-actions { margin: 0 -18px -20px; padding: 16px 18px; flex-direction: column; align-items: stretch; }
    .auth-register-link { width: 100%; }
    .footer { padding: 26px 18px 0; }
    .footer-inner { grid-template-columns: 1fr; gap: 22px; }
    .footer-bottom { margin-left: -18px; margin-right: -18px; }
    .footer-bottom strong { margin-left: 0; }
    .content-hero { min-height: 260px; padding: 24px; }
.content-hero h1 { font-size: 36px; }
}

@keyframes mobileHeaderFloat {
    0%, 100% { box-shadow: 0 8px 24px rgba(139,92,246,.10); }
    50% { box-shadow: 0 14px 34px rgba(139,92,246,.20); }
}

@keyframes searchGlow {
    0%, 100% { border-color: var(--blue); }
    50% { border-color: #c084fc; }
}

@keyframes searchShine {
    0%, 55% { left: -46%; opacity: 0; }
    65% { opacity: .75; }
    100% { left: 112%; opacity: 0; }
}

@keyframes filterBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

@keyframes categorySlideGlow {
    0%, 100% { box-shadow: inset 0 -1px 0 rgba(139,92,246,.16); }
    50% { box-shadow: inset 0 -2px 0 rgba(139,92,246,.38); }
}

.tracking-page { display: grid; gap: 22px; }
.tracking-hero { position: relative; overflow: hidden; display: flex; justify-content: space-between; gap: 20px; padding: 34px; border-radius: 18px; background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.22), transparent 28%), linear-gradient(135deg, #4c1d95, #8b5cf6 58%, #c084fc); color: #fff; box-shadow: 0 28px 70px rgba(91, 33, 182, .22); }
.tracking-hero::after { content: ""; position: absolute; right: -70px; bottom: -110px; width: 260px; height: 260px; border: 36px solid rgba(255,255,255,.12); border-radius: 50%; }
.tracking-hero span { display: inline-block; margin-bottom: 10px; color: rgba(255,255,255,.78); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.tracking-hero h1 { margin: 0; font-size: clamp(34px, 5vw, 64px); line-height: .98; }
.tracking-hero p { max-width: 620px; margin: 12px 0 0; color: rgba(255,255,255,.86); line-height: 1.6; font-weight: 800; }
.tracking-hero > strong { position: relative; z-index: 1; align-self: flex-start; padding: 12px 16px; border-radius: 999px; background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1px rgba(255,255,255,.20); white-space: nowrap; }
.tracking-list { display: grid; gap: 18px; }
.tracking-card { display: grid; gap: 22px; padding: 24px; border: 1px solid rgba(139,92,246,.16); border-radius: 16px; background: #fff; box-shadow: 0 22px 58px rgba(91,33,182,.10); }
.tracking-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.tracking-head span { color: var(--blue); font-weight: 900; font-size: 13px; }
.tracking-head h2 { margin: 6px 0; font-size: 24px; }
.tracking-head small { color: var(--muted); font-weight: 800; }
.tracking-head strong { padding: 10px 14px; border-radius: 10px; background: #f5f0ff; color: var(--blue-dark); font-size: 20px; white-space: nowrap; }
.tracking-progress { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 18px; }
.tracking-progress::before, .tracking-progress::after { content: ""; position: absolute; left: 8%; right: 8%; top: 31px; height: 5px; border-radius: 999px; background: #eee7ff; }
.tracking-progress::after { right: auto; width: calc(var(--progress) * .84); background: linear-gradient(90deg, var(--blue), var(--cyan)); box-shadow: 0 10px 24px rgba(139,92,246,.28); }
.tracking-progress > div { position: relative; z-index: 1; display: grid; justify-items: center; gap: 10px; text-align: center; color: var(--muted); font-size: 13px; font-weight: 900; }
.tracking-progress i { width: 30px; height: 30px; border: 5px solid #eee7ff; border-radius: 50%; background: #fff; box-shadow: 0 8px 18px rgba(91,33,182,.12); }
.tracking-progress .done i, .tracking-progress .current i { border-color: var(--blue); background: var(--blue); }
.tracking-progress .current i { outline: 7px solid rgba(139,92,246,.14); }
.tracking-progress .done span, .tracking-progress .current span { color: var(--ink); }
.tracking-products { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 2px; }
.tracking-products a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 999px; background: #fbfaff; color: #405066; border: 1px solid var(--line); font-weight: 900; }
.tracking-products a span { color: var(--blue); }
.tracking-empty { display: grid; justify-items: center; gap: 12px; padding: 56px 24px; border: 1px solid rgba(139,92,246,.16); border-radius: 18px; background: #fff; text-align: center; box-shadow: 0 22px 58px rgba(91,33,182,.10); }
.tracking-empty-icon { width: 74px; height: 74px; display: grid; place-items: center; border-radius: 22px; background: linear-gradient(135deg, #f3e8ff, #fff); color: var(--blue); font-size: 38px; font-weight: 900; }
.tracking-empty h2 { margin: 0; font-size: 28px; }
.tracking-empty p { max-width: 520px; margin: 0; color: var(--muted); line-height: 1.6; font-weight: 800; }

.continue-shopping { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--ink); font-weight: 900; }
.cart-page-layout, .pretty-checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.cart-card, .pretty-payment-panel, .pretty-summary-panel { border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 18px 50px rgba(91, 33, 182, .08); padding: 22px; }
.cart-card-title { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.cart-card-title h1, .cart-card-title h2 { margin: 0; font-size: 20px; }
.cart-title-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: #f2eaff; color: var(--blue); font-weight: 900; }
.pretty-cart-list { display: grid; gap: 0; }
.pretty-cart-item { display: grid; grid-template-columns: 140px 1fr 160px; gap: 18px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.pretty-cart-item:first-child { padding-top: 0; }
.pretty-cart-item:last-child { border-bottom: 0; padding-bottom: 0; }
.pretty-cart-item > img { width: 140px; height: 140px; object-fit: contain; border-radius: 10px; background: #f6f2ff; padding: 12px; }
.cart-item-copy { display: grid; gap: 7px; }
.cart-item-copy > a { color: var(--ink); font-size: 17px; font-weight: 900; }
.cart-item-copy p { margin: 0; color: var(--muted); font-size: 13px; font-weight: 800; }
.pretty-qty-form { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; }
.pretty-qty-form button, .pretty-qty-form span { width: 38px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-weight: 900; }
.pretty-qty-form button { cursor: pointer; }
.pretty-qty-form span { background: #f8f6ff; min-width: 52px; }
.cart-item-side { display: grid; justify-items: end; gap: 8px; }
.cart-item-side strong { font-size: 18px; }
.cart-item-side span { color: var(--muted); font-size: 13px; }
.cart-remove-button { border: 0; background: transparent; color: #e11d48; cursor: pointer; font-weight: 900; }
.cart-sidebar { display: grid; gap: 18px; }
.promo-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.promo-form input { min-height: 42px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; outline: none; background: #f8f6ff; }
.promo-form button, .checkout-button, .clear-promo-button { min-height: 42px; border: 0; border-radius: 8px; background: var(--blue); color: #fff; cursor: pointer; font-weight: 900; padding: 0 16px; }
.clear-promo-button { margin-top: 10px; background: #111827; }
.promo-card p { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.summary-card { display: grid; gap: 14px; }
.summary-card h2 { margin: 0; }
.summary-card div, .summary-total div { display: flex; justify-content: space-between; gap: 12px; }
.summary-card hr { width: 100%; border: 0; border-top: 1px solid var(--line); }
.summary-discount { color: #16a05d; }
.summary-total-row { font-size: 20px; font-weight: 900; }
.checkout-button { display: flex; align-items: center; justify-content: center; text-align: center; }
.delivery-note-card { display: grid; gap: 16px; }
.delivery-note-card article { display: grid; gap: 3px; }
.delivery-note-card span { color: var(--muted); font-size: 13px; }
.pretty-checkout-layout { grid-template-columns: minmax(0, 1fr) 360px; }
.checkout-hero-small { padding: 24px; border-radius: 12px; background: linear-gradient(135deg, #4c1d95, #8b5cf6 58%, #c084fc); color: #fff; margin-bottom: 18px; }
.checkout-hero-small span { font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.78); }
.checkout-hero-small h1 { margin: 8px 0; font-size: 34px; }
.checkout-hero-small p { margin: 0; color: rgba(255,255,255,.86); line-height: 1.55; font-weight: 800; }
.pretty-checkout-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pretty-checkout-form .full { grid-column: 1 / -1; }
.checkout-subtitle { grid-column: 1 / -1; color: var(--blue); font-size: 16px; font-weight: 900; }
.pretty-checkout-form label { display: grid; gap: 7px; color: #405066; font-weight: 900; }
.pretty-checkout-form input, .pretty-checkout-form select { min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; outline: none; background: #fbfaff; }
.payment-method { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fbfaff; }
.payment-method label { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.payment-accounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.payment-accounts .account-card { padding: 18px; border-radius: 12px; background: linear-gradient(135deg, #f8f3ff, #fff); border: 1px solid var(--line); }
.payment-accounts .account-card span { display: block; color: var(--blue); font-weight: 900; }
.payment-accounts .account-card strong { display: block; margin: 8px 0; font-size: 20px; word-break: break-word; }
.payment-accounts .account-card small { color: var(--muted); font-weight: 800; }
.payment-accounts .recipient-card { background: linear-gradient(135deg, #fff7ed, #f3e8ff); }
.upload-box { min-height: 120px; display: grid !important; place-items: center; text-align: center; border: 1px dashed rgba(139,92,246,.45) !important; background: #fbfaff !important; cursor: pointer; }
.upload-box input { display: none; }
.upload-box span { color: var(--blue); font-weight: 900; }
.upload-box small { color: var(--muted); }
.pretty-checkout-form > button { min-height: 48px; border: 0; border-radius: 8px; background: var(--blue); color: #fff; cursor: pointer; font-weight: 900; }
.checkout-items { display: grid; gap: 12px; }
.checkout-items article { display: grid; grid-template-columns: 58px 1fr; gap: 10px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.checkout-items img { width: 58px; height: 58px; object-fit: contain; border-radius: 8px; background: #f8f6ff; }
.checkout-items strong { display: block; }
.checkout-items span, .checkout-items small { color: var(--muted); font-size: 12px; }
.summary-total { display: grid; gap: 10px; margin-top: 16px; }

@media (max-width: 900px) {
    .cart-page-layout, .pretty-checkout-layout { grid-template-columns: 1fr; }
    .pretty-cart-item { grid-template-columns: 110px 1fr; }
    .cart-item-side { grid-column: 1 / -1; justify-items: start; }
    .payment-accounts { grid-template-columns: 1fr; }
    .tracking-hero { flex-direction: column; padding: 26px; }
    .tracking-progress { grid-template-columns: 1fr; padding-left: 20px; }
    .tracking-progress::before, .tracking-progress::after { left: 14px; right: auto; top: 22px; bottom: 22px; width: 5px; height: auto; }
    .tracking-progress::after { height: calc(var(--progress) * .84); }
    .tracking-progress > div { grid-template-columns: 30px 1fr; justify-items: start; text-align: left; }
}

@media (max-width: 560px) {
    .pretty-checkout-form { grid-template-columns: 1fr; }
    .pretty-cart-item { grid-template-columns: 1fr; }
    .pretty-cart-item > img { width: 100%; height: 180px; }
    .tracking-card { padding: 18px; }
    .tracking-head { flex-direction: column; }
    .tracking-head h2 { font-size: 20px; }
}

/* Admin keep-alive styles after public redesign */
.admin-body { margin: 0; background: #eef3f8; color: #172033; font-family: Arial, Helvetica, sans-serif; }
.admin-login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at top left, rgba(139,92,246,.16), transparent 34%), #f5f0ff; }
.admin-login-card { width: min(420px, 100%); display: grid; gap: 14px; padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 26px 80px rgba(91, 33, 182, .16); }
.admin-login-card > img { width: 58px; height: 58px; border-radius: 14px; object-fit: cover; box-shadow: 0 16px 34px rgba(139,92,246,.18); }
.admin-login-card h1 { margin: 0; font-size: 28px; }
.admin-login-card p { margin: 0 0 6px; color: var(--muted); line-height: 1.5; }
.admin-login-card label { display: grid; gap: 6px; color: #405066; font-weight: 800; }
.admin-login-card input { min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; outline: none; }
.admin-login-card button { min-height: 44px; border: 0; border-radius: 7px; background: var(--blue); color: #fff; font-weight: 900; cursor: pointer; }
.admin-upload-zone,
.admin-product-form label:has(input[type="file"]) {
    padding: 16px;
    border: 1px dashed rgba(139,92,246,.45);
    border-radius: 12px;
    background: linear-gradient(135deg, #fbfaff, #fff);
}
.admin-upload-zone input[type="file"],
.admin-product-form label:has(input[type="file"]) input[type="file"] {
    margin-top: 10px;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    background: #f4efff;
    border: 1px solid var(--line);
}
.upload-help,
.admin-upload-zone span {
    display: block;
    margin-top: 8px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
}
.music-track-row { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.music-track-row span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: #f2eaff; color: var(--blue); font-weight: 900; }
.music-track-row audio { width: 100%; }
.music-track-row small { grid-column: 2; color: var(--muted); overflow-wrap: anywhere; }
.admin-shell { width: min(1500px, calc(100% - 40px)); margin: 28px auto; display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 56px); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 26px 80px rgba(91, 33, 182, .14); }
.admin-sidebar { padding: 22px 16px; background: #ffffff; border-right: 1px solid var(--line); }
.admin-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; color: var(--blue); font-size: 24px; font-weight: 900; }
.admin-logo img { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; box-shadow: 0 12px 24px rgba(139, 92, 246, .20); }
.admin-sidebar nav { display: grid; gap: 8px; }
.admin-sidebar nav a, .admin-logout { display: block; padding: 12px 14px; border: 0; border-radius: 8px; background: transparent; color: #516071; font-weight: 800; text-align: left; cursor: pointer; }
.admin-sidebar nav a.active, .admin-sidebar nav a:hover, .admin-logout:hover { background: #f2eaff; color: var(--blue); }
.admin-main { padding: 24px; background: #f6f9fc; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.admin-top h1 { margin: 0; font-size: 30px; }
.admin-profile, .metric-card, .admin-card, .admin-table, .admin-products-list, .admin-product-form { border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 12px 32px rgba(91, 33, 182, .06); }
.admin-profile { padding: 12px 14px; font-weight: 800; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.metric-card { padding: 18px; }
.metric-card.primary { background: linear-gradient(135deg, #e9f4ff, #fff); }
.metric-card span { color: var(--muted); font-weight: 800; }
.metric-card strong { display: block; margin-top: 10px; font-size: 28px; }
.admin-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; }
.admin-card { padding: 18px; }
.admin-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.admin-card-head h2 { margin: 0; }
.admin-card-head a, .admin-row > a, .admin-row-actions a, .admin-cancel-link, .admin-products-list a { color: var(--blue); font-weight: 900; }
.admin-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.admin-dashboard-table .admin-row { grid-template-columns: 70px minmax(150px, 1.4fr) minmax(110px, 1fr) 110px 150px 70px; }
.admin-table { width: 100%; border-collapse: collapse; overflow: hidden; }
.admin-table th, .admin-table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }
.admin-table th { background: #f4efff; color: #405066; }
.admin-product-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 18px; }
.admin-product-form label { display: grid; gap: 6px; color: #405066; font-weight: 800; }
.admin-product-form input, .admin-product-form textarea, .admin-product-form select { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; outline: none; }
.admin-product-form textarea { min-height: 110px; resize: vertical; }
.admin-product-form .full { grid-column: 1 / -1; }
.admin-product-form button, .status-form button { min-height: 42px; border: 0; border-radius: 7px; background: var(--blue); color: #fff; font-weight: 900; cursor: pointer; }
.admin-products-list { display: grid; gap: 0; }
.admin-products-list article { display: grid; grid-template-columns: 70px 1fr auto; gap: 14px; align-items: center; padding: 12px; border-bottom: 1px solid var(--line); }
.admin-products-list img { width: 70px; height: 70px; object-fit: contain; border-radius: 8px; background: #f5f8fc; }
.admin-success, .admin-error { margin-bottom: 16px; padding: 12px 14px; border-radius: 8px; font-weight: 900; }
.admin-success { background: #e8fff3; color: #087a3f; border: 1px solid #bcefd3; }
.admin-error { background: #fff0f0; color: #b42318; border: 1px solid #ffd0d0; }
.admin-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 1000;
    white-space: nowrap;
    border: 1px solid transparent;
}
.admin-status-pill.success { background: #e8fff3; color: #087a3f; border-color: #bcefd3; }
.admin-status-pill.warning { background: #fff7e6; color: #a15c00; border-color: #ffe0a3; }
.admin-status-pill.danger { background: #fff0f0; color: #b42318; border-color: #ffd0d0; }
.slides-form { align-items: start; }
.slide-editor { display: grid; grid-template-columns: 180px repeat(2, minmax(0, 1fr)); gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(135deg, #f8fbff, #fff); }
.slide-editor legend { padding: 0 8px; color: var(--blue); font-size: 15px; font-weight: 900; }
.slide-admin-preview { grid-row: span 3; display: grid; align-content: start; gap: 10px; }
.slide-admin-preview img { width: 160px; height: 120px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 12px 28px rgba(91, 33, 182, .08); }
.slide-admin-preview strong { display: block; color: var(--ink); font-size: 15px; line-height: 1.25; }
.slide-admin-preview span { color: var(--muted); font-size: 13px; font-weight: 800; }
.admin-theme-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.admin-theme-picker label { display: flex; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #f8fbff; cursor: pointer; }
.admin-theme-picker small { display: block; margin-top: 4px; color: var(--muted); }
.settings-divider { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.settings-divider h2 { margin: 0 0 4px; font-size: 20px; }
.settings-divider p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .admin-shell { width: 100%; margin: 0; grid-template-columns: 1fr; border-radius: 0; } .admin-sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } .metrics, .admin-grid, .admin-product-form, .admin-theme-picker, .slide-editor, .footer-inner { grid-template-columns: 1fr; } .slide-admin-preview { grid-row: auto; } .slide-admin-preview img { width: 100%; max-width: 240px; } }

/* Polished admin panel */
.admin-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 8%, rgba(139, 92, 246, .18), transparent 26%),
        radial-gradient(circle at 90% 18%, rgba(34, 211, 238, .12), transparent 24%),
        linear-gradient(135deg, #f6f3ff 0%, #eef6ff 52%, #ffffff 100%);
}

.admin-shell {
    width: min(1560px, calc(100% - 36px));
    margin: 18px auto;
    grid-template-columns: 268px minmax(0, 1fr);
    min-height: calc(100vh - 36px);
    border: 1px solid rgba(139, 92, 246, .16);
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 34px 110px rgba(49, 24, 92, .18);
    backdrop-filter: blur(16px);
}

.admin-sidebar {
    position: relative;
    padding: 24px 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f2ff 100%);
    border-right: 1px solid rgba(139, 92, 246, .14);
}

.admin-sidebar::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 150px;
    background: radial-gradient(circle at 30% 12%, rgba(139, 92, 246, .18), transparent 38%);
    pointer-events: none;
}

.admin-logo {
    position: relative;
    min-height: 54px;
    padding: 8px 10px;
    border-radius: 16px;
    color: #5b21b6;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 16px 34px rgba(91, 33, 182, .08);
}

.admin-logo img {
    width: 42px;
    height: 42px;
    border-radius: 13px;
}

.admin-sidebar nav {
    position: relative;
    gap: 9px;
    margin-top: 10px;
}

.admin-sidebar nav a,
.admin-logout {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-radius: 13px;
    color: #566176;
    transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
    transform: translateX(4px);
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    box-shadow: 0 16px 28px rgba(109, 40, 217, .22);
}

.admin-logout {
    margin-top: 18px;
    color: #b42318;
    background: #fff5f5;
}

.admin-logout:hover {
    transform: translateX(4px);
    color: #fff;
    background: #ef4444;
}

.admin-main {
    padding: 28px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.78), rgba(249,250,255,.92)),
        #f8f7ff;
}

.admin-top {
    position: sticky;
    top: 0;
    z-index: 10;
    margin: -28px -28px 24px;
    padding: 22px 28px;
    border-bottom: 1px solid rgba(139, 92, 246, .12);
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(16px);
}

.admin-top h1 {
    color: #1f2937;
    font-size: clamp(26px, 3vw, 36px);
    letter-spacing: 0;
}

.admin-top p {
    margin: 4px 0 0;
    color: #7b8496;
    font-weight: 800;
}

.admin-profile {
    display: grid;
    gap: 3px;
    min-width: 210px;
    padding: 12px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff, #f4efff);
}

.admin-profile span {
    color: #8b5cf6;
    font-size: 12px;
    text-transform: uppercase;
}

.metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.metric-card,
.admin-card,
.admin-table,
.admin-products-list,
.admin-product-form {
    border: 1px solid rgba(139, 92, 246, .14);
    border-radius: 18px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 20px 55px rgba(53, 31, 92, .08);
}

.metric-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
}

.metric-card::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -32px;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(139, 92, 246, .12);
}

.metric-card.primary {
    background: linear-gradient(135deg, #8b5cf6, #22d3ee);
    color: #fff;
}

.metric-card.primary span,
.metric-card.primary small {
    color: rgba(255, 255, 255, .86);
}

.metric-card span {
    color: #7b8496;
    font-size: 13px;
}

.metric-card strong {
    margin-top: 12px;
    color: inherit;
    font-size: clamp(28px, 3vw, 38px);
    letter-spacing: 0;
}

.metric-card small {
    display: block;
    margin-top: 6px;
    color: #8a94a6;
    font-weight: 800;
}

.admin-grid,
.admin-products-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
    gap: 20px;
    align-items: start;
}

.admin-card {
    padding: 22px;
}

.admin-card + .admin-card,
.admin-products-layout + .admin-card,
.admin-grid + .admin-card {
    margin-top: 20px;
}

.admin-card-head {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(139, 92, 246, .12);
}

.admin-card-head h2 {
    color: #202636;
    font-size: 22px;
}

.admin-card-head span,
.admin-card-head small {
    color: #7b8496;
    font-weight: 800;
}

.admin-card-head a,
.admin-row > a,
.admin-row-actions a,
.admin-cancel-link,
.admin-products-list a,
.receipt-link {
    color: #7c3aed;
    text-decoration: none;
}

.admin-card-head a:hover,
.admin-row > a:hover,
.admin-row-actions a:hover,
.admin-cancel-link:hover,
.admin-products-list a:hover,
.receipt-link:hover {
    color: #5b21b6;
}

.admin-product-form {
    gap: 16px;
    padding: 20px;
    box-shadow: none;
}

.admin-product-form label {
    color: #475569;
    font-size: 13px;
}

.admin-product-form input,
.admin-product-form textarea,
.admin-product-form select,
.status-form select {
    min-height: 46px;
    border: 1px solid rgba(139, 92, 246, .18);
    border-radius: 12px;
    background: #fbfaff;
    color: #202636;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.admin-product-form textarea {
    min-height: 116px;
}

.admin-product-form input:focus,
.admin-product-form textarea:focus,
.admin-product-form select:focus,
.status-form select:focus {
    border-color: #8b5cf6;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, .12);
}

.admin-product-form button,
.status-form button,
.admin-table button,
.admin-row-actions button {
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(109, 40, 217, .22);
    transition: transform .18s ease, box-shadow .18s ease;
}

.admin-product-form button:hover,
.status-form button:hover,
.admin-table button:hover,
.admin-row-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(109, 40, 217, .28);
}

.featured-check,
.admin-toggle-row {
    align-items: center;
    grid-template-columns: auto 1fr;
    padding: 12px 14px;
    border: 1px solid rgba(139, 92, 246, .12);
    border-radius: 14px;
    background: #fbfaff;
}

.featured-check input,
.admin-toggle-row input {
    width: 18px;
    min-height: 18px;
    accent-color: #8b5cf6;
}

.admin-table {
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table th,
.admin-table td {
    padding: 15px 14px;
    border-bottom: 1px solid rgba(139, 92, 246, .10);
}

.admin-table th {
    background: linear-gradient(135deg, #f4efff, #eef6ff);
    color: #46546a;
    font-size: 12px;
    text-transform: uppercase;
}

.admin-table tr:hover td {
    background: #fbfaff;
}

.admin-row {
    min-height: 64px;
    padding: 14px 16px;
    border-top: 1px solid rgba(139, 92, 246, .10);
}

.admin-row.head {
    min-height: 46px;
    border-top: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #f4efff, #eef6ff);
    color: #46546a;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.orders-table .admin-row {
    grid-template-columns: 76px minmax(150px, 1.1fr) minmax(160px, 1.15fr) minmax(100px, .8fr) 92px 150px minmax(190px, 1fr);
}

.admin-dashboard-table .admin-row {
    grid-template-columns: 76px minmax(170px, 1.35fr) minmax(120px, 1fr) 115px 160px 80px;
}

.admin-row small {
    display: block;
    margin-top: 4px;
    color: #8a94a6;
    font-weight: 800;
}

.status-form {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.status-form a {
    grid-column: 1 / -1;
    color: #7c3aed;
    font-weight: 900;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f2eaff;
    color: #6d28d9;
    font-size: 12px;
    font-weight: 900;
}

.status-pill.delivered {
    background: #e8fff3;
    color: #047857;
}

.status-pill.transit,
.status-pill.in-transit {
    background: #fff7e6;
    color: #b45309;
}

.receipt-link {
    min-height: 36px;
    display: inline-grid;
    place-items: center;
    padding: 0 12px;
    border-radius: 999px;
    background: #f4efff;
    font-weight: 900;
}

.admin-products-list article,
.category-admin-list article {
    border-bottom: 1px solid rgba(139, 92, 246, .10);
    transition: background .18s ease, transform .18s ease;
}

.admin-products-list article:hover,
.category-admin-list article:hover {
    transform: translateY(-2px);
    background: #fbfaff;
}

.admin-products-list img {
    width: 78px;
    height: 78px;
    border: 1px solid rgba(139, 92, 246, .12);
    border-radius: 16px;
    background: linear-gradient(135deg, #f8f5ff, #fff);
}

.admin-products-list strong {
    display: block;
    margin: 5px 0;
    color: #202636;
    font-size: 16px;
}

.admin-products-list span,
.admin-products-list small {
    color: #7b8496;
    font-weight: 800;
}

.admin-row-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.admin-row-actions button,
.admin-table td form button {
    min-height: 36px;
    padding: 0 12px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 12px 24px rgba(220, 38, 38, .18);
}

.category-admin-list {
    display: grid;
    gap: 12px;
}

.category-admin-list article {
    display: grid;
    grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr);
    gap: 16px;
    padding: 16px;
    border: 1px solid rgba(139, 92, 246, .12);
    border-radius: 16px;
    background: #fff;
}

.category-admin-list strong {
    color: #202636;
    font-size: 17px;
}

.category-admin-list small {
    display: block;
    margin-top: 5px;
    color: #8a94a6;
    font-weight: 800;
}

.admin-product-form small {
    display: block;
    margin-top: 7px;
    color: #8a94a6;
    font-size: 12px;
    font-weight: 800;
}

.category-icon-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px dashed rgba(139, 92, 246, .32);
    border-radius: 12px;
    background: #fbfaff;
    color: #5d596c;
    font-weight: 900;
}

.category-icon-preview img,
.category-admin-icon {
    width: 46px;
    height: 46px;
    padding: 7px;
    border-radius: 14px;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 10px 22px rgba(91,33,182,.10);
}

.category-admin-icon {
    float: left;
    margin: 0 12px 8px 0;
}

.subcategory-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-content: start;
}

.subcategory-tags span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    background: #f4efff;
    color: #475569;
    font-weight: 900;
}

.subcategory-tags a {
    color: #7c3aed;
    font-size: 12px;
}

.subcategory-tags form {
    display: inline;
}

.subcategory-tags button {
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    background: #fee2e2;
    color: #b42318;
    cursor: pointer;
}

.slide-editor {
    border-radius: 18px;
    background: linear-gradient(135deg, #fbfaff, #ffffff);
}

.slide-admin-preview img {
    border-radius: 16px;
}

.music-track-row {
    padding: 13px;
    border: 1px solid rgba(139, 92, 246, .10);
    border-radius: 14px;
    background: #fbfaff;
}

.admin-theme-picker label {
    align-items: flex-start;
    border-radius: 16px;
    background: linear-gradient(135deg, #fbfaff, #fff);
}

.settings-divider {
    padding: 18px;
    border: 1px solid rgba(139, 92, 246, .12);
    border-radius: 16px;
    background: #fbfaff;
}

.maintenance-admin-preview {
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #24143f, #5b21b6);
    color: #fff;
}

.maintenance-admin-preview p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, .82);
}

.admin-success,
.admin-error {
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(53, 31, 92, .08);
}

@media (max-width: 1180px) {
    .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-grid,
    .admin-products-layout { grid-template-columns: 1fr; }
    .orders-table .admin-row,
    .admin-dashboard-table .admin-row { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 900px) {
    .admin-shell {
        width: 100%;
        margin: 0;
        grid-template-columns: 1fr;
        border-radius: 0;
    }

    .admin-main { padding: 18px; }
    .admin-top { margin: -18px -18px 18px; padding: 18px; position: static; }
    .admin-sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-product-form,
    .admin-theme-picker,
    .slide-editor,
    .category-admin-list article { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .metrics { grid-template-columns: 1fr; }
    .admin-top { align-items: flex-start; flex-direction: column; }
    .admin-profile { width: 100%; min-width: 0; }
    .admin-sidebar nav { grid-template-columns: 1fr; }
    .admin-row-actions { justify-content: flex-start; }
}

/* Materio-inspired admin skin */
.admin-body {
    --admin-purple: #9155fd;
    --admin-purple-dark: #7b3ff2;
    --admin-purple-soft: #f1e9ff;
    --admin-page: #f7f7fb;
    --admin-card: #ffffff;
    --admin-text: #3a3541;
    --admin-muted: #89868d;
    --admin-line: #ebe8f0;
    background:
        linear-gradient(135deg, rgba(145, 85, 253, .16), rgba(255,255,255,0) 28%),
        linear-gradient(180deg, #faf9ff, var(--admin-page));
    color: var(--admin-text);
}

.admin-shell {
    width: min(1480px, calc(100% - 42px));
    margin: 22px auto;
    grid-template-columns: 272px minmax(0, 1fr);
    min-height: calc(100vh - 44px);
    border: 1px solid rgba(58, 53, 65, .08);
    border-radius: 18px;
    background: var(--admin-page);
    box-shadow: 0 18px 55px rgba(58, 53, 65, .13);
}

.admin-sidebar {
    padding: 22px 16px;
    background: #fff;
    border-right: 1px solid var(--admin-line);
}

.admin-sidebar::before { display: none; }

.admin-logo {
    min-height: 58px;
    margin-bottom: 18px;
    padding: 8px 12px;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
    color: var(--admin-text);
    font-size: 23px;
}

.admin-logo img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(145, 85, 253, .26);
}

.admin-sidebar nav {
    gap: 6px;
}

.admin-sidebar nav a,
.admin-logout {
    position: relative;
    min-height: 42px;
    gap: 10px;
    padding: 11px 14px 11px 42px;
    border-radius: 0 999px 999px 0;
    color: #6f6b7d;
    font-size: 14px;
    font-weight: 800;
    box-shadow: none;
}

.admin-sidebar nav a::before,
.admin-logout::before {
    content: "";
    position: absolute;
    left: 16px;
    width: 9px;
    height: 9px;
    border: 2px solid currentColor;
    border-radius: 50%;
    opacity: .58;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
    transform: none;
    color: #fff;
    background: linear-gradient(98deg, var(--admin-purple), var(--admin-purple-dark));
    box-shadow: 0 6px 18px rgba(145, 85, 253, .34);
}

.admin-sidebar nav a:hover::before,
.admin-sidebar nav a.active::before {
    background: #fff;
    border-color: #fff;
    opacity: 1;
}

.admin-logout {
    margin-top: 18px;
    color: #ff4c51;
    background: #fff4f4;
}

.admin-logout:hover {
    transform: none;
    color: #fff;
    background: linear-gradient(98deg, #ff4c51, #e6363b);
    box-shadow: 0 8px 18px rgba(255, 76, 81, .25);
}

.admin-main {
    padding: 24px;
    background: var(--admin-page);
}

.admin-top {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: -24px -24px 24px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--admin-line);
    background: rgba(247, 247, 251, .88);
    backdrop-filter: blur(14px);
}

.admin-top h1 {
    color: var(--admin-text);
    font-size: 28px;
    font-weight: 900;
}

.admin-top p {
    color: var(--admin-muted);
    font-size: 13px;
}

.admin-profile {
    min-width: 230px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(58, 53, 65, .08);
}

.admin-profile span {
    color: var(--admin-muted);
    letter-spacing: .04em;
}

.metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 22px;
}

.metric-card,
.admin-card,
.admin-table,
.admin-products-list,
.admin-product-form {
    border: 0;
    border-radius: 12px;
    background: var(--admin-card);
    box-shadow: 0 5px 20px rgba(58, 53, 65, .08);
}

.metric-card {
    min-height: 132px;
    padding: 22px 22px 20px;
}

.metric-card::after {
    right: 18px;
    top: 18px;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(145, 85, 253, .18), rgba(145, 85, 253, .08));
}

.metric-card:nth-child(2)::after { background: linear-gradient(135deg, rgba(86, 202, 0, .20), rgba(86, 202, 0, .08)); }
.metric-card:nth-child(3)::after { background: linear-gradient(135deg, rgba(255, 180, 0, .22), rgba(255, 180, 0, .08)); }
.metric-card:nth-child(4)::after { background: linear-gradient(135deg, rgba(22, 177, 255, .20), rgba(22, 177, 255, .08)); }

.metric-card.primary {
    background: linear-gradient(135deg, #fff, #f6f0ff);
    color: var(--admin-text);
}

.metric-card.primary span,
.metric-card.primary small {
    color: var(--admin-muted);
}

.metric-card span {
    color: var(--admin-muted);
    font-size: 14px;
}

.metric-card strong {
    margin-top: 18px;
    color: var(--admin-text);
    font-size: 30px;
}

.metric-card small {
    color: #56ca00;
    font-size: 12px;
}

.admin-grid,
.admin-products-layout {
    gap: 22px;
}

.admin-card {
    padding: 24px;
}

.admin-card + .admin-card,
.admin-products-layout + .admin-card,
.admin-grid + .admin-card {
    margin-top: 22px;
}

.admin-card-head {
    margin-bottom: 18px;
    padding-bottom: 0;
    border-bottom: 0;
}

.admin-card-head h2 {
    color: var(--admin-text);
    font-size: 20px;
    font-weight: 900;
}

.admin-card-head span,
.admin-card-head small {
    color: var(--admin-muted);
    font-size: 13px;
}

.admin-card-head a,
.admin-row > a,
.admin-row-actions a,
.admin-cancel-link,
.admin-products-list a,
.receipt-link,
.status-form a {
    color: var(--admin-purple);
}

.admin-product-form {
    gap: 18px;
    padding: 22px;
    background: #fff;
}

.admin-product-form label {
    color: #5d596c;
    font-size: 13px;
    font-weight: 800;
}

.admin-product-form input,
.admin-product-form textarea,
.admin-product-form select,
.status-form select {
    border: 1px solid #dbdade;
    border-radius: 8px;
    background: #fff;
    color: var(--admin-text);
}

.admin-product-form input:focus,
.admin-product-form textarea:focus,
.admin-product-form select:focus,
.status-form select:focus {
    border-color: var(--admin-purple);
    box-shadow: 0 0 0 3px rgba(145, 85, 253, .14);
}

.admin-product-form button,
.status-form button,
.admin-table button,
.admin-row-actions button {
    border-radius: 8px;
    background: var(--admin-purple);
    box-shadow: 0 4px 14px rgba(145, 85, 253, .35);
}

.admin-product-form button:hover,
.status-form button:hover,
.admin-table button:hover,
.admin-row-actions button:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(145, 85, 253, .36);
}

.featured-check,
.admin-toggle-row {
    border-color: #ebe8f0;
    border-radius: 10px;
    background: #fafafa;
}

.featured-check input,
.admin-toggle-row input {
    accent-color: var(--admin-purple);
}

.admin-table {
    border-radius: 12px;
}

.admin-table th,
.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--admin-line);
}

.admin-table th {
    background: #f6f6f7;
    color: #5d596c;
    font-size: 12px;
}

.admin-table tr:hover td {
    background: #fbfaff;
}

.admin-row {
    min-height: 62px;
    border-top: 1px solid var(--admin-line);
}

.admin-row.head {
    border-radius: 8px;
    background: #f6f6f7;
    color: #5d596c;
}

.status-pill {
    min-height: 30px;
    background: #f1e9ff;
    color: var(--admin-purple);
}

.status-pill.delivered {
    background: #e8fadd;
    color: #56ca00;
}

.status-pill.transit,
.status-pill.in-transit {
    background: #fff3d6;
    color: #ffb400;
}

.receipt-link {
    background: #f1e9ff;
}

.admin-products-list article,
.category-admin-list article {
    border-bottom: 1px solid var(--admin-line);
}

.admin-products-list article:hover,
.category-admin-list article:hover {
    background: #fbfaff;
}

.admin-products-list img {
    border: 1px solid #ebe8f0;
    border-radius: 12px;
    background: #f7f7fb;
}

.admin-products-list strong,
.category-admin-list strong {
    color: var(--admin-text);
}

.admin-products-list span,
.admin-products-list small,
.category-admin-list small {
    color: var(--admin-muted);
}

.admin-row-actions button,
.admin-table td form button {
    background: #ff4c51;
    box-shadow: 0 4px 14px rgba(255, 76, 81, .25);
}

.category-admin-list article {
    border-color: var(--admin-line);
    border-radius: 12px;
}

.subcategory-tags span {
    background: #f1e9ff;
    color: #5d596c;
}

.subcategory-tags a {
    color: var(--admin-purple);
}

.slide-editor,
.music-track-row,
.admin-theme-picker label,
.settings-divider {
    border-color: var(--admin-line);
    border-radius: 12px;
    background: #fff;
}

.slide-admin-preview img {
    border-color: var(--admin-line);
    border-radius: 12px;
}

.maintenance-admin-preview {
    border-radius: 12px;
    background: linear-gradient(135deg, var(--admin-purple), #c267e8);
}

.donut {
    background: conic-gradient(var(--admin-purple) 0 85%, #eee8ff 85% 100%);
    box-shadow: inset 0 0 0 20px #fff;
}

.status-bars div {
    border-radius: 10px;
    background: #fafafa;
}

.status-bars i {
    background: linear-gradient(90deg, var(--admin-purple), #c267e8);
}

.admin-success {
    background: #e8fadd;
    color: #2e7d00;
    border-color: #d6f4c4;
}

.admin-error {
    background: #ffe9ea;
    color: #c82f35;
    border-color: #ffd1d3;
}

@media (max-width: 1180px) {
    .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .admin-shell {
        width: 100%;
        margin: 0;
        border-radius: 0;
        grid-template-columns: 1fr;
    }

    .admin-top {
        position: static;
    }
}

.admin-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.admin-page-heading h1 {
    margin: 0;
    color: #3a3541;
    font-size: 28px;
    font-weight: 900;
}

.admin-page-heading p {
    margin: 5px 0 0;
    color: #89868d;
    font-weight: 700;
}

.materio-topbar {
    justify-content: space-between;
}

.materio-search {
    width: min(430px, 100%);
    min-height: 42px;
    display: grid;
    grid-template-columns: 38px 1fr;
    align-items: center;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(58, 53, 65, .06);
}

.materio-search span {
    width: 16px;
    height: 16px;
    justify-self: center;
    border: 2px solid #89868d;
    border-radius: 50%;
    position: relative;
}

.materio-search span::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -4px;
    width: 7px;
    height: 2px;
    border-radius: 999px;
    background: #89868d;
    transform: rotate(45deg);
}

.materio-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #3a3541;
    font-weight: 700;
}

.materio-top-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.materio-top-actions > a {
    color: #9155fd;
    font-weight: 900;
}

.materio-bell {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    position: relative;
    box-shadow: 0 4px 18px rgba(58, 53, 65, .06);
}

.materio-bell::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 9px;
    width: 14px;
    height: 15px;
    border: 2px solid #89868d;
    border-bottom: 0;
    border-radius: 8px 8px 3px 3px;
}

.materio-bell::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff4c51;
}

.materio-dashboard {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 22px;
}

.materio-dashboard > * {
    min-width: 0;
}

.materio-stat-card,
.materio-statistics-card,
.materio-dashboard .admin-card {
    border: 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(58, 53, 65, .08);
}

.materio-stat-card {
    grid-column: span 3;
    min-height: 140px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    overflow: hidden;
    padding: 20px;
}

.materio-stat-card span,
.materio-statistics-card span,
.materio-dashboard .admin-card-head span {
    color: #89868d;
    font-size: 13px;
    font-weight: 800;
}

.materio-stat-card strong {
    display: block;
    margin: 18px 0 4px;
    color: #3a3541;
    font-size: 26px;
}

.materio-stat-card small {
    color: #56ca00;
    font-weight: 900;
}

.materio-stat-card small.danger {
    color: #ff4c51;
}

.character-illustration {
    align-self: flex-end;
    width: 96px;
    height: 116px;
    border-radius: 44px 44px 18px 18px;
    position: relative;
    background: linear-gradient(180deg, #d9ccff, #9155fd);
}

.character-illustration::before {
    content: "";
    position: absolute;
    left: 31px;
    top: -14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffd6b0;
    box-shadow: 0 -9px 0 #3f8cff;
}

.person-two {
    background: linear-gradient(180deg, #ffe1c0, #ffb400);
}

.person-two::before {
    box-shadow: 0 -9px 0 #3a3541;
}

.materio-statistics-card {
    grid-column: span 6;
    padding: 20px;
}

.materio-statistics-card .admin-card-head {
    margin-bottom: 18px;
}

.materio-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.materio-stat-grid div {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 8px 12px;
    align-items: center;
}

.materio-stat-grid i {
    grid-row: span 2;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #9155fd;
}

.materio-stat-grid i.green { background: #56ca00; }
.materio-stat-grid i.orange { background: #ffb400; }
.materio-stat-grid strong {
    color: #3a3541;
    font-size: 18px;
}

.total-sales-card {
    grid-column: span 3;
}

.materio-chart-card {
    grid-column: span 3;
    min-height: 260px;
}

.materio-money {
    display: block;
    margin-bottom: 18px;
    color: #3a3541;
    font-size: 28px;
}

.materio-line-chart {
    height: 146px;
    display: flex;
    align-items: end;
    gap: 8px;
}

.materio-line-chart span {
    flex: 1;
    border-radius: 16px 16px 4px 4px;
    background: linear-gradient(180deg, #c8a7ff, #9155fd);
}

.materio-line-chart span:nth-child(1) { height: 30%; }
.materio-line-chart span:nth-child(2) { height: 78%; }
.materio-line-chart span:nth-child(3) { height: 28%; }
.materio-line-chart span:nth-child(4) { height: 66%; }
.materio-line-chart span:nth-child(5) { height: 52%; }
.materio-line-chart span:nth-child(6) { height: 88%; }

.materio-bar-chart {
    height: 160px;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 14px;
}

.materio-bar-chart span {
    width: 10px;
    border-radius: 999px;
    background: #56ca00;
    box-shadow: 18px 0 0 #dbdade;
}

.materio-legend {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 14px;
    color: #89868d;
    font-size: 13px;
    font-weight: 800;
}

.green-dot,
.gray-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #56ca00;
}

.gray-dot { background: #dbdade; }

.materio-sales-overview {
    grid-column: span 6;
    min-height: 260px;
}

.materio-overview-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 22px;
    align-items: center;
}

.materio-donut {
    width: 180px;
    aspect-ratio: 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(#9155fd var(--value), #eee8ff 0);
    position: relative;
}

.materio-donut::after {
    content: "";
    position: absolute;
    inset: 34px;
    border-radius: 50%;
    background: #fff;
}

.materio-donut span {
    position: relative;
    z-index: 1;
    color: #3a3541;
    font-size: 28px;
    font-weight: 900;
    text-align: center;
}

.materio-donut small {
    display: block;
    color: #89868d;
    font-size: 12px;
}

.materio-overview-list {
    display: grid;
    gap: 14px;
}

.materio-overview-list p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 12px;
    border-radius: 10px;
    background: #fafafa;
    color: #6f6b7d;
    font-weight: 800;
}

.materio-overview-list p span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #9155fd;
}

.materio-overview-list p:nth-child(2) span { background: #ffb400; }
.materio-overview-list p:nth-child(3) span { background: #56ca00; }

.materio-timeline {
    grid-column: span 6;
}

.timeline-item {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px dashed #ebe8f0;
}

.timeline-item i {
    width: 11px;
    height: 11px;
    margin-top: 5px;
    border-radius: 50%;
    background: #ff4c51;
}

.timeline-item:nth-child(odd) i { background: #9155fd; }
.timeline-item strong {
    color: #3a3541;
}

.timeline-item span {
    display: block;
    margin-top: 4px;
    color: #89868d;
    font-size: 13px;
    font-weight: 800;
}

.materio-weekly,
.materio-categories {
    grid-column: span 3;
}

.mini-growth {
    height: 96px;
    display: flex;
    align-items: end;
    gap: 10px;
}

.mini-growth span {
    flex: 1;
    border-radius: 999px 999px 3px 3px;
    background: #56ca00;
}

.mini-growth span:nth-child(1) { height: 42%; }
.mini-growth span:nth-child(2) { height: 58%; }
.mini-growth span:nth-child(3) { height: 50%; }
.mini-growth span:nth-child(4) { height: 82%; }
.mini-growth span:nth-child(5) { height: 70%; }

.materio-categories a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid #ebe8f0;
    color: #6f6b7d;
    font-weight: 900;
}

.materio-categories a strong {
    min-width: 34px;
    min-height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #f1e9ff;
    color: #9155fd;
}

.sidebar-category-item {
    position: relative;
}

.sidebar-category-item > a {
    position: relative;
}

.sidebar-category-item > a i {
    margin-left: auto;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
}

.sidebar-subcategories {
    position: absolute;
    left: calc(100% + 12px);
    top: 0;
    z-index: 60;
    min-width: 220px;
    display: none;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(76, 29, 149, .18);
}

.sidebar-subcategories::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 0;
    width: 16px;
    height: 100%;
}

.sidebar-category-item:hover .sidebar-subcategories,
.sidebar-category-item.open .sidebar-subcategories {
    display: grid;
}

.sidebar-subcategories a {
    min-height: 36px;
    display: flex;
    align-items: center;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}

.sidebar-subcategories a:hover {
    background: #f4efff;
    color: var(--blue);
}

@media (max-width: 1180px) {
    .materio-stat-card,
    .materio-chart-card,
    .materio-weekly,
    .materio-categories { grid-column: span 6; }
    .materio-statistics-card,
    .materio-sales-overview,
    .materio-timeline { grid-column: span 12; }
}

@media (max-width: 700px) {
    .materio-dashboard { grid-template-columns: 1fr; }
    .materio-dashboard > * { grid-column: 1 / -1 !important; }
    .materio-overview-grid { grid-template-columns: 1fr; }
    .materio-donut { margin: 0 auto; }
    .materio-topbar { align-items: stretch; flex-direction: column; }
    .materio-top-actions { justify-content: space-between; }
    .sidebar-subcategories { position: static; margin: 8px 0 8px 40px; box-shadow: none; }
}

/* Alta-style product detail */
.alta-product-page {
    display: grid;
    gap: 18px;
}

.alta-product-layout {
    display: grid;
    grid-template-columns: minmax(360px, 1.25fr) minmax(320px, .9fr) minmax(320px, .72fr);
    gap: 34px;
    align-items: start;
    padding-top: 10px;
}

.alta-gallery-panel {
    position: relative;
    min-height: 620px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-items: center;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.alta-product-title {
    align-self: start;
    padding: 22px 0 0;
}

.alta-product-title h1 {
    max-width: 440px;
    margin: 0;
    color: #171717;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 900;
}

.alta-product-title span {
    display: block;
    margin-top: 8px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 800;
}

.alta-heart {
    position: absolute;
    right: 18px;
    top: 100px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #374151;
    font-size: 32px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

.alta-main-image {
    position: relative;
    min-height: 360px;
    display: grid;
    place-items: center;
    padding: 20px 70px;
    border: 0;
    background: #fff;
    box-shadow: none;
}

.alta-main-image img {
    width: min(380px, 82%);
    max-height: 360px;
    object-fit: contain;
    cursor: zoom-in;
}

.alta-gallery-prev,
.alta-gallery-next {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #111827;
    font-size: 34px;
    box-shadow: 0 10px 26px rgba(0,0,0,.12);
}

.alta-gallery-prev { left: 6px; }
.alta-gallery-next { right: 6px; }

.alta-thumbs {
    display: flex;
    justify-content: center;
    gap: 28px;
    padding: 22px 10px 28px;
}

.alta-thumbs img {
    width: 76px;
    height: 64px;
    object-fit: contain;
    padding: 8px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.alta-thumbs img.active {
    border-color: #f05a28;
}

.alta-product-form {
    display: contents;
}

.alta-spec-panel {
    display: grid;
    gap: 18px;
    padding-top: 22px;
}

.alta-spec-list {
    display: grid;
    gap: 22px;
}

.alta-spec-list div {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) minmax(150px, 1fr);
    gap: 16px;
    align-items: baseline;
}

.alta-spec-list span {
    color: #5f6470;
    font-size: 15px;
    font-weight: 700;
}

.alta-spec-list strong {
    color: #252a33;
    font-size: 15px;
    font-weight: 900;
    text-align: right;
}

.alta-description {
    padding: 18px 0;
    border-top: 1px solid #eef0f3;
    border-bottom: 1px solid #eef0f3;
}

.alta-description h2 {
    margin: 0 0 10px;
    color: #252a33;
    font-size: 18px;
}

.alta-description p {
    margin: 0;
    color: #5f6470;
    line-height: 1.7;
    font-weight: 700;
}

.alta-option-group {
    gap: 10px;
}

.alta-option-group > span {
    color: #5f6470;
    font-size: 15px;
}

.alta-option-group > span strong {
    color: #111827;
}

.alta-option-group .option-pills em {
    min-width: 72px;
    justify-content: center;
    border-radius: 10px;
}

.alta-option-group .option-pills input:checked + em {
    border-color: #f05a28;
    background: #f05a28;
    color: #fff;
    box-shadow: none;
}

.alta-color-pills em {
    min-width: 42px !important;
    width: 42px;
    height: 42px;
    overflow: hidden;
    border-radius: 50% !important;
    text-indent: 999px;
    color: transparent !important;
    background: #d1d5db !important;
}

.alta-color-pills label:nth-child(2) em { background: #4b5563 !important; }
.alta-color-pills label:nth-child(3) em { background: #fb923c !important; }
.alta-color-pills label:nth-child(4) em { background: #111827 !important; }
.alta-color-pills input:checked + em {
    outline: 2px solid #f05a28;
    outline-offset: 3px;
}

.alta-buy-panel {
    position: sticky;
    top: 90px;
    overflow: hidden;
    border-radius: 0 0 18px 18px;
    background: #f3f3f3;
    box-shadow: 0 16px 42px rgba(0,0,0,.08);
}

.alta-price-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 14px;
    align-items: baseline;
    padding: 24px;
    border-bottom: 2px solid #fff;
}

.alta-price-box strong {
    color: #f05a28;
    font-size: 28px;
    font-weight: 900;
}

.alta-price-box del {
    color: #9ca3af;
    font-weight: 800;
}

.alta-price-box span {
    grid-column: 1 / -1;
    justify-self: end;
    color: #111827;
    font-size: 13px;
    font-weight: 900;
}

.alta-benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 22px 24px;
    border-bottom: 2px solid #fff;
}

.alta-benefits.compact-benefits {
    grid-template-columns: 1fr 1fr;
}

.alta-benefits span {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(22, 163, 74, .16);
    border-radius: 14px;
    background: linear-gradient(135deg, #ecfdf5, #fff);
    color: #087a3f;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 10px 26px rgba(22, 163, 74, .08);
}

.alta-benefits button {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(240, 90, 40, .18);
    border-radius: 14px;
    background: linear-gradient(135deg, #fff7ed, #fff);
    color: #b94614;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(240, 90, 40, .12);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.alta-benefits button:hover {
    transform: translateY(-2px);
    border-color: rgba(240, 90, 40, .36);
    box-shadow: 0 18px 38px rgba(240, 90, 40, .20);
}

.alta-benefits button:disabled {
    opacity: .68;
    cursor: wait;
    transform: none;
}

.alta-benefits span::before {
    content: "";
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background-color: #16a34a;
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 12.5l3.5 3.5L18 7.5' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 8px 18px rgba(22, 163, 74, .24);
}

.alta-benefits button::before {
    content: "";
    width: 25px;
    height: 25px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 9px;
    background-color: #f05a28;
    background-image: url("data:image/svg+xml,%3Csvg width='17' height='17' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 11V8a4 4 0 018 0v3' stroke='white' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M7 11h10v8H7v-8z' stroke='white' stroke-width='2.4' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 10px 22px rgba(240, 90, 40, .24);
}

.alta-benefits .in-stock::before {
    border-color: transparent;
}

.alta-benefits .out-of-stock {
    color: #b91c1c;
    border-color: rgba(220, 38, 38, .18);
    background: linear-gradient(135deg, #fff1f2, #fff);
    box-shadow: 0 10px 26px rgba(220, 38, 38, .08);
}

.alta-benefits .out-of-stock::before {
    border-color: transparent;
    background-color: #dc2626;
    background-image: url("data:image/svg+xml,%3Csvg width='17' height='17' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 8l8 8M16 8l-8 8' stroke='white' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
    box-shadow: 0 8px 18px rgba(220, 38, 38, .24);
}

.alta-benefits button.active {
    color: #0f766e;
    border-color: rgba(15, 118, 110, .18);
    background: linear-gradient(135deg, #ecfeff, #fff);
    box-shadow: 0 14px 30px rgba(15, 118, 110, .13);
}

.alta-benefits button.active::before {
    background-color: #0f766e;
    background-image: url("data:image/svg+xml,%3Csvg width='17' height='17' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 12.5l3.5 3.5L18 7.5' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    box-shadow: 0 10px 22px rgba(15, 118, 110, .24);
}

.reserve-message {
    margin: 18px 24px 0;
    padding: 13px 15px;
    border: 1px solid rgba(240, 90, 40, .16);
    border-radius: 14px;
    background: linear-gradient(135deg, #fff7ed, #fff);
    color: #b94614;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(240, 90, 40, .08);
}

.alta-buy-panel .stock-status {
    margin: 18px 24px 0;
}

.alta-main-buy {
    width: calc(100% - 48px);
    min-height: 64px;
    margin: 24px 24px 14px;
    border: 0;
    border-radius: 14px;
    background: #f05a28;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    cursor: pointer;
}

.alta-secondary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 10px 24px 24px;
}

.alta-secondary-actions a,
.alta-secondary-actions button {
    min-height: 62px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 14px;
    background: #fff;
    color: #171717;
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
}

.alta-secondary-actions button:first-child {
    background: #fff;
}

.alta-secondary-actions button {
    background: #f3a88d;
}

.compare-panel[hidden] {
    display: none;
}

.compare-panel {
    margin-top: 22px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .08);
}

.compare-panel .section-head {
    margin-bottom: 16px;
}

.compare-panel .section-head button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #f4efff;
    color: var(--blue);
    font-size: 24px;
    cursor: pointer;
}

.compare-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.compare-card {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfaff;
    color: var(--ink);
}

.compare-card.current {
    border-color: #f05a28;
    background: #fff7ed;
}

.compare-card img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
}

.compare-card strong {
    min-height: 42px;
    font-size: 13px;
}

.compare-card span {
    color: #f05a28;
    font-size: 18px;
    font-weight: 900;
}

.compare-card small {
    color: #64748b;
    font-weight: 900;
}

@media (max-width: 1220px) {
    .alta-product-layout {
        grid-template-columns: 1fr;
    }

    .alta-product-form {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(320px, .65fr);
        gap: 24px;
    }

    .alta-buy-panel {
        position: static;
    }
}

@media (max-width: 760px) {
    .alta-product-form {
        grid-template-columns: 1fr;
    }

    .alta-gallery-panel {
        min-height: auto;
    }

    .alta-main-image {
        min-height: 280px;
        padding: 20px 48px;
    }

    .alta-thumbs {
        gap: 10px;
        overflow-x: auto;
        justify-content: flex-start;
    }

    .alta-spec-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .alta-spec-list strong {
        text-align: left;
    }

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

/* Sidebar categories dropdown below item */
.market-sidebar .sidebar-category-item {
    position: relative;
    overflow: visible;
    border-radius: 10px;
}

.market-sidebar .sidebar-category-item > a {
    position: relative;
    z-index: 1;
}

.market-sidebar .sidebar-category-item > a i {
    margin-left: auto;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .18s ease;
}

.market-sidebar .sidebar-category-item:hover > a,
.market-sidebar .sidebar-category-item.open > a {
    background: #f2eaff;
    color: var(--blue);
}

.market-sidebar .sidebar-category-item:hover > a i,
.market-sidebar .sidebar-category-item.open > a i {
    transform: rotate(225deg) translateY(-1px);
}

.market-sidebar .sidebar-subcategories {
    position: static;
    left: auto;
    top: auto;
    z-index: auto;
    min-width: 0;
    display: grid;
    max-height: 0;
    overflow: hidden;
    gap: 6px;
    margin: 0 0 0 34px;
    padding: 0 8px;
    border: 0;
    border-left: 2px solid #eadcff;
    border-radius: 0 0 12px 12px;
    background: linear-gradient(180deg, #fbfaff, #fff);
    box-shadow: none;
    opacity: 0;
    transform: translateY(-8px) scale(.98);
    transform-origin: top center;
    transition: max-height .34s cubic-bezier(.2,.8,.2,1), padding .24s ease, opacity .22s ease, transform .28s cubic-bezier(.2,.8,.2,1);
}

.market-sidebar .sidebar-subcategories::before {
    display: none;
}

.market-sidebar .sidebar-category-item:hover .sidebar-subcategories,
.market-sidebar .sidebar-category-item.open .sidebar-subcategories {
    max-height: 420px;
    padding: 8px 8px 12px 12px;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.market-sidebar .sidebar-subcategories a {
    min-height: 34px;
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 9px;
    background: transparent;
    color: #5b4b76;
    font-size: 12px;
    font-weight: 900;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .22s ease, transform .24s ease, background .18s ease, color .18s ease;
}

.market-sidebar .sidebar-category-item:hover .sidebar-subcategories a,
.market-sidebar .sidebar-category-item.open .sidebar-subcategories a {
    opacity: 1;
    transform: translateY(0);
}

.market-sidebar .sidebar-subcategories a:nth-child(1) { transition-delay: .03s; }
.market-sidebar .sidebar-subcategories a:nth-child(2) { transition-delay: .06s; }
.market-sidebar .sidebar-subcategories a:nth-child(3) { transition-delay: .09s; }
.market-sidebar .sidebar-subcategories a:nth-child(4) { transition-delay: .12s; }
.market-sidebar .sidebar-subcategories a:nth-child(5) { transition-delay: .15s; }
.market-sidebar .sidebar-subcategories a:nth-child(n+6) { transition-delay: .18s; }

.market-sidebar .sidebar-subcategories a::before {
    content: "";
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #c4b5fd;
    transition: transform .18s ease, background .18s ease;
}

.market-sidebar .sidebar-subcategories a:hover {
    background: #f2eaff;
    color: var(--blue);
    transform: translateX(2px);
}

.market-sidebar .sidebar-subcategories a:hover::before {
    transform: scale(1.35);
    background: var(--blue);
}

@media (hover: none), (max-width: 700px) {
    .market-sidebar .sidebar-category-item:hover .sidebar-subcategories,
    .market-sidebar .sidebar-category-group:hover .sidebar-subcategories {
        max-height: 0;
        padding: 0 8px;
        opacity: 0;
        transform: translateY(-8px) scale(.98);
    }

    .market-sidebar .sidebar-category-item.open .sidebar-subcategories,
    .market-sidebar .sidebar-category-group.open .sidebar-subcategories {
        max-height: 420px;
        padding: 8px 8px 12px 12px;
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    .market-sidebar .sidebar-category-item.open .sidebar-subcategories a,
    .market-sidebar .sidebar-category-group.open .sidebar-subcategories a {
        opacity: 1;
        transform: translateY(0);
    }
}

.cj-admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-muted { color: #667085; font-weight: 800; }
.cj-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.cj-product-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--admin-line, #e7e7f4);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(76, 29, 149, .08);
}
.cj-product-card img {
    width: 100%;
    height: 170px;
    object-fit: contain;
    border-radius: 14px;
    background: #f8f7ff;
}
.cj-product-card span { color: #8b5cf6; font-weight: 900; font-size: 12px; }
.cj-product-card h3 { min-height: 48px; margin: 5px 0; font-size: 16px; line-height: 1.35; }
.cj-product-card strong { color: #111827; }
.cj-product-card button {
    width: 100%;
    min-height: 42px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
    cursor: pointer;
    font-weight: 1000;
}
.cj-stock-list article { grid-template-columns: 1fr auto; }
.cj-stock-list .admin-row-actions { align-items: center; }

@media (max-width: 900px) {
    .cj-admin-grid,
    .cj-product-grid { grid-template-columns: 1fr; }
}

.mobile-bottom-nav,
.mobile-category-drawer,
.mobile-bottom-overlay { display: none; }

.wishlist-empty {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 54px 18px;
    border: 1px solid rgba(139,92,246,.14);
    border-radius: 22px;
    background: linear-gradient(135deg, #fff, #f6f0ff);
    box-shadow: 0 24px 70px rgba(91,33,182,.10);
    text-align: center;
}

.wishlist-empty .empty-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: #fff;
    font-size: 44px;
    box-shadow: 0 20px 45px rgba(139,92,246,.26);
}

.wishlist-empty h2,
.wishlist-empty p { margin: 0; }

.wishlist-empty p { color: var(--muted); font-weight: 700; }

@media (max-width: 760px) {
    body:not(.admin-body):not(.maintenance-body) { padding-bottom: 86px; }
    body.mobile-drawer-open { overflow: hidden; }
    .main-header .header-categories,
    .main-header .user-nav { display: none; }
    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 240;
        min-height: 74px;
        display: grid;
        grid-template-columns: .9fr .9fr 1.35fr .9fr .9fr;
        align-items: end;
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
        border-top: 1px solid rgba(139,92,246,.14);
        background: rgba(255,255,255,.96);
        box-shadow: 0 -18px 42px rgba(31, 20, 56, .14);
        backdrop-filter: blur(16px);
    }
    .mobile-nav-item {
        position: relative;
        min-width: 0;
        min-height: 58px;
        display: grid;
        place-items: center;
        align-content: center;
        gap: 5px;
        border: 0;
        background: transparent;
        color: #1f2937;
        cursor: pointer;
        font: inherit;
        font-weight: 900;
        text-align: center;
    }
    .mobile-nav-item em {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-style: normal;
        font-size: 11px;
        line-height: 1;
    }
    .mobile-nav-center {
        min-height: 70px;
        min-width: 0;
        margin-top: -18px;
        padding: 6px 4px 8px;
        border-radius: 18px 18px 0 0;
        background: linear-gradient(180deg, #f2eaff, #ffffff);
        color: #7c3aed;
        box-shadow: 0 -10px 24px rgba(139,92,246,.18);
    }
    .mobile-nav-center em {
        max-width: none;
        padding: 4px 7px;
        border-radius: 999px;
        background: rgba(139,92,246,.10);
        font-size: 10px;
        line-height: 1.1;
        letter-spacing: 0;
    }
    .mobile-nav-center.active { background: linear-gradient(180deg, #8b5cf6, #7c3aed); color: #fff; }
    .mobile-nav-center.active em { background: rgba(255,255,255,.18); }
    .mobile-nav-item b {
        position: absolute;
        right: 16px;
        top: 4px;
        min-width: 20px;
        height: 20px;
        display: grid;
        place-items: center;
        border: 2px solid #fff;
        border-radius: 50%;
        background: #ef4444;
        color: #fff;
        font-size: 11px;
        line-height: 1;
    }
    .mobile-nav-icon {
        position: relative;
        width: 25px;
        height: 25px;
        display: inline-block;
        color: currentColor;
    }
    .mobile-nav-icon.home::before { content: ""; position: absolute; inset: 7px 4px 3px; border: 2px solid currentColor; border-top: 0; border-radius: 3px; }
    .mobile-nav-icon.home::after { content: ""; position: absolute; left: 5px; top: 2px; width: 15px; height: 15px; border-left: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); border-radius: 2px; }
    .mobile-nav-icon.user::before { content: ""; position: absolute; left: 8px; top: 3px; width: 9px; height: 9px; border: 2px solid currentColor; border-radius: 50%; }
    .mobile-nav-icon.user::after { content: ""; position: absolute; left: 4px; bottom: 3px; width: 17px; height: 10px; border: 2px solid currentColor; border-radius: 999px 999px 0 0; }
    .mobile-nav-icon.menu,
    .mobile-nav-icon.menu::before,
    .mobile-nav-icon.menu::after { height: 3px; border-radius: 999px; background: currentColor; }
    .mobile-nav-icon.menu { width: 22px; height: 22px; margin-top: 4px; }
    .mobile-nav-icon.menu::before,
    .mobile-nav-icon.menu::after { content: ""; position: absolute; left: 0; width: 22px; }
    .mobile-nav-icon.menu::before { top: -7px; }
    .mobile-nav-icon.menu::after { top: 7px; }
    .mobile-nav-icon.heart::before { content: "♡"; position: absolute; inset: -7px 0 0; font-size: 34px; line-height: 1; }
    .mobile-nav-icon.cart::before {
        content: "";
        position: absolute;
        left: 4px;
        top: 9px;
        width: 17px;
        height: 14px;
        border: 2px solid currentColor;
        border-radius: 4px 4px 7px 7px;
        background: linear-gradient(180deg, transparent 0 28%, rgba(139,92,246,.12) 28% 100%);
    }
    .mobile-nav-icon.cart::after {
        content: "";
        position: absolute;
        left: 8px;
        top: 2px;
        width: 9px;
        height: 10px;
        border: 2px solid currentColor;
        border-bottom: 0;
        border-radius: 999px 999px 0 0;
    }
    .mobile-bottom-overlay {
        position: fixed;
        inset: 0;
        z-index: 238;
        background: rgba(15, 10, 35, .32);
        backdrop-filter: blur(4px);
    }
    .mobile-bottom-overlay.open { display: block; }
    .mobile-category-drawer {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: calc(78px + env(safe-area-inset-bottom));
        z-index: 239;
        max-height: min(74vh, 680px);
        display: none;
        overflow: auto;
        padding: 10px 12px 16px;
        border: 1px solid rgba(139,92,246,.16);
        border-radius: 24px 24px 18px 18px;
        background: #f4f0f1;
        box-shadow: 0 -20px 60px rgba(31,20,56,.24);
        transform: translateY(18px);
        opacity: 0;
        transition: opacity .22s ease, transform .22s ease;
    }
    .mobile-category-drawer.open {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }
    .mobile-drawer-handle {
        width: 44px;
        height: 5px;
        margin: 0 auto 12px;
        border-radius: 999px;
        background: #d6d1da;
    }
    .mobile-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 4px 4px 14px;
    }
    .mobile-drawer-head span { color: #8b5cf6; font-size: 12px; font-weight: 1000; text-transform: uppercase; }
    .mobile-drawer-head h2 { margin: 3px 0 0; color: #111827; font-size: 24px; }
    .mobile-drawer-head button {
        width: 38px;
        height: 38px;
        border: 0;
        border-radius: 50%;
        background: #fff;
        color: #111827;
        cursor: pointer;
        font-size: 24px;
        box-shadow: 0 10px 24px rgba(31,20,56,.10);
    }
    .mobile-category-list { display: grid; gap: 10px; }
    .mobile-category-card {
        display: grid;
        gap: 8px;
        padding: 10px;
        border-radius: 18px;
        background: rgba(255,255,255,.72);
        box-shadow: inset 0 0 0 1px rgba(139,92,246,.08);
    }
    .mobile-category-main {
        display: grid;
        grid-template-columns: 54px 1fr;
        align-items: center;
        gap: 12px;
        color: #111827;
        font-size: 16px;
        font-weight: 1000;
    }
    .mobile-category-main img {
        width: 54px;
        height: 54px;
        padding: 8px;
        border-radius: 50%;
        object-fit: contain;
        background: #fff;
        box-shadow: 0 10px 22px rgba(31,20,56,.10);
    }
    .mobile-subcategory-row {
        display: flex;
        flex-wrap: wrap;
        gap: 7px;
        padding-left: 66px;
    }
    .mobile-subcategory-row a {
        padding: 7px 10px;
        border-radius: 999px;
        background: #fff;
        color: #6d28d9;
        font-size: 12px;
        font-weight: 900;
    }
}

@media (max-width: 380px) {
    .mobile-bottom-nav {
        grid-template-columns: .82fr .82fr 1.5fr .82fr .82fr;
        padding-left: 5px;
        padding-right: 5px;
    }
    .mobile-nav-item em { font-size: 10px; }
    .mobile-nav-center em {
        font-size: 9px;
        padding-left: 5px;
        padding-right: 5px;
    }
}
