/* KLOORA brand theme, mobile-first */

:root {
  --navy: #071A3D;
  --royal: #1455D9;
  --cyan: #00CFE8;
  --offwhite: #F8FAFC;
  --charcoal: #172033;
  --white: #FFFFFF;
  --gradient: linear-gradient(135deg, #1455D9 0%, #00CFE8 100%);

  --accent: var(--royal);
  --accent-soft: var(--cyan);
  --radius: 14px;
  --radius-sm: 8px;
  --font-heading: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --heading-weight: 700;
  --btn-radius: 999px;
  --card-radius: var(--radius);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--offwhite);
  color: var(--charcoal);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: var(--heading-weight); margin: 0 0 .5em; color: var(--navy); }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Navbar ---------- */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}
.site-header .logo img { height: 32px; }
.site-header nav { display: none; }
.site-header .cart-hint { font-size: 13px; color: var(--cyan); }
@media (min-width: 720px) {
  .site-header nav { display: flex; gap: 20px; font-size: 14px; }
  .site-header nav a:hover { color: var(--cyan); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--btn-radius);
  border: none;
  font-weight: 700;
  font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(20, 85, 217, .35);
}
.btn-primary:active { transform: scale(.98); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-block { width: 100%; }
.btn-lg { padding: 16px 24px; font-size: 17px; }

/* ---------- Hero / banner carousel ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
}
.hero-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}
.hero-slide img { width: 100%; height: auto; }
.hero-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 0;
  background: var(--navy);
}
.hero-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.35);
}
.hero-dots span.active { background: var(--cyan); width: 18px; border-radius: 4px; }

/* ---------- Category tiles ---------- */
.category-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 24px 0;
}
.category-tile {
  background: var(--white);
  border-radius: var(--card-radius);
  padding: 20px 12px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(7, 26, 61, .08);
  font-weight: 700;
  color: var(--navy);
  border: 1px solid rgba(7,26,61,.06);
}
.category-tile .emoji { font-size: 28px; display: block; margin-bottom: 8px; }
@media (min-width: 640px) {
  .category-tiles { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Section heading ---------- */
.section { padding: 24px 0; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.section-title h2 { margin: 0; font-size: 20px; }
.section-title a { font-size: 13px; color: var(--royal); font-weight: 700; }

/* ---------- Product grid / cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card {
  background: var(--white);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(7, 26, 61, .08);
  display: flex;
  flex-direction: column;
}
.product-card .thumb { aspect-ratio: 1 / 1; overflow: hidden; background: var(--offwhite); }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.product-card:hover .thumb img { transform: scale(1.05); }
.product-card .body { padding: 10px 12px 14px; }
.product-card .title { font-size: 13px; font-weight: 600; color: var(--charcoal); margin-bottom: 6px; min-height: 34px; }
.product-card .price-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.price-now { font-weight: 800; color: var(--navy); font-size: 15px; }
.price-was { text-decoration: line-through; color: #94a3b8; font-size: 12px; }
.badge-off {
  background: var(--cyan);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
}

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--white);
  border-top: 1px solid rgba(7,26,61,.08);
  border-bottom: 1px solid rgba(7,26,61,.08);
}
.trust-bar .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 18px 16px;
}
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--navy); }
.trust-item .icon { font-size: 20px; }
@media (min-width: 640px) { .trust-bar .container { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.8);
  padding: 32px 0 90px;
  margin-top: 24px;
  text-align: center;
}
.site-footer img { height: 30px; margin: 0 auto 12px; }
.site-footer p { font-size: 12px; color: rgba(255,255,255,.55); }

/* =========================================================
   PRODUCT PAGE
   ========================================================= */
.product-page { padding-bottom: 90px; }

.gallery { position: relative; background: var(--white); }
.gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  perspective: 900px;
}
.gallery-slide img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .2s ease-out;
  will-change: transform;
}
.gallery-dots {
  position: absolute;
  bottom: 10px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.gallery-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(7,26,61,.25); }
.gallery-dots span.active { background: var(--royal); width: 16px; border-radius: 4px; }

.product-info { padding: 18px 16px 0; }
.product-title { font-size: 22px; margin-bottom: 6px; }
.product-price-row { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.product-price-now { font-size: 26px; font-weight: 800; color: var(--navy); }
.product-price-was { font-size: 15px; text-decoration: line-through; color: #94a3b8; }
.product-off { background: var(--cyan); color: var(--navy); font-weight: 800; font-size: 12px; padding: 3px 9px; border-radius: 999px; }
.product-tags { font-size: 12px; color: #64748b; margin-bottom: 14px; }

.color-swatches { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 18px; }
.swatch {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--white);
  outline: 1px solid rgba(7,26,61,.2);
  cursor: pointer;
  position: relative;
}
.swatch.active { outline: 2px solid var(--royal); outline-offset: 2px; }
.swatch-label { font-size: 12px; color: var(--charcoal); margin-top: 4px; text-align: center; }
.color-swatch-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }

.cta-row { display: flex; gap: 10px; margin: 16px 0; }
.cta-row .btn { flex: 1; }

.benefit-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.benefit-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; background: var(--white); padding: 10px 12px; border-radius: 10px; box-shadow: 0 1px 6px rgba(7,26,61,.06); }
.benefit-list .icon { font-size: 18px; flex-shrink: 0; }

.trust-badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.trust-badge { font-size: 11px; font-weight: 700; color: var(--navy); background: var(--offwhite); border: 1px solid rgba(7,26,61,.1); padding: 6px 10px; border-radius: 999px; }

.accordion { border-top: 1px solid rgba(7,26,61,.1); }
.accordion-item { border-bottom: 1px solid rgba(7,26,61,.1); }
.accordion-item summary {
  padding: 14px 2px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::after { content: '+'; font-size: 20px; color: var(--royal); }
.accordion-item[open] summary::after { content: '\2212'; }
.accordion-item .content { padding: 0 2px 16px; font-size: 14px; color: var(--charcoal); }
.accordion-item .content ul { padding-left: 18px; }

.mid-cta {
  margin: 28px 16px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--gradient);
  color: var(--white);
  text-align: center;
}
.mid-cta h3 { color: var(--white); margin-bottom: 6px; }
.mid-cta p { color: rgba(255,255,255,.9); font-size: 13px; margin-bottom: 14px; }
.mid-cta .btn { background: var(--white); color: var(--navy); }

/* Sticky bottom bar */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--white);
  border-top: 1px solid rgba(7,26,61,.1);
  box-shadow: 0 -4px 16px rgba(7,26,61,.1);
  padding: 10px 12px;
  display: flex; align-items: center; gap: 10px;
  z-index: 50;
}
.qty-stepper { display: flex; align-items: center; border: 2px solid var(--navy); border-radius: 999px; overflow: hidden; flex-shrink: 0; }
.qty-stepper button { background: none; border: none; width: 34px; height: 36px; font-size: 16px; font-weight: 700; color: var(--navy); }
.qty-stepper span { width: 26px; text-align: center; font-weight: 700; }
.sticky-cta .btn { flex: 1; }

