/* ==========================================================================
   Zithel Gadgets & Solar — design tokens
   Palette: deep navy (structure/dark) + electric blue (gadgets) +
            solar amber (solar) on a light paper surface.
   Type: Space Grotesk (display) + Source Sans 3 (body/UI)
   ========================================================================== */

:root {
  --navy-deep: #0B1220;
  --navy-ink: #131F33;
  --blue: #2E5BFF;
  --blue-dim: #23439E;
  --amber: #F2A93B;
  --amber-dim: #C9821F;
  --paper: #F5F6F8;
  --white: #FFFFFF;
  --ink: #12161F;
  --slate: #5B6472;
  --line: #E2E5EA;

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;

  --radius-s: 3px;
  --radius-m: 8px;
  --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; color: var(--slate); }

button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .hero-art .draw { stroke-dashoffset: 0; }
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  background: var(--navy-deep);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  white-space: nowrap;
}

.logo .mark { width: 76px; height: 76px; color: var(--amber); flex-shrink: 0; object-fit: contain; }
.logo .sub { font-weight: 400; color: rgba(255,255,255,0.55); font-size: 0.95rem; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: var(--radius-s);
  font-size: 0.97rem;
  color: rgba(255,255,255,0.78);
  transition: color 0.15s, background 0.15s;
}

.main-nav a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.main-nav a.active { color: var(--white); }

.cart-link {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-count {
  background: var(--amber);
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 0.75rem;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  width: 40px;
  height: 40px;
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 96px;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    display: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 8px; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-s);
  font-size: 0.98rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.15s, border-color 0.15s;
}

.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dim); }

.btn-amber { background: var(--amber); color: var(--navy-deep); }
.btn-amber:hover { background: var(--amber-dim); color: var(--white); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }

.btn-line {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-line:hover { border-color: var(--slate); }

.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 0.88rem; }

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ==========================================================================
   Hero (home page)
   ========================================================================== */

.hero {
  background: linear-gradient(115deg, rgba(11,18,32,0.92) 0%, rgba(11,18,32,0.82) 40%, rgba(11,18,32,0.55) 100%),
              url("images/brand/hero-store.jpg");
  background-size: cover;
  background-position: center 15%;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}

.hero-eyebrow {
  color: var(--amber);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  max-width: 14ch;
}

.hero-sub {
  color: rgba(255,255,255,0.72);
  font-size: 1.08rem;
  max-width: 46ch;
  margin-top: 18px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-art {
  width: 100%;
  height: auto;
  color: var(--white);
}

.hero-art .ray { stroke: var(--amber); }
.hero-art .plug { stroke: var(--blue); fill: none; }
.hero-art .draw {
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: zithel-draw 1.4s ease forwards 0.2s;
}

@keyframes zithel-draw {
  to { stroke-dashoffset: 0; }
}

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 40px; }
  .hero-art { max-width: 280px; margin: 0 auto; }
}

/* ==========================================================================
   Category split
   ========================================================================== */

.category-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--line);
  margin-top: 2px;
}

