:root {
  --fn-bg: #f4f7fb;
  --fn-surface: rgba(255,255,255,.92);
  --fn-ink: #10223a;
  --fn-muted: #637087;
  --fn-line: #d6e2ed;
  --fn-brand: #08979a;
  --fn-brand-dark: #06787b;
  --fn-brand-soft: #e9fbf8;
  --fn-accent: #ff8a3d;
  --fn-radius: 16px;
  --fn-shadow: 0 18px 48px rgba(16,34,58,.08);
}

html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(circle at 10% 0%, rgba(8,151,154,.08), transparent 28rem),
    linear-gradient(180deg, #f8fafc 0%, var(--fn-bg) 100%);
  color: var(--fn-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.container { width: min(1180px, calc(100% - 40px)); padding: 34px 0 52px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  border-bottom: 1px solid rgba(214,226,237,.9) !important;
  background: rgba(255,255,255,.94) !important;
  box-shadow: 0 12px 34px rgba(16,34,58,.06);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  width: min(1180px, calc(100% - 40px)) !important;
  min-height: 86px;
  grid-template-columns: 190px minmax(300px, 1fr) auto !important;
  gap: 28px !important;
  padding: 12px 0 !important;
}

.site-header .logo img { height: 62px !important; max-width: 184px !important; }
.header-live-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.header-search-box {
  min-height: 48px;
  border: 1px solid var(--fn-line);
  border-radius: 14px;
  background: #f8fbfd;
  box-shadow: inset 0 1px 0 #fff, 0 9px 24px rgba(16,34,58,.05);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.header-search-box:focus-within {
  border-color: rgba(8,151,154,.65);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(8,151,154,.10), 0 14px 30px rgba(16,34,58,.07);
}
.header-search-box input { border: 0; background: transparent; font-size: 15px; }
.site-header .nav-action,
.user-menu > summary {
  min-height: 46px;
  border-radius: 13px;
  border-color: var(--fn-line);
  box-shadow: 0 10px 24px rgba(16,34,58,.07);
}
.site-header .nav-primary { background: linear-gradient(135deg, #10aaa6, var(--fn-brand-dark)); }
.user-menu-avatar { background: linear-gradient(135deg, #ff9b45, #ff6b2d); box-shadow: 0 8px 18px rgba(255,107,45,.24); }
.user-menu-panel { border-radius: 16px; border-color: var(--fn-line); box-shadow: 0 24px 58px rgba(16,34,58,.18); }

.site-header .store-mode-nav {
  width: 100% !important;
  margin: 0 !important;
  padding: 10px max(20px, calc((100vw - 1180px)/2)) 12px !important;
  border-top: 1px solid #edf2f6;
  border-bottom: 0 !important;
  background: linear-gradient(180deg, rgba(249,252,253,.95), rgba(255,255,255,.98)) !important;
  box-shadow: none !important;
}
.store-mode-nav a { border-radius: 11px; min-height: 40px; padding: 9px 15px; }
.store-mode-nav a.is-active { background: linear-gradient(135deg, #11aaa7, #078184); box-shadow: 0 12px 26px rgba(8,151,154,.24); }

.panel, .card, .cat, .board-head, .board-products,
.virtual-hero, .social-hero, .virtual-order-panel, .social-order-panel,
.account-panel, .account-hero, .auth, .checkout {
  border-color: var(--fn-line) !important;
  border-radius: var(--fn-radius) !important;
  background: var(--fn-surface) !important;
  box-shadow: var(--fn-shadow);
}

.board-head, .virtual-hero, .social-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 38px) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,138,61,.12), transparent 24rem),
    radial-gradient(circle at 0% 100%, rgba(8,151,154,.10), transparent 22rem),
    #fff !important;
}
.board-head::before, .virtual-hero::before, .social-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--fn-brand), var(--fn-accent));
}
.board-head h1, .board-head h2, .virtual-hero h1, .virtual-hero h2, .social-hero h1, .social-hero h2 {
  color: var(--fn-ink);
  letter-spacing: -.035em;
}
.eyebrow { color: var(--fn-brand); letter-spacing: .08em; }

.category-showcase {
  top: 160px;
  border-radius: var(--fn-radius);
  border-color: var(--fn-line);
  box-shadow: var(--fn-shadow);
}
.category-showcase a { border-radius: 12px; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.category-showcase a:hover { transform: translateX(3px); }

.product-card {
  border-radius: 15px !important;
  background: linear-gradient(180deg, #f5fffd 0%, #edfaf8 100%) !important;
  box-shadow: 0 14px 34px rgba(8,151,154,.09);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-card:hover { transform: translateY(-4px); border-color: #8cded7 !important; box-shadow: 0 22px 46px rgba(8,151,154,.15); }
.product-card img, .image-empty-frame { border-radius: 12px; }
.product-card-title, .product-option-row, .product-buy-row { border-radius: 11px; }
.cart-icon-btn, .card-arrow { border-radius: 11px; transition: transform .18s ease, filter .18s ease; }
.cart-icon-btn:hover, .card-arrow:hover { transform: translateY(-2px); filter: brightness(1.05); }

.btn, button, input[type="submit"] { transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.btn { min-height: 44px; border-radius: 11px; background: linear-gradient(135deg, #11aaa7, #078184); box-shadow: 0 12px 24px rgba(8,151,154,.18); }
.btn:hover { transform: translateY(-1px); filter: brightness(1.03); }
input, select, textarea { min-height: 46px; border-radius: 11px; border-color: var(--fn-line); }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--fn-brand); box-shadow: 0 0 0 4px rgba(8,151,154,.10); }

.site-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #0d1d32 0%, #132944 60%, #10283b 100%);
  padding: 54px 4vw 24px;
}
.site-footer::before { content: ""; position: absolute; width: 360px; height: 360px; right: -140px; top: -210px; border-radius: 50%; background: rgba(8,151,154,.16); filter: blur(4px); }
.footer-grid { width: min(1180px, calc(100% - 40px)); gap: 38px; position: relative; }
.footer-grid section:not(.footer-brand) { padding-left: 18px; border-left: 1px solid rgba(255,255,255,.10); }
.site-footer h2 { font-size: 14px; letter-spacing: .05em; text-transform: uppercase; }
.site-footer a { color: #d8e4ef; transition: color .18s ease, transform .18s ease; }
.site-footer a:hover { color: #7ce0d7; transform: translateX(3px); }
.footer-bottom { width: min(1180px, calc(100% - 40px)); }

@media (max-width: 900px) {
  .site-header-inner { grid-template-columns: 150px minmax(0,1fr) auto !important; gap: 14px !important; }
  .site-header .logo img { height: 54px !important; max-width: 145px !important; }
  .category-showcase { position: static; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 24px, 680px); padding: 22px 0 34px; }
  .site-header-inner { display: grid !important; grid-template-columns: minmax(0,1fr) auto !important; width: 100% !important; padding: 10px 12px !important; }
  .site-header .logo img { height: 50px !important; max-width: 145px !important; }
  .site-header-inner .header-live-search { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .site-header-inner > nav { grid-column: 2 !important; grid-row: 1; }
  .site-header .nav-action { min-height: 42px; }
  .site-header .nav-action:not(.nav-cart) span { display: none; }
  .site-header .store-mode-nav { justify-content: flex-start !important; padding: 9px 12px 11px !important; }
  .store-mode-nav a { min-height: 40px; }
  .board-head, .virtual-hero, .social-hero { padding: 23px 20px !important; }
  .footer-grid { width: 100%; gap: 24px; }
  .footer-grid section:not(.footer-brand) { padding: 0; border-left: 0; }
  .footer-bottom { width: 100%; }
}