/* Checkout modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(7,26,61,.55);
  display: none; align-items: flex-end; justify-content: center; z-index: 60;
}
.modal-overlay.open { display: flex; }
.modal-sheet {
  background: var(--white);
  width: 100%; max-width: 480px;
  border-radius: 18px 18px 0 0;
  padding: 20px;
  max-height: 88vh;
  overflow-y: auto;
}
@media (min-width: 640px) {
  .modal-overlay { align-items: center; }
  .modal-sheet { border-radius: 18px; }
}
.modal-sheet h3 { margin-bottom: 4px; }
.modal-sheet .close-btn { float: right; background: none; border: none; font-size: 22px; color: var(--charcoal); }
.form-field { margin-bottom: 12px; }
.form-field label { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 11px 12px; border-radius: 10px;
  border: 1px solid rgba(7,26,61,.2); font-size: 15px; font-family: inherit; background: var(--offwhite);
}
.form-field textarea { resize: vertical; min-height: 60px; }
.order-summary { background: var(--offwhite); border-radius: 10px; padding: 12px; margin-bottom: 14px; font-size: 14px; }
.confirm-screen { text-align: center; padding: 20px 0; }
.confirm-screen .big-check { font-size: 48px; margin-bottom: 10px; }
.error-text { color: #c62828; font-size: 13px; margin-top: 4px; }

/* =========================================================
   THEME VARIANTS (set on <body class="theme-...">)
   ========================================================= */
body.theme-women {
  --accent: var(--royal);
  --font-heading: Georgia, 'Times New Roman', serif;
  --heading-weight: 600;
  --card-radius: 20px;
  --btn-radius: 999px;
}
body.theme-women .btn-primary { background: var(--gradient); }
body.theme-women .product-title { font-style: italic; }

body.theme-men {
  --accent: var(--navy);
  --font-heading: 'Segoe UI', system-ui, sans-serif;
  --heading-weight: 800;
  --card-radius: 4px;
  --btn-radius: 6px;
}
body.theme-men .btn-primary { background: var(--navy); box-shadow: 0 6px 18px rgba(7,26,61,.4); }
body.theme-men h1, body.theme-men h2, body.theme-men h3 { text-transform: uppercase; letter-spacing: .04em; }
body.theme-men .swatch { border-radius: 6px; }

body.theme-unisex {
  --accent: var(--royal);
  --card-radius: 12px;
  --btn-radius: 10px;
}

body.theme-kids {
  --accent: var(--cyan);
  --font-heading: 'Comic Sans MS', 'Segoe UI', sans-serif;
  --heading-weight: 800;
  --card-radius: 26px;
  --btn-radius: 999px;
}
body.theme-kids .btn-primary { background: var(--gradient); font-size: 17px; padding: 16px 24px; }
body.theme-kids .swatch { width: 40px; height: 40px; }
body.theme-kids .product-title { font-size: 24px; }

/* 3D tilt gallery */
.gallery.tilt-3d .gallery-slide { transform-style: preserve-3d; }
