/* ==========================================================================
   shop.css — Naro POS online storefront
   A self-contained, mobile-first design. No Bootstrap, no CDN, no web fonts
   fetched from the internet: Inter and Font Awesome are served locally.
   ========================================================================== */

:root {
    --shop-primary: #1d4ed8;
    --shop-primary-dark: #1e3a8a;
    --shop-primary-soft: #eff6ff;
    --shop-accent: #0ea5e9;
    --shop-ink: #0f172a;
    --shop-ink-soft: #334155;
    --shop-muted: #64748b;
    --shop-faint: #94a3b8;
    --shop-bg: #f5f7fb;
    --shop-card: #ffffff;
    --shop-border: #e2e8f0;
    --shop-border-strong: #cbd5e1;
    --shop-success: #16a34a;
    --shop-success-soft: #ecfdf5;
    --shop-warning: #d97706;
    --shop-warning-soft: #fffbeb;
    --shop-danger: #dc2626;
    --shop-danger-soft: #fef2f2;
    --shop-info-soft: #eff6ff;
    --shop-radius: 18px;
    --shop-radius-sm: 12px;
    --shop-shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 12px rgba(15, 23, 42, .04);
    --shop-shadow-md: 0 10px 30px rgba(15, 23, 42, .09);
    --shop-shadow-lg: 0 24px 60px rgba(15, 23, 42, .14);
    --shop-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

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

body.shop-body {
    margin: 0;
    font-family: var(--shop-font);
    color: var(--shop-ink);
    background: var(--shop-bg);
    font-size: 15.5px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--shop-primary); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.2; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
    outline: 3px solid rgba(29, 78, 216, .45);
    outline-offset: 2px;
    border-radius: 6px;
}

.shop-shell {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 22px;
}

.shop-main { min-height: 55vh; padding-bottom: 46px; }
.shop-main-inner { padding-top: 1px; }

/* ==========================================================================
   ANNOUNCEMENT + HEADER
   ========================================================================== */

.shop-announcement {
    background: linear-gradient(90deg, var(--shop-primary-dark), var(--shop-primary) 55%, #2563eb);
    color: #e0ecff;
    font-size: 12.8px;
    font-weight: 500;
}
.shop-announcement-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 36px;
}
.shop-announcement a { color: #fff; font-weight: 600; }
.shop-announcement i { margin-right: 6px; color: #93c5fd; }

.shop-header {
    background: #fff;
    border-bottom: 1px solid var(--shop-border);
    position: sticky;
    top: 0;
    z-index: 120;
    box-shadow: 0 1px 0 rgba(15, 23, 42, .03);
}
.shop-header-inner {
    display: flex;
    align-items: center;
    gap: 26px;
    min-height: 76px;
}
.shop-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--shop-ink);
    flex-shrink: 0;
}
.shop-brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    padding: 3px;
    box-shadow: 0 4px 14px rgba(29, 78, 216, .16);
}
.shop-brand-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--shop-primary), var(--shop-accent));
    color: #fff;
    font-size: 20px;
}
.shop-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.shop-brand-text strong { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.shop-brand-text small { font-size: 11.5px; color: var(--shop-muted); font-weight: 500; letter-spacing: .02em; }

.shop-desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 4px;
}
.shop-desktop-nav a {
    color: var(--shop-ink-soft);
    font-size: 14px;
    font-weight: 600;
    padding: 9px 12px;
    border-radius: 10px;
    transition: background .18s ease, color .18s ease;
    white-space: nowrap;
}
.shop-desktop-nav a:hover { background: var(--shop-primary-soft); color: var(--shop-primary); }
.shop-desktop-nav a.is-active { color: var(--shop-primary); background: var(--shop-primary-soft); }

.shop-header-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--shop-bg);
    border: 1px solid var(--shop-border);
    border-radius: 999px;
    padding: 0 16px;
    height: 44px;
    max-width: 420px;
    margin-left: auto;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.shop-header-search:focus-within {
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(29, 78, 216, .08);
    background: #fff;
}
.shop-header-search i { color: var(--shop-faint); font-size: 14px; }
.shop-header-search input {
    border: 0;
    background: transparent;
    outline: 0;
    width: 100%;
    font-size: 14px;
    color: var(--shop-ink);
}
.shop-header-search input::placeholder { color: var(--shop-faint); }

.shop-header-actions { display: flex; align-items: center; gap: 6px; }
.shop-icon-btn {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 54px;
    padding: 7px 8px;
    border-radius: 11px;
    color: var(--shop-ink-soft);
    font-size: 17px;
    transition: background .18s ease, color .18s ease;
}
.shop-icon-btn:hover { background: var(--shop-primary-soft); color: var(--shop-primary); }
.shop-icon-label { font-size: 10.5px; font-weight: 600; letter-spacing: .01em; }
.shop-cart-count {
    position: absolute;
    top: 2px;
    right: 6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--shop-primary);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
}

.shop-mobile-search-wrap { display: none; background: #fff; border-bottom: 1px solid var(--shop-border); padding: 10px 0 12px; }
.shop-mobile-search {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--shop-bg);
    border: 1px solid var(--shop-border);
    border-radius: 999px;
    padding: 0 6px 0 15px;
    height: 44px;
    margin: 0 16px;
}
.shop-mobile-search i { color: var(--shop-faint); font-size: 14px; }
.shop-mobile-search input { flex: 1; border: 0; background: transparent; outline: 0; font-size: 14px; }
.shop-mobile-search button {
    border: 0;
    background: var(--shop-primary);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 999px;
}

/* ==========================================================================
   FLASH / NOTICE / TOAST
   ========================================================================== */

