:root {
  --blue:       #0ea5e9;
  --blue-dark:  #0284c7;
  --blue-deep:  #0369a1;
  --cyan:       #06b6d4;
  --bg:         #f0f9ff;
  --card:       #ffffff;
  --text:       #0f172a;
  --muted:      #64748b;
  --border:     #e0f2fe;
  --shadow:     0 1px 4px rgba(0,0,0,.06), 0 4px 16px rgba(14,165,233,.07);
  --shadow-md:  0 4px 24px rgba(14,165,233,.13);
  --r:          12px;
  --r-sm:       8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}

/* ── TOPBAR ── */
.topbar {
  background: var(--blue-deep);
  color: rgba(255,255,255,.82);
  font-size: .76rem;
  padding: 7px 0;
}
.topbar-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.topbar-info { display: flex; gap: 14px; flex-wrap: wrap; }
.sep { opacity: .35; }
.topbar-login {
  color: #fff; font-size: .73rem; font-weight: 600; opacity: .65;
  text-decoration: none; padding: 3px 10px;
  border: 1px solid rgba(255,255,255,.28); border-radius: 4px;
}
.topbar-login:hover { opacity: 1; }

/* ── HEADER ── */
.site-header {
  background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-icon { font-size: 1.7rem; }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-size: .95rem; font-weight: 800; color: var(--blue-deep); letter-spacing: -.01em; line-height: 1.2; }
.logo-sub { font-size: .63rem; font-weight: 500; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.header-nav { display: flex; gap: 24px; margin-left: auto; }
.header-nav a { font-size: .87rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.header-nav a:hover { color: var(--blue-dark); }
.cart-btn {
  background: var(--blue); color: #fff; border: none; border-radius: var(--r-sm);
  padding: 8px 16px; font-size: .87rem; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; gap: 6px; white-space: nowrap; flex-shrink: 0;
  transition: background .12s;
}
.cart-btn:hover { background: var(--blue-dark); }
.cart-count {
  background: #fff; color: var(--blue-dark); border-radius: 50%;
  width: 20px; height: 20px; font-size: .7rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.cart-count.has-items { background: #fef08a; color: #854d0e; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--blue-deep) 0%, #0ea5e9 55%, var(--cyan) 100%);
  color: #fff; padding: 64px 24px 48px; text-align: center;
}
.hero-inner { max-width: 680px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px; padding: 5px 16px;
  font-size: .78rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 22px;
}
.hero h1 {
  font-size: 2.6rem; font-weight: 900; line-height: 1.14;
  margin-bottom: 16px; letter-spacing: -.025em;
}
.hero h1 em { font-style: normal; color: #bae6fd; }
.hero p { font-size: 1.02rem; opacity: .85; line-height: 1.68; margin-bottom: 30px; max-width: 520px; margin-left: auto; margin-right: auto; }
.btn-hero {
  display: inline-block; background: #fff; color: var(--blue-deep);
  font-weight: 800; font-size: 1rem; padding: 13px 32px; border-radius: 10px;
  text-decoration: none; box-shadow: 0 4px 20px rgba(0,0,0,.18);
  transition: transform .12s, box-shadow .12s;
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.22); }
.hero-stats {
  display: flex; justify-content: center; flex-wrap: wrap;
  margin-top: 44px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.2);
  max-width: 560px; margin-left: auto; margin-right: auto; gap: 0;
}
.stat { flex: 1; min-width: 90px; text-align: center; padding: 0 16px; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.2); }
.stat-n { font-size: 1.5rem; font-weight: 900; }
.stat-l { font-size: .7rem; opacity: .65; margin-top: 3px; text-transform: uppercase; letter-spacing: .04em; }

/* ── MAIN TWO-COLUMN LAYOUT ── */
.main-layout {
  max-width: 1280px; margin: 0 auto; padding: 40px 24px;
  display: grid; grid-template-columns: 1fr 360px;
  gap: 32px; align-items: start;
}

/* ── PRODUCTS ── */
.section-head { margin-bottom: 24px; }
.section-head h2 { font-size: 1.35rem; font-weight: 800; margin-bottom: 4px; }
.section-head p { font-size: .86rem; color: var(--muted); }

.category-label {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .09em; color: var(--blue); margin-bottom: 12px;
}

.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px; margin-bottom: 8px;
}

