﻿/* ============================================================
   CSS Custom Properties
============================================================ */
:root {
  --primary:    #0f172a;
  --primary-lt: #1e293b;
  --accent:     #c9a227;
  --accent-lt:  #e8c547;
  --white:      #ffffff;
  --gray-50:    #f8fafc;
  --gray-100:   #f1f5f9;
  --gray-200:   #e2e8f0;
  --gray-300:   #cbd5e1;
  --gray-500:   #64748b;
  --gray-700:   #334155;
  --gray-900:   #0f172a;
  --red:        #ef4444;
  --green:      #22c55e;
  --radius:     12px;
  --shadow:     0 4px 24px rgba(0,0,0,.10);
  --shadow-lg:  0 12px 48px rgba(0,0,0,.18);
  --font-head:  'Poppins', sans-serif;
  --font-body:  'Inter', sans-serif;
  --header-h:   72px;
  --max-w:      1200px;
}

/* ============================================================
   Reset
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--gray-900); background: var(--white); line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ============================================================
   Typography
============================================================ */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; }

/* ============================================================
   Layout helpers
============================================================ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.section    { padding: 80px 0; }

/* ============================================================
   Buttons
============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 999px; font-weight: 700; font-size: .9rem;
  text-decoration: none; transition: all .2s; white-space: nowrap;
}
.btn-primary   { background: var(--accent); color: var(--primary); }
.btn-primary:hover { background: var(--accent-lt); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(201,162,39,.35); }
.btn-outline   { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-dark      { background: var(--primary); color: var(--white); }
.btn-dark:hover { background: var(--primary-lt); transform: translateY(-1px); }

/* ============================================================
   Header / Nav
============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: var(--primary); display: flex; align-items: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.25); transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.35); }
.nav-inner {
  max-width: var(--max-w); width: 100%; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-mark { height: 30px; width: auto; display: block; }
.logo-text  { font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; color: var(--white); }
.logo-text span { color: var(--accent); }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a {
  padding: 8px 14px; border-radius: 8px; font-size: .875rem; font-weight: 500;
  color: rgba(255,255,255,.8); text-decoration: none; transition: all .2s;
}
.main-nav a:hover { color: var(--white); background: rgba(255,255,255,.1); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.cart-btn {
  position: relative; width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.1); color: var(--white); font-size: 1.1rem;
  transition: background .2s;
}
.cart-btn:hover { background: rgba(255,255,255,.2); }
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; border-radius: 999px;
  background: var(--accent); color: var(--primary);
  font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.cart-badge[data-count="0"] { display: none; }
.hamburger { display: none; flex-direction: column; gap: 5px; width: 28px; padding: 4px 0; }
.hamburger span { display: block; height: 2px; background: var(--white); border-radius: 2px; transition: all .3s; }

/* ============================================================
   Hero
============================================================ */
.hero {
  background: var(--primary); color: var(--white);
  padding: 100px 20px 80px; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(201,162,39,.18) 0%, transparent 70%);
}
.hero-tag {
  display: inline-block; padding: 4px 16px; border-radius: 999px;
  background: rgba(201,162,39,.15); border: 1px solid rgba(201,162,39,.35);
  font-size: .8rem; font-weight: 700; color: var(--accent); letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 900; line-height: 1.1;
  margin-bottom: 24px; position: relative;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p {
  font-size: 1.1rem; color: rgba(255,255,255,.7); max-width: 560px;
  margin: 0 auto 36px; position: relative;
}
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }
.hero-stats { display: flex; gap: 40px; justify-content: center; margin-top: 64px; flex-wrap: wrap; position: relative; }
.hero-stat-num { font-family: var(--font-head); font-size: 2rem; font-weight: 900; color: var(--accent); }
.hero-stat-lbl { font-size: .8rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .08em; }

/* ============================================================
   Section headers
============================================================ */
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block; padding: 4px 14px; border-radius: 999px;
  background: rgba(201,162,39,.1); color: var(--accent);
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px;
}
.section-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; color: var(--primary); }
.section-header p  { color: var(--gray-500); font-size: 1rem; margin-top: 10px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ============================================================
   Products Grid
============================================================ */
.products-section { background: var(--gray-50); }
.filter-bar  { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn  {
  padding: 8px 20px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  border: 2px solid var(--gray-200); color: var(--gray-500); background: var(--white);
  transition: all .2s;
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--accent); background: var(--accent); color: var(--primary);
}
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.product-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06); border: 1px solid var(--gray-100);
  transition: transform .25s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-card[hidden] { display: none !important; }