.shop-flash, .shop-notice {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 16px;
    border-radius: 13px;
    margin: 18px 0 0;
    font-size: 14px;
    border: 1px solid transparent;
    line-height: 1.5;
}
.shop-flash > span, .shop-notice > div { flex: 1; }
.shop-flash button {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 20px;
    line-height: 1;
    opacity: .65;
    padding: 0 2px;
}
.shop-flash-success { background: var(--shop-success-soft); border-color: #bbf7d0; color: #166534; }
.shop-flash-error { background: var(--shop-danger-soft); border-color: #fecaca; color: #991b1b; }
.shop-flash-info { background: var(--shop-info-soft); border-color: #bfdbfe; color: #1e40af; }
.shop-flash-warning, .shop-notice.is-warning { background: var(--shop-warning-soft); border-color: #fde68a; color: #92400e; }
.shop-notice { margin: 16px 0 0; }

.shop-toast {
    position: fixed;
    left: 50%;
    bottom: 92px;
    transform: translate(-50%, 24px);
    background: var(--shop-ink);
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: var(--shop-shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
    z-index: 400;
    max-width: calc(100vw - 32px);
    text-align: center;
}
.shop-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.shop-toast.is-error { background: #991b1b; }

/* ==========================================================================
   BUTTONS / BADGES
   ========================================================================== */

.shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: .005em;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
    white-space: nowrap;
}
.shop-btn:hover { transform: translateY(-1px); }
.shop-btn:active { transform: translateY(0); }
.shop-btn-primary {
    background: linear-gradient(135deg, #2563eb, var(--shop-primary));
    color: #fff;
    box-shadow: 0 8px 20px rgba(29, 78, 216, .25);
}
.shop-btn-primary:hover { background: linear-gradient(135deg, #1d4ed8, var(--shop-primary-dark)); box-shadow: 0 10px 24px rgba(29, 78, 216, .32); }
.shop-btn-dark { background: var(--shop-ink); color: #fff; }
.shop-btn-soft { background: var(--shop-primary-soft); color: var(--shop-primary); }
.shop-btn-soft:hover { background: #dbeafe; }
.shop-btn-ghost { background: #fff; border-color: var(--shop-border-strong); color: var(--shop-ink-soft); }
.shop-btn-ghost:hover { border-color: var(--shop-primary); color: var(--shop-primary); }
.shop-btn-danger { background: var(--shop-danger); color: #fff; }
.shop-btn-success { background: var(--shop-success); color: #fff; }
.shop-btn-sm { min-height: 38px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.shop-btn-block { width: 100%; }
.shop-btn[disabled], .shop-btn.is-disabled { opacity: .55; cursor: not-allowed; transform: none; }

.shop-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    background: #f1f5f9;
    color: var(--shop-ink-soft);
}
.shop-badge.is-pending { background: var(--shop-warning-soft); color: #92400e; }
.shop-badge.is-paid { background: var(--shop-success-soft); color: #166534; }
.shop-badge.is-processing { background: #eef2ff; color: #3730a3; }
.shop-badge.is-packed { background: #f5f3ff; color: #5b21b6; }
.shop-badge.is-way { background: #ecfeff; color: #155e75; }
.shop-badge.is-delivered, .shop-badge.is-completed { background: #dcfce7; color: #14532d; }
.shop-badge.is-failed, .shop-badge.is-cancelled { background: var(--shop-danger-soft); color: #991b1b; }
.shop-badge.is-returned, .shop-badge.is-partial { background: #fff7ed; color: #9a3412; }

.shop-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--shop-success);
    background: var(--shop-success-soft);
    border-radius: 999px;
    padding: 4px 9px;
}
.shop-stock.is-low { color: #92400e; background: var(--shop-warning-soft); }
.shop-stock.is-out { color: #991b1b; background: var(--shop-danger-soft); }

/* ==========================================================================
   HOME - HERO
   ========================================================================== */

.shop-hero {
    position: relative;
    overflow: hidden;
    margin: 26px 0 34px;
    border-radius: 26px;
    background: radial-gradient(circle at 78% 18%, #dbeafe 0, #eff6ff 42%, #f8fbff 100%);
    border: 1px solid #dbeafe;
    box-shadow: var(--shop-shadow-sm);
}
.shop-hero::before {
    content: "";
    position: absolute;
    right: -120px;
    top: -140px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, .14), transparent 70%);
}
.shop-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 26px;
    align-items: center;
    padding: 52px 54px;
}
.shop-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--shop-primary);
    font-size: 12px;
    font-weight: 700;
    padding: 7px 13px;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(29, 78, 216, .12);
    margin-bottom: 18px;
}
.shop-hero-badge i { color: var(--shop-accent); }
.shop-hero h1 {
    font-size: clamp(34px, 4.4vw, 56px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.04;
    color: var(--shop-ink);
    margin-bottom: 16px;
    max-width: 540px;
}
.shop-hero h1 em { font-style: normal; color: var(--shop-primary); }
.shop-hero-sub {
    font-size: 16px;
    color: var(--shop-ink-soft);
    max-width: 46ch;
    margin-bottom: 26px;
    line-height: 1.6;
}
.shop-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.shop-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 26px;
    color: var(--shop-ink-soft);
    font-size: 12.8px;
    font-weight: 600;
}
.shop-hero-points span { display: inline-flex; align-items: center; gap: 7px; }
.shop-hero-points i { color: var(--shop-success); }

.shop-hero-visual {
    position: relative;
    min-height: 330px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-slider {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shop-shadow-md);
}
.hero-slider-track { position: absolute; inset: 0; }
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .55s ease, visibility .55s ease;
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 42%, rgba(15, 23, 42, .82) 100%);
    pointer-events: none;
}
.hero-slide-info {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    z-index: 2;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.hero-slide-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 800;
    color: #bfdbfe;
}
.hero-slide-info strong {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-slide-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 5px;
}
.hero-slide-price { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.hero-slide-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .94);
    color: var(--shop-primary);
    font-size: 11.5px;
    font-weight: 800;
    padding: 7px 12px;
    border-radius: 9px;
    white-space: nowrap;
}
.hero-slide-link i { font-size: 9px; }
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .92);
    color: var(--shop-ink);
    display: grid;
    place-items: center;
    font-size: 11px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .22);
    opacity: 0;
    transition: opacity .18s ease, background .18s ease;
}
.hero-slider:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover { background: #fff; }
.hero-arrow.is-prev { left: 10px; }
.hero-arrow.is-next { right: 10px; }
.hero-dots {
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    justify-content: center;
    gap: 5px;
}
.hero-dots button {
    width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, .55);
    transition: width .2s ease, background .2s ease;
}
.hero-dots button.is-active { width: 20px; background: #fff; }
.hero-slider-empty {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    overflow: hidden;
    background: #eef2ff;
}
.hero-slider-empty img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   SECTIONS / CATEGORIES / PRODUCT CARDS
   ========================================================================== */

.shop-section { margin: 0 0 42px; }
.shop-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}
.shop-section-head h2 {
    font-size: clamp(21px, 2.4vw, 27px);
    font-weight: 800;
    letter-spacing: -.025em;
}
.shop-section-head p { color: var(--shop-muted); font-size: 13.5px; margin: 6px 0 0; }
.shop-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--shop-primary);
    white-space: nowrap;
}
.shop-link i { font-size: 11px; transition: transform .18s ease; }
.shop-link:hover i { transform: translateX(3px); }

.shop-categories {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 12px;
}
.shop-category-card {
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: 16px;
    padding: 18px 10px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    color: var(--shop-ink);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    min-height: 122px;
    justify-content: center;
}
.shop-category-card:hover {
    transform: translateY(-3px);
    border-color: #bfdbfe;
    box-shadow: var(--shop-shadow-md);
}
.shop-cat-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: var(--shop-primary-soft);
    color: var(--shop-primary);
    font-size: 20px;
}
.shop-category-card:nth-child(4n+2) .shop-cat-icon { background: #ecfeff; color: #0e7490; }
.shop-category-card:nth-child(4n+3) .shop-cat-icon { background: #f0fdf4; color: #15803d; }
.shop-category-card:nth-child(4n+4) .shop-cat-icon { background: #fff7ed; color: #c2410c; }
.shop-category-card span { font-size: 12.6px; font-weight: 700; line-height: 1.3; }
.shop-category-card small { font-size: 10.5px; color: var(--shop-muted); font-weight: 500; }

.shop-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.shop-product-card {
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    position: relative;
}
.shop-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shop-shadow-md);
    border-color: #dbeafe;
}
.product-media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f8fafc;
    overflow: hidden;
}
.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.shop-product-card:hover .product-media img { transform: scale(1.04); }
.product-media .shop-stock {
    position: absolute;
    left: 10px;
    top: 10px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(4px);
}
.product-body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-brand {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    color: var(--shop-faint);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--shop-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}
.product-name a { color: inherit; }
.product-name a:hover { color: var(--shop-primary); }
.product-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 3px;
}
.product-price { font-size: 16.5px; font-weight: 800; letter-spacing: -.02em; color: var(--shop-ink); }
.product-price small { font-size: 10.5px; font-weight: 600; color: var(--shop-muted); display: block; letter-spacing: 0; }
.product-add {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 0;
    background: var(--shop-primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 15px;
    transition: background .16s ease, transform .16s ease;
    flex-shrink: 0;
}
.product-add:hover { background: var(--shop-primary-dark); transform: scale(1.05); }
.product-add[disabled] { background: var(--shop-border-strong); cursor: not-allowed; }

/* ==========================================================================
   SERVICE STRIP / TRACK CARD
   ========================================================================== */

.shop-services {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 4px 0 42px;
}
.shop-service {
    display: flex;
    align-items: center;
    gap: 13px;
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: 15px;
    padding: 15px 16px;
}
.shop-service i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--shop-primary-soft);
    color: var(--shop-primary);
    font-size: 17px;
    flex-shrink: 0;
}
.shop-service strong { display: block; font-size: 13px; font-weight: 700; }
.shop-service span { font-size: 11.8px; color: var(--shop-muted); }

.shop-track-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(120deg, #fff, #f8fbff);
    border: 1px solid #dbeafe;
    border-radius: 18px;
    padding: 20px 24px;
    margin-bottom: 20px;
}
.shop-track-card .track-icon {
    width: 54px;
    height: 54px;
    border-radius: 15px;
    background: var(--shop-primary-soft);
    color: var(--shop-primary);
    display: grid;
    place-items: center;
    font-size: 22px;
    flex-shrink: 0;
}
.shop-track-card div { flex: 1; }
.shop-track-card strong { display: block; font-size: 15px; font-weight: 800; }
.shop-track-card span { font-size: 12.8px; color: var(--shop-muted); }

/* ==========================================================================
   FORMS / AUTH
   ========================================================================== */

.shop-form { display: flex; flex-direction: column; gap: 16px; }
.shop-field { display: flex; flex-direction: column; gap: 6px; }
.shop-label { font-size: 12.8px; font-weight: 700; color: var(--shop-ink-soft); }
.shop-label .req { color: var(--shop-danger); }
.shop-input, .shop-select, .shop-textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--shop-border-strong);
    border-radius: 11px;
    background: #fff;
    padding: 11px 14px;
    font-size: 14.5px;
    color: var(--shop-ink);
    transition: border-color .16s ease, box-shadow .16s ease;
}
.shop-textarea { min-height: 110px; resize: vertical; }
.shop-input:focus, .shop-select:focus, .shop-textarea:focus {
    outline: 0;
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .1);
}
.shop-input::placeholder, .shop-textarea::placeholder { color: var(--shop-faint); }
.shop-help { font-size: 12px; color: var(--shop-muted); }
.shop-error-text { font-size: 12.5px; color: var(--shop-danger); font-weight: 600; }
.shop-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.shop-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: var(--shop-ink-soft);
    line-height: 1.45;
}
.shop-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--shop-primary); flex-shrink: 0; }
.shop-field-password { position: relative; }
.shop-field-password .shop-input { padding-right: 48px; }
.shop-eye {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: var(--shop-muted);
    border-radius: 9px;
}
.shop-eye:hover { background: var(--shop-bg); }

