@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Outfit:wght@300;400;500;600;700&display=swap");

:root {
  --ink: #2b221f;
  --ink-soft: #6a5c56;
  --burgundy: #6e1f2a;
  --burgundy-deep: #541820;
  --gold: #c4a574;
  --gold-bright: #d8bc8c;
  --ivory: #f7f1e8;
  --parchment: #fffaf3;
  --blush: #f3e6dc;
  --line: #e6d5c3;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  max-width: 100%;
}

body {
  font-family: "Outfit", sans-serif;
  color: var(--ink);
  background: var(--ivory);
}

h1, h2, h3,
.site-brand-title,
.store-display {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

img,
video,
iframe {
  max-width: 100%;
}

a,
button,
input,
select,
textarea,
summary,
label {
  touch-action: manipulation;
}

.marketing-announcement {
  background: var(--burgundy-deep) !important;
  color: var(--gold-bright) !important;
  border-bottom: 1px solid rgba(196, 165, 116, 0.35) !important;
  font-family: "Outfit", sans-serif;
  letter-spacing: 0.04em;
}

.site-header-nav {
  background: linear-gradient(180deg, #fbf7ef 0%, #f4ebe0 100%) !important;
  border-bottom: 1px solid var(--line) !important;
  box-shadow: 0 10px 30px rgba(84, 24, 32, 0.06) !important;
}

.site-brand-title {
  color: var(--burgundy) !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
}

.site-brand-tagline {
  color: var(--gold) !important;
  letter-spacing: 0.28em !important;
  font-weight: 500 !important;
}

.site-search {
  border-color: var(--line) !important;
  background: #fffdf8 !important;
  box-shadow: inset 0 0 0 1px rgba(196, 165, 116, 0.18);
}

.site-search-button {
  background: linear-gradient(180deg, #d8bc8c, #c4a574) !important;
  color: var(--burgundy-deep) !important;
}

.store-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1.4rem;
  padding: 2.4rem 1.4rem;
  border: 1px solid var(--line);
  background:
    radial-gradient(1200px 280px at 10% -20%, rgba(216, 188, 140, 0.28), transparent 55%),
    linear-gradient(135deg, #5a1822 0%, #7a2833 48%, #4d151c 100%);
  color: #f8efe6;
  box-shadow: 0 18px 40px rgba(84, 24, 32, 0.16);
}

.store-hero::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(216, 188, 140, 0.35);
  pointer-events: none;
}

.store-hero > * { position: relative; z-index: 1; }

.store-kicker {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.store-hero h1 {
  margin-top: 0.7rem;
  max-width: 14ch;
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1.08;
  font-weight: 600;
  color: #fffaf3;
}

.gold-rule {
  width: 4.5rem;
  height: 1px;
  margin: 1rem 0 0.9rem;
  background: linear-gradient(90deg, var(--gold-bright), transparent);
}

.section-heading .store-kicker { color: var(--burgundy); }
.section-heading h2 {
  margin-top: 0.35rem;
  color: var(--burgundy-deep);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.15;
}
.section-heading p {
  margin-top: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.jewellery-card {
  overflow: hidden;
  border-radius: 1.15rem;
  background: var(--parchment);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(84, 24, 32, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.jewellery-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 18px 36px rgba(84, 24, 32, 0.1);
}

.jewellery-card img { transition: transform 0.45s ease; }
.jewellery-card:hover img { transform: scale(1.04); }

.price-tag {
  color: var(--burgundy);
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.chip {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  background: rgba(251, 247, 239, 0.92);
  color: var(--burgundy);
  border: 1px solid rgba(196, 165, 116, 0.45);
}

.homepage-rail {
  scrollbar-color: var(--gold) var(--blush);
}

.category-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.category-tile {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.7rem;
  min-height: 4.25rem;
}

.category-tile-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  overflow: hidden;
  border-radius: 0.7rem;
  background: var(--blush);
  color: var(--gold);
  font-size: 1.15rem;
}

.category-tile-copy {
  min-width: 0;
}

.category-tile h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.2;
  color: var(--ink);
}

.category-tile p {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.category-tile.jewellery-card:hover {
  transform: none;
}

.catalogue-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.catalogue-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--parchment);
  color: var(--ink) !important;
  font-size: 0.78rem;
  line-height: 1.2;
}

.catalogue-chip span {
  color: var(--ink-soft) !important;
  font-size: 0.7rem;
}

.catalogue-chip.is-active {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: #fffaf3 !important;
}

.catalogue-chip.is-active span {
  color: var(--gold-bright) !important;
}

.catalogue-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.catalogue-pager a,
.catalogue-pager span,
.catalogue-pager p {
  font-size: 0.85rem;
}

.catalogue-pager a {
  color: var(--burgundy) !important;
  font-weight: 600;
}

.catalogue-pager .is-disabled {
  color: var(--ink-soft);
  opacity: 0.55;
}

@media (min-width: 640px) {
  .category-directory {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
  }
}

@media (min-width: 1024px) {
  .category-directory {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .category-tile {
    grid-template-columns: 4rem 1fr;
  }

  .category-tile-image {
    width: 4rem;
    height: 4rem;
  }
}

footer.site-footer {
  margin-top: 4.5rem;
  background:
    radial-gradient(700px 180px at 90% 0%, rgba(216, 188, 140, 0.12), transparent 50%),
    var(--burgundy-deep) !important;
  color: #f3e7dc !important;
  border-top: 1px solid var(--gold) !important;
}

.site-footer h3,
.site-footer h4 {
  color: var(--gold-bright) !important;
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: 0.12em;
  font-weight: 600 !important;
}

.site-footer p,
.site-footer li,
.site-footer a,
.site-footer span {
  color: #e8d7c8 !important;
}

.site-footer a:hover { color: var(--gold-bright) !important; }

.site-footer hr { border-color: rgba(196, 165, 116, 0.25) !important; }

.site-footer-social {
  border-color: rgba(216, 188, 140, 0.5) !important;
  color: var(--gold-bright) !important;
}

.site-footer-social:hover {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: var(--burgundy-deep) !important;
}

.gold-cta {
  background: linear-gradient(180deg, #d8bc8c, #c4a574) !important;
  color: var(--burgundy-deep) !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em;
  box-shadow: 0 10px 22px rgba(84, 24, 32, 0.12) !important;
}

.product-heading h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  color: var(--burgundy-deep);
}

.product-category {
  letter-spacing: 0.22em !important;
  color: var(--gold) !important;
}

.product-price {
  font-family: "Cormorant Garamond", serif !important;
  color: var(--burgundy) !important;
}

.checkout-hero,
.page-hero {
  border-radius: 1.2rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, #5a1822 0%, #7a2833 100%);
  color: #f8efe6;
}

@media (max-width: 767px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
  select,
  textarea {
    font-size: 16px !important;
  }

  .store-hero { padding: 1.6rem 1.1rem; }
  .store-hero::after { inset: 8px; }

  .site-footer { margin-top: 2.5rem !important; }

  .site-footer .site-footer-inner {
    padding: 2rem 1rem 1.5rem !important;
  }

  .site-footer .site-footer-grid {
    gap: 1.75rem !important;
  }

  .site-footer h3 {
    font-size: 1.45rem !important;
  }

  .checkout-hero,
  .page-hero {
    padding: 1.1rem 1rem !important;
  }

  .checkout-hero h1,
  .page-hero h1 {
    font-size: 1.65rem !important;
    line-height: 1.2 !important;
  }

  .cart-item-row { gap: 0.75rem !important; }
  .cart-item-controls { gap: 0.75rem !important; }

  .wishlist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
  }

  .wishlist-card-body {
    padding: 0.75rem !important;
    gap: 0.5rem !important;
  }

  .wishlist-card-title {
    font-size: 0.95rem !important;
    line-height: 1.25 !important;
  }

  .profile-address-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .message-meta {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.25rem;
  }

  .tracking-status-row { flex-wrap: wrap; }

  .variant-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-inline: -0.25rem;
    padding-inline: 0.25rem;
  }

  .management-page main,
  .management-panel,
  .management-header { min-width: 0; }

  .auth-card {
    margin: 1rem !important;
    padding: 1.25rem !important;
  }

  .auth-card h2 { font-size: 1.5rem !important; }

  .order-success-main { padding: 2rem 1rem !important; }
  .order-success-main h1 { font-size: 1.6rem !important; }
}

@supports (padding: max(0px)) {
  @media (max-width: 767px) {
    body {
      padding-left: env(safe-area-inset-left);
      padding-right: env(safe-area-inset-right);
    }
  }
}