.product-img {
  aspect-ratio: 4/3; background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; position: relative;
  background-image: linear-gradient(135deg, var(--primary) 0%, var(--primary-lt) 100%);
}
.product-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.product-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700;
  background: var(--accent); color: var(--primary);
}
.product-body { padding: 20px; }
.product-name { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.product-desc { font-size: .85rem; color: var(--gray-500); margin-bottom: 14px; line-height: 1.5; }
.product-meta { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: 1.1rem; font-weight: 800; color: var(--accent); }
.product-unit  { font-size: .75rem; color: var(--gray-500); font-weight: 400; }
.btn-add { padding: 9px 18px; border-radius: 8px; font-size: .85rem; font-weight: 700; background: var(--primary); color: var(--white); transition: background .2s; }
.btn-add:hover { background: var(--primary-lt); }

/* ============================================================
   Product Modal
============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--white); border-radius: 20px; max-width: 640px; width: 100%;
  max-height: 92vh; overflow-y: auto; box-shadow: var(--shadow-lg);
  transform: scale(.95) translateY(12px); transition: transform .25s;
}
.modal-overlay.open .modal { transform: none; }
.modal-header {
  padding: 28px 28px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
}
.modal-header h2 { font-size: 1.4rem; font-weight: 800; }
.modal-close { width: 36px; height: 36px; border-radius: 50%; background: var(--gray-100); font-size: 1.1rem; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.modal-close:hover { background: var(--gray-200); }
.modal-body { padding: 20px 28px 28px; }
.modal-desc { font-size: .9rem; color: var(--gray-500); margin-bottom: 20px; line-height: 1.6; }
.modal-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-500); margin-bottom: 8px; }
.size-grid   { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; margin-bottom: 20px; }
.size-btn    { padding: 8px 4px; border-radius: 8px; border: 2px solid var(--gray-200); font-size: .85rem; font-weight: 600; transition: all .2s; text-align: center; }
.size-btn:hover  { border-color: var(--accent); color: var(--accent); }
.size-btn.active { border-color: var(--accent); background: var(--accent); color: var(--primary); }
.mat-grid    { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.mat-btn     { padding: 8px 16px; border-radius: 8px; border: 2px solid var(--gray-200); font-size: .85rem; font-weight: 600; transition: all .2s; }
.mat-btn:hover  { border-color: var(--accent); color: var(--accent); }
.mat-btn.active { border-color: var(--accent); background: var(--accent); color: var(--primary); }
.opts-grid   { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.opt-btn     { padding: 7px 14px; border-radius: 8px; border: 2px solid var(--gray-200); font-size: .82rem; font-weight: 600; transition: all .2s; }
.opt-btn.active { border-color: var(--accent); background: rgba(201,162,39,.1); color: var(--accent); }
.qty-row     { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.qty-ctrl    { display: flex; align-items: center; gap: 0; border: 2px solid var(--gray-200); border-radius: 10px; overflow: hidden; }
.qty-ctrl button { width: 36px; height: 36px; font-size: 1.1rem; font-weight: 700; background: var(--gray-100); transition: background .2s; }
.qty-ctrl button:hover { background: var(--gray-200); }
.qty-val { width: 48px; text-align: center; font-size: .95rem; font-weight: 700; }
.modal-price { font-size: 1.5rem; font-weight: 900; color: var(--accent); margin-left: auto; }
.file-upload-area {
  border: 2px dashed var(--gray-200); border-radius: 12px; padding: 24px;
  text-align: center; cursor: pointer; transition: all .2s; margin-bottom: 20px;
}
.file-upload-area:hover, .file-upload-area.drag-over { border-color: var(--accent); background: rgba(201,162,39,.05); }
.file-upload-area p { font-size: .85rem; color: var(--gray-500); margin-top: 8px; }
#fileNameDisplay { font-size: .82rem; color: var(--green); font-weight: 600; margin-top: 8px; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; }
.btn-modal-add { padding: 14px 32px; border-radius: 999px; font-size: .95rem; font-weight: 800; background: var(--accent); color: var(--primary); transition: all .2s; }
.btn-modal-add:hover { background: var(--accent-lt); transform: translateY(-1px); }

/* ============================================================
   How It Works
============================================================ */
.how-section { background: var(--white); }
.steps-grid  { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; counter-reset: step; }
.step-card { text-align: center; counter-increment: step; }
.step-icon { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 20px; background: rgba(201,162,39,.1); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; border: 2px solid rgba(201,162,39,.25); }
.step-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; }
.step-card p  { font-size: .875rem; color: var(--gray-500); line-height: 1.6; }