.shop-auth { padding: 44px 0 20px; }
.shop-auth-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 0;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shop-shadow-lg);
    max-width: 980px;
    margin: 0 auto;
}
.shop-auth-card { padding: 42px 44px; }
.shop-auth-card h1 { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.shop-auth-card > p { color: var(--shop-muted); font-size: 13.8px; margin-bottom: 24px; }
.shop-auth-aside {
    background: linear-gradient(150deg, var(--shop-primary-dark), var(--shop-primary) 60%, #2563eb);
    color: #fff;
    padding: 46px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.shop-auth-aside::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    right: -90px;
    bottom: -110px;
}
.shop-auth-aside h2 { font-size: 25px; font-weight: 800; margin-bottom: 12px; letter-spacing: -.03em; }
.shop-auth-aside p { color: #dbeafe; font-size: 14px; line-height: 1.65; }
.shop-auth-aside ul { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; position: relative; z-index: 1; }
.shop-auth-aside li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; }
.shop-auth-aside li i { width: 26px; height: 26px; border-radius: 8px; background: rgba(255, 255, 255, .15); display: grid; place-items: center; font-size: 11px; }
.shop-auth-switch { margin-top: 20px; font-size: 13.5px; color: var(--shop-muted); text-align: center; }
.shop-auth-switch a { font-weight: 700; }

/* ==========================================================================
   CATALOGUE / FILTERS / PAGINATION
   ========================================================================== */

.shop-catalog-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 28px 0 18px;
}
.shop-catalog-head h1 { font-size: clamp(25px, 3vw, 34px); font-weight: 800; letter-spacing: -.03em; }
.shop-catalog-head p { color: var(--shop-muted); font-size: 13.5px; margin: 6px 0 0; }

.shop-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: 15px;
    padding: 12px;
    margin-bottom: 22px;
}
.shop-filter-search {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--shop-bg);
    border-radius: 10px;
    padding: 0 12px;
    height: 42px;
}
.shop-filter-search i { color: var(--shop-faint); font-size: 13px; }
.shop-filter-search input { border: 0; background: transparent; outline: 0; flex: 1; font-size: 14px; }
.shop-filter-bar select {
    height: 42px;
    border: 1px solid var(--shop-border-strong);
    border-radius: 10px;
    padding: 0 34px 0 12px;
    background: #fff;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--shop-ink-soft);
    max-width: 220px;
}
.shop-filter-bar .shop-btn { min-height: 42px; }