.product-card {
  background: var(--card); border: 2px solid var(--border);
  border-radius: var(--r); padding: 16px; position: relative;
  transition: border-color .15s, box-shadow .15s;
}
.product-card:hover { border-color: #bae6fd; box-shadow: var(--shadow); }
.product-card.selected { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(14,165,233,.13); }

.product-badge {
  position: absolute; top: 10px; right: 10px;
  background: #fef08a; color: #854d0e;
  font-size: .63rem; font-weight: 700; padding: 2px 8px;
  border-radius: 20px; text-transform: uppercase; letter-spacing: .04em;
}
.product-icon { font-size: 2.2rem; margin-bottom: 10px; }
.product-name { font-size: .92rem; font-weight: 700; }
.product-size { font-size: .76rem; color: var(--muted); margin-top: 2px; }
.product-price { font-size: 1.08rem; font-weight: 800; color: var(--blue-dark); margin-top: 8px; }
.product-price span { font-size: .72rem; font-weight: 400; color: var(--muted); }

.product-qty { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.qty-btn {
  width: 30px; height: 30px; border-radius: var(--r-sm);
  border: 1.5px solid var(--border); background: var(--card);
  font-size: 1.1rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: all .12s;
}
.qty-btn:hover { border-color: var(--blue); color: var(--blue); }
.qty-btn.add { border-color: var(--blue); color: var(--blue); }
.qty-btn.add:hover { background: var(--blue); color: #fff; }
.qty-val { font-size: 1rem; font-weight: 700; min-width: 24px; text-align: center; }

/* ── CART SIDEBAR ── */
.cart-col { position: sticky; top: 80px; }
.cart-box {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-md);
}
.cart-header {
  padding: 17px 20px 13px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.cart-header h3 { font-size: 1rem; font-weight: 700; }
.cart-empty-msg { font-size: .76rem; color: var(--muted); }

.cart-placeholder {
  padding: 40px 20px; text-align: center;
  color: var(--muted); font-size: .86rem;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}

.cart-items { padding: 10px 20px 0; }
.cart-item {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 8px; padding: 9px 0; border-bottom: 1px solid #f0f9ff;
}
.ci-name { flex: 1; font-size: .83rem; font-weight: 500; line-height: 1.4; }
.ci-meta { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.ci-qty { color: var(--muted); font-size: .76rem; }
.ci-price { font-weight: 700; color: var(--blue-dark); font-size: .86rem; }

.cart-total { padding: 12px 20px 0; }
.cart-total-row {
  display: flex; justify-content: space-between;
  font-size: .84rem; color: var(--muted); padding: 4px 0;
}
.cart-total-row.grand {
  font-size: 1.05rem; font-weight: 800; color: var(--text);
  padding-top: 10px; margin-top: 4px; border-top: 2px solid var(--border);
}

.btn-checkout {
  display: block; width: calc(100% - 40px); margin: 16px 20px;
  padding: 12px; background: var(--blue); color: #fff; border: none;
  border-radius: 10px; font-size: .93rem; font-weight: 700; cursor: pointer;
  transition: background .12s;
}
.btn-checkout:hover { background: var(--blue-dark); }

/* ── ORDER FORM ── */
.order-form { padding: 0 20px 20px; }
.form-divider {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--blue);
  padding: 14px 0 10px; border-top: 1px solid var(--border); margin-top: 4px;
}
.form-group { margin-bottom: 10px; }
.form-group label { display: block; font-size: .76rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.form-group input,
.form-group textarea {
  width: 100%; padding: 8px 11px; border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font-size: .87rem; font-family: inherit; color: var(--text); background: #fff;
  transition: border-color .12s; resize: none;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(14,165,233,.1); }

.order-type-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.type-btn {
  padding: 9px 8px; border: 1.5px solid var(--border); border-radius: var(--r-sm);
  background: #fff; font-size: .82rem; font-weight: 600; cursor: pointer;
  color: var(--muted); transition: all .12s; font-family: inherit;
}
.type-btn.active { border-color: var(--blue); background: #eff6ff; color: var(--blue-dark); }

.btn-place-order {
  width: 100%; padding: 12px;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  color: #fff; border: none; border-radius: 10px;
  font-size: .95rem; font-weight: 700; cursor: pointer;
  margin-top: 8px; font-family: inherit;
  box-shadow: 0 4px 14px rgba(14,165,233,.3);
  transition: transform .12s, box-shadow .12s;
}
.btn-place-order:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(14,165,233,.4); }

/* ── SUCCESS OVERLAY ── */
.success-overlay {
  position: fixed; inset: 0; background: rgba(3,105,161,.55);
  backdrop-filter: blur(4px); display: flex;
  align-items: center; justify-content: center;
  z-index: 999; padding: 20px;
}
.success-box {
  background: #fff; border-radius: 20px; padding: 40px 36px;
  max-width: 440px; width: 100%; text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
}
.success-icon { font-size: 3.5rem; margin-bottom: 16px; }
.success-box h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.success-box p { font-size: .88rem; color: var(--muted); line-height: 1.65; margin-bottom: 20px; }
.success-ref { font-size: .8rem; color: var(--muted); margin-bottom: 24px; }
.success-ref strong { color: var(--blue-dark); font-size: .9rem; }
.btn-success-close {
  background: var(--blue); color: #fff; border: none; border-radius: 10px;
  padding: 11px 28px; font-size: .93rem; font-weight: 700; cursor: pointer;
  font-family: inherit;
}
.btn-success-close:hover { background: var(--blue-dark); }

/* ── HOW TO ORDER ── */
.hiw-section { background: #fff; padding: 64px 24px; }
.hiw-section .container { max-width: 900px; margin: 0 auto; text-align: center; }
.hiw-section h2 { font-size: 1.65rem; font-weight: 800; margin-bottom: 10px; }
.hiw-section .sub { font-size: .9rem; color: var(--muted); margin-bottom: 40px; }
.hiw-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.hiw-step { text-align: center; padding: 0 8px; }
.hiw-num {
  width: 48px; height: 48px; background: var(--blue); color: #fff;
  border-radius: 50%; font-size: 1.2rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
}
.hiw-title { font-size: .9rem; font-weight: 700; margin-bottom: 6px; }
.hiw-text { font-size: .8rem; color: var(--muted); line-height: 1.65; }

/* ── FOOTER ── */
.site-footer { background: var(--blue-deep); color: rgba(255,255,255,.8); padding: 52px 24px 0; }
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px; padding-bottom: 44px;
}
.footer-logo { font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer-desc { font-size: .82rem; opacity: .6; line-height: 1.7; }
.footer-col h4 {
  font-size: .74rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: #fff; margin-bottom: 10px;
}
.footer-col p { font-size: .82rem; line-height: 1.85; opacity: .65; }
.footer-bottom {
  max-width: 1280px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .76rem; opacity: .5;
}
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { opacity: 1; text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .main-layout { grid-template-columns: 1fr; }
  .cart-col { position: static; }
  .cart-box { max-width: 540px; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .header-nav { display: none; }
  .hiw-steps { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .hiw-steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .topbar-info { display: none; }
  .hero-stats .stat + .stat { border-left: none; }
}