/* ============================================================
   Materials
============================================================ */
.materials-section { background: var(--primary); color: var(--white); }
.materials-section .section-header h2 { color: var(--white); }
.materials-section .section-header p  { color: rgba(255,255,255,.6); }
.materials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.material-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; padding: 28px; transition: all .25s;
}
.material-card:hover { background: rgba(255,255,255,.1); transform: translateY(-4px); }
.material-icon  { font-size: 2.4rem; margin-bottom: 16px; }
.material-card h3 { font-size: 1.1rem; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.material-card p  { font-size: .875rem; color: rgba(255,255,255,.6); line-height: 1.6; }
.material-price   { margin-top: 16px; font-size: 1.1rem; font-weight: 800; color: var(--accent); }

/* ============================================================
   Testimonials
============================================================ */
.testimonials-section { background: var(--gray-50); }
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.testi-card { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.testi-stars { color: var(--accent); font-size: 1rem; margin-bottom: 12px; }
.testi-text  { font-size: .9rem; color: var(--gray-700); line-height: 1.7; font-style: italic; margin-bottom: 16px; }
.testi-author { display: flex; align-items: center; gap: 10px; }
.testi-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; color: var(--accent); font-weight: 800; font-size: .95rem; }
.testi-name { font-weight: 700; font-size: .875rem; }
.testi-role { font-size: .78rem; color: var(--gray-500); }

/* ============================================================
   Newsletter / CTA
============================================================ */
.cta-section { background: var(--accent); padding: 72px 20px; text-align: center; }
.cta-section h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 900; color: var(--primary); margin-bottom: 12px; }
.cta-section p   { color: rgba(15,23,42,.65); font-size: 1rem; margin-bottom: 28px; }
.newsletter-form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.newsletter-form input { flex: 1; min-width: 220px; padding: 13px 20px; border-radius: 999px; border: none; font-size: .9rem; outline: none; }
.newsletter-form button { padding: 13px 28px; border-radius: 999px; background: var(--primary); color: var(--white); font-weight: 700; font-size: .9rem; transition: background .2s; }
.newsletter-form button:hover { background: var(--primary-lt); }