.shop-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 34px 0 10px;
    flex-wrap: wrap;
}
.shop-pagination a, .shop-pagination span {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    font-weight: 700;
    background: #fff;
    border: 1px solid var(--shop-border);
    color: var(--shop-ink-soft);
}
.shop-pagination a:hover { border-color: var(--shop-primary); color: var(--shop-primary); }
.shop-pagination .is-current { background: var(--shop-primary); border-color: var(--shop-primary); color: #fff; }

.shop-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--shop-muted);
    padding: 20px 0 4px;
    flex-wrap: wrap;
}
.shop-breadcrumb a { color: var(--shop-muted); font-weight: 600; }
.shop-breadcrumb a:hover { color: var(--shop-primary); }
.shop-breadcrumb i { font-size: 9px; color: var(--shop-faint); }
.shop-breadcrumb span[aria-current] { color: var(--shop-ink); font-weight: 700; }

/* ==========================================================================
   PRODUCT DETAIL
   ========================================================================== */

.shop-product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 34px;
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: 22px;
    padding: 26px;
    margin: 12px 0 30px;
}
.shop-product-gallery { border-radius: 16px; overflow: hidden; background: #f8fafc; position: relative; }
.shop-product-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.shop-product-info { display: flex; flex-direction: column; gap: 14px; padding: 4px 0; }
.shop-product-info .product-brand { font-size: 11px; }
.shop-product-info h1 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.shop-price-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.shop-price-lg { font-size: 32px; font-weight: 800; letter-spacing: -.03em; color: var(--shop-primary); }
.shop-product-desc { color: var(--shop-ink-soft); font-size: 14.3px; line-height: 1.7; }
.shop-product-desc p:last-child { margin-bottom: 0; }
.shop-buy-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.shop-buy-row .shop-btn { flex: 1; min-width: 150px; }
.shop-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--shop-border-strong);
    border-radius: 11px;
    overflow: hidden;
    height: 46px;
    background: #fff;
}
.shop-qty button {
    width: 40px;
    height: 100%;
    border: 0;
    background: transparent;
    color: var(--shop-ink-soft);
    font-size: 13px;
}
.shop-qty button:hover { background: var(--shop-bg); }
.shop-qty input {
    width: 46px;
    height: 100%;
    border: 0;
    border-left: 1px solid var(--shop-border);
    border-right: 1px solid var(--shop-border);
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    outline: 0;
}
.shop-product-facts {
    display: grid;
    gap: 10px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--shop-border);
}
.shop-fact { display: flex; align-items: center; gap: 11px; font-size: 13px; color: var(--shop-ink-soft); }
.shop-fact i { width: 32px; height: 32px; border-radius: 9px; background: var(--shop-primary-soft); color: var(--shop-primary); display: grid; place-items: center; font-size: 12px; }
.shop-fact strong { font-weight: 700; }

/* ==========================================================================
   CART + CHECKOUT
   ========================================================================== */

.shop-page-head { padding: 30px 0 20px; }
.shop-page-head h1 { font-size: clamp(25px, 3vw, 34px); font-weight: 800; letter-spacing: -.03em; }
.shop-page-head p { color: var(--shop-muted); font-size: 13.5px; margin: 6px 0 0; }

