@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Cinzel:wght@400;600;700;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* ── Light / White base ── */
  --bg-base:        #f3f4f6;
  --bg-surface:     #ffffff;
  --bg-elevated:    #f8f9fb;
  --bg-overlay:     #eef1f5;
  --bg-input:       #ffffff;
  --bg-sidebar:     #1e3a5f;

  /* ── Deep blue brand accent ── */
  --brand-900:      #0a1628;
  --brand-800:      #0f2040;
  --brand-700:      #163058;
  --brand-600:      #1e3a5f;
  --brand-500:      #234d7a;
  --brand-400:      #2a6099;
  --brand-300:      #3d7abf;
  --brand-200:      #7ab0d9;
  --brand-100:      #d0e6f5;
  --brand-faint:    rgba(30,58,95,0.07);
  --brand-glow:     rgba(30,58,95,0.18);
  --brand-border:   rgba(30,58,95,0.20);

  --text-100:       #0f172a;
  --text-200:       #1e293b;
  --text-300:       #475569;
  --text-400:       #94a3b8;
  --text-500:       #cbd5e1;

  --green-500:      #16a34a;
  --green-faint:    rgba(22,163,74,0.08);
  --gold-500:       #d97706;
  --gold-faint:     rgba(217,119,6,0.08);
  --red-500:        #dc2626;
  --red-faint:      rgba(220,38,38,0.08);

  --border-100:     rgba(15,23,42,0.06);
  --border-200:     rgba(15,23,42,0.10);
  --border-300:     rgba(15,23,42,0.16);
  --border-focus:   rgba(30,58,95,0.45);

  --shadow-xs:    0 1px 3px rgba(15,23,42,0.08);
  --shadow-sm:    0 2px 8px rgba(15,23,42,0.10);
  --shadow-md:    0 6px 24px rgba(15,23,42,0.12);
  --shadow-lg:    0 12px 48px rgba(15,23,42,0.14);
  --shadow-brand: 0 4px 24px rgba(30,58,95,0.22);

  --font-display: 'Inter', -apple-system, sans-serif;
  --font-sans:    'Inter', -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px; --sp-5:20px;
  --sp-6:24px; --sp-8:32px; --sp-10:40px; --sp-12:48px; --sp-16:64px;
  --r-xs:3px; --r-sm:5px; --r-md:8px; --r-lg:12px; --r-xl:18px; --r-2xl:28px;
  --t-1: all 0.12s ease; --t-2: all 0.22s ease; --t-3: all 0.38s ease;
  --bp-sm: 640px; --bp-md: 768px; --bp-lg: 1024px; --bp-xl: 1280px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-200);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-300); text-decoration: none; transition: var(--t-1); }
a:hover { color: var(--brand-200); }
img { max-width: 100%; display: block; }
h1,h2,h3,h4,h5,h6 { color: var(--text-100); font-weight: 700; line-height: 1.3; font-family: var(--font-display); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font-sans); }
input, textarea, select { font-family: var(--font-sans); font-size: 1rem; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 var(--sp-6); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@keyframes fadeIn    { from { opacity: 0 } to { opacity: 1 } }
@keyframes slideUp   { from { opacity: 0; transform: translateY(24px) } to { opacity: 1; transform: translateY(0) } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px) } to { opacity: 1; transform: translateY(0) } }
@keyframes pulse     { 0%,100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5) } 50% { box-shadow: 0 0 0 14px rgba(37,211,102,0) } }
@keyframes pulseBrand{ 0%,100% { box-shadow: 0 0 0 0 rgba(0,136,204,0.45) } 50% { box-shadow: 0 0 0 12px rgba(0,136,204,0) } }
@keyframes shimmer   { 0% { background-position: -200% 0 } 100% { background-position: 200% 0 } }
@keyframes spin      { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }
@keyframes brandShine { 0%,100%{opacity:0.7} 50%{opacity:1} }