.category-card {
  padding: 56px 40px;
  color: var(--white);
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.category-card.gadgets { background: linear-gradient(135deg, #17275C, var(--blue-dim)); }
.category-card.solar { background: linear-gradient(135deg, #7A4E12, var(--amber-dim)); }

.category-card .cat-icon { width: 40px; height: 40px; margin-bottom: 18px; opacity: 0.9; }
.category-card h3 { font-size: 1.6rem; margin-bottom: 8px; }
.category-card p { color: rgba(255,255,255,0.78); max-width: 34ch; }
.category-card .cat-link { margin-top: 20px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; color: var(--white); }

@media (max-width: 700px) {
  .category-card { padding: 24px 16px; min-height: 170px; }
  .category-card .cat-icon { width: 30px; height: 30px; margin-bottom: 10px; }
  .category-card h3 { font-size: 1.15rem; }
  .category-card p { font-size: 0.85rem; }
  .category-card .cat-link { margin-top: 12px; font-size: 0.88rem; }
}

/* ==========================================================================
   Sections / headings
   ========================================================================== */

.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 30px;
  gap: 20px;
  flex-wrap: wrap;
}

.section-head h2 { font-size: 1.7rem; }
.section-head .see-all { font-weight: 600; color: var(--blue); font-size: 0.95rem; }

/* ==========================================================================
   Product grid & cards
   ========================================================================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s;
}

.product-card:hover { border-color: var(--slate); }

.product-media {
  aspect-ratio: 1.3 / 1;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-media svg { width: 46%; height: 46%; }

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 3px;
  color: var(--white);
}

.product-tag.gadgets { background: var(--blue); }
.product-tag.solar { background: var(--amber-dim); }

.stock-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 3px;
  color: var(--white);
  background: var(--ink);
  z-index: 1;
}

.product-card.out-of-stock .product-media img { opacity: 0.45; }
.product-card.out-of-stock h3 { color: var(--slate); }

.product-media.gadgets svg { color: var(--blue); }
.product-media.solar svg { color: var(--amber-dim); }

.product-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-body h3 { font-size: 1.02rem; font-family: var(--font-body); font-weight: 600; }
.product-body .desc { font-size: 0.88rem; flex: 1; }
.product-price { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin-top: 4px; }

.product-body .btn { margin-top: 12px; }

@media (max-width: 600px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-body { padding: 12px 12px 14px; gap: 4px; }
  .product-body h3 { font-size: 0.9rem; line-height: 1.3; }
  .product-body .desc { font-size: 0.78rem; }
  .product-price { font-size: 1rem; }
  .product-body .btn { padding: 10px 14px; font-size: 0.85rem; }
  .product-tag { font-size: 0.62rem; padding: 2px 6px; top: 8px; left: 8px; }
}

/* ==========================================================================
   Shop filters
   ========================================================================== */

.shop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.filter-tabs {
  display: flex;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 4px;
}

.filter-tabs button {
  border: none;
  background: transparent;
  padding: 8px 16px;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate);
}

.filter-tabs button.active { background: var(--navy-deep); color: var(--white); }

/* ==========================================================================
   Product detail page
   ========================================================================== */

.pdp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.pdp-media {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pdp-media svg { width: 40%; height: 40%; }

.pdp-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.pdp-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.pdp-thumb {
  width: 68px;
  height: 68px;
  padding: 0;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--white);
  opacity: 0.7;
}

.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb.active { border-color: var(--blue); opacity: 1; }

.breadcrumb {
  font-size: 0.88rem;
  color: var(--slate);
  margin-bottom: 22px;
}

.breadcrumb a { color: var(--blue); }

.pdp-info h1 { font-size: 1.9rem; margin-bottom: 10px; }
.pdp-price { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin-bottom: 18px; }
.pdp-desc { margin-bottom: 26px; }

.qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--white);
}

.qty-stepper button {
  width: 38px;
  height: 40px;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--ink);
}

.qty-stepper input {
  width: 42px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  height: 40px;
  font-size: 1rem;
  font-family: inherit;
}

.pdp-note { font-size: 0.85rem; color: var(--slate); margin-top: 18px; }

@media (max-width: 760px) {
  .pdp { grid-template-columns: 1fr; gap: 28px; }
}

/* ==========================================================================
   Cart
   ========================================================================== */

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

.cart-items {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
}

.cart-row {
  display: grid;
  grid-template-columns: 64px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.cart-row:last-child { border-bottom: none; }

.cart-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-s);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cart-thumb svg { width: 60%; height: 60%; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb.gadgets svg { color: var(--blue); }
.cart-thumb.solar svg { color: var(--amber-dim); }

.cart-name { font-weight: 600; font-size: 0.98rem; }
.cart-unit { font-size: 0.85rem; color: var(--slate); margin-top: 2px; }

.cart-remove {
  background: none;
  border: none;
  color: var(--slate);
  font-size: 0.85rem;
  text-decoration: underline;
  margin-top: 6px;
}

.cart-line-total { font-family: var(--font-display); font-weight: 700; white-space: nowrap; }

.summary-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 24px;
  position: sticky;
  top: 92px;
}