.shop-cart-layout, .shop-checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr);
    gap: 24px;
    align-items: start;
}
.shop-panel {
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    padding: 22px;
}
.shop-panel + .shop-panel { margin-top: 18px; }
.shop-panel h2, .shop-panel h3 { font-size: 17px; font-weight: 800; margin-bottom: 14px; }
.shop-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.shop-panel-head h2, .shop-panel-head h3 { margin-bottom: 0; }

.shop-cart-list { display: flex; flex-direction: column; }
.shop-cart-item {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) auto;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--shop-border);
    align-items: center;
}
.shop-cart-item:first-child { padding-top: 0; }
.shop-cart-item:last-child { border-bottom: 0; padding-bottom: 0; }
.shop-cart-thumb { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: #f8fafc; }
.shop-cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.shop-cart-info { min-width: 0; }
.shop-cart-info h3 { font-size: 14.5px; font-weight: 700; margin-bottom: 4px; line-height: 1.35; }
.shop-cart-info h3 a { color: var(--shop-ink); }
.shop-cart-info .shop-price { font-size: 13.5px; font-weight: 700; color: var(--shop-primary); }
.shop-cart-actions { display: flex; align-items: center; gap: 12px; }
.shop-cart-remove {
    border: 0;
    background: transparent;
    color: var(--shop-muted);
    font-size: 14px;
    width: 34px;
    height: 34px;
    border-radius: 9px;
}
.shop-cart-remove:hover { background: var(--shop-danger-soft); color: var(--shop-danger); }
.shop-cart-line-total { font-weight: 800; font-size: 14.5px; min-width: 92px; text-align: right; }

.shop-summary { position: sticky; top: 96px; }
.shop-summary h2 { font-size: 17px; font-weight: 800; margin-bottom: 16px; }
.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13.8px;
    color: var(--shop-ink-soft);
    padding: 7px 0;
}
.summary-row span:last-child { font-weight: 700; color: var(--shop-ink); }
.summary-row.is-total {
    border-top: 1px solid var(--shop-border);
    margin-top: 10px;
    padding-top: 15px;
    font-size: 15px;
}
.summary-row.is-total span:last-child { font-size: 21px; font-weight: 800; color: var(--shop-primary); }
.shop-summary .shop-btn { margin-top: 16px; }
.shop-secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--shop-muted);
    font-size: 11.8px;
    margin-top: 12px;
}
.shop-secure-note i { color: var(--shop-success); }

.shop-empty {
    background: #fff;
    border: 1px dashed var(--shop-border-strong);
    border-radius: var(--shop-radius);
    padding: 54px 24px;
    text-align: center;
    max-width: 560px;
    margin: 24px auto;
}
.shop-empty-icon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: var(--shop-primary-soft);
    color: var(--shop-primary);
    display: grid;
    place-items: center;
    font-size: 26px;
    margin: 0 auto 18px;
}
.shop-empty h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.shop-empty p { color: var(--shop-muted); font-size: 14px; max-width: 40ch; margin: 0 auto 20px; }

.shop-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 6px 0 26px;
    flex-wrap: wrap;
}
.shop-step { display: flex; align-items: center; gap: 9px; color: var(--shop-faint); font-size: 12.8px; font-weight: 700; }
.shop-step span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e2e8f0;
    color: var(--shop-muted);
    font-size: 11.5px;
}
.shop-step.is-done { color: var(--shop-primary); }
.shop-step.is-done span { background: var(--shop-primary); color: #fff; }
.shop-step-line { width: 44px; height: 2px; background: var(--shop-border); margin: 0 12px; }

.shop-radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shop-radio-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    border: 1.5px solid var(--shop-border);
    border-radius: 13px;
    padding: 14px;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
    background: #fff;
}
.shop-radio-card:hover { border-color: #bfdbfe; }
.shop-radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.shop-radio-card .radio-dot {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    border: 2px solid var(--shop-border-strong);
    margin-top: 1px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
}
.shop-radio-card .radio-dot::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--shop-primary); transform: scale(0); transition: transform .15s ease; }
.shop-radio-card input:checked ~ .radio-dot { border-color: var(--shop-primary); }
.shop-radio-card input:checked ~ .radio-dot::after { transform: scale(1); }
.shop-radio-card:has(input:checked) { border-color: var(--shop-primary); background: var(--shop-primary-soft); box-shadow: 0 0 0 3px rgba(29, 78, 216, .06); }
.shop-radio-card strong { display: block; font-size: 13.4px; font-weight: 700; }
.shop-radio-card small { font-size: 11.8px; color: var(--shop-muted); line-height: 1.4; display: block; margin-top: 2px; }
.shop-radio-card .radio-price { margin-left: auto; font-size: 12.5px; font-weight: 800; color: var(--shop-primary); white-space: nowrap; }

