:root {
  --bg: #f4fbff;
  --surface: #ffffff;
  --surface-soft: #e8f6ff;
  --text: #0b1b2a;
  --muted: #4a6780;
  --primary: #7ac9ff;
  --primary-strong: #4fb3f3;
  --line: #d7ecf8;
  --ok: #1e8f5b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Sora", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(122, 201, 255, 0.18) 0, transparent 32%),
    radial-gradient(circle at 90% 20%, rgba(79, 179, 243, 0.2) 0, transparent 30%),
    var(--bg);
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  grid-template-areas: "brand nav cart";
  gap: 0.8rem;
  align-items: center;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand-wrap {
  grid-area: brand;
}

.brand-wrap h1 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  line-height: 1.1;
}

.eyebrow {
  margin: 0;
  color: var(--primary-strong);
  font-size: 0.72rem;
  font-weight: 800;
}

.main-nav {
  grid-area: nav;
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  border: 1px solid transparent;
}

.nav-link.active,
.nav-link:hover {
  background: var(--surface-soft);
  border-color: var(--line);
}

main {
  padding: 1rem;
  max-width: 1300px;
  margin: 0 auto;
}

.hero {
  margin: 1rem 0;
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.hero-slider {
  position: relative;
  min-height: 240px;
}

.hero-media {
  height: 100%;
}

.hero-media img {
  width: 100%;
  min-height: 240px;
  max-height: 360px;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(19, 11, 7, 0.72), rgba(19, 11, 7, 0.08));
  color: #fff;
}

.hero-overlay h2 {
  margin: 0;
  font-family: "Fraunces", serif;
}

.hero-overlay p {
  margin: 0.35rem 0 0;
  max-width: 65ch;
}

.hero-dots {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.7rem;
}

.hero-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.5);
}

.hero-dot.active {
  background: #fff;
}

.controls {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: 0.7rem;
  margin: 1rem 0;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
}

.btn,
.cart-toggle {
  border: 0;
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover,
.cart-toggle:hover {
  transform: translateY(-1px);
}

.btn-call,
.cart-toggle,
.btn-checkout {
  background: var(--primary);
  color: #fff;
}

.cart-toggle {
  grid-area: cart;
  justify-self: end;
  white-space: nowrap;
}

.btn-mail,
.btn-clear {
  background: var(--surface-soft);
  color: var(--text);
  border: 1px solid var(--line);
}

.result-count {
  margin: 0.4rem 0 0.8rem;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  background: #f6f6f6;
}

.card-body {
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.brand {
  margin: 0;
  color: var(--primary-strong);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.title {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.3;
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.price-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.price {
  font-weight: 800;
}

.add-btn {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.35rem 0.6rem;
  font-size: 0.84rem;
  cursor: pointer;
}

.pagination {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.page-label {
  font-weight: 700;
  color: var(--muted);
}

.cart-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: min(95vw, 400px);
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: -8px 0 22px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: right 0.2s ease;
  z-index: 20;
}

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

.cart-head,
.cart-foot {
  padding: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.cart-foot {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  margin-top: auto;
  display: grid;
  gap: 0.5rem;
}

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.icon-btn {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 8px;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
}

.cart-items {
  overflow: auto;
  padding: 0.8rem;
  display: grid;
  gap: 0.6rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.4rem;
}

.cart-item img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 8px;
}

.qty-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.qty-btn {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 6px;
  cursor: pointer;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: #eaf6ff;
  padding: 1.2rem 1rem;
}

h2,
h3 {
  font-family: "Fraunces", serif;
}

.gallery-main {
  max-width: 1300px;
  margin: 0 auto;
  padding: 1rem;
}

.gallery-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin: 1rem 0 1.5rem;
}

.gallery-hero h2 {
  margin: 0.2rem 0 0.4rem;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.gallery-hero-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 1rem;
  box-shadow: 0 12px 28px rgba(9, 45, 75, 0.08);
}

.gallery-hero-title {
  margin: 0 0 0.35rem;
  font-weight: 700;
}

.gallery-hero-copy {
  margin: 0;
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.9rem;
}

.gallery-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: grid;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #f4f7fb;
  display: block;
  cursor: zoom-in;
}

.gallery-card img.is-missing {
  opacity: 0.35;
  filter: grayscale(1);
}

.gallery-card figcaption {
  padding: 0.55rem 0.7rem 0.7rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 19, 30, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 50;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-inner {
  max-width: min(90vw, 900px);
  width: 100%;
  background: var(--surface);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  display: grid;
  gap: 0.75rem;
}

.lightbox-close {
  justify-self: end;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.lightbox-inner img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 12px;
  background: #f4f7fb;
}

.lightbox-caption {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.site-footer h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.site-footer p {
  margin: 0.2rem 0;
  color: var(--muted);
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.about-main {
  max-width: 1100px;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem;
  margin: 1rem 0;
}

.about-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.9rem;
}

.mini-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
  background: linear-gradient(180deg, rgba(232, 246, 255, 0.75), rgba(255, 255, 255, 1));
  box-shadow: 0 10px 22px rgba(9, 45, 75, 0.06);
}

.mini-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.mini-card ul {
  margin: 0.3rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.55;
}

.fine-print {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.fine-print a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.fine-print a:hover {
  text-decoration: underline;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 0.9rem;
}

.checklist {
  margin: 0.75rem 0 0.1rem;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.55;
}

.director-section {
  margin-top: 1rem;
}

.director-image {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f8ece4;
}

.director-fallback {
  display: none;
  padding: 2.5rem 1rem;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: var(--surface-soft);
}

.insta-section > p {
  margin-top: 0;
  color: var(--muted);
}

.insta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.8rem;
}

.insta-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.insta-thumb {
  position: relative;
  display: block;
  text-decoration: none;
}

.insta-thumb img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: #f8ece4;
}

.play-badge {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
}

.insta-desc {
  margin: 0;
  padding: 0.7rem 0.75rem 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.floating-wa,
.floating-call {
  position: fixed;
  right: 1rem;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: 0.72rem 0.95rem;
  z-index: 30;
}

.floating-wa {
  bottom: 1rem;
  background: #16a34a;
}

.floating-call {
  bottom: 3.9rem;
  background: #ea580c;
}

.cart-toast {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  max-width: min(90vw, 360px);
  background: var(--ok);
  color: #fff;
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 40;
}

.cart-toast.show {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 850px) {
  .topbar {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand cart"
      "nav nav";
  }

  .main-nav {
    justify-content: flex-start;
  }

  .controls {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-media img {
    min-height: 200px;
  }

  .floating-call {
    bottom: 4.1rem;
  }

  .insta-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .collection-grid {
    grid-template-columns: 1fr;
  }

  .gallery-hero {
    grid-template-columns: 1fr;
  }
}
