/* =========================================================
   Lisha Studio styles.css

   This file controls visual design only:
   - fonts and colors
   - header and hero area
   - product grid and product cards
   - product detail modal
   - cart drawer and checkout form
   - mobile responsive layout
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&family=Nunito:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #fffdf8;
  --text: #1f1b18;
  --muted: #756d66;
  --line: #eee5dc;
  --soft: #fff4e4;
  --pink: #ffe8ec;
  --accent: #f08a5d;
  --accent-dark: #d9693f;
  --card: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito", Arial, sans-serif;
}

/* =========================
   Header / Navigation
   ========================= */

header {
  padding: 26px 34px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.96);
  position: sticky;
  top: 0;
  z-index: 10;
}

nav a {
  margin-left: 28px;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
}

nav a:hover { color: var(--accent-dark); }

/* =========================
   Hero video area
   Content is controlled by Settings CSV.
   ========================= */

.hero-video {
  position: relative;
  width: 100%;
  height: min(56.25vw, 720px);
  min-height: 560px;
  background: var(--soft);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  display: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: var(--soft);
}

.hero-media video,
.hero-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  border: 0;
}

.hero-overlay {
  position: relative;
  z-index: 3;
  height: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 80px 24px 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.hero-overlay h1 {
  font-family: "Baloo 2", cursive;
  font-size: clamp(54px, 8vw, 92px);
  line-height: 0.95;
  margin: 0 0 14px;
  letter-spacing: -1px;
  color: #1f1b18;
  text-shadow:
    0 2px 0 rgba(255, 253, 248, 0.95),
    0 8px 28px rgba(255, 253, 248, 0.95);
}

.hero-subtitle-link {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 900;
  text-shadow: none;
  box-shadow: none;
  text-decoration: none;
  pointer-events: auto;
  transition: 0.2s ease;
}

.hero-subtitle-link::after { content: " :)"; }

.hero-subtitle-link:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* =========================
   Product section
   ========================= */

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 24px 78px;
}

.section-title {
  font-family: "Baloo 2", cursive;
  font-size: 40px;
  margin: 0 0 24px;
  text-align: center;
  line-height: 1;
}

.filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.filters input,
.filters select {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 13px 17px;
  font-family: "Nunito", sans-serif;
  font-size: 15px;
  min-width: 210px;
  outline: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(80, 51, 32, 0.08);
  transition: transform 0.2s ease;
  cursor: pointer;
}

.card:hover { transform: translateY(-3px); }

.image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--soft), var(--pink));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: "Baloo 2", cursive;
  font-size: 58px;
  color: var(--accent-dark);
}

.image img,
.modal-main-image img,
.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

.fallback-letter {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Baloo 2", cursive;
  font-size: 58px;
  color: var(--accent-dark);
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(255, 253, 248, 0.95);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 900;
  color: var(--accent-dark);
  box-shadow: 0 8px 18px rgba(80, 51, 32, 0.08);
}

.card-body { padding: 19px; }

.card h3 {
  font-family: "Baloo 2", cursive;
  font-size: 25px;
  line-height: 1.08;
  margin: 0 0 8px;
}

.desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  min-height: 46px;
  margin: 0 0 12px;
}

.meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  font-weight: 800;
}

.price {
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.compare-price {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 15px;
  font-weight: 700;
}

.stock {
  font-size: 13px;
  color: var(--accent-dark);
  background: var(--soft);
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
}

.button {
  display: block;
  width: 100%;
  text-align: center;
  border: 1px solid var(--accent);
  color: white;
  background: var(--accent);
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 14px;
  font-weight: 900;
  transition: 0.2s ease;
  cursor: pointer;
  font-family: "Nunito", Arial, sans-serif;
  font-size: 16px;
}

.button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: white;
}

.button.disabled {
  opacity: 0.45;
  pointer-events: none;
  background: white;
  color: var(--text);
  border-color: var(--text);
}

/* =========================
   Contact area
   ========================= */

.contact {
  border-top: 1px solid var(--line);
  padding: 70px 24px;
  text-align: center;
  background: #ffffff;
}

.contact-inner {
  max-width: 980px;
  margin: 0 auto;
}

.contact p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.8;
  font-size: 17px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
  text-align: left;
}

.contact-card {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 24px;
  padding: 22px;
}