.shop-pay-method {
    display: flex;
    align-items: center;
    gap: 13px;
    border: 1.5px solid var(--shop-primary);
    background: var(--shop-primary-soft);
    border-radius: 13px;
    padding: 14px;
}
.shop-pay-method .pay-icon { width: 42px; height: 42px; border-radius: 11px; background: #fff; color: var(--shop-primary); display: grid; place-items: center; font-size: 18px; }
.shop-pay-method strong { display: block; font-size: 13.4px; }
.shop-pay-method small { font-size: 11.8px; color: var(--shop-muted); }

/* ==========================================================================
   ACCOUNT
   ========================================================================== */

.shop-account-head {
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, #1e3a8a, #1d4ed8 60%, #2563eb);
    color: #fff;
    border-radius: 22px;
    padding: 24px 26px;
    margin: 24px 0 22px;
    box-shadow: var(--shop-shadow-md);
    flex-wrap: wrap;
}
.shop-avatar {
    width: 66px;
    height: 66px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .18);
    border: 2px solid rgba(255, 255, 255, .35);
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 800;
    overflow: hidden;
    flex-shrink: 0;
}
.shop-avatar img { width: 100%; height: 100%; object-fit: cover; }
.shop-account-head h1 { font-size: 23px; font-weight: 800; letter-spacing: -.025em; }
.shop-account-head p { color: #dbeafe; font-size: 13px; margin: 4px 0 0; }
.shop-account-head .shop-btn { margin-left: auto; }

.shop-account-nav {
    display: flex;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: 14px;
    padding: 6px;
    margin-bottom: 22px;
    overflow-x: auto;
    scrollbar-width: none;
}
.shop-account-nav::-webkit-scrollbar { display: none; }
.shop-account-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--shop-ink-soft);
    white-space: nowrap;
}
.shop-account-nav a:hover { background: var(--shop-primary-soft); color: var(--shop-primary); }
.shop-account-nav a.is-active { background: var(--shop-primary); color: #fff; }

.shop-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.shop-stat {
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: 15px;
    padding: 16px 18px;
}
.shop-stat span { font-size: 11.8px; color: var(--shop-muted); font-weight: 600; display: block; }
.shop-stat strong { font-size: 24px; font-weight: 800; letter-spacing: -.03em; display: block; margin-top: 3px; }
.shop-stat i { float: right; color: var(--shop-primary); font-size: 16px; margin-top: -22px; }

.shop-order-list { display: flex; flex-direction: column; gap: 14px; }
.shop-order-card {
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: 16px;
    padding: 18px 20px;
    transition: box-shadow .18s ease, border-color .18s ease;
}
.shop-order-card:hover { box-shadow: var(--shop-shadow-sm); border-color: #dbeafe; }
.shop-order-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.shop-order-top h3 { font-size: 15.5px; font-weight: 800; }
.shop-order-top h3 a { color: var(--shop-ink); }
.shop-order-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--shop-muted); }
.shop-order-meta strong { color: var(--shop-ink-soft); }
.shop-order-items { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.shop-order-thumb { width: 42px; height: 42px; border-radius: 9px; overflow: hidden; background: #f8fafc; border: 1px solid var(--shop-border); }
.shop-order-thumb img { width: 100%; height: 100%; object-fit: cover; }
.shop-order-more { font-size: 11.5px; color: var(--shop-muted); font-weight: 600; }
.shop-order-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--shop-border); flex-wrap: wrap; }
.shop-order-total { font-weight: 800; font-size: 15px; }
.shop-order-total small { display: block; font-size: 10.5px; color: var(--shop-muted); font-weight: 600; }
.shop-order-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.shop-profile-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 22px; align-items: start; }
.shop-avatar-card { text-align: center; }
.shop-avatar-card .shop-avatar { margin: 0 auto 14px; width: 96px; height: 96px; font-size: 32px; background: var(--shop-primary-soft); color: var(--shop-primary); border-color: var(--shop-border); }
.shop-avatar-card h3 { font-size: 16px; font-weight: 800; }
.shop-avatar-card p { font-size: 12.5px; color: var(--shop-muted); margin: 4px 0 14px; }
.shop-progress { height: 7px; background: #e2e8f0; border-radius: 99px; overflow: hidden; margin: 12px 0 6px; }
.shop-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--shop-primary), var(--shop-accent)); border-radius: 99px; }
.shop-progress-label { font-size: 11.5px; color: var(--shop-muted); }

/* ==========================================================================
   TRACKING / TIMELINE
   ========================================================================== */

