:root {
  --bg: #f5f1ea;
  --bg-soft: #fbf8f4;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --surface-muted: #f1ede6;
  --text: #20303a;
  --text-soft: #60717b;
  --text-faint: #84929a;
  --line: rgba(130, 146, 157, 0.22);
  --line-strong: rgba(130, 146, 157, 0.34);
  --accent: #8ba8ba;
  --accent-deep: #5a7687;
  --accent-pale: #dbe7ee;
  --sand: #d9c9ba;
  --shadow-sm: 0 12px 30px rgba(31, 49, 61, 0.07);
  --shadow-md: 0 22px 60px rgba(31, 49, 61, 0.12);
  --shadow-lg: 0 34px 80px rgba(31, 49, 61, 0.16);
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --transition: 0.35s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(219, 231, 238, 0.7), transparent 30%),
    linear-gradient(180deg, #f9f6f1 0%, #f4f0ea 100%);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.section-shell {
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 32px;
}

.section-heading--split {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.section-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.section-heading h1,
.section-heading h2,
.checkout-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 4.4rem);
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.section-heading p,
.checkout-copy {
  margin: 0;
  color: var(--text-soft);
  max-width: 540px;
}

.section-link,
.footer-pill,
.summary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.section-link:hover,
.footer-pill:hover,
.summary-link:hover {
  transform: translateY(-2px);
  border-color: rgba(90, 118, 135, 0.38);
  box-shadow: var(--shadow-sm);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(18px);
}

.header-notice {
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(235, 240, 243, 0.78);
}

.header-notice p {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 9px 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.header-shell {
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(249, 246, 241, 0.82);
}

.header-main {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 94px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}

.brand-mark {
  width: auto;
  height: 50px;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
}

.nav > a,
.dropdown > a {
  position: relative;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.nav > a::after,
.dropdown > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 1px;
  background: var(--accent-deep);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--transition);
}

.nav > a:hover::after,
.nav > a.is-current::after,
.dropdown:hover > a::after,
.dropdown.active > a::after {
  transform: scaleX(1);
}

.dropdown {
  position: relative;
}

.dropdown-menu,
.mega-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.dropdown:hover .dropdown-menu,
.dropdown:hover .mega-menu,
.dropdown.active .dropdown-menu,
.dropdown.active .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.dropdown-menu {
  min-width: 220px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
}

.dropdown-menu a {
  display: block;
  padding: 11px 14px;
  border-radius: 16px;
  color: var(--text-soft);
  transition: background-color var(--transition), color var(--transition);
}

.dropdown-menu a:hover {
  background: var(--bg-soft);
  color: var(--text);
}

.mega-menu {
  width: min(860px, calc(100vw - 40px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(220px, 1.1fr);
  gap: 22px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(246, 242, 236, 0.97) 100%);
  box-shadow: var(--shadow-lg);
}

.mega-column,
.mega-feature {
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.mega-label,
.mega-feature__eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.mega-column a,
.mega-feature__link {
  display: block;
  padding: 10px 0;
  font-size: 15px;
}

.mega-column a {
  color: var(--text-soft);
  border-bottom: 1px solid rgba(130, 146, 157, 0.14);
}

.mega-column a:last-child {
  border-bottom: 0;
}

.mega-column a:hover,
.mega-feature__link:hover {
  color: var(--text);
}

.mega-feature h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 0.98;
}

.mega-feature p {
  margin: 0 0 20px;
  color: var(--text-soft);
}

.mega-feature__link {
  display: inline-flex;
  align-items: center;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--accent-pale);
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.search-box {
  position: relative;
  width: min(280px, 100%);
}

.search-box i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
}

.search-box input {
  width: 100%;
  min-height: 48px;
  padding: 0 18px 0 44px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.search-box input:focus {
  outline: none;
  border-color: rgba(90, 118, 135, 0.4);
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.icon-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(90, 118, 135, 0.4);
}

.icon-btn.cart-bump {
  animation: cart-bump 0.34s ease;
}

.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent-deep);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.cart-count[hidden] {
  display: none !important;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
}

body.cart-open {
  overflow: hidden;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(24, 37, 47, 0.38);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 240;
}

.cart-overlay.is-visible {
  opacity: 1;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(460px, 100%);
  height: 100dvh;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(247, 243, 238, 0.98) 100%);
  backdrop-filter: blur(20px);
  box-shadow: -24px 0 60px rgba(20, 35, 44, 0.15);
  transform: translateX(100%);
  transition: transform var(--transition);
  z-index: 250;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

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

