:root {
  --ink: #101820;
  --muted: #5d6b78;
  --paper: #f6f3ee;
  --foam: #ffffff;
  --deep: #0d1b2a;
  --sea: #1b3a4b;
  --glow: #e0a45a;
  --mint: #5fbfa8;
  --line: rgba(16, 24, 32, 0.12);
  --display: "Fraunces", "Times New Roman", serif;
  --sans: "Sora", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(224, 164, 90, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(95, 191, 168, 0.14), transparent 50%),
    linear-gradient(180deg, #f8f5f0 0%, #eef2f5 100%);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.site-top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 20px;
  padding: 16px clamp(16px, 4vw, 40px);
  background: rgba(13, 27, 42, 0.92);
  backdrop-filter: blur(10px);
  color: #f6f3ee;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  justify-self: start;
}

.brand-text span {
  color: var(--glow);
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: center;
  justify-self: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-nav a,
.top-nav .nav-link {
  color: inherit;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  padding: 0;
  cursor: pointer;
}

.top-nav a:hover,
.top-nav .nav-link:hover {
  color: var(--glow);
}

.nav-dropdown,
.lang-wrap {
  position: relative;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: -16px;
}

.search-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-dropdown-toggle,
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-dropdown-toggle::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.75;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown.is-open .nav-dropdown-toggle,
.lang-wrap:hover .lang-toggle,
.lang-wrap.is-open .lang-toggle {
  color: var(--glow);
}

.nav-dropdown:hover .nav-dropdown-toggle::after,
.nav-dropdown.is-open .nav-dropdown-toggle::after {
  transform: rotate(180deg);
}

/* Shared flyout panel: Products + Language */
.nav-dropdown-menu,
.lang-menu {
  position: absolute;
  top: calc(100% - 16px);
  left: 50%;
  min-width: 200px;
  display: grid;
  gap: 2px;
  padding: 10px;
  background: #ffffff;
  color: #1c2430;
  border: 0;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -6px);
  transition:
    opacity 0.2s ease,
    transform 0.22s ease,
    visibility 0.2s ease;
}

.lang-menu {
  min-width: 188px;
  max-height: min(60vh, 420px);
  overflow-y: auto;
  text-transform: none;
  letter-spacing: 0;
}

.nav-dropdown-menu {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu,
.lang-wrap.is-open .lang-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-dropdown-menu a,
.lang-option {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: #1c2430;
  font-size: 0.78rem;
  font-weight: 600;
}

.nav-dropdown-menu a {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.nav-dropdown-menu a:hover,
.lang-option:hover,
.lang-option.is-active {
  background: #f0f2f5;
  color: #0d1b2a;
}

html[dir="rtl"] .lang-option,
html[dir="rtl"] .nav-dropdown-menu a {
  text-align: right;
}

.nav-search {
  display: flex;
  align-items: center;
}

.nav-search[hidden] {
  display: none !important;
}

.nav-search input {
  width: min(200px, 36vw);
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 0;
  outline: none;
  text-transform: none;
}

.nav-search input::placeholder {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}

.nav-search input::-webkit-search-cancel-button {
  filter: invert(1);
  cursor: pointer;
}

.top-tools {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 14px;
}

.icon-btn {
  position: relative;
  width: 28px;
  height: 28px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #f6f3ee;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.icon-btn svg {
  width: 22px;
  height: 22px;
}

.icon-btn:hover { color: var(--glow); }

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: grid;
  align-items: end;
  padding: clamp(48px, 8vw, 96px) clamp(16px, 4vw, 40px) clamp(40px, 6vw, 72px);
  color: #f6f3ee;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(8, 16, 28, 0.88) 0%, rgba(8, 16, 28, 0.35) 48%, rgba(8, 16, 28, 0.55) 100%),
    radial-gradient(circle at 70% 40%, rgba(224, 164, 90, 0.35), transparent 42%),
    linear-gradient(160deg, #0d1b2a, #1b3a4b 45%, #24485c);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -20% 40%;
  height: 70%;
  background:
    radial-gradient(closest-side, rgba(95, 191, 168, 0.22), transparent 70%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.04) 0 2px,
      transparent 2px 28px
    );
  transform: skewY(-8deg);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 38rem;
}

.hero-kicker {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 243, 238, 0.72);
}

.hero h1 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0 0 28px;
  max-width: 30rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(246, 243, 238, 0.82);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

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

.btn-primary {
  background: var(--glow);
  color: #1a1208;
}

.btn-ghost {
  background: transparent;
  color: #f6f3ee;
  box-shadow: inset 0 0 0 1.5px rgba(246, 243, 238, 0.45);
}

.section {
  padding: clamp(48px, 7vw, 88px) clamp(16px, 4vw, 40px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  max-width: 28rem;
  color: var(--muted);
  line-height: 1.55;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.filter-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-btn.is-active {
  background: var(--deep);
  color: #f6f3ee;
  border-color: var(--deep);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  display: block;
  color: inherit;
  transition: transform 0.18s ease;
}

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

.thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #dfe5ea;
  margin-bottom: 14px;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(13, 27, 42, 0.88);
  color: #f6f3ee;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 10px;
}

.product-card h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.meta {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.price {
  margin: 0;
  font-weight: 700;
}

.price s {
  color: var(--muted);
  font-weight: 500;
  margin-right: 8px;
}

.note-strip {
  margin: 0 clamp(16px, 4vw, 40px);
  padding: 18px 20px;
  background: rgba(13, 27, 42, 0.06);
  border-left: 3px solid var(--mint);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  padding: 28px;
}

.panel h2,
.panel h3 {
  font-family: var(--display);
  letter-spacing: -0.02em;
}

.panel p,
.panel li {
  color: var(--muted);
  line-height: 1.6;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.site-footer {
  margin-top: 24px;
  padding: 36px clamp(16px, 4vw, 40px) 48px;
  background: var(--deep);
  color: rgba(246, 243, 238, 0.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.site-footer h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  color: #f6f3ee;
}

.site-footer a {
  display: block;
  margin: 0 0 8px;
  color: rgba(246, 243, 238, 0.75);
}

.site-footer a:hover { color: var(--glow); }

.footer-copy {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px clamp(16px, 4vw, 40px) 80px;
}

.legal-page h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.legal-page .lede {
  color: var(--muted);
  margin: 0 0 28px;
}

.legal-page h2 {
  margin: 28px 0 10px;
  font-size: 1.2rem;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  line-height: 1.65;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.75);
}

.pricing-table th,
.pricing-table td {
  border: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

.pricing-table th {
  background: var(--deep);
  color: #f6f3ee;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.empty {
  color: var(--muted);
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .site-top {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand tools"
      "nav nav";
  }
  .brand { grid-area: brand; }
  .top-tools { grid-area: tools; }
  .top-nav {
    grid-area: nav;
    justify-content: flex-start;
    justify-self: stretch;
    gap: 12px 16px;
    padding-top: 4px;
  }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .split,
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .top-nav { gap: 10px 14px; font-size: 0.72rem; }
  .nav-search input { width: min(150px, 42vw); }
  .product-grid { grid-template-columns: 1fr; }
  .hero { min-height: 78vh; }
}

/* ===== Drawers (account / cart) ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shop-overlay {
  position: fixed;
  inset: 0;
  background: rgba(40, 44, 52, 0.45);
  z-index: 80;
}

.shop-overlay[hidden] {
  display: none !important;
}

.shop-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 92vw);
  height: 100vh;
  height: 100dvh;
  background: #f4ebe0;
  color: #1c2430;
  z-index: 90;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12);
  overflow-y: auto;
  padding: 22px 26px 36px;
  display: flex;
  flex-direction: column;
}

.shop-drawer.is-open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(28, 36, 48, 0.12);
  margin-bottom: 22px;
}

.drawer-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.drawer-close {
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #1c2430;
  padding: 0 4px;
}

.drawer-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.drawer-form input {
  width: 100%;
  border: 1px solid #d7dbe2;
  background: #fff;
  color: #1c2430;
  font: inherit;
  font-size: 14px;
  padding: 16px 14px;
  outline: none;
}

.drawer-form input:focus {
  border-color: #9aa7b8;
}

.drawer-hint {
  margin: 0 0 14px;
  color: #8b95a3;
  font-size: 13px;
  line-height: 1.5;
}

.drawer-muted,
.drawer-switch {
  border: 0;
  background: transparent;
  color: #8b95a3;
  font: inherit;
  font-size: 13px;
  text-align: left;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.drawer-switch {
  text-align: center;
  margin-top: 8px;
}

.drawer-privacy {
  margin: 4px 0 0;
  color: #8b95a3;
  font-size: 12px;
  line-height: 1.55;
}

.drawer-privacy a {
  text-decoration: underline;
}

.drawer-submit {
  margin-top: 6px;
  border: 0;
  width: 100%;
  background: #137a73;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 15px 18px;
  border-radius: 999px;
  cursor: pointer;
}

.drawer-submit:hover {
  background: #0f6862;
}

.drawer-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.drawer-status {
  min-height: 1.2em;
  margin: 0;
  font-size: 13px;
  color: #d4524a;
}

.drawer-status.is-ok {
  color: #2f9568;
}

.account-panel .hello {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
}

.account-panel .email {
  margin: 0 0 18px;
  color: #667585;
}

.account-panel h3 {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.purchase-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.purchase-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.55);
  padding: 10px;
}

.purchase-item img {
  width: 56px;
  height: 70px;
  object-fit: cover;
  background: #dfe5ea;
}

.purchase-item strong {
  display: block;
  margin-bottom: 4px;
}

.purchase-item span {
  color: #8b95a3;
  font-size: 12px;
}

.cart-body {
  flex: 1;
}

.cart-empty {
  color: #8b95a3;
  margin: 12px 0 24px;
}

.cart-lines {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}

.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
}

.cart-line img {
  width: 64px;
  height: 80px;
  object-fit: cover;
  background: #dfe5ea;
}

.cart-line h4 {
  margin: 0 0 4px;
  font-size: 14px;
}

.cart-line p {
  margin: 0;
  color: #8b95a3;
  font-size: 13px;
}

.cart-remove {
  border: 0;
  background: transparent;
  color: #8b95a3;
  cursor: pointer;
  font-size: 12px;
  text-decoration: underline;
}

.cart-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(28, 36, 48, 0.12);
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-weight: 700;
}

.product-card .card-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.mini-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.mini-btn.primary {
  background: var(--deep);
  color: #fff;
  border-color: var(--deep);
}