.shop-track-hero {
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: #fff;
    border-radius: 22px;
    padding: 30px;
    margin: 24px 0 22px;
}
.shop-track-hero h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.03em; }
.shop-track-hero p { color: #cbd5e1; font-size: 13.8px; margin: 8px 0 0; }
.shop-track-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.shop-track-form .shop-input { flex: 1; min-width: 190px; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: #fff; }
.shop-track-form .shop-input::placeholder { color: #94a3b8; }
.shop-track-form .shop-btn { background: #fff; color: var(--shop-primary-dark); }

.shop-timeline { display: flex; justify-content: space-between; gap: 8px; margin: 20px 0 6px; }
.shop-timeline-step { flex: 1; text-align: center; position: relative; min-width: 0; }
.shop-timeline-step::before {
    content: "";
    position: absolute;
    top: 17px;
    left: -50%;
    width: 100%;
    height: 3px;
    background: var(--shop-border);
    z-index: 0;
}
.shop-timeline-step:first-child::before { display: none; }
.shop-timeline-step.is-done::before { background: var(--shop-primary); }
.shop-timeline-icon {
    position: relative;
    z-index: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin: 0 auto 8px;
    display: grid;
    place-items: center;
    background: #e2e8f0;
    color: var(--shop-muted);
    font-size: 13px;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px var(--shop-border);
}
.shop-timeline-step.is-done .shop-timeline-icon { background: var(--shop-primary); color: #fff; box-shadow: 0 0 0 1px var(--shop-primary); }
.shop-timeline-step span { font-size: 11.5px; font-weight: 700; color: var(--shop-muted); line-height: 1.3; display: block; }
.shop-timeline-step.is-done span { color: var(--shop-primary); }

.shop-history { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }
.shop-history-item { display: flex; gap: 13px; padding: 12px 0; border-bottom: 1px dashed var(--shop-border); }
.shop-history-item:last-child { border-bottom: 0; }
.shop-history-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--shop-primary); margin-top: 6px; flex-shrink: 0; box-shadow: 0 0 0 4px var(--shop-primary-soft); }
.shop-history-body strong { font-size: 13.2px; display: block; }
.shop-history-body span { font-size: 11.8px; color: var(--shop-muted); }
.shop-history-body p { font-size: 12.5px; color: var(--shop-ink-soft); margin: 4px 0 0; }

.shop-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.shop-info-list { display: flex; flex-direction: column; gap: 10px; }
.shop-info-list div { display: flex; justify-content: space-between; gap: 14px; font-size: 13px; }
.shop-info-list dt, .shop-info-list span:first-child { color: var(--shop-muted); }
.shop-info-list strong { text-align: right; font-weight: 700; }

/* ==========================================================================
   RETURN / FEEDBACK / RECEIPT
   ========================================================================== */

.shop-return-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px;
    gap: 14px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid var(--shop-border);
}
.shop-return-item:last-child { border-bottom: 0; }
.shop-return-item strong { font-size: 13.5px; display: block; }
.shop-return-item small { font-size: 11.8px; color: var(--shop-muted); }
.shop-return-item .shop-input { min-height: 42px; }

.shop-stars { display: flex; gap: 8px; flex-direction: row-reverse; justify-content: flex-end; }
.shop-stars input { position: absolute; opacity: 0; pointer-events: none; }
.shop-stars label { font-size: 28px; color: #cbd5e1; cursor: pointer; transition: color .12s ease, transform .12s ease; line-height: 1; }
.shop-stars label:hover, .shop-stars label:hover ~ label,
.shop-stars input:checked + label, .shop-stars input:checked ~ label { color: #f59e0b; }
.shop-stars label:hover { transform: scale(1.08); }

.shop-receipt {
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    padding: 28px;
    max-width: 760px;
    margin: 24px auto;
}
.shop-receipt-head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--shop-border); padding-bottom: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.shop-receipt-head h1 { font-size: 22px; font-weight: 800; }
.shop-receipt-head p { font-size: 12.5px; color: var(--shop-muted); margin: 4px 0 0; }
.shop-receipt-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.shop-receipt-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--shop-muted); padding: 8px 6px; border-bottom: 1px solid var(--shop-border); }
.shop-receipt-table td { padding: 9px 6px; border-bottom: 1px solid #f1f5f9; }
.shop-receipt-table th:last-child, .shop-receipt-table td:last-child { text-align: right; }
.shop-receipt-totals { margin-left: auto; max-width: 300px; margin-top: 14px; }

/* ==========================================================================
   REVIEWS
   ========================================================================== */

.shop-reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.shop-review {
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: 16px;
    padding: 20px;
}
.shop-review-stars { color: #f59e0b; font-size: 12px; display: flex; gap: 3px; margin-bottom: 10px; }
.shop-review p { font-size: 13.6px; line-height: 1.6; color: var(--shop-ink-soft); margin: 0 0 12px; }
.shop-review span { font-size: 11.8px; color: var(--shop-muted); font-weight: 600; }

/* ==========================================================================
   FOOTER / MOBILE NAV
   ========================================================================== */

.shop-footer {
    background: #0b1220;
    color: #cbd5e1;
    padding: 44px 0 26px;
    margin-top: 30px;
}
.shop-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 30px;
}
.shop-footer h4 { color: #fff; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 13px; }
.shop-footer a, .shop-footer span { display: block; color: #94a3b8; font-size: 13px; padding: 5px 0; }
.shop-footer a:hover { color: #fff; }
.shop-footer i { width: 18px; color: #64748b; }
.shop-brand-light .shop-brand-text strong { color: #fff; }
.shop-brand-light .shop-brand-text small { color: #94a3b8; }
.shop-brand-light img { box-shadow: none; }
.shop-footer-brand p { color: #94a3b8; font-size: 13px; line-height: 1.65; margin: 14px 0; max-width: 36ch; }
.shop-footer-pay { display: flex; align-items: center; gap: 12px; font-size: 11.5px; color: #94a3b8; }
.shop-footer-pay i { color: var(--shop-success); }
.shop-pay-brand { background: #1e293b; color: #fff; font-weight: 800; padding: 4px 9px; border-radius: 6px; font-size: 11px; }
.shop-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #1e293b;
    margin-top: 30px;
    padding-top: 18px;
    font-size: 11.5px;
    color: #64748b;
    flex-wrap: wrap;
}

.shop-bottom-nav { display: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1100px) {
    .shop-desktop-nav { display: none; }
    .shop-header-search { max-width: none; }
    .shop-categories { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .shop-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .shop-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .shop-footer-grid > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    .shop-header-search { display: none; }
    .shop-mobile-search-wrap { display: block; }
    .shop-hero-inner { grid-template-columns: 1fr; padding: 38px 32px; }
    .shop-hero-visual { min-height: 300px; margin-top: 10px; }
    .shop-hero h1 { max-width: none; }
    .shop-product-detail { grid-template-columns: 1fr; gap: 22px; }
    .shop-cart-layout, .shop-checkout-grid, .shop-profile-grid { grid-template-columns: 1fr; }
    .shop-summary { position: static; }
    .shop-auth-grid { grid-template-columns: 1fr; }
    .shop-auth-aside { order: -1; padding: 30px 32px; }
    .shop-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shop-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shop-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    body.shop-body { font-size: 15px; padding-bottom: 74px; }
    .shop-shell { padding: 0 15px; }
    .shop-header-inner { min-height: 64px; gap: 10px; }
    .shop-brand img, .shop-brand-mark { width: 40px; height: 40px; border-radius: 11px; }
    .shop-brand-text strong { font-size: 14.5px; }
    .shop-brand-text small { font-size: 10px; }
    .shop-header-actions { margin-left: auto; gap: 0; }
    .shop-icon-btn { min-width: 42px; padding: 6px; font-size: 16px; }
    .shop-icon-label { display: none; }
    .shop-cart-count { top: 0; right: 0; }
    .shop-announcement { font-size: 11.5px; }
    .shop-announcement-inner { min-height: 32px; }
    .shop-hero { margin: 16px 0 26px; border-radius: 20px; }
    .shop-hero-inner { padding: 28px 22px 26px; gap: 20px; }
    .shop-hero h1 { font-size: clamp(30px, 9vw, 40px); }
    .shop-hero-sub { font-size: 14px; margin-bottom: 20px; }
    .shop-hero-actions .shop-btn { flex: 1; }
    .shop-hero-points { gap: 10px; font-size: 11.8px; margin-top: 18px; }
    .shop-hero-visual { min-height: 240px; }
    .hero-slider, .hero-slider-empty { border-radius: 16px; aspect-ratio: 1 / 1; }
    .hero-slide-info { left: 14px; right: 14px; bottom: 12px; }
    .hero-slide-info strong { font-size: 14px; }
    .hero-slide-price { font-size: 17px; }
    .hero-slide-label { font-size: 9px; }
    .hero-arrow { opacity: 1; width: 30px; height: 30px; }
    .hero-arrow.is-prev { left: 7px; }
    .hero-arrow.is-next { right: 7px; }
    .hero-dots { top: 9px; }
    .shop-categories { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    .shop-category-card { padding: 13px 6px 11px; min-height: 100px; border-radius: 13px; gap: 7px; }
    .shop-cat-icon { width: 40px; height: 40px; font-size: 16px; border-radius: 12px; }
    .shop-category-card span { font-size: 11.2px; }
    .shop-category-card small { display: none; }
    .shop-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
    .product-body { padding: 10px 11px 12px; gap: 6px; }
    .product-name { font-size: 12.8px; min-height: 2.6em; }
    .product-price { font-size: 14.5px; }
    .product-add { width: 34px; height: 34px; border-radius: 10px; font-size: 13px; }
    .product-media .shop-stock { font-size: 9.5px; padding: 3px 7px; left: 7px; top: 7px; }
    .shop-section { margin-bottom: 32px; }
    .shop-section-head h2 { font-size: 21px; }
    .shop-services { grid-template-columns: 1fr 1fr; gap: 9px; }
    .shop-service { padding: 11px; gap: 9px; border-radius: 12px; }
    .shop-service i { width: 36px; height: 36px; font-size: 14px; }
    .shop-service strong { font-size: 11.8px; }
    .shop-service span { font-size: 10.5px; }
    .shop-track-card { padding: 16px; gap: 13px; }
    .shop-track-card .track-icon { width: 46px; height: 46px; font-size: 18px; }
    .shop-track-card .shop-btn { display: none; }
    .shop-page-head { padding: 22px 0 16px; }
    .shop-filter-bar { padding: 10px; gap: 8px; }
    .shop-filter-bar select { flex: 1; max-width: none; min-width: 120px; }
    .shop-filter-search { min-width: 100%; }
    .shop-cart-item { grid-template-columns: 68px minmax(0, 1fr); gap: 11px; padding: 14px 0; position: relative; }
    .shop-cart-thumb { width: 68px; height: 68px; }
    .shop-cart-actions { grid-column: 2; justify-content: space-between; }
    .shop-cart-line-total { position: absolute; right: 0; bottom: 16px; font-size: 13.5px; }
    .shop-cart-info h3 { padding-right: 0; }
    .shop-panel { padding: 17px; }
    .shop-row { grid-template-columns: 1fr; }
    .shop-radio-cards { grid-template-columns: 1fr; }
    .shop-auth { padding: 20px 0 10px; }
    .shop-auth-card { padding: 28px 22px; }
    .shop-auth-aside { padding: 26px 22px; }
    .shop-auth-aside h2 { font-size: 21px; }
    .shop-auth-aside ul { display: none; }
    .shop-account-head { padding: 20px; gap: 13px; }
    .shop-account-head h1 { font-size: 19px; }
    .shop-account-head .shop-btn { margin-left: 0; width: 100%; }
    .shop-avatar { width: 54px; height: 54px; font-size: 20px; border-radius: 14px; }
    .shop-stat-grid { gap: 9px; }
    .shop-stat { padding: 13px; }
    .shop-stat strong { font-size: 20px; }
    .shop-order-card { padding: 15px; }
    .shop-order-foot { gap: 10px; }
    .shop-timeline-step span { font-size: 9.5px; }
    .shop-timeline-icon { width: 30px; height: 30px; font-size: 11px; border-width: 2px; }
    .shop-timeline-step::before { top: 14px; }
    .shop-footer { padding: 34px 0 22px; }
    .shop-footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
    .shop-footer-grid > div:first-child { grid-column: 1 / -1; }
    .shop-footer-grid > div:last-child { grid-column: 1 / -1; }
    .shop-receipt { padding: 18px; }
    .shop-receipt-table { font-size: 12px; }
    .shop-track-hero { padding: 22px; }
    .shop-timeline { gap: 2px; }

    .shop-bottom-nav {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 200;
        background: rgba(255, 255, 255, .97);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--shop-border);
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
        box-shadow: 0 -6px 24px rgba(15, 23, 42, .07);
    }
    .shop-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        padding: 5px 2px;
        color: var(--shop-muted);
        font-size: 17px;
        border-radius: 10px;
    }
    .shop-bottom-nav a span:last-child { font-size: 9.8px; font-weight: 700; letter-spacing: .01em; }
    .shop-bottom-nav a.is-active { color: var(--shop-primary); }
    .shop-bottom-nav a.is-active span:last-child { font-weight: 800; }
    .shop-bottom-cart { position: relative; display: inline-flex; }
    .shop-bottom-cart em {
        position: absolute;
        top: -6px;
        right: -10px;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        border-radius: 99px;
        background: var(--shop-primary);
        color: #fff;
        font-size: 9px;
        font-style: normal;
        font-weight: 800;
        display: grid;
        place-items: center;
        border: 1.5px solid #fff;
    }
    .shop-toast { bottom: 84px; }
    .shop-flash { margin-top: 12px; }
}

@media (max-width: 380px) {
    .shop-product-grid { gap: 9px; }
    .shop-hero h1 { font-size: 28px; }
    .shop-icon-btn { min-width: 38px; }
}

/* ==========================================================================
   MOTION / PRINT
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
    .shop-announcement, .shop-header, .shop-footer, .shop-bottom-nav,
    .shop-mobile-search-wrap, .shop-toast, .shop-btn, .shop-breadcrumb,
    .no-print { display: none !important; }
    body.shop-body { background: #fff; padding: 0; }
    .shop-main { padding: 0; }
    .shop-receipt { border: 0; box-shadow: none; max-width: none; margin: 0; padding: 0; }
    .shop-shell { padding: 0; max-width: none; }
}