.skeleton { background: linear-gradient(90deg, #e9eef4 25%, #f0f4f8 50%, #e9eef4 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r-md); }
.page-enter { animation: slideUp 0.35s ease forwards; }
.stagger > * { opacity: 0; animation: slideUp 0.35s ease forwards; }
.stagger > *:nth-child(1) { animation-delay: 0.05s }
.stagger > *:nth-child(2) { animation-delay: 0.10s }
.stagger > *:nth-child(3) { animation-delay: 0.15s }
.stagger > *:nth-child(4) { animation-delay: 0.20s }
.stagger > *:nth-child(5) { animation-delay: 0.25s }
.stagger > *:nth-child(6) { animation-delay: 0.30s }

/* ANNOUNCEMENT BAR */
.ann-bar { background: linear-gradient(90deg, #1e3a5f, #234d7a, #1e3a5f); color: rgba(255,255,255,0.85); text-align: center; padding: 10px var(--sp-6); font-size: 13px; font-weight: 600; letter-spacing: 0.03em; border-bottom: 1px solid var(--border-100); }
.ann-bar a { color: #ffffff; }

/* HEADER */
.site-header { position: sticky; top: 0; z-index: 900; background: rgba(255,255,255,0.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border-200); box-shadow: 0 2px 12px rgba(15,23,42,0.08); }
.header-inner { display: flex; align-items: center; gap: var(--sp-4); height: 64px; }
.header-logo img { height: 60px;, width: auto; }
.header-nav { display: flex; align-items: center; gap: 4px; flex: 1; flex-wrap: wrap; }
.nav-link { background: none; border: none; color: var(--text-300); font-family: var(--font-sans); font-size: 13px; font-weight: 500; letter-spacing: 0.03em; padding: 8px 12px; border-radius: var(--r-sm); transition: var(--t-1); cursor: pointer; }
.nav-link:hover, .nav-link.active { color: var(--brand-600); background: var(--brand-faint); }

.header-right { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }
.hamburger { display: none; background: none; border: 1px solid var(--border-300); color: var(--text-200); padding: 8px; border-radius: var(--r-md); cursor: pointer; transition: var(--t-1); }
.hamburger:hover { background: var(--brand-faint); color: var(--brand-300); }

/* ORDER SIDEBAR BUTTON */
.order-sidebar-btn { position: relative; background: var(--brand-600); border: 1px solid var(--brand-border); color: white; font-family: var(--font-sans); font-size: 13px; font-weight: 600; letter-spacing: 0.02em; padding: 9px 18px; border-radius: var(--r-md); display: flex; align-items: center; gap: var(--sp-2); transition: var(--t-2); cursor: pointer; white-space: nowrap; }
.order-sidebar-btn:hover { background: var(--brand-500); transform: translateY(-1px); box-shadow: var(--shadow-brand); }
.order-count-badge { background: white; color: var(--brand-600); font-size: 11px; font-weight: 800; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); }

/* ORDER SIDEBAR PANEL */
.osb-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.60); z-index: 9900; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.osb-overlay.open { opacity: 1; pointer-events: all; }
.order-sidebar { position: fixed; top: 0; right: 0; width: 380px; max-width: 100vw; height: 100vh; background: var(--bg-surface); border-left: 1px solid var(--border-200); z-index: 9910; display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.32s cubic-bezier(0.4,0,0.2,1); box-shadow: -8px 0 48px rgba(15,23,42,0.16); }
.order-sidebar.open { transform: translateX(0); }
.osb-header { padding: var(--sp-5) var(--sp-6); border-bottom: 1px solid var(--border-200); display: flex; align-items: center; justify-content: space-between; background: var(--bg-surface); }
.osb-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--text-100); letter-spacing: 0.02em; }
.osb-close-btn { background: none; border: 1px solid var(--border-300); color: var(--text-300); padding: 6px; border-radius: var(--r-md); transition: var(--t-1); cursor: pointer; display: flex; align-items: center; }
.osb-close-btn:hover { color: var(--text-100); background: var(--bg-elevated); }
.osb-body { flex: 1; overflow-y: auto; padding: var(--sp-4); }
.osb-empty { text-align: center; padding: var(--sp-16) var(--sp-6); color: var(--text-400); font-size: 14px; }
.osb-item { display: flex; align-items: flex-start; gap: var(--sp-3); padding: var(--sp-3) 0; border-bottom: 1px solid var(--border-100); }
.osb-item-img { width: 56px; height: 56px; border-radius: var(--r-sm); object-fit: cover; background: var(--bg-elevated); border: 1px solid var(--border-200); flex-shrink: 0; }
.osb-item-info { flex: 1; min-width: 0; }
.osb-item-name { font-size: 13px; font-weight: 600; color: var(--text-200); line-height: 1.3; }
.osb-item-price { font-size: 12px; color: var(--text-400); margin-top: 2px; }
.osb-item-remove { background: none; border: none; color: var(--text-400); padding: 4px; cursor: pointer; transition: var(--t-1); border-radius: var(--r-xs); }
.osb-item-remove:hover { color: var(--red-500); }
.osb-footer { padding: var(--sp-5) var(--sp-6); border-top: 1px solid var(--border-200); background: var(--bg-surface); }
.osb-shipping-bar { padding: 8px 12px; border-radius: var(--r-sm); font-size: 12px; font-weight: 600; margin-bottom: var(--sp-4); border: 1px solid; text-align: center; }
.osb-total-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-4); }
.osb-total-label { font-size: 14px; color: var(--text-300); font-weight: 600; }
.osb-total-val { font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: var(--text-100); }
.osb-pay-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: var(--sp-4); }
.pay-badge { display: flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: var(--r-xs); font-size: 10px; font-weight: 600; }

