/* ==========================================================================
   SPOK — Phone case store
   ========================================================================== */

@font-face {
    font-family: 'SPOK';
    src: url('../fonts/IBMPlexSansArabic-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E;
}
@font-face {
    font-family: 'SPOK';
    src: url('../fonts/IBMPlexSansArabic-Latin-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+2000-206F;
}
@font-face {
    font-family: 'SPOK';
    src: url('../fonts/IBMPlexSansArabic-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E;
}
@font-face {
    font-family: 'SPOK';
    src: url('../fonts/IBMPlexSansArabic-Latin-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+2000-206F;
}
@font-face {
    font-family: 'SPOK';
    src: url('../fonts/IBMPlexSansArabic-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E;
}
@font-face {
    font-family: 'SPOK';
    src: url('../fonts/IBMPlexSansArabic-Latin-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+2000-206F;
}
@font-face {
    font-family: 'SPOK';
    src: url('../fonts/IBMPlexSansArabic-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E;
}
@font-face {
    font-family: 'SPOK';
    src: url('../fonts/IBMPlexSansArabic-Latin-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+2000-206F;
}

:root {
    --brand: #FF5A0A;
    --brand-2: #FF7A1F;
    --brand-dark: #E84800;
    --brand-soft: #FFF3EC;
    --brand-line: #FFD9C7;
    --ink: #111114;
    --text: #1F1F23;
    --muted: #77777F;
    --line: #ECECEF;
    --line-2: #DFDFE4;
    --bg: #FFFFFF;
    --soft: #F7F7F9;
    --soft-2: #F1F1F4;
    --surface: #FFFFFF;
    --success: #12805C;
    --success-soft: #E7F6EF;
    --danger: #D23B2E;
    --danger-soft: #FDECEA;
    --warn: #B26B00;
    --warn-soft: #FFF4E0;
    --info: #2A5F9E;
    --info-soft: #EAF1FA;
    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-xl: 30px;
    --shadow-sm: 0 2px 10px rgba(17, 17, 20, .05);
    --shadow: 0 14px 40px rgba(17, 17, 20, .09);
    --shadow-lg: 0 30px 70px rgba(17, 17, 20, .12);
    --ease: cubic-bezier(.22, .61, .36, 1);
    --header-h: 118px;
    --font: 'SPOK', 'Segoe UI', Tahoma, sans-serif;
}

[data-theme="dark"] {
    --brand: #FF6B1A;
    --brand-2: #FF8A3D;
    --brand-dark: #FF4D00;
    --brand-soft: #2A1509;
    --brand-line: #4A2A16;
    --ink: #F5F2EE;
    --text: #EDE9E4;
    --muted: #A6A09A;
    --line: #26262C;
    --line-2: #36363E;
    --bg: #0B0B0D;
    --soft: #121216;
    --soft-2: #17171C;
    --surface: #121216;
    --success-soft: #123127;
    --danger-soft: #3A1714;
    --warn-soft: #33240C;
    --info-soft: #122033;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, .5);
    --shadow: 0 14px 40px rgba(0, 0, 0, .55);
    --shadow-lg: 0 30px 70px rgba(0, 0, 0, .65);
}

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

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4, h5 { margin: 0; line-height: 1.45; font-weight: 700; color: var(--text); }
p { margin: 0 0 12px; }
a { color: inherit; text-decoration: none; transition: color .2s, opacity .2s; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
::selection { background: var(--brand); color: #fff; }

* { scrollbar-width: thin; scrollbar-color: var(--brand) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 99px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--brand-2); }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1280px, 100%); margin-inline: auto; padding-inline: 20px; }

.ico { width: 20px; height: 20px; flex: none; }
.ico-sm { width: 16px; height: 16px; }
.icon-btn {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 10px; background: transparent; color: var(--text);
    position: relative; transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--soft-2); color: var(--brand); }
.icon-btn .ico { width: 21px; height: 21px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 22px; border-radius: 11px; border: 1.5px solid transparent;
    background: var(--soft); color: var(--text); font-weight: 600; font-size: 14px;
    line-height: 1.3; transition: background .2s, color .2s, border-color .2s, transform .15s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .ico { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { opacity: .9; }
.btn-light { background: #fff; color: #111114; border-color: rgba(255, 255, 255, .5); }
.btn-soft { background: var(--brand-soft); color: var(--brand); }
.btn-sm { padding: 8px 14px; font-size: 12.5px; border-radius: 9px; }
.btn-lg { padding: 13px 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* Top bar */
.topbar { background: var(--soft); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.topbar-inner { display: flex; align-items: center; gap: 16px; min-height: 36px; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar-item:hover { color: var(--brand); }
.topbar-sep { width: 1px; height: 13px; background: var(--line-2); }
.topbar-phone { margin-inline-start: auto; }

/* Header */
.header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.header-main { display: flex; align-items: center; gap: 22px; height: 78px; }
.menu-toggle { display: none; }
.logo { display: inline-flex; align-items: center; gap: 9px; flex: none; }
.logo img { width: 46px; height: 46px; border-radius: 50%; background: #fff; }
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-text strong { font-size: 18px; font-weight: 700; letter-spacing: 2.5px; color: var(--brand); }
.logo-text small { font-size: 10.5px; color: var(--muted); }

.header-search {
    flex: 1; max-width: 470px; display: flex; align-items: center; gap: 8px;
    background: var(--soft); border: 1px solid var(--line); border-radius: 11px;
    padding: 0 14px; height: 44px; transition: border-color .2s, background .2s;
}
.header-search:focus-within { border-color: var(--brand); background: var(--bg); }
.search-ico { width: 19px; height: 19px; color: var(--muted); }
.header-search input { flex: 1; border: 0; background: transparent; outline: none; color: var(--text); font-size: 13px; min-width: 0; }
.header-search button {
    border: 0; background: transparent; color: var(--brand); font-weight: 600; font-size: 12.5px; padding: 4px;
}

.header-actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.head-action {
    display: inline-flex; align-items: center; gap: 7px; padding: 9px 10px;
    border-radius: 10px; font-size: 12.5px; font-weight: 500; color: var(--text);
    position: relative;
}
.head-action:hover { background: var(--soft); color: var(--brand); }
.head-action .ico { width: 20px; height: 20px; }
.head-cart { border: 1px solid var(--line); }
.cart-badge {
    position: absolute; top: 2px; inset-inline-start: 2px;
    min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px;
    background: var(--brand); color: #fff; font-size: 10px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
}

.navbar { border-top: 1px solid var(--line); background: var(--bg); }
.navbar-inner { display: flex; align-items: center; gap: 4px; height: 44px; overflow-x: auto; scrollbar-width: none; }
.navbar-inner::-webkit-scrollbar { display: none; }
.navbar-inner a {
    padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 500;
    color: var(--text); white-space: nowrap;
}
.navbar-inner a:hover { color: var(--brand); background: var(--brand-soft); }
.nav-design {
    color: var(--brand) !important; font-weight: 600 !important;
    background: var(--brand-soft);
    display: inline-flex; align-items: center; gap: 5px;
}
.nav-end { margin-inline-start: auto; }

/* Search overlay */
.search-layer { position: fixed; inset: 0; z-index: 80; background: rgba(10,10,12,.45); backdrop-filter: blur(4px); display: flex; justify-content: center; padding: 100px 20px 20px; }
.search-box { width: min(680px, 100%); background: var(--bg); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; align-self: flex-start; }
.search-form { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.search-input { flex: 1; border: 0; background: transparent; outline: none; padding: 6px 0; font-size: 15px; color: var(--text); }
.search-results { max-height: 55vh; overflow: auto; padding: 8px; }
.search-result { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; }
.search-result:hover { background: var(--soft); }
.search-result img { width: 46px; height: 56px; object-fit: contain; border-radius: 6px; background: var(--soft); }
.search-result strong { display: block; font-size: 13.5px; }
.search-result span { font-size: 12px; color: var(--muted); }
.search-empty { padding: 24px; text-align: center; color: var(--muted); font-size: 13px; }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(10,10,12,.45); }
.drawer-panel {
    position: absolute; top: 0; inset-inline-start: 0; width: min(340px, 88vw); height: 100%;
    background: var(--bg); padding: 18px; overflow-y: auto; box-shadow: var(--shadow-lg);
    display: flex; flex-direction: column; gap: 16px; animation: drawerIn .25s var(--ease);
}
@keyframes drawerIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-search { display: flex; align-items: center; gap: 8px; background: var(--soft); border-radius: 10px; padding: 10px 12px; }
.drawer-search input { border: 0; background: transparent; outline: none; flex: 1; color: var(--text); }
.drawer-nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.drawer-nav a { padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.drawer-design { color: var(--brand); font-weight: 600; }
.drawer-group { display: flex; flex-direction: column; gap: 2px; }
.drawer-label { font-size: 11px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.drawer-group a { padding: 9px 2px; font-size: 13.5px; display: flex; align-items: center; gap: 7px; }
.drawer-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; }
.drawer-foot a { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }

/* Hero */
.hero {
    background:
        radial-gradient(60% 80% at 85% 20%, rgba(255, 90, 10, .10), transparent 65%),
        linear-gradient(180deg, #FFF8F3 0%, var(--bg) 100%);
    padding: 44px 0 20px;
    overflow: hidden;
}
[data-theme="dark"] .hero { background: radial-gradient(60% 80% at 85% 20%, rgba(255, 106, 26, .12), transparent 65%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
    background: var(--brand-soft); color: var(--brand); border-radius: 99px;
    font-size: 12px; font-weight: 600; margin-bottom: 14px;
}
.hero-badge.light { background: rgba(255,255,255,.1); color: #FFC7A8; }
.hero-copy h1 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.28; margin-bottom: 14px; letter-spacing: -.5px; }
.hero-copy h1 span { color: var(--brand); position: relative; }
.hero-copy p { font-size: 15.5px; color: var(--muted); max-width: 48ch; margin-bottom: 24px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-points { display: flex; gap: 18px; margin-top: 24px; flex-wrap: wrap; }
.hero-points li { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); }
.hero-points .ico { color: var(--brand); }

.hero-visual { position: relative; min-height: 440px; }
.hero-case { position: absolute; filter: drop-shadow(0 24px 30px rgba(40, 20, 8, .16)); transition: transform .5s var(--ease); }
.hero-case img { border-radius: 26px; }
.hero-case-1 { width: 46%; top: 6%; inset-inline-start: 0; transform: rotate(-8deg); }
.hero-case-2 { width: 50%; top: 18%; inset-inline-end: 6%; transform: rotate(3deg); z-index: 2; }
.hero-case-3 { width: 38%; bottom: 0; inset-inline-start: 26%; transform: rotate(9deg); z-index: 3; }
.hero-visual:hover .hero-case-1 { transform: rotate(-10deg) translateY(-6px); }
.hero-visual:hover .hero-case-2 { transform: rotate(4deg) translateY(-4px); }
.hero-visual:hover .hero-case-3 { transform: rotate(10deg) translateY(-2px); }
.hero-chip {
    position: absolute; bottom: 4%; inset-inline-end: 0; z-index: 4;
    background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
    padding: 10px 14px; font-size: 12px; font-weight: 600; box-shadow: var(--shadow);
    display: flex; align-items: center; gap: 7px;
}
.hero-chip .ico { color: var(--brand); }

/* Steps */
.steps-bar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.steps { display: flex; align-items: center; gap: 20px; padding: 16px 0; }
.step { display: flex; align-items: center; gap: 10px; flex: 1; }
.step-num {
    width: 34px; height: 34px; flex: none; border-radius: 50%;
    background: var(--brand-soft); color: var(--brand); font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; font-size: 13px;
}
.step strong { display: block; font-size: 13px; }
.step span { font-size: 11.5px; color: var(--muted); }
.step-line { width: 40px; height: 1px; background: var(--line-2); }

/* Sections */
.section { padding: 54px 0; }
.section-soft { background: var(--soft); }
.section-tight { padding: 32px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-head-center { justify-content: center; text-align: center; }
.section-title { font-size: clamp(21px, 2.4vw, 27px); font-weight: 700; }
.section-sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.section-link { display: inline-flex; align-items: center; gap: 4px; color: var(--brand); font-size: 13px; font-weight: 600; white-space: nowrap; }
.section-link:hover { gap: 8px; }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.cat-card {
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px 10px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.cat-card:hover { border-color: var(--brand-line); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.cat-icon {
    width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
    display: inline-flex; align-items: center; justify-content: center;
}
.cat-icon .ico { width: 22px; height: 22px; }
.cat-card strong { font-size: 13px; }
.cat-count { font-size: 11px; color: var(--muted); }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card {
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column;
    transition: border-color .2s, box-shadow .25s, transform .25s;
}
.product-card:hover { border-color: var(--brand-line); box-shadow: var(--shadow); transform: translateY(-4px); }
.pc-media { position: relative; display: block; background: var(--soft); aspect-ratio: 1 / 1.08; overflow: hidden; }
.pc-media img { width: 100%; height: 100%; object-fit: contain; padding: 6px; transition: transform .5s var(--ease); }
.product-card:hover .pc-media img { transform: scale(1.04); }
.pc-badges { position: absolute; top: 10px; inset-inline-end: 10px; display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.pc-badge { font-size: 10.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--ink); color: var(--bg); }
.pc-badge.sale { background: var(--brand); color: #fff; }
.pc-badge.new { background: var(--bg); color: var(--text); border: 1px solid var(--line); }
.pc-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.pc-cat { font-size: 10.5px; color: var(--brand); font-weight: 600; }
.pc-title { font-size: 13.5px; font-weight: 600; line-height: 1.6; }
.pc-title a:hover { color: var(--brand); }
.pc-rating { display: flex; align-items: center; gap: 5px; }
.pc-rating > span { font-size: 10.5px; color: var(--muted); }
.stars { display: inline-flex; gap: 1px; }
.star { width: 13px; height: 13px; color: var(--line-2); display: inline-flex; }
.star .ico { width: 13px; height: 13px; fill: currentColor; stroke-width: 0; }
.star.is-on { color: #FFB021; }
.star.is-half { color: #FFD08A; }
.pc-price { display: flex; align-items: baseline; gap: 7px; margin-top: 2px; }
.pc-price strong { font-size: 15px; font-weight: 700; }
.pc-price del { font-size: 11.5px; color: var(--muted); }

/* Custom band */
.custom-band {
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center;
    background: radial-gradient(90% 130% at 90% 0%, #3A1608 0%, #15100D 50%, #0C0C0E 100%);
    color: #F7F2EC; border-radius: var(--radius-xl); padding: 44px; overflow: hidden; position: relative;
}
.custom-band::after {
    content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 90, 10, .3), transparent 65%);
    top: -160px; inset-inline-end: -120px;
}
.custom-copy { position: relative; z-index: 1; }
.custom-copy h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); margin-bottom: 10px; }
.custom-copy p { color: rgba(255, 255, 255, .7); max-width: 46ch; }
.custom-features { display: flex; gap: 14px; flex-wrap: wrap; margin: 18px 0 24px; }
.custom-features span { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: rgba(255, 255, 255, .8); }
.custom-features .ico { color: var(--brand-2); }
.custom-visual { position: relative; z-index: 1; display: flex; justify-content: center; min-height: 320px; align-items: center; }
.mock-case { width: min(250px, 80%); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5)); transform: rotate(-4deg); }
.mock-case img { border-radius: 22px; }
.mock-price {
    position: absolute; bottom: 8px; inset-inline-end: 0; background: #fff; color: #111114;
    border-radius: 10px; padding: 8px 12px; font-size: 11.5px; box-shadow: var(--shadow);
}
.mock-price strong { display: block; font-size: 14px; }

/* Materials */
.material-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.material-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.material-card:hover { border-color: var(--brand-line); box-shadow: var(--shadow-sm); }
.material-img { background: var(--soft); padding: 14px; display: flex; justify-content: center; }
.material-img img { height: 150px; width: auto; }
.material-body { padding: 12px 14px 16px; }
.material-body strong { display: block; font-size: 13.5px; }
.material-body span { display: block; font-size: 11.5px; color: var(--muted); }
.material-body em { display: block; font-size: 11.5px; color: var(--brand); font-style: normal; margin-top: 6px; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature { display: flex; gap: 12px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.feature-ico { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.feature h3 { font-size: 13.5px; margin-bottom: 2px; }
.feature p { font-size: 11.5px; color: var(--muted); margin: 0; }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.testimonial { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.testimonial p { font-size: 13px; color: var(--text); margin: 10px 0; }
.testimonial-foot { display: flex; align-items: center; gap: 9px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.testimonial-foot strong { display: block; font-size: 12.5px; }
.testimonial-foot span { font-size: 10.5px; color: var(--muted); }

/* FAQ */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 2px; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-weight: 600; font-size: 13.5px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ico { color: var(--brand); transition: transform .2s; }
.faq-item[open] summary .ico { transform: rotate(45deg); }
.faq-answer { padding: 0 2px 16px; color: var(--muted); font-size: 13px; max-width: 80ch; }

/* Footer */
.footer { background: var(--soft); border-top: 1px solid var(--line); padding: 46px 0 20px; margin-top: 40px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 30px; }
.footer-brand p { color: var(--muted); font-size: 12.5px; margin: 14px 0; max-width: 36ch; }
.socials { display: flex; gap: 7px; }
.socials a { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; color: var(--text); }
.socials a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.footer-col h3 { font-size: 13.5px; margin-bottom: 10px; }
.footer-col a, .footer-contact span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); padding: 4px 0; }
.footer-col a:hover { color: var(--brand); }
.footer-contact { display: flex; flex-direction: column; }
.footer-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 28px 0 18px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.footer-trust div { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.footer-trust .ico { color: var(--brand); }
.footer-bottom { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }

/* Page hero */
.page-hero { background: var(--soft); border-bottom: 1px solid var(--line); padding: 22px 0; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { opacity: .5; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 10px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(22px, 2.8vw, 30px); }
.page-head p { font-size: 12.5px; color: var(--muted); margin: 4px 0 0; }

/* Shop */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: start; padding-top: 24px; }
.filters { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: sticky; top: 124px; }
.filter-group { border-top: 1px solid var(--line); padding: 12px 0; }
.filter-group:first-of-type { border-top: 0; padding-top: 0; }
.filter-group h3 { font-size: 12.5px; margin-bottom: 8px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar-info { font-size: 12.5px; color: var(--muted); }
.toolbar-actions { display: flex; align-items: center; gap: 8px; }
.select { appearance: none; border: 1px solid var(--line); background: var(--bg); border-radius: 9px; padding: 8px 12px; font-size: 12.5px; color: var(--text); min-width: 140px; }
.filter-toggle { display: none; }

/* Product page */
.product-page { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; padding-top: 22px; align-items: start; }
.gallery { position: sticky; top: 128px; }
.gallery-main { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius-lg); aspect-ratio: 1 / 1.12; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumb { width: 68px; height: 78px; border: 2px solid transparent; border-radius: 10px; background: var(--soft); padding: 0; overflow: hidden; flex: none; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb.is-active { border-color: var(--brand); }
.product-info h1 { font-size: clamp(21px, 2.4vw, 27px); margin-bottom: 6px; }
.product-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.product-summary { font-size: 13.5px; color: var(--muted); margin: 12px 0 18px; }
.buy-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--bg); }
.option-block { margin-bottom: 14px; }
.option-title { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 600; margin-bottom: 7px; }
.option-title span { font-size: 11px; color: var(--muted); font-weight: 400; }
.select-input { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--bg); color: var(--text); font-size: 13px; outline: none; }
.select-input:focus { border-color: var(--brand); }
.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.option-card {
    border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 11px;
    display: flex; align-items: center; gap: 8px; cursor: pointer; transition: border-color .2s, background .2s;
}
.option-card:hover { border-color: var(--brand-line); }
.option-card.is-active { border-color: var(--brand); background: var(--brand-soft); }
.option-card input { accent-color: var(--brand); }
.option-card div { flex: 1; min-width: 0; }
.option-card strong { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.option-card span { display: block; font-size: 10.5px; color: var(--muted); }
.option-card em { margin-inline-start: 6px; flex: none; font-size: 11px; color: var(--brand); font-style: normal; white-space: nowrap; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 4px; }
.price-row strong { font-size: 24px; font-weight: 700; }
.price-row del { font-size: 13px; color: var(--muted); }
.stock-line { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); margin-bottom: 12px; }
.stock-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.stock-dot.low { background: var(--warn); }
.stock-dot.out { background: var(--danger); }
.buy-row { display: flex; gap: 8px; align-items: stretch; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg); }
.qty button { width: 34px; height: 44px; border: 0; background: transparent; color: var(--text); display: inline-flex; align-items: center; justify-content: center; }
.qty button:hover { background: var(--soft); color: var(--brand); }
.qty input { width: 36px; border: 0; text-align: center; background: transparent; color: var(--text); font-weight: 600; }
.buy-row .btn { flex: 1; }
.assurance-row { display: flex; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.assurance-row span { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
.assurance-row .ico { color: var(--brand); }

.tabs { margin-top: 34px; border-top: 1px solid var(--line); }
.tab-buttons { display: flex; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab-btn { border: 0; background: transparent; padding: 8px 14px; border-radius: 8px; font-size: 13px; color: var(--muted); font-weight: 500; }
.tab-btn.is-active { background: var(--brand-soft); color: var(--brand); }
.tab-panel { display: none; padding: 20px 0; }
.tab-panel.is-active { display: block; }
.tab-panel p { font-size: 13.5px; color: var(--text); }
.detail-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 20px; }
.detail-list div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; font-size: 12.5px; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; font-weight: 500; }
.comment-list { display: flex; flex-direction: column; gap: 10px; }
.comment { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.comment-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 5px; }
.comment-author { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; }
.comment-date { font-size: 10.5px; color: var(--muted); }
.comment-body { font-size: 12.5px; margin: 0; color: var(--text); }

/* Designer */
.designer { padding-top: 22px; }
.config-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 18px; }
.config-card h2 { font-size: 17px; display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.config-card > p { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.step-badge { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.config-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 14px; }
.config-block h3 { font-size: 12.5px; margin-bottom: 7px; color: var(--muted); font-weight: 500; }
.brand-row { display: flex; gap: 6px; flex-wrap: wrap; }
.brand-pill { border: 1.5px solid var(--line); border-radius: 9px; padding: 7px 14px; font-size: 12.5px; background: var(--bg); color: var(--text); }
.brand-pill.is-active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.material-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.material-option { border: 1.5px solid var(--line); border-radius: 9px; padding: 8px 10px; font-size: 12px; display: flex; align-items: center; gap: 6px; cursor: pointer; min-width: 0; }
.material-option.is-active { border-color: var(--brand); background: var(--brand-soft); }
.material-option span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.material-option em { margin-inline-start: auto; font-size: 10px; color: var(--brand); font-style: normal; white-space: nowrap; flex: none; }

.designer-layout { display: grid; grid-template-columns: 1fr 380px; gap: 22px; align-items: start; margin-top: 22px; }
.designer-stage { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; min-height: 620px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.case-mock {
    position: relative;
    width: min(300px, 74%);
    aspect-ratio: 620 / 1186;
    filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .35));
}
.case-print {
    position: absolute;
    inset: 0.9% 1.2% 1.3% 1.2%;
    border-radius: 12.4% / 6.5%;
    overflow: hidden;
    background: #fff;
    z-index: 1;
}
.case-print::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(125deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 30%, rgba(255,255,255,.04) 70%, rgba(255,255,255,0) 100%);
}
.case-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
    pointer-events: none;
    user-select: none;
}
.case-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 12px; text-align: center; padding: 24px; }
.case-empty .ico { width: 30px; height: 30px; color: var(--brand); }
.stage-hint { font-size: 11.5px; color: var(--muted); }

.tools-panel { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; position: sticky; top: 128px; }
.tool-group { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 14px; }
.tool-group:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.tool-group h3 { font-size: 12.5px; margin-bottom: 9px; display: flex; align-items: center; gap: 6px; }
.upload-box { border: 1.5px dashed var(--line-2); border-radius: 11px; padding: 16px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.upload-box:hover, .upload-box.is-over { border-color: var(--brand); background: var(--brand-soft); }
.upload-box .ico { margin: 0 auto 6px; color: var(--brand); width: 26px; height: 26px; }
.upload-box strong { display: block; font-size: 12.5px; }
.upload-box span { font-size: 10.5px; color: var(--muted); }
.upload-box input { display: none; }
.upload-status { font-size: 11px; margin-top: 6px; color: var(--muted); }
.swatches { display: flex; gap: 7px; flex-wrap: wrap; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--bg); box-shadow: 0 0 0 1px var(--line-2); }
.swatch.is-active { box-shadow: 0 0 0 2px var(--brand); }
.text-input-row { display: grid; grid-template-columns: 1fr 40px; gap: 6px; margin-bottom: 6px; }
.sticker-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.sticker-btn { border: 1px solid var(--line); border-radius: 8px; background: var(--bg); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; color: var(--text); }
.sticker-btn:hover { border-color: var(--brand); color: var(--brand); }
.layer-list { display: flex; flex-direction: column; gap: 4px; }
.layer-item { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 11.5px; }
.layer-item span { flex: 1; }
.layer-item button { border: 0; background: transparent; color: var(--muted); padding: 2px; }
.layer-item button:hover { color: var(--danger); }
.designer-price { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); margin-top: 12px; }
.designer-price span { font-size: 11.5px; color: var(--muted); }
.designer-price strong { font-size: 20px; }

/* Cart */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: start; padding-top: 24px; }
.cart-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 10px; }
.cart-item > img { width: 84px; height: 98px; object-fit: contain; background: var(--soft); border-radius: 8px; }
.cart-item > img.is-print { width: 56px; height: 106px; object-fit: cover; border: 1px solid var(--line); }
.cart-title { font-size: 13.5px; font-weight: 600; }
.cart-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 11px; color: var(--muted); margin-top: 2px; }
.cart-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cart-price { font-weight: 700; font-size: 14px; }
.cart-remove { border: 0; background: transparent; color: var(--muted); font-size: 11px; display: inline-flex; align-items: center; gap: 3px; }
.cart-remove:hover { color: var(--danger); }
.summary { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: 128px; }
.summary h2 { font-size: 15px; margin-bottom: 10px; }
.summary-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; padding: 5px 0; color: var(--muted); }
.summary-row strong { color: var(--text); }
.summary-row.discount strong { color: var(--success); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.summary-total strong { font-size: 19px; }
.coupon-form { display: flex; gap: 6px; margin: 10px 0; }
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .ico { width: 46px; height: 46px; color: var(--brand); margin: 0 auto 10px; }
.empty-state h2 { font-size: 17px; margin-bottom: 4px; }
.empty-state p { font-size: 12.5px; color: var(--muted); }

/* Forms */
.field { margin-bottom: 12px; }
.label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 5px; }
.input, .textarea {
    width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px;
    background: var(--bg); color: var(--text); font-size: 13px; outline: none; transition: border-color .2s;
}
.input:focus, .textarea:focus { border-color: var(--brand); }
.textarea { min-height: 100px; resize: vertical; }
.field-hint { font-size: 10.5px; color: var(--muted); margin-top: 4px; }
.field-error { font-size: 11px; color: var(--danger); margin-top: 4px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 7px; font-size: 12.5px; cursor: pointer; }
.check input { accent-color: var(--brand); width: 16px; height: 16px; }
.alert { border-radius: 10px; padding: 10px 13px; font-size: 12.5px; margin-bottom: 12px; display: flex; gap: 8px; align-items: flex-start; }
.alert-error { background: var(--danger-soft); color: var(--danger); }
.alert-success { background: var(--success-soft); color: var(--success); }
.alert-info { background: var(--info-soft); color: var(--info); }

/* Checkout */
.checkout-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: start; padding-top: 24px; }
.check-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 12px; }
.check-card h2 { font-size: 15px; display: flex; align-items: center; gap: 7px; margin-bottom: 12px; }
.radio-card { display: flex; gap: 9px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 7px; cursor: pointer; }
.radio-card.is-active { border-color: var(--brand); background: var(--brand-soft); }
.radio-card input { accent-color: var(--brand); margin-top: 3px; }
.radio-card strong { display: block; font-size: 12.5px; }
.radio-card span { font-size: 11px; color: var(--muted); }
.radio-card .price { margin-inline-start: auto; font-size: 12px; font-weight: 600; white-space: nowrap; }
.order-mini { display: flex; flex-direction: column; gap: 9px; max-height: 300px; overflow: auto; }
.order-mini-item { display: flex; gap: 8px; align-items: center; }
.order-mini-item img { width: 42px; height: 50px; object-fit: contain; background: var(--soft); border-radius: 6px; }
.order-mini-item strong { display: block; font-size: 11.5px; }
.order-mini-item span { font-size: 10px; color: var(--muted); }
.order-mini-item > span:last-child { margin-inline-start: auto; font-size: 11.5px; }

/* Success / timeline */
.success-hero { text-align: center; padding: 40px 0 18px; }
.success-icon { width: 70px; height: 70px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.success-icon .ico { width: 34px; height: 34px; }
.success-hero h1 { font-size: clamp(21px, 2.6vw, 28px); }
.success-hero p { color: var(--muted); font-size: 13px; }
.order-code { display: inline-flex; align-items: center; gap: 6px; background: var(--brand-soft); color: var(--brand); border: 1px dashed var(--brand-line); padding: 7px 14px; border-radius: 99px; font-weight: 700; font-size: 13px; margin-top: 6px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 12px; }
.panel h2 { font-size: 15px; margin-bottom: 10px; }
.timeline { display: flex; margin: 16px 0 4px; overflow-x: auto; }
.timeline-step { flex: 1; min-width: 100px; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.timeline-step::after { content: ""; position: absolute; top: 15px; inset-inline-start: 50%; width: 100%; height: 2px; background: var(--line); }
.timeline-step:last-child::after { display: none; }
.timeline-step.is-done::after { background: var(--brand); }
.timeline-dot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; z-index: 1; }
.timeline-dot .ico { width: 14px; height: 14px; }
.timeline-step.is-done .timeline-dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.timeline-step.is-current .timeline-dot { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.timeline-label { font-size: 10.5px; color: var(--muted); text-align: center; }
.timeline-step.is-done .timeline-label, .timeline-step.is-current .timeline-label { color: var(--text); font-weight: 600; }
.kv { display: grid; grid-template-columns: 100px 1fr; gap: 6px 10px; font-size: 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.data-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.data-row:last-child { border-bottom: 0; }
.data-row strong { font-size: 12.5px; display: block; }
.data-row span { font-size: 10.5px; color: var(--muted); }
.data-main { display: flex; align-items: center; gap: 10px; }
.data-main img { width: 48px; height: 58px; object-fit: contain; background: var(--soft); border-radius: 6px; }

/* Badges & tables */
.badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 99px; font-size: 10.5px; font-weight: 600; background: var(--soft-2); color: var(--muted); white-space: nowrap; }
.badge.is-success { background: var(--success-soft); color: var(--success); }
.badge.is-warn { background: var(--warn-soft); color: var(--warn); }
.badge.is-danger { background: var(--danger-soft); color: var(--danger); }
.badge.is-info { background: var(--info-soft); color: var(--info); }
.badge.is-accent { background: var(--brand-soft); color: var(--brand); }
.badge.is-muted { background: var(--soft-2); color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.table { width: 100%; border-collapse: collapse; min-width: 620px; }
.table th, .table td { padding: 10px 12px; text-align: start; font-size: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { background: var(--soft); font-weight: 600; color: var(--muted); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table a { color: var(--brand); font-weight: 500; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 22px; flex-wrap: wrap; }
.page-btn { min-width: 34px; height: 34px; padding: 0 9px; border-radius: 8px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.page-btn:hover { border-color: var(--brand); color: var(--brand); }
.page-btn.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.page-dots { color: var(--muted); padding: 0 2px; }

/* Toast */
.toast-stack { position: fixed; bottom: 16px; inset-inline-start: 16px; z-index: 120; display: flex; flex-direction: column; gap: 7px; max-width: 340px; }
.toast { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 12.5px; animation: toastIn .25s var(--ease); }
@keyframes toastIn { from { transform: translateY(8px); opacity: 0; } }
.toast-success .toast-ico { color: var(--success); }
.toast-error .toast-ico { color: var(--danger); }
.toast-warn .toast-ico { color: var(--warn); }
.toast-info .toast-ico { color: var(--info); }
.toast-close { margin-inline-start: auto; border: 0; background: transparent; color: var(--muted); }

/* Auth */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside { background: radial-gradient(100% 100% at 20% 0%, #3A1608, #0C0C0E 60%); color: #F4EEE7; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-aside .logo-text strong { color: #fff; }
.auth-aside .logo-text small { color: #9C958E; }
.auth-aside h2 { color: #fff; font-size: clamp(24px, 2.6vw, 32px); margin: 34px 0 10px; }
.auth-aside p { color: rgba(255,255,255,.65); font-size: 13px; max-width: 40ch; }
.auth-points { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.auth-point { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: rgba(255,255,255,.8); }
.auth-point .ico { color: var(--brand-2); }
.auth-foot { font-size: 11px; color: rgba(255,255,255,.4); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 36px 20px; }
.auth-card { width: min(410px, 100%); }
.auth-card h1 { font-size: 24px; margin-bottom: 4px; }
.auth-sub { color: var(--muted); font-size: 12.5px; margin-bottom: 20px; }
.auth-switch { font-size: 12px; color: var(--muted); text-align: center; margin-top: 16px; }
.auth-switch a { color: var(--brand); font-weight: 600; }
.auth-note { font-size: 10.5px; color: var(--muted); margin-top: 12px; text-align: center; }
.auth-logo { display: none; margin-bottom: 18px; }
.otp-input { letter-spacing: 10px; text-align: center; font-size: 20px; font-weight: 700; direction: ltr; }
.resend-row { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.resend-row button { border: 0; background: transparent; color: var(--brand); font-weight: 600; }
.resend-row button[disabled] { color: var(--muted); }

/* Account */
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 22px; align-items: start; padding: 24px 0 50px; }
.account-side { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: sticky; top: 128px; }
.account-user { display: flex; align-items: center; gap: 9px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.account-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.account-user strong { display: block; font-size: 12.5px; }
.account-user span { font-size: 10.5px; color: var(--muted); }
.account-nav { display: flex; flex-direction: column; gap: 1px; }
.account-nav a { display: flex; align-items: center; gap: 7px; padding: 9px 10px; border-radius: 8px; font-size: 12.5px; color: var(--text); }
.account-nav a:hover { background: var(--soft); color: var(--brand); }
.account-nav a.is-active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.account-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.account-head h1 { font-size: 20px; }
.account-head p { font-size: 11.5px; color: var(--muted); margin: 2px 0 0; }
.account-panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.account-panel h2 { font-size: 14px; margin-bottom: 10px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.mini-stat { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.mini-stat span { font-size: 10.5px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.mini-stat strong { display: block; font-size: 20px; margin-top: 2px; }

/* Blog / prose */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.post-cover { aspect-ratio: 16 / 10; background: var(--soft); display: block; }
.post-cover img { width: 100%; height: 100%; object-fit: contain; }
.post-body { padding: 12px 14px 16px; }
.post-body h2 { font-size: 14px; margin-bottom: 4px; }
.post-body p { font-size: 11.5px; color: var(--muted); }
.post-meta { display: flex; gap: 8px; font-size: 10.5px; color: var(--muted); margin-top: 8px; flex-wrap: wrap; }
.prose { max-width: 800px; margin-inline: auto; font-size: 13.5px; color: var(--text); }
.prose h2 { font-size: 20px; margin: 24px 0 8px; }
.prose h3 { font-size: 16px; margin: 18px 0 6px; }
.prose p { margin-bottom: 12px; }
.prose ul { list-style: disc; padding-inline-start: 20px; margin-bottom: 12px; }
.prose img { border-radius: 12px; margin: 14px 0; }
.prose blockquote { border-inline-start: 3px solid var(--brand); padding-inline-start: 12px; color: var(--muted); }

/* 404 */
.error-page { text-align: center; padding: 70px 20px; }
.error-code { font-size: clamp(80px, 12vw, 130px); font-weight: 700; color: var(--brand); line-height: 1; }
.error-page h1 { font-size: 20px; margin: 6px 0; }
.error-page p { color: var(--muted); font-size: 13px; margin-bottom: 18px; }

/* Admin */
.admin-body { background: var(--soft); }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-sidebar { background: #0C0C0E; color: #C9C3BC; padding: 16px 12px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-brand { display: flex; align-items: center; gap: 9px; padding: 0 6px 12px; border-bottom: 1px solid #1F1F24; }
.admin-brand img { width: 38px; height: 38px; border-radius: 50%; background: #fff; }
.admin-brand strong { color: #fff; font-size: 14px; letter-spacing: 1px; }
.admin-brand small { display: block; font-size: 10px; color: #7C756E; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav-group { font-size: 10px; color: #6E6761; padding: 12px 10px 4px; font-weight: 600; }
.admin-nav a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; font-size: 12.5px; color: #B9B2AC; }
.admin-nav a:hover { background: #17171B; color: #fff; }
.admin-nav a.is-active { background: rgba(255, 90, 10, .16); color: #FFAF8A; }
.admin-nav .ico { width: 17px; height: 17px; }
.admin-sidebar-foot { margin-top: auto; border-top: 1px solid #1F1F24; padding-top: 10px; display: flex; flex-direction: column; gap: 1px; }
.admin-sidebar-foot a { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: #8C857E; padding: 6px 8px; border-radius: 6px; }
.admin-sidebar-foot a:hover { color: #fff; background: #17171B; }
.admin-main { min-width: 0; display: flex; flex-direction: column; }
.admin-topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 22px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.admin-topbar h1 { font-size: 16px; }
.admin-topbar .crumb { font-size: 10px; color: var(--muted); }
.admin-user { display: flex; align-items: center; gap: 7px; }
.admin-user .avatar { width: 32px; height: 32px; font-size: 11px; }
.admin-user strong { font-size: 11.5px; display: block; }
.admin-user span { font-size: 9.5px; color: var(--muted); }
.admin-content { padding: 20px 22px 40px; }
.admin-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.stat-card { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; gap: 10px; align-items: flex-start; }
.stat-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.stat-card span { font-size: 10.5px; color: var(--muted); }
.stat-card strong { display: block; font-size: 18px; margin-top: 1px; }
.stat-card small { font-size: 10px; color: var(--muted); }
.admin-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; }
.card-box { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.card-box h2 { font-size: 13.5px; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chart { display: flex; align-items: flex-end; gap: 3px; height: 160px; padding-top: 8px; }
.chart-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.chart-bar span { width: 100%; background: var(--brand); border-radius: 3px 3px 1px 1px; min-height: 2px; opacity: .85; }
.chart-bar:hover span { opacity: 1; }
.chart-bar em { font-size: 7px; color: var(--muted); font-style: normal; }
.chart-legend { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-top: 4px; }
.admin-form { max-width: 960px; }
.form-card { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.form-card h2 { font-size: 13.5px; margin-bottom: 12px; }
.variant-table { width: 100%; border-collapse: collapse; }
.variant-table th, .variant-table td { padding: 4px; }
.variant-table th { font-size: 10px; color: var(--muted); font-weight: 500; }
.image-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.image-item { width: 72px; height: 86px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--soft); }
.image-item img { width: 100%; height: 100%; object-fit: contain; }
.admin-filters { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.admin-filters .input, .admin-filters .select { padding: 8px 10px; font-size: 11.5px; max-width: 200px; }
.search-box-sm { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.admin-tabs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.admin-tab { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); font-size: 11.5px; background: var(--bg); }
.admin-tab.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.admin-empty { padding: 24px; text-align: center; color: var(--muted); font-size: 12px; }
.detail-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; align-items: start; }
.message-list { display: flex; flex-direction: column; gap: 8px; max-height: 380px; overflow: auto; }
.message { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--soft); }
.message.is-admin { background: var(--brand-soft); border-color: var(--brand-line); }
.message-head { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-bottom: 3px; }
.message p { margin: 0; font-size: 12px; }
.upload-thumb { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.crop-info { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11px; color: var(--muted); margin-top: 8px; }
.inline-rows { display: flex; flex-direction: column; gap: 6px; }
.inline-row { display: grid; grid-template-columns: 1fr 1.6fr .8fr 1.2fr auto; gap: 6px; align-items: center; }
.inline-row.custom-size { grid-template-columns: 1.4fr 1fr auto; }
.inline-row.custom-color { grid-template-columns: 1.2fr .8fr 1fr auto; }
.row-remove { border: 0; background: var(--danger-soft); color: var(--danger); width: 30px; height: 30px; border-radius: 8px; }
.settings-section { margin-bottom: 12px; }
.settings-section > h2 { font-size: 13.5px; margin-bottom: 8px; }
.invoice { max-width: 800px; margin: 24px auto; background: #fff; color: #111; padding: 28px; }
.invoice h1 { font-size: 18px; }
.invoice table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.invoice th, .invoice td { border-bottom: 1px solid #eee; padding: 7px 5px; font-size: 11px; text-align: start; }
.invoice-total { display: flex; justify-content: space-between; font-weight: 700; margin-top: 12px; }
.print-actions { text-align: center; margin: 14px; }

@media print {
    .no-print, .admin-sidebar, .admin-topbar { display: none !important; }
    body { background: #fff; }
    .invoice { margin: 0; padding: 0; }
}

/* Responsive */
@media (max-width: 1180px) {
    .cat-grid { grid-template-columns: repeat(4, 1fr); }
    .header-search { max-width: 360px; }
}
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .material-grid { grid-template-columns: repeat(2, 1fr); }
    .designer-layout { grid-template-columns: 1fr; }
    .tools-panel { position: static; }
    .product-page { grid-template-columns: 1fr; }
    .gallery { position: static; }
    .cart-layout, .checkout-grid, .shop-layout { grid-template-columns: 1fr; }
    .filters { position: static; display: none; }
    .filters.is-open { display: block; }
    .filter-toggle { display: inline-flex; }
    .account-layout { grid-template-columns: 1fr; }
    .account-side { position: static; }
    .config-grid { grid-template-columns: 1fr 1fr; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: fixed; inset-inline-start: 0; top: 0; width: 250px; z-index: 70; transform: translateX(100%); transition: transform .25s var(--ease); }
    .admin-shell.sidebar-open .admin-sidebar { transform: translateX(0); }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-grid, .detail-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-trust { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
    .auth-logo { display: inline-flex; }
}
@media (max-width: 900px) {
    .header-search { display: none; }
    .nav-main { display: none; }
    .header-main { height: 66px; gap: 10px; }
    .menu-toggle { display: inline-flex; }
    .navbar { display: none; }
    .head-action span { display: none; }
    .head-action { padding: 8px; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { min-height: 360px; max-width: 460px; margin-inline: auto; width: 100%; }
    .product-page { gap: 20px; }
    .custom-band { grid-template-columns: 1fr; padding: 26px; }
    .custom-visual { min-height: 260px; }
    .testimonial-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .steps { gap: 8px; }
    .step-line { display: none; }
    .step { gap: 6px; }
    .step span { display: none; }
    .designer-stage { min-height: 500px; padding: 18px; }
}
@media (max-width: 640px) {
    :root { --header-h: 100px; }
    .container { padding-inline: 14px; }
    .topbar-phone { display: none; }
    .topbar-inner { justify-content: center; }
    .hero { padding-top: 26px; }
    .hero-copy h1 { font-size: 31px; }
    .hero-copy p { font-size: 13.5px; }
    .hero-visual { min-height: 300px; }
    .hero-actions .btn { flex: 1; }
    .section { padding: 38px 0; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .material-grid { grid-template-columns: 1fr 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .config-grid { grid-template-columns: 1fr; }
    .option-grid, .material-options { grid-template-columns: 1fr; }
    .cart-item { grid-template-columns: 66px 1fr; }
    .cart-item > img { width: 66px; height: 78px; }
    .cart-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
    .footer-top { grid-template-columns: 1fr; gap: 18px; }
    .footer-trust { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; }
    .blog-grid { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .admin-content { padding: 14px 12px 30px; }
    .admin-topbar { padding: 10px 12px; }
    .account-nav { display: grid; grid-template-columns: 1fr 1fr; }
    .designer-stage { min-height: 420px; }
    .case-mock { width: 76%; }
    .toast-stack { inset-inline: 10px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* theme toggle */
.theme-toggle { width: 38px; height: 38px; border: 1px solid var(--line); }
.theme-toggle .theme-icon { display: inline-flex; align-items: center; justify-content: center; }
.theme-toggle .theme-moon { display: none; }
[data-theme="dark"] .theme-toggle .theme-sun { display: none; }
[data-theme="dark"] .theme-toggle .theme-moon { display: inline-flex; }
.drawer-theme {
    display: flex; align-items: center; gap: 7px; width: 100%;
    border: 1px solid var(--line); background: var(--soft); color: var(--text);
    border-radius: 8px; padding: 9px 10px; font-size: 12px; margin-bottom: 8px;
}
.drawer-theme:hover { border-color: var(--brand); color: var(--brand); }
