html {
  scroll-behavior: smooth;
}

:root {
  --bg-main: #ffffff;
  --bg-soft: #f7fbfc;
  --text-main: #00323d;
  --text-soft: #4f6b73;
  --line: #dbe7ea;
  --gold: #9db881;
  --gold-dark: #7f9968;
  --card: #ffffff;
  --success: #016b83;
  --danger: #c2410c;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", Arial, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
}

h1, h2, h3, h4, h5, h6,
.brand-serif {
  font-family: "Times New Roman", serif;
}

.section-shell {
  width: min(1280px, calc(100% - 2rem));
  margin-inline: auto;
}

.lux-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 50, 61, 0.06);
}

.lux-card-soft {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  backdrop-filter: blur(8px);
}

.lux-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.95rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  transition: 0.25s ease;
  text-decoration: none;
}

.lux-btn-primary {
  background: var(--text-main);
  color: white;
}

.lux-btn-primary:hover {
  background: #016b83;
}

.lux-btn-secondary {
  background: white;
  color: var(--text-main);
  border: 1px solid var(--line);
}

.lux-btn-secondary:hover {
  background: var(--bg-soft);
  border-color: #016b83;
}

.topbar-gradient {
  background: linear-gradient(90deg, #00323d, #016b83, #00323d);
}

.site-header-main {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

@media (max-width: 1100px) {
  .collection-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .collection-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .collection-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }
}

.product-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 50, 61, 0.05);
  transition: 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(1, 107, 131, 0.12);
  border-color: #b7d2d9;
}

.product-image-wrap {
  aspect-ratio: 1 / 1.12;
  background: #f2f7f8;
  overflow: hidden;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-body {
  padding: 1rem;
}

.product-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}

