/* TrendTajer — design system
   Ink slate + electric blue, Space Grotesk / Inter */
:root {
  --ink: #0b1220;
  --ink-2: #1e293b;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;   /* solid fills — passes WCAG w/ white text */
  --brand-soft: #eff6ff;
  --accent: #f59e0b;
  --good: #059669;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(11, 18, 32, .08);
  --shadow-lg: 0 12px 40px rgba(11, 18, 32, .14);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; }
h1,h2,h3,h4 { font-family: 'Space Grotesk', 'Inter', sans-serif; color: var(--ink); line-height: 1.2; letter-spacing: -.01em; }
a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Topbar + header */
.topbar { background: var(--ink); color: #cbd5e1; text-align: center; font-size: 13px; padding: 7px 12px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 66px; }
.logo { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 24px; color: var(--ink); }
.logo span { color: var(--brand); }
.logo em { font-style: normal; font-size: 18px; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav > a, .dd-toggle { color: var(--ink-2); font-weight: 500; font-size: 15px; padding: 6px 2px; }
.main-nav > a.on { color: var(--brand); font-weight: 600; }
.main-nav > a:hover, .dd-toggle:hover { color: var(--brand); }
.nav-dd { position: relative; }
.dd-menu { display: none; position: absolute; top: 100%; left: -12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; min-width: 230px; }
.nav-dd:hover .dd-menu, .nav-dd:focus-within .dd-menu { display: block; }
.dd-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink-2); font-size: 14.5px; }
.dd-menu a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.cart-btn { background: var(--ink); color: #fff; padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 14.5px; transition: .18s; }
.cart-btn:hover { background: var(--brand-dark); }
.cart-count { background: var(--accent); color: var(--ink); border-radius: 999px; padding: 1px 8px; font-size: 12.5px; font-weight: 700; margin-left: 4px; }
.burger { display: none; font-size: 24px; background: none; border: 0; cursor: pointer; color: var(--ink); }

/* Buttons */
.btn { display: inline-block; padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 15.5px; border: 0; cursor: pointer; font-family: 'Inter', sans-serif; transition: .18s; text-align: center; }
.btn-primary { background: var(--brand-dark); color: #fff; }
.btn-primary:hover { background: var(--ink); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-block { display: block; width: 100%; }

/* Hero */
.hero { background: radial-gradient(1000px 500px at 85% -10%, #1e3a8a 0%, var(--ink) 55%); color: #e2e8f0; padding: 84px 0 96px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 300px at 15% 110%, rgba(37,99,235,.25), transparent 70%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(34px, 5vw, 54px); margin: 14px 0 18px; }
.hero h1 .hl { color: #60a5fa; }
.hero p { font-size: 18px; color: #cbd5e1; max-width: 540px; }
.hero-kicker { display: inline-block; background: rgba(37,99,235,.18); border: 1px solid rgba(96,165,250,.35); color: #93c5fd; font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-tile { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 22px 16px; text-align: center; font-size: 34px; backdrop-filter: blur(4px); }
.hero-tile small { display: block; font-size: 13px; color: #94a3b8; margin-top: 6px; font-weight: 500; }

/* Trust strip */
.trust { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.trust-row { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; flex-wrap: wrap; }
.trust-row span { font-size: 14.5px; font-weight: 600; color: var(--ink-2); }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-soft); }
.sec-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 10px; }
.sec-head p { color: var(--muted); font-size: 16.5px; }

/* Category grid */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; transition: .2s; display: block; }
.cat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: #bfdbfe; }
.cat-card .emoji { font-size: 34px; }
.cat-card h3 { font-size: 18.5px; margin: 12px 0 6px; }
.cat-card p { font-size: 14.5px; color: var(--muted); }
.cat-card .go { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 14px; color: var(--brand-dark); }

/* Product cards */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.prod-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .2s; position: relative; }
.prod-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.prod-thumb { aspect-ratio: 1/.85; display: flex; align-items: center; justify-content: center; font-size: 64px; position: relative; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--accent); color: var(--ink); font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px; z-index: 2; }
.badge.new { background: var(--good); color: #fff; }
.prod-body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.prod-cat { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.prod-body h3 { font-size: 16.5px; margin: 6px 0 6px; }
.prod-body h3 a { color: var(--ink); }
.prod-body h3 a:hover { color: var(--brand-dark); }
.prod-short { font-size: 14px; color: var(--muted); flex: 1; }
.prod-price-row { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; gap: 10px; }
.price { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 19px; color: var(--ink); }
.old-price { font-size: 14px; color: var(--muted); text-decoration: line-through; margin-left: 7px; font-weight: 500; }

/* Why us */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why-card { text-align: center; padding: 28px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.why-card .ic { font-size: 34px; }
.why-card h3 { font-size: 17px; margin: 12px 0 6px; }
.why-card p { font-size: 14px; color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--brand-dark), #4338ca); border-radius: 20px; color: #fff; padding: 52px 48px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); }
.cta-band p { color: #dbeafe; margin-top: 6px; }
.cta-band .btn { background: #fff; color: var(--brand-dark); }
.cta-band .btn:hover { background: var(--ink); color: #fff; }

/* Shop page */
.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 44px 0; }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); }
.page-head p { color: var(--muted); margin-top: 8px; max-width: 640px; }
.cat-pills { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0 6px; }
.pill { border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 500; }
.pill:hover { border-color: var(--brand); color: var(--brand-dark); }
.pill.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Product page */
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.pd-thumb { border-radius: 18px; aspect-ratio: 1/.9; display: flex; align-items: center; justify-content: center; font-size: 130px; position: relative; box-shadow: var(--shadow); }
.pd-info .prod-cat { font-size: 13px; }
.pd-info h1 { font-size: clamp(26px, 3.4vw, 36px); margin: 8px 0 12px; }
.pd-price { font-size: 30px; }
.pd-desc { margin: 18px 0; font-size: 16px; }
.pd-features { list-style: none; margin: 0 0 24px; }
.pd-features li { padding: 7px 0 7px 30px; position: relative; font-size: 15px; }
.pd-features li::before { content: '✓'; position: absolute; left: 0; top: 7px; width: 21px; height: 21px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.qty-row { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; }
.qty-input { width: 74px; padding: 12px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 16px; text-align: center; font-family: inherit; }
.pd-trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.pd-trust span { font-size: 13.5px; color: var(--muted); font-weight: 500; }

/* Cart & checkout */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 0 12px 12px; border-bottom: 1px solid var(--line); }
.cart-table td { padding: 16px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-item-name { font-weight: 600; color: var(--ink); }
.cart-thumb-sm { width: 58px; height: 58px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.remove-link { color: #dc2626; font-size: 13.5px; }
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; align-items: start; }
.summary-box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.summary-box h3 { margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 15px; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; font-weight: 700; font-size: 18px; color: var(--ink); }
.free-ship-note { font-size: 13.5px; color: var(--good); font-weight: 600; margin: 8px 0 2px; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 15px; font-family: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.pay-methods { display: grid; gap: 10px; margin: 18px 0; }
.pay-opt { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 10px; padding: 14px 16px; cursor: pointer; font-weight: 500; background: #fff; }
.pay-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.notice { background: var(--brand-soft); border: 1px solid #bfdbfe; color: var(--ink-2); border-radius: 10px; padding: 14px 16px; font-size: 14.5px; }
.success-box { text-align: center; max-width: 560px; margin: 0 auto; padding: 30px 0; }
.success-box .big { font-size: 64px; }
.success-box h1 { margin: 14px 0 10px; }
.order-ref { font-family: 'Space Grotesk', monospace; background: var(--bg-soft); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 20px; display: inline-block; font-weight: 700; font-size: 19px; color: var(--ink); margin: 12px 0; }

/* Content pages */
.content-page { max-width: 780px; margin: 0 auto; }
.content-page h2 { margin: 34px 0 12px; font-size: 24px; }
.content-page p, .content-page li { color: var(--text); font-size: 15.5px; }
.content-page ul { padding-left: 22px; margin: 10px 0; }
.empty-state { text-align: center; padding: 60px 0; }
.empty-state .big { font-size: 60px; }
.empty-state h2 { margin: 14px 0 8px; }

/* Category tints for thumbs */
.tint-smart-home { background: linear-gradient(135deg,#dbeafe,#ede9fe); }
.tint-charging-power { background: linear-gradient(135deg,#fef3c7,#ffedd5); }
.tint-mobile { background: linear-gradient(135deg,#e0f2fe,#dbeafe); }
.tint-office { background: linear-gradient(135deg,#f1f5f9,#e2e8f0); }
.tint-gaming { background: linear-gradient(135deg,#ede9fe,#fae8ff); }
.tint-audio { background: linear-gradient(135deg,#fee2e2,#fce7f3); }
.tint-home-lifestyle { background: linear-gradient(135deg,#dcfce7,#d1fae5); }
.tint-car { background: linear-gradient(135deg,#e2e8f0,#dbeafe); }
.tint-pet-tech { background: linear-gradient(135deg,#ffedd5,#fef9c3); }

/* Footer */
.site-footer { background: var(--ink); color: #94a3b8; margin-top: 80px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 56px 20px 34px; }
.logo-foot { color: #fff; }
.foot-grid p { font-size: 14px; margin-top: 12px; max-width: 320px; }
.foot-grid h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.foot-grid a { display: block; color: #94a3b8; font-size: 14px; padding: 4px 0; }
.foot-grid a:hover { color: #60a5fa; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid #1e293b; padding-top: 22px; padding-bottom: 26px; font-size: 13.5px; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 440px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-grid, .cart-layout { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .main-nav { display: none; position: absolute; top: 66px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 20px 18px; gap: 4px; box-shadow: var(--shadow-lg); }
  .main-nav.open { display: flex; }
  .main-nav > a, .dd-toggle { padding: 10px 4px; }
  .dd-menu { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 14px; }
  .burger { display: block; }
  .trust-row { justify-content: center; }
}
@media (max-width: 520px) {
  .prod-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 26px; }
  .cart-table th:nth-child(3), .cart-table td:nth-child(3) { display: none; }
}