/* ============================================================
   Footer
============================================================ */
.site-footer { background: var(--primary); color: rgba(255,255,255,.55); padding: 56px 20px 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; max-width: var(--max-w); margin-left: auto; margin-right: auto; }
.footer-brand .logo-text { font-size: 1.1rem; }
.footer-brand p { font-size: .85rem; margin-top: 12px; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 16px; }
.footer-col a  { display: block; font-size: .85rem; margin-bottom: 10px; text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { max-width: var(--max-w); margin: 0 auto; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: .8rem; }
.footer-bottom a { color: rgba(255,255,255,.4); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }

/* ============================================================
   Cart Drawer
============================================================ */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 150; display: none; }
.cart-overlay:not([hidden]) { display: block; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(400px, 95vw);
  background: var(--white); z-index: 151; transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1); box-shadow: -8px 0 32px rgba(0,0,0,.15);
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-header { padding: 20px 20px 16px; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.cart-drawer-header h2 { font-size: 1.1rem; font-weight: 800; }
.cart-close { width: 36px; height: 36px; border-radius: 50%; background: var(--gray-100); display: flex; align-items: center; justify-content: center; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px; }
.cart-item  { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
.cart-item-img  { width: 52px; height: 52px; border-radius: 10px; background: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: .9rem; font-weight: 700; }
.cart-item-meta { font-size: .78rem; color: var(--gray-500); margin: 2px 0 8px; }
.cart-item-footer { display: flex; align-items: center; gap: 8px; }
.cart-item-price  { font-size: .9rem; font-weight: 800; color: var(--accent); margin-right: auto; }
.cart-qty-control { display: flex; align-items: center; border: 1px solid var(--gray-200); border-radius: 8px; overflow: hidden; }
.cart-qty-btn { width: 28px; height: 28px; font-size: .9rem; font-weight: 700; background: var(--gray-50); transition: background .2s; }
.cart-qty-btn:hover { background: var(--gray-100); }
.cart-qty-val { width: 32px; text-align: center; font-size: .85rem; font-weight: 700; }
.cart-remove-btn { font-size: .78rem; color: var(--gray-500); padding: 4px; transition: color .2s; }
.cart-remove-btn:hover { color: var(--red); }
.cart-empty  { text-align: center; padding: 40px 20px; }
.empty-icon  { font-size: 3rem; margin-bottom: 12px; }
.cart-empty p { color: var(--gray-500); font-size: .9rem; margin-bottom: 16px; }
.cart-footer { padding: 16px; border-top: 1px solid var(--gray-100); flex-shrink: 0; }
.cart-subtotal { display: flex; justify-content: space-between; font-size: .88rem; margin-bottom: 6px; }
.cart-subtotal .amount { font-weight: 700; }
.cart-note { font-size: .78rem; color: var(--gray-500); margin: 6px 0; }
.btn-checkout { width: 100%; margin-top: 12px; padding: 14px; border-radius: 12px; background: var(--accent); color: var(--primary); font-weight: 800; font-size: .95rem; transition: background .2s; }
.btn-checkout:hover { background: var(--accent-lt); }

/* ============================================================
   Toast
============================================================ */
#toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(16px);
  background: var(--primary); color: var(--white); padding: 12px 24px; border-radius: 999px;
  font-size: .875rem; font-weight: 600; z-index: 300; pointer-events: none;
  opacity: 0; transition: all .3s; white-space: nowrap;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   Back-to-Top
============================================================ */
#backToTop {
  position: fixed; bottom: 24px; right: 24px; z-index: 99;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: var(--primary); font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); transition: all .2s;
}
#backToTop:hover { transform: translateY(-3px); }

/* ============================================================
   Search Overlay
============================================================ */
.search-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.7); backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center; padding-top: 100px;
}
.search-overlay[hidden] { display: none; }
.search-box { background: var(--white); border-radius: 16px; width: min(560px, 90vw); overflow: hidden; }
.search-input-row { display: flex; align-items: center; padding: 16px 20px; gap: 12px; border-bottom: 1px solid var(--gray-100); }
.search-input-row input { flex: 1; border: none; font-size: 1rem; outline: none; }
.search-close { font-size: 1.2rem; color: var(--gray-500); padding: 4px; }
.search-hint  { padding: 20px; font-size: .85rem; color: var(--gray-500); }

