:root {
  --bg: #fffaf7;
  --surface: #ffffff;
  --surface-soft: #fff2ea;
  --text: #2a1f1a;
  --muted: #795f53;
  --primary: #dd7f5f;
  --primary-strong: #c96a4a;
  --line: #f0d8cb;
  --ok: #1e8f5b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, #ffe7d9 0, transparent 30%),
    radial-gradient(circle at 90% 20%, #ffece2 0, transparent 28%),
    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: "DM Serif Display", serif;
  font-size: clamp(1.15rem, 2.6vw, 1.65rem);
  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: "DM Serif Display", 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: cover;
  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: #fff5ef;
  padding: 1.2rem 1rem;
}

.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;
}

.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;
  }
}