/* LANG SWITCHER */
.lang-switcher { position: relative; }
.lang-btn { background: none; border: 1px solid var(--border-200); color: var(--text-300); font-family: var(--font-sans); font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: var(--r-md); display: flex; align-items: center; gap: 5px; transition: var(--t-1); cursor: pointer; }
.lang-btn:hover { border-color: var(--brand-border); color: var(--brand-300); }
.lang-dropdown { position: absolute; top: calc(100% + 6px); right: 0; background: var(--bg-overlay); border: 1px solid var(--border-300); border-radius: var(--r-md); min-width: 160px; z-index: 9999; box-shadow: var(--shadow-md); animation: slideDown 0.15s ease; overflow: hidden; }
.lang-option { width: 100%; background: none; border: none; text-align: left; padding: 10px 14px; font-size: 13px; font-family: var(--font-sans); color: var(--text-200); cursor: pointer; display: flex; align-items: center; gap: 8px; transition: var(--t-1); }
.lang-option:hover { background: var(--brand-faint); color: var(--brand-300); }
#lang-banner { background: var(--bg-surface); border-bottom: 1px solid var(--border-200); padding: 10px var(--sp-6); font-size: 14px; transition: var(--t-2); }
.lang-banner-inner { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.lang-globe-icon { color: var(--brand-400); }
.lang-banner-btn { background: var(--brand-600); color: white; border: none; padding: 5px 14px; border-radius: var(--r-sm); font-size: 13px; font-weight: 600; cursor: pointer; }

/* FOOTER */
.site-footer { background: #1e3a5f; border-top: none; padding: var(--sp-16) 0 0; margin-top: var(--sp-16); }
.footer-grid { max-width: 1320px; margin: 0 auto; padding: 0 var(--sp-6) var(--sp-10); display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: var(--sp-8); }
.footer-brand p { color: rgba(255,255,255,0.60); font-size: 14px; margin: var(--sp-3) 0 var(--sp-5); line-height: 1.7; }
.footer-social { display: flex; flex-direction: column; gap: var(--sp-2); }
.social-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--r-md); font-size: 13px; font-weight: 700; transition: var(--t-2); border: 1px solid; color: white; }
.social-btn:hover { transform: translateY(-1px); filter: brightness(1.1); color: white; }
.tiktok-btn   { background: rgba(0,0,0,0.6); border-color: rgba(255,255,255,0.15); }
.whatsapp-btn { background: rgba(37,211,102,0.12); border-color: rgba(37,211,102,0.30); color: #25D366; }
.whatsapp-btn:hover { color: #25D366; }
.telegram-btn { background: rgba(0,136,204,0.12); border-color: rgba(0,136,204,0.30); color: #0088CC; }
.telegram-btn:hover { color: #0088CC; }
.site-footer h4 { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.50); letter-spacing: 0.10em; text-transform: uppercase; margin-bottom: var(--sp-4); }
.site-footer a { display: block; font-size: 14px; color: rgba(255,255,255,0.65); margin-bottom: var(--sp-2); transition: var(--t-1); cursor: pointer; }
.site-footer a:hover { color: #ffffff; }
.footer-rating { font-size: 2.5rem; font-weight: 900; color: #ffffff; line-height: 1; margin-bottom: 4px; }
.footer-stars { color: #FBBF24; font-size: 18px; margin-bottom: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: var(--sp-5) var(--sp-6); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-4); }
.footer-links { display: flex; gap: var(--sp-5); flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.60); margin: 0; }
.footer-links a:hover { color: #ffffff; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.45); }

/* FLOAT BUTTONS */
.wa-float-btn { position: fixed; bottom: 88px; right: 24px; z-index: 9990; width: 54px; height: 54px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(37,211,102,0.40); animation: pulse 2.5s infinite; transition: var(--t-2); cursor: pointer; }
.wa-float-btn:hover { transform: scale(1.08); }
.wa-float-btn .wa-tooltip { position: absolute; right: 62px; background: var(--bg-overlay); color: var(--text-100); font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: var(--r-md); border: 1px solid var(--border-200); white-space: nowrap; opacity: 0; pointer-events: none; transition: var(--t-2); }
.wa-float-btn:hover .wa-tooltip { opacity: 1; }
.tg-float-btn { position: fixed; bottom: 24px; right: 24px; z-index: 9990; width: 54px; height: 54px; background: #0088CC; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0,136,204,0.40); animation: pulseBrand 3s infinite; transition: var(--t-2); cursor: pointer; }
.tg-float-btn:hover { transform: scale(1.08); }
.tg-float-btn .tg-tooltip { position: absolute; right: 62px; background: var(--bg-overlay); color: var(--text-100); font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: var(--r-md); border: 1px solid var(--border-200); white-space: nowrap; opacity: 0; pointer-events: none; transition: var(--t-2); }
.tg-float-btn:hover .tg-tooltip { opacity: 1; }

/* TOAST */
.toast { position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--bg-overlay); color: var(--text-100); border: 1px solid var(--border-300); padding: 12px 20px; border-radius: var(--r-lg); font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: all 0.25s; z-index: 99999; white-space: nowrap; box-shadow: var(--shadow-md); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { border-color: rgba(34,197,94,0.4); color: var(--green-500); }
.toast.error   { border-color: rgba(239,68,68,0.4); color: var(--red-500); }
.toast.info    { border-color: var(--brand-border);  color: var(--brand-300); }

/* MODALS */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.70); z-index: 9800; display: flex; align-items: center; justify-content: center; padding: var(--sp-6); animation: fadeIn 0.2s ease; backdrop-filter: blur(4px); }
.modal { background: var(--bg-surface); border: 1px solid var(--border-200); border-radius: var(--r-xl); width: 100%; max-width: 560px; max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 24px 80px rgba(15,23,42,0.20); animation: slideUp 0.3s ease; }
.checkout-modal { max-width: 600px; }
.modal-header { padding: var(--sp-5) var(--sp-6); border-bottom: 1px solid var(--border-200); display: flex; align-items: center; justify-content: space-between; background: var(--bg-surface); flex-shrink: 0; }
.modal-title { font-size: 16px; font-weight: 700; color: var(--text-100); }
.modal-close { background: none; border: 1px solid var(--border-300); color: var(--text-300); padding: 6px; border-radius: var(--r-md); cursor: pointer; transition: var(--t-1); display: flex; align-items: center; }
.modal-close:hover { color: var(--text-100); background: var(--bg-elevated); }
.modal-body { padding: var(--sp-6); overflow-y: auto; flex: 1; }

/* MOBILE */
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 768px) {
  .header-inner { height: 60px; }
  .header-nav { display: none; position: fixed; top: 60px; left: 0; right: 0; background: rgba(255,255,255,0.98); backdrop-filter: blur(16px); flex-direction: column; align-items: flex-start; padding: var(--sp-4); border-bottom: 1px solid var(--border-200); z-index: 890; gap: 2px; }
  .header-nav.mobile-open { display: flex; animation: slideDown 0.2s ease; }
  .nav-link { width: 100%; padding: 12px 14px; font-size: 14px; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .modal-overlay { padding: var(--sp-3); align-items: flex-end; }
  .modal { border-radius: var(--r-xl) var(--r-xl) 0 0; max-height: 92vh; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .order-sidebar { width: 100vw; }
  .wa-float-btn { bottom: 84px; right: 16px; width: 48px; height: 48px; }
  .tg-float-btn { bottom: 20px; right: 16px; width: 48px; height: 48px; }
}