/* ============================================================
   Checkout page
============================================================ */
.co-header { background: var(--primary); padding: 20px 0; }
.co-logo a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.co-logo-text { font-family: var(--font-head); font-size: 1.2rem; font-weight: 800; color: var(--white); }
.co-logo-text span { color: var(--accent); }
.co-steps { display: flex; justify-content: center; gap: 0; margin-top: 20px; }
.co-step {
  padding: 8px 20px; font-size: .8rem; font-weight: 700; color: rgba(255,255,255,.4);
  border-bottom: 2px solid transparent; text-transform: uppercase; letter-spacing: .06em;
}
.co-step.active { color: var(--accent); border-color: var(--accent); }
.co-main { min-height: calc(100vh - 120px); padding: 40px 20px; background: var(--gray-50); }
.co-grid { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.co-left  { display: flex; flex-direction: column; gap: 20px; }
.co-right { position: sticky; top: 20px; }
.co-card  { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.co-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--gray-100); }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.co-field { display: flex; flex-direction: column; gap: 5px; }
.co-field label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-500); }
.co-field input, .co-field select, .co-field textarea {
  padding: 11px 14px; border: 2px solid var(--gray-200); border-radius: 10px;
  font-family: inherit; font-size: .9rem; color: var(--gray-900); transition: border-color .2s;
}
.co-field input:focus, .co-field select:focus, .co-field textarea:focus { border-color: var(--accent); outline: none; }
.co-field input.error, .co-field select.error { border-color: var(--red); }
.co-ship-opt {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border: 2px solid var(--gray-200); border-radius: 10px; cursor: pointer; transition: all .2s;
}
.co-ship-opt.selected { border-color: var(--accent); background: rgba(201,162,39,.05); }
.co-ship-opt input[type=radio] { accent-color: var(--accent); }
.co-ship-label { flex: 1; }
.co-ship-name  { font-weight: 700; font-size: .9rem; }
.co-ship-desc  { font-size: .8rem; color: var(--gray-500); }
.co-ship-price { font-size: .95rem; font-weight: 800; color: var(--accent); }
.co-ship-price.free { color: var(--green); }
#shippingOptions { display: flex; flex-direction: column; gap: 10px; }
.co-sum-item  { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--gray-100); }
.co-sum-icon  { font-size: 1.4rem; width: 36px; text-align: center; flex-shrink: 0; }
.co-sum-name  { font-weight: 700; font-size: .875rem; }
.co-sum-meta  { font-size: .78rem; color: var(--gray-500); margin-top: 2px; }
.co-sum-price { font-weight: 800; font-size: .875rem; margin-left: auto; flex-shrink: 0; }
#summaryTotals { margin-top: 12px; }
.co-total-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: .875rem; }
.co-total-row .free { color: var(--green); font-weight: 700; }
.co-total-row.total { border-top: 2px solid var(--gray-200); margin-top: 6px; padding-top: 10px; font-weight: 800; font-size: 1.1rem; color: var(--accent); }
.co-btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px; border-radius: 999px;
  background: var(--accent); color: var(--primary); font-weight: 800; font-size: .95rem;
  text-decoration: none; transition: background .2s; text-align: center;
}
.co-btn-primary:hover { background: var(--accent-lt); }
#paypal-button-container { margin-top: 16px; }
#payment-status { display: none; padding: 12px 16px; border-radius: 8px; margin-bottom: 12px; font-size: .875rem; }
.co-confirmation { display: none; max-width: 540px; margin: 0 auto; text-align: center; padding: 60px 20px; }
.co-confirmation .check { width: 72px; height: 72px; border-radius: 50%; background: #dcfce7; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.co-confirmation h2 { font-size: 1.8rem; font-weight: 900; margin-bottom: 12px; }
.co-confirmation p  { color: var(--gray-500); margin-bottom: 24px; }
#confirmCard { background: var(--white); border-radius: var(--radius); padding: 24px; text-align: left; box-shadow: var(--shadow); margin-bottom: 24px; }

/* ============================================================
   Admin
============================================================ */
.admin-header { background: var(--primary); color: var(--white); padding: 0; }
.admin-nav { max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 60px; display: flex; align-items: center; gap: 16px; }
.admin-logo { font-family: var(--font-head); font-size: 1rem; font-weight: 800; display: inline-flex; align-items: center; gap: 8px; }
.admin-logo .logo-mark { height: 22px; }
.admin-logo span { color: var(--accent); }
.admin-badge { padding: 3px 10px; border-radius: 999px; background: rgba(201,162,39,.2); color: var(--accent); font-size: .72rem; font-weight: 700; }
.admin-main { max-width: 1200px; margin: 0 auto; padding: 28px 20px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--white); border-radius: 12px; padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.stat-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-500); margin-bottom: 6px; }
.stat-value { font-size: 1.8rem; font-weight: 900; color: var(--primary); }
.stat-value.accent { color: var(--accent); }
.admin-controls { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-controls input, .admin-controls select { padding: 9px 14px; border: 1px solid var(--gray-200); border-radius: 8px; font-size: .875rem; }
.admin-controls input { flex: 1; min-width: 200px; }

/* ============================================================
   Responsive
============================================================ */
@media (max-width: 768px) {
  .hamburger { display: flex; margin-left: auto; }
  .main-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--primary); flex-direction: column; padding: 12px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 16px; border-radius: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .co-grid { grid-template-columns: 1fr; }
  .co-right { position: static; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 24px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: 1fr; }
  .co-row { grid-template-columns: 1fr; }
}

