@font-face { font-family: 'Vazirmatn'; src: url('/public/fonts/Vazirmatn-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/public/fonts/Vazirmatn-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/public/fonts/Vazirmatn-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root { --primary: #0d2d5e; --accent: #0f6bd0; --bg: #f7f9fc; --card: #eef1f6; --border: #e3e7ee; --text: #17233b; --muted: #6b7a90; --logo-h: 44px; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: Vazirmatn, Tahoma, sans-serif; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.8; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 13px; color: var(--text); }
.container { max-width: 1184px; margin-inline: auto; padding-inline: 16px; }
.muted { color: var(--muted); }
svg { flex-shrink: 0; vertical-align: middle; }

/* ---------- header ---------- */
.topbar { background: var(--primary); color: #fff; font-size: 12px; }
.topbar-inner { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 26px; padding-block: 8px; }
.tb-links { display: flex; align-items: center; gap: 26px; min-width: 0; }
.topbar-inner a { display: flex; align-items: center; gap: 6px; opacity: .92; }
.topbar-inner a:hover { opacity: 1; text-decoration: underline; }
.topbar-logout { display: flex; }
.topbar-logout button { display: flex; align-items: center; gap: 6px; opacity: .92; color: inherit; font: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.topbar-logout button:hover { opacity: 1; text-decoration: underline; }
.tb-quotes { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; overflow: hidden; }
.tb-q-mark { display: inline-flex; color: #7fa9dd; opacity: .85; }
.tb-q-view { position: relative; flex: 1 1 auto; min-width: 0; height: 22px; }
.tb-q { position: absolute; inset-inline: 0; top: 0; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; line-height: 22px; color: #dce8f8; opacity: 0; transform: translateY(5px); transition: opacity .55s ease, transform .55s ease; will-change: opacity, transform; }
.tb-q b { font-weight: 500; color: #9dc0e8; }
.tb-q.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .tb-q { transition: none; transform: none; } }
.header { background: #fff; box-shadow: 0 1px 0 var(--border); position: sticky; top: 0; z-index: 30; }
.header-beam { position: absolute; inset-inline: 0; bottom: 0; height: 22px; background: radial-gradient(ellipse 120px 24px at 50% 100%, #9fb0c452, #9fb0c400 72%); background-size: 28% 100%; background-repeat: no-repeat; animation: headerSweep 9s linear infinite; pointer-events: none; }
.header::before { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, #8d9cae00, #8d9cae99 16%, #d5dfe9 50%, #8d9cae99 84%, #8d9cae00); opacity: .3; pointer-events: none; }
.header::after { content: ''; position: absolute; inset-inline: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, #93a2b400, #93a2b4 18%, #ffffff 50%, #93a2b4 82%, #93a2b400); background-size: 28% 100%; background-repeat: no-repeat; filter: drop-shadow(0 0 4px #c3cfdcaa) drop-shadow(0 0 10px #c3cfdc55); animation: headerSweep 9s linear infinite; pointer-events: none; z-index: 1; }
@keyframes headerSweep { from { background-position: -70% 0; } to { background-position: 170% 0; } }
@media (prefers-reduced-motion: reduce) { .header-beam { animation: none; background-position: 50% 0; opacity: .4; } .header::after { animation: none; background-position: 50% 0; opacity: .5; } }
.header-main { display: flex; align-items: center; gap: 22px; padding-block: 14px; }
.logo img { height: var(--logo-h); display: block; }
.search { flex: 1; max-width: 560px; margin-inline: auto; position: relative; }
.search input { width: 100%; background: var(--card); border: 1px solid transparent; border-radius: 10px; padding: 10px 16px; padding-inline-start: 44px; outline: none; }
.search input:focus { border-color: var(--accent); background: #fff; }
.search button { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.suggest { position: absolute; top: calc(100% + 8px); inset-inline: 0; z-index: 60; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 18px 44px #0d2d5e2b; max-height: min(430px, 62vh); overflow-y: auto; padding: 6px; scrollbar-width: thin; scrollbar-color: #b9c9de #e8edf4; }
.suggest::-webkit-scrollbar { width: 8px; }
.suggest::-webkit-scrollbar-track { background: #e8edf4; border-radius: 8px; }
.suggest::-webkit-scrollbar-thumb { background: #b9c9de; border-radius: 8px; }
.suggest::-webkit-scrollbar-thumb:hover { background: var(--accent); }
.sg-head { font-size: 10.5px; font-weight: 800; color: var(--muted); padding: 8px 10px 4px; }
.sg-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--text); }
.sg-item:hover, .sg-item.on { background: #e8f1fb; }
.sg-img { width: 42px; height: 42px; border-radius: 8px; background: #f4f7fb; object-fit: contain; flex: 0 0 42px; border: 1px solid #edf1f7; }
.sg-ic { width: 42px; height: 42px; border-radius: 8px; background: #e8f1fb; color: var(--accent); display: flex; align-items: center; justify-content: center; flex: 0 0 42px; }
.sg-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sg-t { font-size: 12.5px; font-weight: 700; }
.sg-t mark { background: #ffd76a66; color: inherit; border-radius: 3px; padding: 0 1px; }
.sg-s { font-size: 10.5px; color: var(--muted); }
.sg-empty { padding: 14px 12px; font-size: 12px; color: var(--muted); }
.sg-all { display: flex; align-items: center; gap: 6px; margin-top: 4px; padding: 10px 12px; border-top: 1px solid var(--border); color: var(--accent); font-size: 12px; font-weight: 800; border-radius: 0 0 10px 10px; }
.sg-all:hover, .sg-all.on { background: #e8f1fb; }
.cart-link { display: flex; align-items: center; gap: 8px; font-weight: 500; white-space: nowrap; }
.cart-count { background: var(--accent); color: #fff; min-width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.menu-btn { display: none; color: var(--primary); }
.nav { border-top: 1px solid var(--border); }
.nav-inner { display: flex; gap: 6px; align-items: center; padding-block: 6px; }
.nav-item { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 500; color: #2a3a55; }
.nav-item:hover { background: var(--card); }
.nav-item.active { background: var(--primary); color: #fff; }
.nav-drop-btn { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: inherit; cursor: pointer; }
.has-drop { position: relative; }
.has-drop .drop { display: none; position: absolute; top: 100%; inset-inline-start: 0; background: #fff; border-radius: 10px; box-shadow: 0 10px 30px #0d2d5e22; min-width: 200px; padding: 8px; z-index: 40; }
.has-drop:hover .drop, .has-drop:focus-within .drop, .has-drop.open .drop { display: block; }
.drop a { display: block; padding: 7px 12px; border-radius: 6px; font-size: 12px; }
.drop a:hover { background: var(--card); color: var(--accent); }
.mobile-menu { display: none; flex-direction: column; background: #fff; border-top: 1px solid var(--border); padding: 10px 16px; gap: 4px; }
.mobile-menu a { padding: 9px 10px; border-radius: 8px; font-size: 13px; display: flex; gap: 8px; align-items: center; }
.mobile-menu a:hover { background: var(--card); }
.mm-head { display: block; padding: 9px 10px 3px; font-size: 12px; font-weight: 700; color: var(--muted); }
.mobile-menu a.mm-sub { padding-inline-start: 26px; font-size: 12.5px; color: #2a3a55; }
.mobile-menu.open { display: flex; }
.nav-deal { margin-inline-start: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding-inline-start: 16px; border-inline-start: 1px solid var(--border); }
.nd-top { display: flex; align-items: center; gap: 10px; }
.nd-phone { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.nd-phone svg { color: var(--accent); }
.nd-phone:hover { color: var(--accent); }
.nd-wa { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: #e8f8ee; border: 1px solid #bde9cc; color: #128a3d; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.nd-wa:hover { background: #d8f3e2; }
.nd-text { font-size: 10px; line-height: 1.5; color: var(--muted); }
@media (max-width: 1100px) {
  .nav-deal { padding-inline-start: 12px; }
  .nd-text { font-size: 9.5px; max-width: 225px; }
}
.nav-mdeal { display: none; }
@media (max-width: 900px) {
  .nav-mdeal { display: flex; align-items: center; gap: 8px; padding-block: 7px; }
  .nmd-txt { flex: 1 1 auto; min-width: 0; font-size: 9.5px; line-height: 1.65; color: var(--muted); }
  .nmd-phone { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 11px; border-radius: 10px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; box-shadow: 0 2px 8px #0d2d5e2e; }
  .nmd-phone svg { color: #a9c8ee; }
  .nmd-wa { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 9px; border-radius: 10px; background: #e8f8ee; border: 1px solid #bde9cc; color: #128a3d; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
}
@media (max-width: 340px) {
  .nav-mdeal { justify-content: space-between; gap: 10px; }
  .nmd-txt { display: none; }
  .nmd-phone { flex: 1 1 auto; justify-content: center; }
}

/* ---------- slider ---------- */
.slider { position: relative; width: 100%; aspect-ratio: 1184 / 335; max-height: 480px; min-height: 250px; overflow: hidden; background: #dfe7f2; }
.slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; transition: opacity .7s ease; pointer-events: none; }
.slide.current { opacity: 1; pointer-events: auto; }
.slide > img, .slide > picture img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.slide-content { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; padding-inline: 5%; }
.slide-text { max-width: 430px; text-align: center; color: var(--primary); }
.slide-logo { height: 62px; width: auto; max-width: 72%; object-fit: contain; margin-bottom: 6px; }
.slide-text h2 { font-size: 34px; font-weight: 700; line-height: 1.4; }
.slide-text p { font-size: 17px; font-weight: 500; margin-bottom: 16px; }
.slide-btn { display: inline-flex; align-items: center; gap: 8px; }
.sl-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; background: #ffffffd9; color: var(--primary); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px #0002; opacity: 0; transition: opacity .3s; z-index: 5; }
.slider:hover .sl-arrow { opacity: 1; }
.sl-arrow.prev { inset-inline-start: 14px; }
.sl-arrow.next { inset-inline-end: 14px; }
.sl-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; z-index: 5; }
.sl-dots button { position: relative; width: 30px; height: 14px; background: none; transition: width .35s ease; }
.sl-dots button::after { content: ''; position: absolute; inset-inline: 0; top: 50%; height: 3px; transform: translateY(-50%); border-radius: 999px; background: #ffffffe6; box-shadow: 0 0 0 1px #0d2d5e5c, 0 1px 3px #0000003d; transition: background .3s; }
.sl-dots button.on { width: 46px; }
.sl-dots button.on::after { background: var(--primary); box-shadow: 0 0 0 1.5px #ffffffd9, 0 1px 4px #0000004d; }
.sl-dots button:hover::after { background: #fff; }
.sl-dots button:focus-visible::after { background: #fff; }
@property --slide-ring { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.slide.current::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; padding: 3px; background: conic-gradient(from var(--slide-ring), #3c5a8200 0deg 230deg, #3c5f8a59 270deg, #2f6ea8 300deg, #7fb8ea 325deg, #eaf6ff 342deg, #ffffff 350deg, #dceeff 356deg, #6fa8d8 4deg, #35678f 14deg, #345a8240 26deg, #3c5a8200 46deg); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; filter: blur(6px); opacity: .9; animation: slideRingSpin 5s linear infinite; }
.slide.current::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; padding: 3px; background: conic-gradient(from var(--slide-ring), #3c5a8200 0deg 230deg, #3c5f8a59 270deg, #2f6ea8 300deg, #7fb8ea 325deg, #eaf6ff 342deg, #ffffff 350deg, #dceeff 356deg, #6fa8d8 4deg, #35678f 14deg, #345a8240 26deg, #3c5a8200 46deg); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; filter: drop-shadow(0 0 4px #bfe0ffcc) drop-shadow(0 0 12px #2f7fc8aa); animation: slideRingSpin 5s linear infinite; }
@keyframes slideRingSpin { from { --slide-ring: 0deg; } to { --slide-ring: 360deg; } }
@media (prefers-reduced-motion: reduce) { .slide.current::before, .slide.current::after { animation: none; --slide-ring: 310deg; } }

/* ---------- categories ---------- */
.cats-section { margin-block: 24px 16px; }
.cats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cats-grid.big { grid-template-columns: repeat(3, 1fr); margin-block: 20px; }
.cat-card { background: var(--card); border-radius: 12px; padding: 16px 14px 12px; display: block; transition: box-shadow .25s, transform .25s; }
.cat-card:hover { box-shadow: 0 8px 22px #0d2d5e18; transform: translateY(-2px); }
.cat-card img { height: 110px; width: 100%; object-fit: contain; }
.cats-grid.big img { height: 170px; }
.cat-foot { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 13px; margin-top: 10px; }
.cat-arrow { width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- category banners ---------- */
.cats-banner { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cats-banner[data-count="4"] { grid-template-columns: repeat(4, 1fr); }
.cats-banner[data-count="3"] { grid-template-columns: repeat(3, 1fr); }
.cats-banner[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; }
.cats-banner[data-count="1"] { grid-template-columns: minmax(0, 380px); justify-content: center; }
.cat-box { position: relative; overflow: hidden; display: flex; flex-direction: column; aspect-ratio: 1 / 1; border-radius: 18px; padding: 14px; color: #fff; box-shadow: 0 6px 18px #0d2d5e1f; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; animation: catIn .55s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: calc(var(--i) * 80ms); }
.cat-box:hover { transform: translateY(-5px); box-shadow: 0 16px 34px #0d2d5e33; }
.cb-glow { position: absolute; inset: 0; background: radial-gradient(120% 90% at 85% -10%, var(--glow), transparent 62%); pointer-events: none; }
.cb-0 { background: linear-gradient(150deg, #343b44, #171c22 55%, #0b0e12); --glow: #4da3ff40; }
.cb-1 { background: linear-gradient(150deg, #1a4fa0, #123a7a 55%, #091f42); --glow: #35a2ff4d; }
.cb-2 { background: linear-gradient(150deg, #f6efe5, #e7dbcb 55%, #d8c7b2); --glow: #ffffff99; color: #2a2118; }
.cb-3 { background: linear-gradient(150deg, #1fd1ac, #0ea88a 55%, #0b7f6b); --glow: #ffffff40; }
.cb-4 { background: linear-gradient(150deg, #f0569b, #c2256c 55%, #8f1250); --glow: #ffd76a40; }
.cb-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.cat-box:hover .cb-photo { transform: scale(1.05); }
.cb-foot { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding-top: 10px; margin-top: auto; }
.cb-foot strong { font-size: 15px; font-weight: 800; line-height: 1.5; }
.cb-count { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; border-radius: 999px; padding: 3px 10px; background: #ffffff24; border: 1px solid #ffffff33; }
.cb-count svg { transition: transform .3s; }
.cat-box:hover .cb-count svg { transform: translateX(-3px); }
.cb-2 .cb-count { background: #2a211812; border-color: #2a211826; }
@keyframes catIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 1100px) {
  .cats-banner { grid-template-columns: repeat(6, 1fr); gap: 12px; }
  .cats-banner[data-count="4"], .cats-banner[data-count="3"] { grid-template-columns: repeat(6, 1fr); }
  .cats-banner[data-count="5"] .cat-box:nth-child(-n+3) { grid-column: span 2; }
  .cats-banner[data-count="5"] .cat-box:nth-child(n+4) { grid-column: span 3; aspect-ratio: 1.5 / 1; }
  .cats-banner[data-count="4"] .cat-box { grid-column: span 3; aspect-ratio: 1.5 / 1; }
  .cats-banner[data-count="3"] .cat-box { grid-column: span 2; }
  .cats-banner[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
  .cats-banner[data-count="2"] .cat-box { aspect-ratio: 1.5 / 1; }
  .cats-banner[data-count="1"] { grid-template-columns: minmax(0, 420px); }
  .cb-foot strong { font-size: 13px; }
}
@media (max-width: 640px) {
  .cats-banner { gap: 8px; }
  .cat-box { padding: 8px; border-radius: 12px; }
  .cats-banner[data-count="5"] .cat-box:nth-child(n+4) { aspect-ratio: 1.55 / 1; }
  .cats-banner[data-count="4"] .cat-box { aspect-ratio: 1.55 / 1; }
  .cats-banner[data-count="2"] .cat-box { aspect-ratio: 1.55 / 1; }
  .cats-banner[data-count="1"] { grid-template-columns: minmax(0, 260px); }
  .cb-foot { padding-top: 4px; gap: 4px; }
  .cb-foot strong { font-size: 11px; line-height: 1.45; }
  .cb-count { display: none; }
}
@media (prefers-reduced-motion: reduce) { .cat-box, .cb-photo { animation: none; transition: none; } }

/* ---------- benefits ---------- */
.benefits { background: #e8edf4; border-radius: 12px; display: grid; grid-template-columns: repeat(4, 1fr); margin-block: 8px 24px; }
.benefit { display: flex; align-items: center; gap: 12px; padding: 16px 20px; color: var(--primary); }
.benefit + .benefit { border-inline-start: 1px solid #d5dde8; }
.benefit strong { display: block; font-size: 14px; }
.benefit span { display: block; font-size: 11px; color: var(--muted); }

/* ---------- sections / products ---------- */
.section-head { background: linear-gradient(90deg, var(--primary), #123a7a); color: #fff; border-radius: 8px; padding: 9px 16px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-head.plain { background: none; color: var(--primary); border-bottom: 2px solid var(--border); border-radius: 0; margin-top: 28px; }
.sh-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.sh-title svg { color: #ffc53d; }
.section-head.plain .sh-title svg { color: var(--accent); }
.view-all { display: flex; align-items: center; gap: 6px; font-size: 11px; border: 1px solid #ffffff55; border-radius: 6px; padding: 5px 12px; }
.view-all:hover { background: #ffffff1a; }
.discounted, .amazing, .bestsellers { margin-block: 24px; }
.discounted .section-head, .bestsellers .section-head { background: linear-gradient(90deg, var(--accent), var(--primary)); }
.amazing-box { position: relative; overflow: hidden; border-radius: 16px; padding: 16px; background: linear-gradient(225deg, #ff6b6b 0%, #e5484d 32%, #b31b26 68%, #7d0f1c 100%); box-shadow: 0 12px 32px #e5484d40, inset 0 1px 0 #ffffff33; }
.amazing-box::before { content: ''; position: absolute; inset: 0; background: radial-gradient(560px 220px at 88% -30%, #ffffff30, transparent 70%); pointer-events: none; }
.amazing .section-head { position: relative; background: none; padding: 2px 4px; margin-bottom: 14px; }
.amazing .sh-title { font-size: 16px; }
.amazing .sh-title svg { color: #ffd76a; }
.amazing-note { font-size: 11px; background: #ffffff24; border: 1px solid #ffffff33; border-radius: 999px; padding: 4px 12px; }
.amazing .p-card { box-shadow: 0 6px 18px #00000029; }
.amazing .row-scroll { background: #fff; color: #c22530; }
.amazing .row-scroll:hover { background: #ffe3e3; }
.amazing .products-row { padding-bottom: 8px; }
@media (max-width: 640px) { .amazing-box { padding: 12px; border-radius: 12px; } }
.row-wrap { position: relative; }
.products-row { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; cursor: grab; }
.products-row.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.products-row img { -webkit-user-drag: none; }
.products-row::-webkit-scrollbar { display: none; }
.products-row .p-card { flex: 0 0 calc((100% - 64px) / 4.5); scroll-snap-align: start; }
.row-wrap:has(.p-card:only-child) .row-scroll, .row-wrap.no-scroll .row-scroll { display: none; }
.row-scroll { position: absolute; top: 45%; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; z-index: 6; box-shadow: 0 3px 10px #0003; }
.row-scroll.r { inset-inline-start: -10px; }
.row-scroll.l { inset-inline-end: -10px; }

/* ---------- category amazing boxes ---------- */
.cat-amazing .amazing-box { background: linear-gradient(225deg, var(--ab-1) 0%, var(--ab-2) 34%, var(--ab-3) 68%, var(--ab-4) 100%); box-shadow: 0 12px 32px var(--ab-shadow, #00000033), inset 0 1px 0 #ffffff2e; }
.cat-amazing .amazing-box::before { background: radial-gradient(560px 220px at 88% -30%, var(--ab-glow, #ffffff2e), transparent 70%); }
.cat-amazing .sh-title svg { color: var(--ab-icon, #ffd76a); }
.cat-amazing .row-scroll { background: #fff; color: var(--ab-accent, #c22530); }
.cat-amazing .row-scroll:hover { background: #fff; }
.cat-amazing .p-card { box-shadow: 0 6px 18px var(--ab-shadow, #00000029); }
.ab-side { display: flex; align-items: center; gap: 10px; }
.ab-0 { --ab-1: #5b6774; --ab-2: #343b44; --ab-3: #171c22; --ab-4: #0b0e12; --ab-accent: #6fb6ff; --ab-glow: #4da3ff3d; --ab-shadow: #0b0e1240; }
.ab-1 { --ab-1: #2f74d8; --ab-2: #1a4fa0; --ab-3: #123a7a; --ab-4: #091f42; --ab-accent: #8fc2ff; --ab-glow: #35a2ff47; --ab-shadow: #123a7a47; }
.ab-2 { --ab-1: #fbf5ea; --ab-2: #efdfc9; --ab-3: #e3d0b6; --ab-4: #d3bd9e; --ab-accent: #a06a33; --ab-icon: #a16207; --ab-glow: #ffffffb3; --ab-shadow: #7a5f3d2e; color: #2a2118; }
.ab-3 { --ab-1: #28dcb2; --ab-2: #0fb392; --ab-3: #0a8a72; --ab-4: #076756; --ab-accent: #0b7f6b; --ab-glow: #ffffff3d; --ab-shadow: #0a8a7247; }
.ab-4 { --ab-1: #f56aa0; --ab-2: #d92e79; --ab-3: #b31d61; --ab-4: #841146; --ab-accent: #c2256c; --ab-glow: #ffd76a3d; --ab-shadow: #b31d6147; }
.ab-2 .section-head { color: #2a2118; }
.ab-2 .amazing-note { background: #2a21181a; border-color: #2a21182e; color: #3b2d1f; }
.ab-2 .view-all { border-color: #2a211840; color: #2a2118; }
.ab-2 .view-all:hover { background: #2a21180f; }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-block: 18px; }
.p-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px; position: relative; display: flex; flex-direction: column; transition: box-shadow .25s; }
.p-card:hover { box-shadow: 0 8px 22px #0d2d5e14; }
.fav-form { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; }
.fav-btn { color: #98a9c0; display: flex; padding: 4px; }
.fav-btn:hover, .fav-btn.active { color: #e0447c; }
.p-img { display: block; }
.p-img img { height: 150px; width: 100%; object-fit: contain; }
.p-title { font-size: 13px; font-weight: 600; min-height: 42px; display: block; margin-top: 6px; }
.p-title:hover { color: var(--accent); }
.p-price { margin-block: 4px 10px; }
.price-top { display: flex; align-items: center; gap: 8px; min-height: 20px; }
.off-badge { background: #e5484d; color: #fff; border-radius: 8px; font-size: 11px; padding: 1px 7px; font-weight: 700; }
.old { color: #9aa7b8; text-decoration: line-through; font-size: 11px; }
.price { font-size: 14px; font-weight: 700; }
.add-btn { width: 100%; background: var(--primary); color: #fff; border-radius: 6px; padding: 8px 10px; font-size: 12px; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: auto; }
.add-btn:hover { background: #123a7a; }
.add-btn:disabled { background: #9aa7b8; cursor: not-allowed; }

/* ---------- footer ---------- */
.footer { background: var(--primary); color: #dbe4f9; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr; gap: 32px; padding-block: 34px 26px; }
.f-col h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.f-col p { font-size: 12px; color: #b9c6e2; margin-bottom: 12px; }
.f-col a { display: block; font-size: 12px; color: #b9c6e2; margin-block: 7px; }
.f-col a:hover { color: #fff; }
.news-form { display: flex; gap: 8px; }
.news-form input { flex: 1; border: none; border-radius: 6px; padding: 9px 12px; background: #fff; }
.f-brand img { height: 44px; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid #ffffff22; }
.fb-inner { display: flex; align-items: center; padding-block: 12px; font-size: 11px; color: #b9c6e2; }
.socials { display: flex; gap: 14px; margin-inline-start: auto; }
.socials a { color: #dbe4f9; display: flex; }
.socials a:hover { color: #fff; }

/* ---------- buttons / forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; padding: 10px 18px; font-size: 13px; font-weight: 500; transition: filter .2s; }
.btn:hover { filter: brightness(1.12); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-outline { border: 1px solid #cfd8e6; color: var(--text); background: #fff; }
.btn-danger { background: #e5484d; color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 6px; }
.block { width: 100%; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 500; margin-bottom: 6px; }
.field input:not([type=checkbox]):not([type=radio]):not([type=color]), .field textarea, .field select, .toolbar input, .toolbar select, .filters input, .filters select {
  width: 100%; padding: 9px 12px; border: 1px solid #d7dfe9; border-radius: 8px; background: #fff; outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }
.field input[type=color] { width: 60px; height: 36px; border: 1px solid #d7dfe9; border-radius: 6px; background: #fff; padding: 3px; }
.field input[type=file] { font-size: 12px; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; margin-inline-end: 14px; cursor: pointer; }
.alert { border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }
.alert.err { background: #fdecec; color: #b3261e; border: 1px solid #f5c2c0; }
.alert.ok { background: #e8f6ee; color: #1d7a46; border: 1px solid #bfe6cf; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 18px; }
.panel h3 { font-size: 14px; margin-bottom: 12px; color: var(--primary); }
.empty { background: #fff; border: 1px dashed var(--border); border-radius: 12px; padding: 40px; text-align: center; color: var(--muted); margin-block: 20px; }
.empty a { color: var(--accent); }

/* ---------- inner pages ---------- */
.crumbs { font-size: 12px; color: var(--muted); margin-block: 16px 8px; }
.crumbs a:hover { color: var(--accent); }
.crumbs .current { color: var(--text); }
.page-title { font-size: 22px; color: var(--primary); margin-bottom: 14px; }
.cat-head p { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.subcats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.subcats a { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 5px 14px; font-size: 12px; }
.subcats a:hover { border-color: var(--accent); color: var(--accent); }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; font-size: 12px; }
.toolbar label { display: flex; align-items: center; gap: 6px; }
.toolbar select, .toolbar input { width: auto; }
.toolbar input[type=number] { width: 110px; }
.search-again { display: flex; gap: 8px; margin-block: 12px; position: relative; max-width: 400px; }
.search-again input { flex: 1; max-width: 400px; padding: 9px 12px; border: 1px solid #d7dfe9; border-radius: 8px; }

.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-block: 18px; }
.g-main { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.g-main img { width: 100%; height: 360px; object-fit: contain; }
.g-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.g-thumbs button { border: 2px solid var(--border); border-radius: 8px; background: #fff; padding: 4px; }
.g-thumbs button.on { border-color: var(--accent); }
.g-thumbs img { width: 64px; height: 64px; object-fit: contain; display: block; }
.p-info h1 { font-size: 21px; color: var(--primary); margin-bottom: 8px; }
.p-meta { display: flex; gap: 18px; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.p-info .p-price .price { font-size: 22px; color: var(--accent); }
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; border-radius: 6px; padding: 4px 10px; margin-block: 10px; }
.stock.in { background: #e8f6ee; color: #1d7a46; }
.stock.out { background: #fdecec; color: #b3261e; }
.buy-box { display: flex; align-items: center; gap: 14px; margin-block: 12px; }
.buy-box label { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.buy-box input[type=number] { width: 74px; padding: 9px; border: 1px solid #d7dfe9; border-radius: 8px; }
.fav-line { margin-bottom: 14px; }
.fav-on { color: #e0447c; border-color: #e0447c; }
.specs { width: 100%; border-collapse: collapse; font-size: 13px; }
.specs td { padding: 8px 12px; border-bottom: 1px solid var(--border); }
.specs td:first-child { color: var(--muted); width: 40%; background: #f8fafc; }
.content { font-size: 14px; }
.content p { margin-bottom: 12px; }
.content h2, .content h3, .content h4 { color: var(--primary); margin-block: 16px 8px; }
.content ul, .content ol { padding-inline-start: 22px; margin-bottom: 12px; }
.content a { color: var(--accent); }
.desc { margin-block: 20px; }

/* ---------- product category path ---------- */
.cat-path { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px; margin-block: 16px 4px; padding: 10px 14px; background: #fff; border: 1px solid var(--border); border-inline-start: 3px solid var(--accent); border-radius: 12px; font-size: 12px; color: var(--muted); }
.cp-ico { display: inline-flex; color: var(--accent); }
.cp-lead, .cp-end { white-space: nowrap; }
.cp-links { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cp-links a { color: var(--primary); font-weight: 600; }
.cp-links a:hover { color: var(--accent); }
.cp-sep { color: #b9c4d2; }

/* ---------- product reviews ---------- */
.reviews { position: relative; margin-block: 28px 34px; padding: 24px; border-radius: 24px; background: radial-gradient(700px 240px at 88% -30%, #2d6bc44d, transparent 70%), linear-gradient(225deg, #16263d, #0d1b2f 46%, #091426); color: #eaf1fb; overflow: hidden; }
.reviews-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; position: relative; z-index: 1; }
.rev-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .3px; color: #9dc2f5; background: #ffffff14; border: 1px solid #ffffff1f; padding: 4px 10px; border-radius: 999px; }
.reviews-head h2 { font-size: 18px; margin-top: 8px; color: #fff; }
.rev-score { display: flex; align-items: center; gap: 10px; background: #ffffff12; border: 1px solid #ffffff1f; border-radius: 14px; padding: 8px 14px; }
.rev-score strong { font-size: 26px; color: #ffd166; line-height: 1; }
.rev-score > div { display: flex; flex-direction: column; gap: 3px; }
.rev-count { font-size: 11px; color: #c3d4ea; }
.stars { display: inline-flex; gap: 2px; }
.stars .st { display: inline-flex; color: #6d7c91; }
.stars .st.on { color: #ffc53d; }
.rev-wrap { position: relative; margin-inline: -6px; }
.comments-row { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 6px 8px; scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; cursor: grab; }
.comments-row::-webkit-scrollbar { display: none; }
.comments-row.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.comments-row img { -webkit-user-drag: none; }
.rev-card { flex: 0 0 calc((100% - 28px) / 2.85); scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; background: #fff; color: var(--text); border-radius: 18px; padding: 18px; box-shadow: 0 10px 26px #030b1833; position: relative; overflow: hidden; }
.rev-card::after { content: "”"; position: absolute; inset-inline-end: 16px; top: 6px; font-size: 54px; line-height: 1; color: var(--accent); opacity: .12; font-family: Georgia, serif; }
.rev-top { display: flex; align-items: center; gap: 10px; }
.rev-ava { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; background: linear-gradient(135deg, #2f74d8, #0d2d5e); box-shadow: 0 6px 14px #0d2d5e33; }
.rev-who { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.rev-who strong { font-size: 13px; color: var(--primary); }
.rev-who span { font-size: 10.5px; color: var(--muted); }
.rev-card p { font-size: 12.5px; line-height: 1.9; color: #3d4a5c; }
.rev-verified { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; font-size: 10.5px; color: #0b7f6b; background: #0b7f6b14; border: 1px solid #0b7f6b2b; border-radius: 999px; padding: 3px 9px; }
.rev-empty { font-size: 12px; color: #9fb4cf; padding: 4px 2px; }
.rev-form { margin-top: 16px; padding: 14px; border: 1px solid #ffffff1f; background: #ffffff0d; border-radius: 16px; position: relative; z-index: 1; }
.rf-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.rf-note { font-size: 10.5px; color: #9fb4cf; }
.rev-form .rev-kicker { background: transparent; border: 0; padding: 0; }
.rf-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rf-name { flex: 0 0 160px; padding: 10px 12px; border-radius: 10px; border: 1px solid #ffffff2b; background: #ffffff14; color: #eaf1fb; font-size: 12px; font-family: inherit; }
.rf-name:read-only { opacity: .8; }
.rf-body { flex: 1 1 240px; min-height: 42px; max-height: 120px; resize: vertical; padding: 10px 12px; border-radius: 10px; border: 1px solid #ffffff2b; background: #ffffff14; color: #eaf1fb; font-size: 12px; font-family: inherit; line-height: 1.8; }
.rf-name::placeholder, .rf-body::placeholder { color: #93a9c4; }
.rf-name:focus, .rf-body:focus { outline: none; border-color: #5b9bf0; box-shadow: 0 0 0 3px #2d6bc433; }
.rf-send { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 10px; white-space: nowrap; }
.rate-pick { display: inline-flex; gap: 2px; padding: 7px 9px; border-radius: 10px; background: #ffffff14; border: 1px solid #ffffff1f; }
.rate-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.rate-pick label { display: inline-flex; color: #5d718a; cursor: pointer; transition: color .15s; border-radius: 3px; }
.rate-pick input:checked + label, .rate-pick label:has(~ input:checked) { color: #ffc53d; }
.rate-pick label:hover { color: #ffd97a; }
.rate-pick input:focus-visible + label { outline: 2px solid #ffc53d; outline-offset: 2px; }
.reviews .row-scroll { background: #ffffff1f; color: #fff; border: 1px solid #ffffff2e; }
.reviews .row-scroll:hover { background: #ffffff33; }
.reviews .row-scroll.r { inset-inline-start: -8px; }
.reviews .row-scroll.l { inset-inline-end: -8px; }
@media (max-width: 900px) { .rev-card { flex-basis: calc((100% - 14px) / 1.6); } }
@media (max-width: 640px) {
  .cat-path { font-size: 11px; gap: 6px; padding: 8px 10px; }
  .reviews { padding: 16px; border-radius: 18px; }
  .reviews-head { align-items: flex-start; }
  .reviews-head h2 { font-size: 15px; }
  .rev-score { padding: 6px 10px; }
  .rev-score strong { font-size: 21px; }
  .rev-card { flex-basis: calc((100% - 14px) / 1.08); padding: 14px; }
  .rev-form { padding: 12px; }
  .rf-line { gap: 8px; }
  .rf-name { flex: 1 1 110px; }
  .rf-body { flex: 1 1 100%; }
  .rf-send { flex: 1 1 100%; justify-content: center; }
}

.cart-layout { display: grid; grid-template-columns: 1fr 330px; gap: 20px; align-items: start; }
.cart-row { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin-bottom: 12px; }
.cart-row img { width: 74px; height: 74px; object-fit: contain; }
.cr-info { flex: 1; }
.cr-info a { font-weight: 600; font-size: 13px; display: block; }
.cr-unit { font-size: 11px; color: var(--muted); }
.qty-form { display: flex; gap: 6px; align-items: center; }
.qty-form input { width: 64px; padding: 7px; border: 1px solid #d7dfe9; border-radius: 6px; }
.cr-line { min-width: 110px; text-align: center; font-size: 13px; }
.icon-btn { display: inline-flex; padding: 6px; border-radius: 6px; color: var(--muted); }
.icon-btn.danger:hover { color: #e5484d; background: #fdecec; }
.summary { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px; position: sticky; top: 132px; }
.summary h3 { font-size: 15px; color: var(--primary); margin-bottom: 14px; }
.s-line { display: flex; justify-content: space-between; font-size: 13px; margin-block: 9px; }
.s-line.small { font-size: 11px; color: var(--muted); }
.s-line.off { color: #1d7a46; }
.s-line.total { border-top: 1px dashed var(--border); padding-top: 12px; font-weight: 700; font-size: 14px; }
.disc-form { display: flex; gap: 8px; margin-block: 12px; }
.disc-form input { flex: 1; padding: 8px 10px; border: 1px solid #d7dfe9; border-radius: 6px; }
.disc-on { display: flex; align-items: center; justify-content: space-between; background: #e8f6ee; color: #1d7a46; border-radius: 6px; padding: 6px 10px; font-size: 12px; width: 100%; }
.checkout-layout { display: grid; grid-template-columns: 1fr 350px; gap: 20px; align-items: start; }
.co-form { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.co-form h3 { font-size: 14px; color: var(--primary); margin-block: 14px 10px; }
.ship-opt { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; margin-bottom: 8px; font-size: 13px; cursor: pointer; }
.ship-opt:has(input:checked) { border-color: var(--accent); background: #f0f7ff; }
.ship-opt strong { margin-inline-start: auto; font-size: 12px; }
.pay-note { display: flex; gap: 6px; align-items: center; font-size: 11px; color: var(--muted); margin-block: 12px; }

.auth-card { max-width: 430px; margin: 40px auto; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 28px; box-shadow: 0 10px 30px #0d2d5e10; }
.auth-card h1 { font-size: 18px; color: var(--primary); margin-bottom: 18px; text-align: center; }
.auth-alt { text-align: center; font-size: 12px; margin-top: 14px; color: var(--muted); }
.auth-alt a { color: var(--accent); font-weight: 700; }
.account-grid { display: grid; grid-template-columns: 360px 1fr; gap: 20px; align-items: start; }
.table { width: 100%; border-collapse: collapse; font-size: 12px; background: #fff; }
.table th { background: #f1f4f9; color: var(--muted); font-weight: 500; padding: 9px 10px; text-align: right; }
.table td { padding: 9px 10px; border-bottom: 1px solid var(--border); }
.badge { display: inline-block; border-radius: 6px; font-size: 11px; padding: 2px 9px; }
.st-pending { background: #fff4e0; color: #a05a00; }
.st-registered { background: #e8f0fe; color: #1a56b0; }
.st-processing { background: #e8f0fe; color: #1a56b0; }
.st-shipped { background: #efe8fe; color: #6d28d9; }
.st-delivered { background: #e8f6ee; color: #1d7a46; }
.st-cancelled { background: #fdecec; color: #b3261e; }
.track-form { display: flex; gap: 14px; align-items: end; max-width: 640px; }
.track-form .field { flex: 1; margin-bottom: 0; }
.track-result { max-width: 800px; }
.tr-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.timeline { display: flex; margin-block: 18px; }
.tl-step { flex: 1; text-align: center; position: relative; font-size: 11px; color: var(--muted); }
.tl-step::before { content: ''; position: absolute; top: 11px; inset-inline-start: -50%; width: 100%; height: 2px; background: var(--border); z-index: 0; }
.tl-step:first-child::before { display: none; }
.tl-step.done::before { background: var(--accent); }
.tl-dot { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; background: #e6ebf2; color: #fff; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.tl-step.done .tl-dot { background: var(--accent); }
.tl-step.done { color: var(--text); font-weight: 500; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 18px; }
.contact-grid p { display: flex; gap: 8px; align-items: center; margin-block: 8px; font-size: 13px; }
.success-panel { max-width: 700px; margin: 30px auto; text-align: center; }
.success-icon { width: 74px; height: 74px; border-radius: 50%; background: #e8f6ee; color: #1d7a46; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.success-icon.fail { background: #fdecec; color: #b3261e; }
.success-panel h1 { font-size: 20px; color: var(--primary); margin-bottom: 12px; }
.order-code { font-size: 18px; color: var(--accent); letter-spacing: 1px; }
.success-panel .table { margin-block: 16px; text-align: right; }
.total-line { font-size: 15px; margin-block: 12px; }
.success-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }

.bank-body { background: #eef2f7; display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.bank-card { background: #fff; border-radius: 14px; box-shadow: 0 15px 40px #0d2d5e20; max-width: 420px; width: 100%; padding: 26px; text-align: center; }
.bank-head { display: flex; gap: 8px; align-items: center; justify-content: center; background: var(--primary); color: #fff; border-radius: 8px; padding: 10px; font-size: 14px; margin-bottom: 18px; }
.bank-amount { font-size: 16px; margin-block: 12px; }
.bank-card .btn { margin-top: 10px; }

#toast { position: fixed; bottom: 20px; inset-inline-start: 20px; background: #17233b; color: #fff; border-radius: 10px; padding: 11px 18px; font-size: 13px; opacity: 0; transform: translateY(12px); transition: all .3s; z-index: 100; pointer-events: none; max-width: 320px; }
#toast.show { opacity: 1; transform: translateY(0); }
#toast.err { background: #b3261e; }
#toast.ok { background: #1d7a46; }

/* ---------- floating help & back to top ---------- */
.fab-stack { position: fixed; bottom: 18px; inset-inline-end: 18px; z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.fab { border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform .2s, box-shadow .2s, opacity .25s, visibility .25s; }
.fab:active { transform: scale(.96); }
.fab-top { width: 38px; height: 38px; background: #fff; color: var(--primary); border: 1px solid var(--border); box-shadow: 0 4px 14px #0d2d5e1f; opacity: 0; visibility: hidden; transform: translateY(6px); }
.fab-top.on { opacity: 1; visibility: visible; transform: none; }
.fab-top:hover { color: var(--accent); }
.fab-help { position: relative; }
.fab-help-btn { width: 46px; height: 46px; background: linear-gradient(160deg, #16407a, var(--primary)); color: #fff; box-shadow: 0 8px 22px #0d2d5e4d; }
.fab-help-btn::after { content: ''; position: absolute; inset: 0; border-radius: 50%; animation: fabPulse 2.6s ease-out infinite; pointer-events: none; }
.fab-help-btn.open::after { animation: none; }
@keyframes fabPulse { 0% { box-shadow: 0 0 0 0 #0f6bd04d; } 70%, 100% { box-shadow: 0 0 0 14px #0f6bd000; } }
.help-pop { position: absolute; bottom: calc(100% + 12px); inset-inline-end: 0; width: 246px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 18px 44px #0d2d5e2b; padding: 8px; animation: helpPop .2s ease-out; }
.help-pop[hidden] { display: none; }
@keyframes helpPop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hp-head { display: flex; align-items: center; gap: 8px; padding: 8px 8px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; color: var(--primary); font-weight: 700; font-size: 12.5px; }
.hp-head svg { color: var(--accent); }
.hp-item { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 8px; font-size: 12.5px; color: #2a3a55; }
.hp-item:hover { background: var(--card); color: var(--accent); }
.hp-item svg { color: var(--accent); flex: none; }
.hp-note { display: flex; gap: 7px; align-items: flex-start; padding: 9px 9px 4px; margin-top: 5px; border-top: 1px dashed var(--border); color: var(--muted); font-size: 11px; line-height: 1.7; }
.hp-note svg { margin-top: 2px; flex: none; }

/* ---------- faq ---------- */
.faq-sec { margin-top: 34px; }
.faq-sec .section-head.plain, .recent-sec .section-head.plain { margin-top: 0; }
.sh-note { font-size: 11px; color: var(--muted); }
.sh-link { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--accent); font-weight: 600; }
.sh-link:hover { text-decoration: underline; }
.faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 0 14px; transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: #bcd0e8; box-shadow: 0 8px 20px #0d2d5e0f; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; font-size: 13px; font-weight: 600; color: var(--primary); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-ic { display: flex; color: var(--muted); transition: transform .25s, color .25s; }
.faq-item[open] .faq-ic { transform: rotate(180deg); color: var(--accent); }
.faq-item p { margin: -2px 0 12px; font-size: 12.5px; line-height: 1.95; color: #3a4a63; }
.faq-more { margin-top: 12px; text-align: center; font-size: 12px; color: var(--muted); }
.faq-more a { color: var(--accent); font-weight: 600; }
.faq-more a:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .fab-help-btn::after, .help-pop { animation: none; } }

/* ---------- recently viewed ---------- */
.recent-sec { margin-top: 30px; }
.recent-sec[hidden] { display: none; }
.recent-row { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; scrollbar-color: #b9c9de #eef2f7; }
.recent-card { flex: 0 0 96px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 6px; transition: box-shadow .2s, transform .2s; }
.recent-card:hover { box-shadow: 0 6px 16px #0d2d5e14; transform: translateY(-2px); }
.recent-card img { width: 100%; height: 72px; object-fit: contain; }
.recent-card span { font-size: 11px; line-height: 1.6; color: #2a3a55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- brand story bands ---------- */
.brand-band { margin-block: 28px; }
.bb-card { position: relative; display: flex; min-height: 240px; border-radius: 16px; overflow: hidden; background: #0a2145; box-shadow: 0 14px 34px #0d2d5e26; }
.bb-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.bb-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to left, #0a2145f5 0%, #0a2145e0 36%, #0a214575 60%, #0a214500 82%); pointer-events: none; }
.bb-card.alt { justify-content: flex-end; }
.bb-card.alt::after { background: linear-gradient(to right, #0a2145f5 0%, #0a2145e0 36%, #0a214575 60%, #0a214500 82%); }
.bb-body { position: relative; z-index: 1; width: min(560px, 60%); padding: 26px 36px; color: #fff; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.bb-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; padding: 4px 11px; border-radius: 999px; background: #ffffff1f; border: 1px solid #ffffff38; color: #dceafb; }
.bb-body h3 { font-size: 23px; line-height: 1.5; font-weight: 700; margin: 9px 0 6px; }
.bb-body p { font-size: 12.5px; line-height: 1.95; color: #d3e1f4; max-width: 470px; }
.bb-points { list-style: none; display: flex; flex-wrap: wrap; gap: 5px 16px; margin: 8px 0 12px; }
.bb-points li { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: #cfe0f5; }
.bb-points svg { color: #7fd1a3; }
.bb-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 2px; }
.bb-note { display: flex; align-items: center; gap: 6px; margin-top: 9px; font-size: 11px; color: #b9cbe4; }
.bb-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding-bottom: 2px; font-size: 11.5px; color: #cfe0f5; border-bottom: 1px dashed #ffffff5c; }
.bb-link:hover { color: #fff; border-bottom-color: #ffffffcc; }
.bb-link svg { transition: transform .2s; }
.bb-link:hover svg { transform: translateX(-3px); }
.bb-card.company { min-height: 296px; }
.bb-card.company .bb-body { width: min(610px, 62%); }
.btn-light { background: #fff; color: var(--primary); }
.btn-wa { background: #25d366; color: #05301b; font-weight: 600; }
.btn-wa:hover { background: #1fc25c; filter: none; }
@media (max-width: 900px) {
  .bb-body { width: min(480px, 74%); padding: 22px 24px; }
  .bb-body h3 { font-size: 20px; }
  .bb-card.company .bb-body { width: min(500px, 76%); }
}
@media (max-width: 640px) {
  .brand-band { margin-block: 20px; }
  .bb-card { display: block; min-height: 0; }
  .bb-card.company { min-height: 0; }
  .bb-card > img { position: static; height: 156px; }
  .bb-card::after { display: none; }
  .bb-body { width: 100%; padding: 16px 18px 18px; background: linear-gradient(180deg, #0c2549, #0a2145); }
  .bb-card.company .bb-body { width: 100%; }
  .bb-body h3 { font-size: 17px; margin: 8px 0 5px; }
  .bb-body p { font-size: 11.5px; }
  .bb-actions { margin-top: 8px; gap: 8px; }
  .bb-actions .btn { flex: 1 1 auto; padding: 9px 12px; font-size: 12px; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .cats-grid { grid-template-columns: repeat(3, 1fr); }
  .products-row .p-card { flex: 0 0 calc((100% - 48px) / 3.5); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-inner { display: none; }
  .menu-btn { display: flex; }
  .header-main { flex-wrap: wrap; gap: 12px; padding-block: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .cart-link { margin-inline-start: auto; }
  .product-layout, .cart-layout, .checkout-layout, .account-grid, .contact-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .benefits { grid-template-columns: 1fr 1fr; }
  .benefit:nth-child(3) { border-inline-start: none; }
  .slide-content { background: linear-gradient(to left, transparent 22%, #ffffffc9 68%); }
  .slide-text h2 { font-size: 24px; }
  .slide-text p { font-size: 13px; margin-bottom: 12px; }
  .slide-logo { height: 40px; }
}
@media (max-width: 900px) { .tb-quotes { display: none; } }
@media (max-width: 640px) {
  .topbar-inner { gap: 14px; font-size: 11px; justify-content: center; }
  .tb-links { gap: 14px; }
  .slider { aspect-ratio: 16 / 10; min-height: 300px; }
  .slide-content { align-items: flex-end; justify-content: center; background: linear-gradient(0deg, #fffffff7 0%, #ffffffe3 52%, transparent 100%); padding: 0 16px 32px; }
  .slide-text { max-width: 100%; }
  .slide-logo { height: 30px; margin-bottom: 2px; }
  .slide-text h2 { font-size: 19px; line-height: 1.5; }
  .slide-text p { font-size: 12px; margin-bottom: 10px; }
  .slide-btn { padding: 8px 16px; font-size: 12px; }
  .sl-dots { bottom: 10px; gap: 6px; }
  .sl-dots button { width: 22px; height: 12px; }
  .sl-dots button.on { width: 32px; }
  .cats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cats-grid.big { grid-template-columns: 1fr 1fr; }
  .cats-grid.big img { height: 120px; }
  .products-row .p-card { flex: 0 0 calc((100% - 16px) / 1.5); }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .benefits { grid-template-columns: 1fr 1fr; }
  .benefit { padding: 12px 10px; gap: 8px; }
  .benefit svg { width: 24px; height: 24px; }
  .benefit strong { font-size: 12px; }
  .benefit span { font-size: 10px; }
  .benefit + .benefit { border-inline-start: none; }
  .benefit:nth-child(even) { border-inline-start: 1px solid #d5dde8; }
  .benefit:nth-child(n+3) { border-top: 1px solid #d5dde8; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .f-news, .f-brand { grid-column: 1 / -1; }
  .fb-inner { flex-direction: column; gap: 10px; }
  .socials { margin-inline-start: 0; }
  .cart-row { flex-wrap: wrap; }
  .cr-line { min-width: 0; }
  .track-form { flex-direction: column; align-items: stretch; }
  .g-main { padding: 12px; }
  .g-main img { height: 240px; }
  .toolbar { gap: 8px; padding: 10px; }
  .toolbar input[type=number] { width: calc(50% - 4px); }
  .row-scroll { display: none; }
  .section-head { padding: 8px 12px; }
  .sh-title { font-size: 13px; }
  .view-all { font-size: 10px; padding: 4px 10px; }
  .amazing .sh-title { font-size: 14px; }
  .amazing-note { font-size: 10px; padding: 3px 10px; }
  .co-form { padding: 14px; }
  .buy-box { flex-wrap: wrap; }
  .buy-box .btn { flex: 1; }
  .table { display: block; overflow-x: auto; }
  .auth-card { margin: 24px auto; padding: 20px; }
  .page-title { font-size: 19px; }
  .p-info h1 { font-size: 18px; }
  .fab-stack { bottom: 12px; inset-inline-end: 12px; gap: 8px; }
  .fab-top { width: 34px; height: 34px; }
  .fab-help-btn { width: 44px; height: 44px; }
  .help-pop { width: 232px; }
  .sh-note { display: none; }
  .faq-sec, .recent-sec { margin-top: 26px; }
  .faq-list { grid-template-columns: 1fr; gap: 8px; }
  .faq-item summary { font-size: 12.5px; padding: 11px 0; }
  .faq-item p { font-size: 12px; }
  .sh-link { font-size: 10.5px; }
  .recent-card { flex: 0 0 88px; }
  .recent-card img { height: 64px; }
}
@media (max-width: 640px) {
  .cat-amazing .sh-title { font-size: 13px; line-height: 1.6; }
  .cat-amazing .amazing-note, .cat-amazing .view-all { display: none; }
}
@media (max-width: 400px) {
  .topbar-inner { gap: 10px; font-size: 10px; }
  .tb-links { gap: 10px; }
  .add-btn { font-size: 11px; gap: 5px; padding: 8px 6px; }
  .p-title { font-size: 12px; min-height: 40px; }
  .p-img img { height: 120px; }
  .cart-link span:not(.cart-count) { display: none; }
}