.cart-drawer__header,
.cart-drawer__body,
.cart-drawer__footer {
  padding-inline: 28px;
}

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

.cart-drawer__eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.cart-drawer__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 0.95;
}

.cart-close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text-soft);
  font-size: 24px;
}

.cart-drawer__body {
  padding-top: 22px;
  padding-bottom: 22px;
  overflow-y: auto;
}

.cart-items {
  display: grid;
  gap: 16px;
}

.cart-items[hidden],
.cart-empty[hidden] {
  display: none !important;
}

.cart-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(130, 146, 157, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
}

.cart-item--pulse {
  animation: cart-item-flash 0.3s ease;
}

.cart-item__image {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  object-fit: cover;
  background: var(--surface-muted);
}

.cart-item__brand,
.cart-item__price,
.cart-item__subtotal,
.cart-item__name {
  margin: 0;
}

.cart-item__brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.cart-item__name {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.cart-item__price,
.cart-item__subtotal {
  color: var(--text-soft);
}

.cart-item__meta {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}

.cart-qty__btn,
.cart-remove,
.cart-clear,
.cart-primary-btn,
.cart-secondary-btn,
.place-order-btn {
  border: none;
  border-radius: 999px;
}

.cart-qty__btn {
  width: 30px;
  height: 30px;
  background: var(--surface-muted);
  color: var(--text);
}

.cart-remove {
  padding: 0;
  background: transparent;
  color: var(--text-faint);
}

.cart-empty {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 30px 0;
}

.cart-empty__icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-pale);
  color: var(--accent-deep);
  font-weight: 700;
}

.cart-empty h3,
.cart-empty p {
  margin: 0;
}

.cart-drawer__footer {
  padding-top: 22px;
  padding-bottom: 28px;
  border-top: 1px solid var(--line);
}

.cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--text-soft);
}

.cart-summary-row--total {
  margin-bottom: 18px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.cart-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cart-primary-btn,
.cart-secondary-btn,
.place-order-btn {
  min-height: 50px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.cart-primary-btn,
.place-order-btn {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.cart-secondary-btn {
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  border: 1px solid var(--line);
}

.cart-primary-btn:hover,
.cart-secondary-btn:hover,
.place-order-btn:hover {
  transform: translateY(-2px);
}

.site-footer {
    background: #ebe5dc;
    padding: 80px 0 30px;
    border-top: 1px solid #e7dfd4;
    margin-top:60px;
}

.footer-shell {
    width: 100%;
    padding: 0 40px;
}

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

.footer-brand-logo {
  height: 56px;
  width: auto;
  margin-bottom: 18px;
}

.footer-brand p,
.footer-col p {
  margin: 0 0 14px;
  color: var(--text-soft);
}

.footer-col h4 {
  margin: 0 0 16px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-col a {
  color: var(--text-soft);
}

.footer-col a:hover {
  color: var(--text);
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icons a {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.74);
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--text-faint);
  font-size: 14px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes cart-bump {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px) scale(1.04);
  }
}

@keyframes cart-item-flash {
  0% {
    transform: scale(0.98);
    opacity: 0.6;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 1100px) {
  .header-main {
    grid-template-columns: auto auto 1fr;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 28px;
    background: rgba(250, 247, 243, 0.98);
    box-shadow: var(--shadow-lg);
  }

  .nav.active {
    display: flex;
  }

  .nav > a,
  .dropdown > a {
    padding: 14px 0;
  }

  .dropdown-menu,
  .mega-menu {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 8px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
    transform: none;
  }

  .dropdown.active .dropdown-menu,
  .dropdown.active .mega-menu {
    display: grid;
  }

  .mega-menu {
    grid-template-columns: 1fr;
  }

  .header-right {
    justify-content: flex-end;
  }
}

@media (max-width: 820px) {
  .header-main {
    width: min(1320px, calc(100% - 24px));
    min-height: 84px;
    gap: 14px;
  }

  .search-box {
    display: none;
  }

  .section-shell,
  .footer-shell,
  .header-notice p {
    width: min(100% - 24px, 1240px);
  }

  .section-heading--split,
  .footer-grid,
  .footer-bottom,
  .cart-actions {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    display: grid;
    justify-content: start;
  }
}

@media (max-width: 640px) {
  .brand-mark {
    height: 42px;
  }

  .cart-drawer__header,
  .cart-drawer__body,
  .cart-drawer__footer {
    padding-inline: 18px;
  }

  .cart-item {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .cart-item__subtotal {
    grid-column: 2;
  }
}