.summary-card h3 { font-size: 1.1rem; margin-bottom: 18px; }

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  padding: 8px 0;
  color: var(--slate);
}

.summary-row.total {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 14px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.1rem;
  font-family: var(--font-display);
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

.empty-state h2 { margin-bottom: 10px; font-size: 1.4rem; }
.empty-state p { margin-bottom: 24px; }

@media (max-width: 820px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 48px 1fr; }
  .cart-line-total { grid-column: 2; justify-self: start; }
}

/* ==========================================================================
   Checkout
   ========================================================================== */

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

.form-card, .contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 28px;
}

.form-card h3 { font-size: 1.1rem; margin-bottom: 18px; }

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.field input, .field textarea, .field select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  font-family: inherit;
  font-size: 0.96rem;
  background: var(--white);
  color: var(--ink);
}

.field textarea { resize: vertical; min-height: 100px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.payment-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }

.payment-option {
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  cursor: pointer;
}

.payment-option input { width: auto; }

.payment-note {
  font-size: 0.85rem;
  color: var(--slate);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 12px 14px;
  margin-top: 4px;
  line-height: 1.5;
}

.bank-details {
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 14px 16px;
  margin: 4px 0 10px;
  background: var(--white);
}

.bank-details-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--line);
}

.bank-details-row:last-child { border-bottom: none; }
.bank-details-row span { color: var(--slate); }
.bank-details-row strong { text-align: right; }

.confirm-card .bank-details { text-align: left; max-width: 380px; margin-left: auto; margin-right: auto; }

.order-summary-list { margin-bottom: 14px; }

.order-summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 7px 0;
  color: var(--slate);
}

.confirm-card {
  text-align: center;
  padding: 64px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

.confirm-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  color: var(--blue);
}

.confirm-card h2 { font-size: 1.6rem; margin-bottom: 10px; }
.confirm-card p { max-width: 44ch; margin: 0 auto; }
.order-ref { font-family: var(--font-display); font-weight: 700; color: var(--ink); }

@media (max-width: 820px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.contact-details h2 { font-size: 1.4rem; margin-bottom: 16px; }

.contact-row {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-row:first-of-type { border-top: 1px solid var(--line); }

.contact-row .ci { width: 22px; height: 22px; color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.contact-row strong { display: block; font-size: 0.95rem; }
.contact-row span { color: var(--slate); font-size: 0.92rem; }

.form-note { font-size: 0.85rem; color: var(--slate); margin-top: 12px; }

@media (max-width: 780px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  margin-top: 80px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding: 52px 0 32px;
}

.footer-inner .logo { margin-bottom: 12px; }
.footer-inner p.tag { max-width: 32ch; font-size: 0.92rem; }

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-col a, .footer-col p {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.68);
  margin-bottom: 10px;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
  font-size: 0.82rem;
  text-align: center;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ==========================================================================
   Utility
   ========================================================================== */

.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.page-title { padding: 44px 0 6px; }
.page-title h1 { font-size: 2rem; }

/* ==========================================================================
   About page
   ========================================================================== */

.about-body { max-width: 72ch; }
.about-body p { margin-bottom: 18px; color: var(--slate); font-size: 1.02rem; line-height: 1.7; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 12px 0 40px;
}

.about-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 28px;
}

.about-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--navy-deep);
}

.about-card p { color: var(--slate); line-height: 1.6; margin: 0; }

.about-tagline {
  background: var(--navy-deep);
  color: var(--white);
  border-radius: var(--radius-m);
  padding: 36px 28px;
  text-align: center;
  margin-bottom: 8px;
}

.about-tagline .brand { color: var(--amber); font-weight: 700; letter-spacing: 0.02em; margin-bottom: 6px; }
.about-tagline .slogan { font-family: var(--font-display); font-size: 1.3rem; }

@media (max-width: 700px) {
  .about-grid { grid-template-columns: 1fr; }
}