/* ============================================================
   Homepage v2
============================================================ */
.hero-v2 { text-align: left; padding: 72px 20px 64px; }
.hero-v2::before { background: radial-gradient(ellipse at 75% 40%, rgba(201,162,39,.22) 0%, transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; position: relative; }
.hero-v2 h1 { font-size: clamp(2.4rem, 4.6vw, 3.9rem); margin-bottom: 20px; }
.hero-v2 p { margin: 0 0 28px; max-width: 520px; font-size: 1.05rem; }
.hero-v2 .hero-ctas { justify-content: flex-start; }
.hero-checks { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; }
.hero-checks li { font-size: .85rem; color: rgba(255,255,255,.75); padding-left: 22px; position: relative; }
.hero-checks li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 560px; margin-left: auto; width: 100%; }
.hero-main-img { position: absolute; inset: 0 0 0 10%; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--white); }
.hero-main-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-float { position: absolute; width: 36%; border-radius: 14px; overflow: hidden; background: var(--white); box-shadow: var(--shadow-lg); border: 3px solid var(--white); }
.hero-float img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.hero-float span { display: block; font-size: .72rem; font-weight: 700; color: var(--primary); padding: 6px 10px; text-transform: uppercase; letter-spacing: .05em; }
.hero-float-a { left: 0; top: 8%; }
.hero-float-b { right: -4%; bottom: 10%; }
.hero-chip { position: absolute; left: 4%; bottom: 2%; background: var(--primary); color: var(--white); border: 1px solid rgba(201,162,39,.5); border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow-lg); }
.hero-chip strong { display: block; color: var(--accent); font-family: var(--font-head); font-size: .9rem; }
.hero-chip span { font-size: .72rem; color: rgba(255,255,255,.7); }

.trust-strip { background: var(--white); border-bottom: 1px solid var(--gray-100); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 22px 12px; text-align: center; border-left: 1px solid var(--gray-100); }
.trust-item:first-child { border-left: none; }
.trust-num { font-family: var(--font-head); font-size: 1.5rem; font-weight: 900; color: var(--primary); }
.trust-lbl { font-size: .78rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: .06em; }

.categories-section { background: var(--white); }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cat-card { display: block; text-decoration: none; color: inherit; border-radius: 16px; overflow: hidden; background: var(--gray-50); border: 1px solid var(--gray-100); transition: transform .25s, box-shadow .25s; }
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #f3f3f3; }
.cat-body { padding: 20px 22px 24px; }
.cat-body h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 6px; }
.cat-body p { font-size: .88rem; color: var(--gray-500); line-height: 1.55; margin-bottom: 12px; }
.cat-link { font-weight: 800; color: var(--accent); font-size: .9rem; }

.product-img { background: #f4f4f5; aspect-ratio: 1 / 1; }
.product-img img { object-fit: cover; }
.product-sizes { font-size: .75rem; color: var(--gray-500); font-weight: 600; letter-spacing: .03em; margin-bottom: 8px; }
.product-from { font-size: .75rem; color: var(--gray-500); font-weight: 600; }

.preview-section { background: var(--primary); color: var(--white); }
.preview-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.preview-visual { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--white); }
.preview-visual img { width: 100%; display: block; }
.preview-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; margin: 12px 0 16px; }
.preview-copy p { color: rgba(255,255,255,.7); line-height: 1.7; margin-bottom: 20px; }
.preview-list { list-style: none; margin: 0 0 28px; }
.preview-list li { padding: 10px 0 10px 28px; position: relative; font-size: .92rem; color: rgba(255,255,255,.8); border-top: 1px solid rgba(255,255,255,.08); }
.preview-list li::before { content: '◆'; position: absolute; left: 4px; color: var(--accent); font-size: .7rem; top: 14px; }
.preview-list strong { color: var(--white); }
.preview-section .btn-dark { background: var(--accent); color: var(--primary); }
.preview-section .btn-dark:hover { background: var(--accent-lt); }

.steps-v2 .step-card { text-align: left; background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: 16px; padding: 26px 24px; }
.step-num { width: 40px; height: 40px; border-radius: 10px; background: var(--primary); color: var(--accent); font-family: var(--font-head); font-weight: 900; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }

.hardware-section { background: var(--gray-50); }
.hw-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hw-card { background: var(--white); border-radius: 14px; overflow: hidden; border: 1px solid var(--gray-100); }
.hw-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.hw-card figcaption { padding: 14px 16px 16px; }
.hw-card strong { display: block; font-size: .92rem; margin-bottom: 2px; }
.hw-card span { font-size: .78rem; color: var(--gray-500); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .cat-grid { grid-template-columns: 1fr; }
  .preview-grid { grid-template-columns: 1fr; gap: 32px; }
  .hw-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: none; }
  .trust-item { border-top: 1px solid var(--gray-100); }
  .trust-item:nth-child(-n+2) { border-top: none; }
}