.contact-card h3 {
  font-family: "Baloo 2", cursive;
  font-size: 24px;
  margin: 0 0 8px;
  line-height: 1;
}

.contact-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.contact-links {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.contact-links a {
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 18px;
  text-decoration: none;
  font-weight: 900;
  background: var(--soft);
}

.contact-links a:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

footer {
  text-align: center;
  padding: 32px 20px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}

.loading,
.error {
  text-align: center;
  color: var(--muted);
  padding: 36px;
  grid-column: 1 / -1;
}

/* =========================
   Product modal
   ========================= */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31, 27, 24, 0.45);
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.modal {
  width: min(980px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--bg);
  border-radius: 34px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 90px rgba(31, 27, 24, 0.25);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  font-size: 22px;
  cursor: pointer;
  z-index: 4;
}

.modal-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 34px;
}

.modal-main-image {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--soft), var(--pink));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Baloo 2", cursive;
  font-size: 78px;
  color: var(--accent-dark);
}

.image-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.9);
  color: var(--text);
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-arrow:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.image-arrow.left { left: 14px; }
.image-arrow.right { right: 14px; }

.modal-info h2 {
  font-family: "Baloo 2", cursive;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 0.95;
  margin: 0 0 12px;
}

.modal-info p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 16px;
}

.sku-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.sku-option {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 900;
  cursor: pointer;
  font-family: "Nunito", Arial, sans-serif;
}

.sku-option.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.details-list {
  margin: 14px 0 20px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.details-list strong { color: var(--text); }

/* =========================
   Cart drawer and checkout form
   ========================= */

.cart-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  border: 0;
  background: var(--accent);
  color: white;
  border-radius: 999px;
  padding: 14px 18px;
  font-weight: 900;
  font-family: "Nunito", Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(80, 51, 32, 0.18);
}

.cart-float:hover { background: var(--accent-dark); }

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: min(400px, 100vw);
  height: 100%;
  z-index: 80;
  background: white;
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 40px rgba(31, 27, 24, 0.16);
  transition: right 0.25s ease;
  display: flex;
  flex-direction: column;
}

.cart-drawer.open { right: 0; }

.cart-header {
  padding: 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h2 {
  margin: 0;
  font-family: "Baloo 2", cursive;
  font-size: 34px;
  line-height: 1;
}

.cart-close {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  font-size: 22px;
  cursor: pointer;
}

.cart-items {
  padding: 18px;
  overflow: auto;
  flex: 1;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.cart-thumb {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
  position: relative;
}

.cart-info h3 {
  margin: 0 0 4px;
  font-family: "Baloo 2", cursive;
  font-size: 20px;
  line-height: 1;
}

.cart-info p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.cart-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-weight: 900;
  cursor: pointer;
}

.remove-btn {
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font-weight: 900;
  cursor: pointer;
}

.cart-footer {
  padding: 18px 22px 22px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.summary-row,
.summary-control {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 9px 0;
  color: var(--muted);
  font-weight: 800;
}

.summary-control {
  padding-top: 8px;
}

.summary-row.total {
  color: var(--text);
  font-size: 20px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}

.summary-row select {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 9px 14px;
  font-family: "Nunito", Arial, sans-serif;
  font-weight: 800;
  outline: none;
  max-width: 250px;
  color: var(--text);
}

.cart-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 12px 0 0;
}

.cart-warning {
  color: #c0392b;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 800;
  margin: 10px 0 0;
}

#paypal-button-container {
  margin-top: 14px;
}

/* =========================
   Responsive styles
   ========================= */

@media (max-width: 850px) {
  header { justify-content: center; padding: 22px 18px; }
  nav a { margin: 0 9px; }
  .hero-video { min-height: 520px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .modal-layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  nav a { font-size: 15px; margin: 0 6px; }
  .hero-video { height: 78vh; min-height: 520px; }
  .hero-overlay { padding: 64px 20px; }
  .hero-overlay h1 { font-size: clamp(44px, 14vw, 68px); }
  .hero-subtitle-link { font-size: 17px; }
  .grid { grid-template-columns: 1fr; }
  .filters input, .filters select { width: 100%; }
  .modal-layout { padding: 24px; }
  .cart-float { right: 14px; bottom: 14px; }
}
