/* Grisha Kopas - tvorive materialy a inspirace. Hlavni stylopis webu. */

:root {
  --bg: oklch(97% 0.02 85);
  --surface: oklch(99% 0.008 85);
  --border: oklch(90% 0.02 85);
  --border-soft: oklch(93% 0.02 85);
  --text: oklch(27% 0.03 260);
  --muted: oklch(45% 0.02 260);
  --muted2: oklch(38% 0.02 260);
  --muted3: oklch(32% 0.02 260);

  --blue: oklch(58% 0.14 245);
  --blue-dark: oklch(50% 0.14 245);
  --blue-tint: oklch(93% 0.03 245);
  --blue-text: oklch(46% 0.14 245);

  --yellow: oklch(87% 0.15 97);
  --yellow-tint: oklch(95% 0.06 97);
  --yellow-text: oklch(35% 0.09 80);
  --yellow-text2: oklch(38% 0.07 80);

  --green: oklch(65% 0.13 150);
  --green-dark-text: oklch(15% 0.05 150);
  --green-tint: oklch(93% 0.05 150);
  --green-cart-text: oklch(30% 0.08 150);

  --dark: oklch(27% 0.03 260);
  --dark-border: oklch(35% 0.02 260);
  --dark-muted: oklch(75% 0.01 260);
  --dark-muted2: oklch(65% 0.01 260);

  --danger: oklch(55% 0.15 25);
  --overlay: oklch(20% 0.02 260 / 0.45);

  --font-display: 'Baloo 2', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-lg: 0 -8px 24px oklch(20% 0.02 260 / 0.1);
  --shadow-drawer: -8px 0 30px oklch(20% 0.02 260 / 0.2);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--blue);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
  z-index: 100;
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus { left: 0; top: 0; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Promo bar ---------- */
.promo-bar {
  background: var(--blue);
  color: oklch(98% 0.01 245);
  text-align: center;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--yellow-text);
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--text);
  line-height: 1;
}
.main-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.nav-link {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  color: var(--muted2);
  text-decoration: none;
  display: inline-block;
}
.nav-link:hover { background: var(--border-soft); }
.nav-link.active {
  background: var(--blue-tint);
  color: var(--blue-text);
}
.nav-link.active:hover { background: var(--blue-tint); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--green-tint);
  color: var(--green-cart-text);
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
  border: none;
}
.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--blue);
  color: #fff;
  border-radius: 999px;
  min-width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  padding: 0 5px;
}
.cart-badge[hidden] { display: none; }
.nav-toggle {
  display: none;
  background: var(--border-soft);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 800;
  font-size: 16px;
}

/* ---------- Buttons ---------- */
.btn-primary, .btn-secondary, .btn-dark, .btn-add, .btn-checkout, .btn-place-order, .btn-ghost, .btn-accept, .btn-submit {
  cursor: pointer;
  font-weight: 800;
  border: none;
  font-family: inherit;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  padding: 15px 28px;
  border-radius: var(--radius-md);
  font-size: 16px;
  text-decoration: none;
  display: inline-block;
  transition: background .15s ease;
}
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary {
  background: var(--surface);
  border: 2px solid var(--border);
  color: var(--text);
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-size: 16px;
  text-decoration: none;
  display: inline-block;
}
.btn-secondary:hover { background: var(--border-soft); }
.btn-dark {
  background: var(--dark);
  color: #fff;
  padding: 14px 26px;
  border-radius: var(--radius-md);
}
.btn-add {
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
}
.btn-add:hover { background: var(--blue-dark); }