.product-desc {
  font-size: 0.84rem;
  color: var(--text-soft);
  margin-top: 0.45rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-row {
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.product-main-price {
  font-weight: 700;
  color: var(--text-main);
}

.product-old-price {
  font-size: 0.84rem;
  color: #88a0a6;
  text-decoration: line-through;
}

.product-badges {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.badge-chip {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.badge-gold {
  background: #eef4e7;
  color: var(--gold-dark);
}

.badge-soft {
  background: #edf7fa;
  color: var(--success);
}

.badge-danger {
  background: #ffedd5;
  color: #b45309;
}

.feature-panel {
  border-radius: 1.5rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f7fbfc);
}

.quote-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  padding: 1.4rem;
}

.footer-dark {
  background: #00323d;
  color: white;
}

.footer-dark a {
  color: #d8edf2;
}

.footer-dark a:hover {
  color: white;
}

.moon-title {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-size: 0.75rem;
  font-weight: 700;
}

.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
}

@media (max-width: 980px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 2rem;
}

@media (max-width: 980px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

.thumb-btn.active-thumb {
  border-color: var(--success) !important;
  box-shadow: 0 0 0 2px rgba(1, 107, 131, 0.12);
}

.variant-btn.active-variant {
  background: var(--text-main);
  color: white;
  border-color: var(--text-main);
}

.sticky-glass {
  position: sticky;
  top: 1rem;
}

.hero-copy-wrap {
  padding: 2rem;
}

.hero-visual-box {
  min-height: 100%;
}

.hero-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

@media (max-width: 900px) {
  .hero-benefits-grid {
    grid-template-columns: 1fr;
  }
}

.hero-big-title {
  font-size: clamp(2.4rem, 6vw, 5.3rem);
  line-height: 0.95;
}

.hero-subtext {
  font-size: 1.05rem;
  line-height: 1.9;
}

/* DESKTOP HEADER */
.desktop-header-shell {
  display: block;
}

.desktop-brand-block {
  width: 100%;
  text-align: center;
}

.site-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-logo-desktop {
  width: auto;
  height: 120px;
  object-fit: contain;
  display: block;
}

.site-brand-title-centered {
  font-family: "Times New Roman", serif;
  font-size: 3rem;
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--text-main);
  text-align: center;
}

.site-brand-subtitle-centered {
  font-size: 1rem;
  color: var(--text-soft);
  margin-top: 0.45rem;
  text-align: center;
}

.site-main-nav-desktop {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem 1.4rem;
  width: 100%;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.site-main-nav-desktop a,
.desktop-nav-button {
  font-size: 0.96rem;
  color: var(--text-main);
  text-decoration: none;
  line-height: 1.2;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.site-main-nav-desktop a:hover,
.desktop-nav-button:hover {
  color: #016b83;
}

.desktop-categories-wrapper {
  position: relative;
}

.desktop-categories-menu {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 560px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1rem;
  box-shadow: 0 20px 45px rgba(0, 50, 61, 0.12);
  z-index: 100;
}

.desktop-categories-menu.is-open {
  display: block;
}

.desktop-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.desktop-category-group {
  border: 1px solid #dce9ec;
  border-radius: 1rem;
  padding: 0.9rem;
  background: #fbfefe;
}

.desktop-category-parent {
  display: inline-block;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  margin-bottom: 0.55rem;
}

.desktop-category-children {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.desktop-category-child {
  text-decoration: none;
  color: var(--text-soft);
  font-size: 0.92rem;
  padding: 0.35rem 0;
}

.desktop-category-child:hover,
.desktop-category-parent:hover {
  color: var(--success);
}

.nav-link-cart {
  position: relative;
}

.cart-badge-inline {
  position: absolute;
  top: -10px;
  right: -16px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--success);
  color: white;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* MOBILE HEADER */
.mobile-header-shell {
  display: none;
}

.mobile-header-row {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 0.5rem;
}

.mobile-side {
  width: 44px;
  display: flex;
  align-items: center;
}

.mobile-left {
  justify-content: flex-start;
}

.mobile-right {
  justify-content: flex-end;
}

.mobile-brand-center {
  text-align: center;
  min-width: 0;
}

.mobile-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-logo-mobile {
  width: auto;
  height: 72px;
  object-fit: contain;
  display: block;
}

.mobile-brand-title {
  font-family: "Times New Roman", serif;
  font-size: 2.15rem;
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--text-main);
}

.mobile-brand-subtitle {
  font-size: 0.86rem;
  color: var(--text-soft);
  margin-top: 0.35rem;
  text-align: center;
}

.mobile-icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
}

.mobile-icon-btn:hover {
  background: var(--bg-soft);
}

.icon-link {
  text-decoration: none;
}

.icon-svg {
  width: 21px;
  height: 21px;
}

.hamburger-lines {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.hamburger-lines span {
  display: block;
  width: 18px;
  height: 1.8px;
  background: var(--text-main);
  border-radius: 999px;
}

.site-main-nav-mobile {
  width: 100%;
  margin-top: 0.9rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 0.9rem;
  box-shadow: 0 10px 25px rgba(0, 50, 61, 0.06);
}

.site-main-nav-mobile.hidden {
  display: none;
}

.site-main-nav-mobile > a,
.mobile-category-accordion summary,
.mobile-subcategory-accordion summary {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  color: var(--text-main);
  padding: 0.8rem 0.85rem;
  border-radius: 0.9rem;
  font-size: 0.94rem;
  cursor: pointer;
  list-style: none;
}

.mobile-category-accordion summary::-webkit-details-marker,
.mobile-subcategory-accordion summary::-webkit-details-marker {
  display: none;
}

.site-main-nav-mobile > a:hover,
.mobile-category-accordion summary:hover,
.mobile-subcategory-accordion summary:hover {
  background: var(--bg-soft);
  color: var(--success);
}

.mobile-category-accordion,
.mobile-subcategory-accordion {
  margin-top: 0.15rem;
}

.mobile-category-children,
.mobile-subcategory-children {
  padding-top: 0.15rem;
}

.mobile-category-children > a,
.mobile-subcategory-children > a {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  color: var(--text-soft);
  padding: 0.7rem 0.85rem;
  border-radius: 0.8rem;
  font-size: 0.9rem;
}

.mobile-category-children > a:hover,
.mobile-subcategory-children > a:hover {
  background: var(--bg-soft);
  color: var(--success);
}

.mobile-cart-icon-wrap {
  position: relative;
}

.cart-badge-mobile {
  position: absolute;
  top: 1px;
  right: 0px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--success);
  color: white;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 640px) {
  .section-shell {
    width: min(1280px, calc(100% - 1rem));
  }

  .desktop-header-shell {
    display: none;
  }

  .mobile-header-shell {
    display: block;
  }

  .hero-copy-wrap {
    padding: 1.2rem;
  }

  .hero-subtext {
    font-size: 0.96rem;
    line-height: 1.75;
  }

  .lux-btn {
    width: 100%;
  }

  .product-card-body {
    padding: 0.85rem;
  }

  .product-title {
    font-size: 0.95rem;
  }

  .product-desc {
    font-size: 0.78rem;
  }

  .badge-chip {
    font-size: 0.68rem;
    padding: 0.35rem 0.65rem;
  }

  .site-logo-mobile {
    height: 62px;
  }
}

@media (min-width: 641px) {
  .mobile-header-shell {
    display: none !important;
  }
}