:root {
  --bg: #f3f8fc;
  --surface: #ffffff;
  --surface-soft: #eaf3fa;
  --text: #172b3d;
  --muted: #617486;
  --primary: #527f9f;
  --primary-strong: #315d7c;
  --line: #d6e4ee;
  --ok: #1e8f5b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, #e4f0f8 0, transparent 30%),
    radial-gradient(circle at 90% 20%, #edf5fa 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.94);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 24px rgba(35, 67, 91, 0.06);
  position: sticky;
  top: 40px;
  z-index: 10;
}

.brand-wrap {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-logo {
  width: 3.25rem;
  height: 3.25rem;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-copy {
  min-width: 0;
}

.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;
  box-shadow: 0 16px 40px rgba(35, 67, 91, 0.12);
}

.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;
  color: var(--text);
  box-shadow: 0 3px 12px rgba(35, 67, 91, 0.04);
}

.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;
  box-shadow: 0 6px 20px rgba(35, 67, 91, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(35, 67, 91, 0.12);
}

.card.out-of-stock {
  border-color: var(--line);
  background: var(--bg);
}

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

.stock-badge {
  margin: 0;
  align-self: flex-start;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--primary-strong);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.about-btn {
  background: transparent;
  border: 1px solid var(--primary);
  border-radius: 9px;
  color: var(--primary-strong);
  padding: 0.35rem 0.6rem;
  font-size: 0.84rem;
  cursor: pointer;
}

.about-btn:hover,
.about-btn:focus-visible {
  background: var(--surface-soft);
}

.add-btn.disabled {
  cursor: not-allowed;
  opacity: 0.75;
  background: #e6edf2;
  color: var(--muted);
}

.product-details {
  width: min(92vw, 680px);
  max-height: 90vh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: var(--surface);
}

.product-details::backdrop {
  background: rgba(17, 38, 55, 0.52);
}

.product-details-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.product-details-head h2 {
  margin: 0.2rem 0 0;
  font-size: 1.35rem;
}

.product-details-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

.product-details-content img {
  width: min(100%, 360px);
  align-self: center;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  background: #f6f6f6;
}

.product-details-content p,
.details-note {
  color: var(--muted);
  line-height: 1.55;
}

.product-details-content h3 {
  margin: 0.9rem 0 0.2rem;
  font-size: 0.95rem;
}

.product-details-content h3:first-of-type {
  margin-top: 0;
}

.details-note {
  margin: 0;
  padding: 0 1rem 1rem;
  font-size: 0.8rem;
}

.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: -12px 0 32px rgba(24, 50, 70, 0.14);
  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: #eaf3fa;
  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;
  box-shadow: 0 8px 24px rgba(35, 67, 91, 0.05);
}

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

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

.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: var(--surface-soft);
}

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

.verify-banner {
  position: sticky;
  top: 0;
  z-index: 12;
  display: block;
  width: 100%;
  height: 40px;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #eaf3fa;
  color: var(--primary-strong);
  text-decoration: none;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.verify-banner:hover,
.verify-banner:focus-visible {
  background: #deedf7;
}

.verify-marquee {
  display: flex;
  width: max-content;
  height: 100%;
  align-items: center;
  animation: verify-marquee-scroll 18s linear infinite;
}

.verify-marquee-message {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0 2rem;
  white-space: nowrap;
}

@keyframes verify-marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.floating-call {
  position: fixed;
  right: 1rem;
  text-decoration: none;
  font-weight: 800;
  z-index: 30;
}

.verify-smiley {
  flex: 0 0 auto;
  font-size: 1.65rem;
  line-height: 1;
}

.floating-call {
  bottom: 5.6rem;
  background: #ea580c;
  border-radius: 999px;
  color: #fff;
  padding: 0.72rem 0.95rem;
}

.verification-dialog {
  width: min(92vw, 560px);
  max-height: 90vh;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(17, 38, 55, 0.25);
}

.verification-dialog::backdrop {
  background: rgba(17, 38, 55, 0.58);
}

.verification-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 1rem;
}

.verification-field {
  display: grid;
  align-content: start;
  gap: 0.4rem;
}

.verification-field label {
  font-size: 0.9rem;
  font-weight: 700;
}

.verification-form .verification-note,
.verification-form button {
  grid-column: 1 / -1;
}

.verification-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.verification-note {
  padding: 0.65rem;
  border-radius: 10px;
  background: var(--surface-soft);
}

@media (max-width: 520px) {
  .verification-form {
    grid-template-columns: 1fr;
  }

  .verification-form .verification-note,
  .verification-form button {
    grid-column: auto;
  }
}

.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) {
  .brand-logo {
    width: 2rem;
    height: 2rem;
  }

  .topbar {
    top: 40px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "brand nav cart";
    gap: 0.25rem;
    padding: 0.35rem 0.5rem;
  }

  .brand-wrap {
    gap: 0.35rem;
  }

  .brand-wrap h1 {
    font-size: 1rem;
    white-space: nowrap;
  }

  .eyebrow {
    overflow: hidden;
    font-size: 0.55rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .main-nav {
    gap: 0.1rem;
  }

  .nav-link {
    padding: 0.3rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .cart-toggle {
    padding: 0.45rem 0.55rem;
    font-size: 0.8rem;
  }

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

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

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

  .floating-call {
    bottom: 5.8rem;
  }

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