/* ---------- Hero ---------- */
.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 24px 24px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--yellow-text);
  font-weight: 800;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 46px;
  line-height: 1.1;
  margin: 0 0 18px;
  color: var(--text);
}
.hero p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media {
  border-radius: var(--radius-xl);
  height: 380px;
  overflow: hidden;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Features bar ---------- */
.features { max-width: 1240px; margin: 0 auto; padding: 24px 24px 8px; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: center;
  border: 1px solid var(--border);
}
.feature-title { font-family: var(--font-display); font-weight: 800; font-size: 16px; margin-bottom: 6px; }
.feature-desc { font-size: 14px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { max-width: 1240px; margin: 0 auto; padding: 56px 24px 16px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 10px;
}
.section-head h2 { font-family: var(--font-display); font-size: 30px; margin: 0; }
.section h1 { font-family: var(--font-display); font-size: 34px; margin: 0 0 8px; }
.section-sub { color: var(--muted); margin: 0 0 26px; }
.section-link {
  color: var(--blue);
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}
.section-link:hover { text-decoration: underline; }

/* ---------- Categories ---------- */
.categories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.category-card {
  cursor: pointer;
  border-radius: var(--radius-xl);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform .12s ease;
}
.category-card:hover { transform: translateY(-2px); }
.category-card img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  object-fit: cover;
}
.category-card .cat-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.category-card .cat-desc { font-size: 14px; color: var(--muted); }
.cat-tint-malba, .cat-tint-dekor { background: var(--blue-tint); }
.cat-tint-rukodelo, .cat-tint-modelovani { background: var(--yellow-tint); }
.cat-tint-pleteni, .cat-tint-papir { background: var(--green-tint); }

/* ---------- Product & article cards ---------- */
.products-grid, .catalog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card img { width: 100%; height: 150px; object-fit: cover; }
.product-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-cat { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.product-name { font-weight: 700; font-size: 15px; line-height: 1.3; flex: 1; }
.product-vat { font-size: 12px; color: var(--muted); }
.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.product-price { font-family: var(--font-display); font-weight: 800; font-size: 18px; }

.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article-card {
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}
.article-card img { width: 100%; height: 170px; object-fit: cover; }
.article-card .article-body { padding: 18px; }
.article-cat { font-size: 12px; font-weight: 800; color: var(--blue); text-transform: uppercase; margin-bottom: 8px; }
.article-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.3; margin-bottom: 8px; }
.article-excerpt { font-size: 14px; color: var(--muted); }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--green-tint); margin-top: 56px; padding: 56px 24px; }
.testimonials .container h2 { text-align: center; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial-card { background: var(--surface); border-radius: var(--radius-lg); padding: 24px; }
.testimonial-text { font-size: 15px; line-height: 1.6; margin-bottom: 14px; }
.testimonial-name { font-weight: 800; font-size: 14px; }

/* ---------- Newsletter ---------- */
.newsletter { max-width: 1240px; margin: 56px auto; padding: 0 24px; }
.newsletter-box {
  background: var(--yellow);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.newsletter-text { max-width: 480px; }
.newsletter-text h3 { font-family: var(--font-display); font-size: 26px; margin: 0 0 8px; color: var(--yellow-text); }
.newsletter-text p { margin: 0; color: var(--yellow-text2); font-size: 15px; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid oklch(80% 0.05 90);
  font-size: 15px;
  min-width: 240px;
  font-family: inherit;
}
.form-note { font-size: 13px; margin-top: 10px; width: 100%; color: var(--yellow-text2); }
.form-note.success { color: var(--green-dark-text); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--dark-muted); margin-top: 24px; }
.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 24px 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand-name { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: #fff; margin-bottom: 12px; }
.footer-desc { font-size: 14px; line-height: 1.7; color: var(--dark-muted); max-width: 280px; }
.footer-col-title { font-weight: 800; font-size: 14px; color: #fff; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; list-style: none; margin: 0; padding: 0; }
.footer-links a { cursor: pointer; text-decoration: none; color: inherit; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 24px;
  border-top: 1px solid var(--dark-border);
  font-size: 13px;
  color: var(--dark-muted2);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Cart drawer ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 40;
  border: none;
  padding: 0;
}
.cart-overlay[hidden], .cart-drawer[hidden] { display: none; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 92vw;
  background: var(--surface);
  z-index: 41;
  box-shadow: var(--shadow-drawer);
  display: flex;
  flex-direction: column;
}
.cart-drawer-header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-drawer-header h2 { font-family: var(--font-display); font-weight: 800; font-size: 20px; margin: 0; }
.cart-drawer-close { cursor: pointer; font-weight: 800; font-size: 20px; color: var(--muted); background: none; border: none; line-height: 1; }
.cart-drawer-body { flex: 1; overflow: auto; padding: 16px 24px; }
.cart-empty { text-align: center; padding: 60px 10px; color: var(--muted); }
.cart-empty p { margin: 0 0 18px; }
.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border-soft); }
.cart-item img { width: 64px; height: 64px; flex-shrink: 0; border-radius: var(--radius-md); object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.cart-item-controls { display: flex; align-items: center; gap: 10px; }
.qty-btn {
  width: 24px; height: 24px; border-radius: 8px; background: var(--border-soft);
  display: flex; align-items: center; justify-content: center; cursor: pointer; font-weight: 800; border: none;
}
.qty-value { font-weight: 700; font-size: 14px; min-width: 14px; text-align: center; }
.remove-link { margin-left: auto; font-size: 13px; color: var(--danger); cursor: pointer; background: none; border: none; font-weight: 700; }
.cart-item-total { font-weight: 800; font-size: 14px; white-space: nowrap; }
.cart-drawer-footer { padding: 20px 24px; border-top: 1px solid var(--border); }
.cart-subtotal-row { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 6px; color: var(--muted); }
.free-shipping-note { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.btn-checkout {
  background: var(--blue); color: #fff; font-weight: 800; text-align: center; padding: 14px;
  border-radius: var(--radius-md); cursor: pointer; display: block; width: 100%; text-decoration: none; font-size: 15px;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--surface); border-top: 1px solid var(--border);
  z-index: 50; box-shadow: var(--shadow-lg);
}
.cookie-banner[hidden] { display: none; }
.cookie-inner {
  max-width: 1240px; margin: 0 auto; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.cookie-text { font-size: 14px; color: var(--muted3); max-width: 640px; }
.cookie-text a { color: var(--blue); font-weight: 700; text-decoration: none; }
.cookie-text a:hover { text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; }
.btn-ghost { background: var(--border-soft); font-weight: 800; padding: 11px 20px; border-radius: var(--radius-sm); font-size: 14px; }
.btn-accept { background: var(--blue); color: #fff; font-weight: 800; padding: 11px 20px; border-radius: var(--radius-sm); font-size: 14px; }

/* ---------- Catalog filters ---------- */
.catalog-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-btn {
  padding: 10px 18px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 14px;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted2);
}
.filter-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- Article detail ---------- */
.article-detail { max-width: 820px; margin: 0 auto; padding: 40px 24px 80px; }
.back-link { color: var(--blue); font-weight: 800; cursor: pointer; margin-bottom: 20px; display: inline-block; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.article-meta { font-size: 13px; font-weight: 800; color: var(--blue); text-transform: uppercase; margin-bottom: 10px; }
.article-detail h1 { font-family: var(--font-display); font-size: 34px; margin: 0 0 20px; line-height: 1.2; }
.article-hero-img { width: 100%; height: 280px; object-fit: cover; border-radius: var(--radius-xl); margin-bottom: 28px; }
.article-body p { font-size: 17px; line-height: 1.75; color: var(--muted3); margin: 0 0 20px; }
.related { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--border); }
.related h3 { font-family: var(--font-display); font-size: 20px; margin: 0 0 16px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.related-card {
  cursor: pointer; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 16px; font-weight: 700; font-size: 14px; text-decoration: none; color: inherit; display: block;
}

/* ---------- DIY ---------- */
.diy-project {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 28px; margin-bottom: 24px; align-items: start;
}
.diy-project img { width: 100%; height: 180px; object-fit: cover; border-radius: var(--radius-md); margin-bottom: 16px; }
.diy-title { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin-bottom: 10px; }
.diy-label { font-size: 13px; font-weight: 800; color: var(--muted); margin-bottom: 6px; }
.diy-materials { margin: 0; padding-left: 18px; font-size: 14px; color: var(--muted3); line-height: 1.7; }
.diy-steps-label { font-size: 13px; font-weight: 800; color: var(--muted); margin-bottom: 10px; }
.diy-step { display: flex; gap: 12px; margin-bottom: 14px; }
.diy-step-num {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px; background: var(--yellow);
  color: var(--yellow-text); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center;
}
.diy-step-text { font-size: 15px; line-height: 1.6; color: var(--muted3); }

/* ---------- About ---------- */
.about-page { max-width: 1000px; margin: 0 auto; padding: 40px 24px 80px; }
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; margin-bottom: 40px; }
.about-text p { font-size: 16px; line-height: 1.75; color: var(--muted3); margin: 0 0 16px; }
.about-photo img { width: 100%; height: 280px; object-fit: cover; border-radius: var(--radius-xl); }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat-card { background: var(--surface); border-radius: var(--radius-lg); padding: 22px; border: 1px solid var(--border); }
.stat-number { font-family: var(--font-display); font-weight: 800; font-size: 28px; margin-bottom: 6px; }
.stat-label { font-size: 14px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-page { max-width: 1100px; margin: 0 auto; padding: 40px 24px 80px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 56px; }
.contact-form-card, .contact-info-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 30px;
}
.contact-info-card { background: none; border: none; padding: 0; }
.card-heading-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.card-heading-row h3 { font-family: var(--font-display); font-size: 20px; margin: 0; }
.avatar-sm { width: 48px; height: 48px; border-radius: 999px; object-fit: cover; flex-shrink: 0; }
.contact-form-card form { display: flex; flex-direction: column; gap: 12px; }
.field {
  padding: 13px 16px; border-radius: var(--radius-md); border: 1px solid oklch(88% 0.02 85);
  font-size: 15px; font-family: inherit; width: 100%;
}
textarea.field { resize: vertical; }
.info-block { font-size: 15px; line-height: 1.9; color: var(--muted3); margin-bottom: 20px; }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; height: 200px; border: 1px solid var(--border); background: var(--border-soft); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.form-success-box {
  display: none; background: var(--green-tint); color: var(--green-dark-text); border-radius: var(--radius-md);
  padding: 16px 18px; margin-bottom: 14px; font-weight: 700; font-size: 14px;
}
.form-success-box.show { display: block; }
.faq-list .faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  margin-bottom: 10px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 15px;
  display: flex; justify-content: space-between; align-items: center; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-weight: 800; font-size: 18px; margin-left: 12px; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-answer { padding: 0 22px 18px; margin-top: -6px; font-size: 14px; line-height: 1.7; color: var(--muted); }

/* ---------- Legal pages ---------- */
.legal-page { max-width: 900px; margin: 0 auto; padding: 40px 24px 80px; }
.legal-page h1 { font-family: var(--font-display); font-size: 32px; margin: 0 0 24px; }
.legal-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.legal-tab {
  padding: 10px 16px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 14px;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted2); text-decoration: none; display: inline-block;
}
.legal-tab.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.legal-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.legal-card h2 { font-family: var(--font-display); font-size: 22px; margin: 0 0 16px; }
.legal-card p { font-size: 15px; line-height: 1.75; color: var(--muted3); margin: 0 0 16px; }
.legal-card p:last-child { margin-bottom: 0; }

/* ---------- Checkout ---------- */
.checkout-page { max-width: 900px; margin: 0 auto; padding: 40px 24px 80px; }
.checkout-page h1 { font-family: var(--font-display); font-size: 32px; margin: 0 0 24px; }
.checkout-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }
.checkout-form-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; display: flex; flex-direction: column; gap: 12px;
}
.checkout-form-card input { padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid oklch(88% 0.02 85); font-size: 14px; font-family: inherit; }
.group-label { font-weight: 800; font-size: 15px; margin: 14px 0 4px; }
.group-label:first-child { margin-top: 0; }
.ship-row { display: flex; gap: 10px; }
.ship-row input { flex: 2; }
.ship-row input:last-child { flex: 1; }
.radio-label { font-size: 14px; display: flex; gap: 8px; align-items: center; }
.order-summary-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; align-self: start; }
.summary-title { font-weight: 800; font-size: 15px; margin-bottom: 14px; }
.summary-line { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; }
.summary-divider { border-top: 1px solid var(--border); margin: 14px 0; }
.summary-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 17px; margin-bottom: 20px; }
.btn-place-order {
  background: var(--green); color: var(--green-dark-text); font-weight: 800; text-align: center; padding: 14px;
  border-radius: var(--radius-md); cursor: pointer; width: 100%; font-size: 15px;
}
.btn-place-order:disabled { opacity: .55; cursor: not-allowed; }
.checkout-empty { text-align: center; padding: 60px 24px; }
.checkout-empty h1 { margin-bottom: 14px; }

/* ---------- Order thank-you ---------- */
.order-thanks {
  max-width: 900px; margin: 0 auto; padding: 40px 24px 80px;
}
.order-thanks .thanks-box {
  text-align: center; padding: 60px 24px; background: var(--surface); border-radius: var(--radius-xl); border: 1px solid var(--border);
}
.check-icon { width: 64px; height: 64px; border-radius: 999px; background: var(--green); margin: 0 auto 20px; }
.order-thanks h1 { font-family: var(--font-display); font-size: 28px; margin: 0 0 12px; }
.order-thanks p { color: var(--muted); font-size: 15px; margin: 0 0 28px; }

/* ---------- Simple pages (404) ---------- */
.simple-page { max-width: 700px; margin: 0 auto; padding: 100px 24px; text-align: center; }
.simple-page h1 { font-family: var(--font-display); font-size: 40px; margin: 0 0 14px; }
.simple-page p { color: var(--muted); font-size: 16px; margin: 0 0 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .hero-media { height: 280px; order: -1; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid, .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid, .checkout-grid, .diy-project, .about-intro { grid-template-columns: 1fr; }
  .diy-project img { height: 220px; }
}
@media (max-width: 640px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav {
    display: none;
    width: 100%;
    order: 3;
    flex-direction: column;
    gap: 2px;
  }
  .main-nav.open { display: flex; }
  .header-inner { padding: 12px 16px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .categories-grid, .products-grid, .catalog-grid, .articles-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; padding: 40px 20px 20px; }
  .footer-bottom { flex-direction: column; }
  .newsletter-box { padding: 28px; }
  .cart-drawer { width: 100%; max-width: 100%; }
  .related-grid { grid-template-columns: 1fr; }
  .section, .hero, .features { padding-left: 16px; padding-right: 16px; }
  .container { padding: 0 16px; }
}
