:root {
  --ink: #2a1d15;
  --muted: #786b5d;
  --cream: #fff8ee;
  --paper: #fffdf8;
  --line: #ead9bd;
  --gold: #b9812f;
  --soft-gold: #ead0a2;
  --rose: #cfa58c;
  --espresso: #2a1d15;
}

.site-header {
  gap: 24px;
}

.site-header nav {
  margin-left: auto;
}

.user-menu {
  order: 3 !important;
  margin-left: 0 !important;
}

.cart-button {
  order: 2;
}

.profile-modal[hidden] {
  display: none !important;
}

.profile-modal.open {
  display: grid !important;
}

.editorial-art {
  min-height: 680px !important;
  background: #fff8ee !important;
}

.story-card {
  width: min(345px, 92%) !important;
  aspect-ratio: 323 / 881 !important;
  min-height: 0 !important;
  padding: 0 !important;
  background: url("assets/story-reference.png") center / contain no-repeat !important;
  border: 0 !important;
  box-shadow: 0 28px 70px rgba(81, 52, 25, 0.12) !important;
}

.story-card > * {
  display: none !important;
}

@media (max-width: 760px) {
  .site-header {
    gap: 14px;
  }

  .site-header nav {
    margin-left: 0;
  }

  .user-menu {
    order: 4 !important;
  }

  .cart-button {
    order: 3;
  }

  .menu-button {
    order: 2;
  }

  .story-card {
    width: min(300px, 86%) !important;
  }
}

@media (max-width: 760px) {
  .hero-art {
    order: 1 !important;
  }

  .hero-copy {
    order: 2 !important;
  }
}

body {
  background:
    radial-gradient(circle at 12% 10%, rgba(233, 204, 154, 0.35), transparent 24%),
    linear-gradient(180deg, #fffaf2 0%, #fbf0dd 48%, #fffdf8 100%);
  color: var(--ink);
}

.announcement {
  background: #2a1d15;
  color: #fff7e8;
  padding: 9px 16px;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.announcement span {
  display: none;
}

.site-header {
  background: rgba(255, 250, 242, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(85, 53, 24, 0.06);
  backdrop-filter: blur(14px);
}

.site-header nav a {
  font-size: 16px;
}

.site-header nav a:hover,
.section-heading > a:hover,
.text-link:hover {
  color: var(--gold);
}

.user-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fffaf0;
  color: var(--ink);
  box-shadow: none;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.user-icon.logged-in {
  background: var(--ink);
  color: white;
}

.user-menu {
  position: relative;
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  z-index: 25;
  min-width: 170px;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(181, 123, 56, 0.24);
  border-radius: 16px;
  background: #fffaf0;
  box-shadow: 0 18px 45px rgba(47, 38, 31, 0.16);
}

.user-dropdown[hidden] {
  display: none !important;
}

.user-dropdown button {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  padding: 11px 12px;
  text-align: left;
  font: 700 14px 'DM Sans', sans-serif;
  cursor: pointer;
}

.user-dropdown button:hover {
  background: #f2e2c7;
}

.hero {
  background:
    linear-gradient(90deg, rgba(255, 250, 242, 0.94), rgba(245, 226, 190, 0.62)),
    repeating-linear-gradient(90deg, rgba(185, 129, 47, 0.05) 0 1px, transparent 1px 72px);
}

.hero-art {
  background: linear-gradient(145deg, #f5e1bd, #fff4df);
}

.button-dark,
.filter.active,
.cart-button span {
  background: linear-gradient(135deg, #2a1d15, #8a581e);
}

.button-dark:hover {
  background: #3b2a1f;
}

.products-section {
  background: #fffdf8;
}

.category {
  background: linear-gradient(145deg, #fff4dd, #ecd0a0) !important;
  border: 1px solid rgba(185, 129, 47, 0.18);
  box-shadow: 0 18px 45px rgba(85, 53, 24, 0.08);
}

.category span {
  color: rgba(137, 88, 32, 0.62);
}

.editorial {
  grid-template-columns: minmax(320px, 0.85fr) 1fr;
  background: linear-gradient(135deg, #fffaf2, #f7e5c7);
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.editorial-art {
  min-height: 620px;
  background:
    radial-gradient(circle at 70% 92%, rgba(206, 165, 104, 0.4), transparent 26%),
    linear-gradient(180deg, #fffaf2 0%, #f4e6d2 100%);
  display: grid;
  place-items: center;
  padding: 28px;
}

.story-card {
  width: min(330px, 92%);
  min-height: 560px;
  padding: 54px 34px 36px;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  justify-items: center;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.86), rgba(255, 247, 233, 0.9)),
    radial-gradient(circle at 50% 100%, rgba(217, 174, 101, 0.3), transparent 35%);
  border: 1px solid rgba(185, 129, 47, 0.22);
  box-shadow: 0 28px 70px rgba(81, 52, 25, 0.14);
}

.story-card img {
  width: 220px;
  height: 92px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.story-card h3 {
  margin: 34px 0 18px;
  font-family: "Playfair Display", serif;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 500;
  color: #4a2f1a;
}

.story-card > span {
  width: 90px;
  height: 1px;
  background: var(--gold);
  position: relative;
}

.story-card > span::after {
  content: "✦";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 0 8px;
  background: #fff7e9;
  color: var(--gold);
  font-size: 12px;
}

.story-jewels {
  align-self: end;
  width: 100%;
  height: 190px;
  position: relative;
}

.story-jewels::before {
  content: "";
  position: absolute;
  left: 16%;
  right: 4%;
  bottom: 42px;
  height: 3px;
  background: linear-gradient(90deg, #c58b35, #f3d489, #9f671f);
  transform: rotate(-12deg);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(85, 53, 24, 0.16);
}

.story-jewels i,
.story-jewels b,
.story-jewels em {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #f5d27e 42%, #a8691e 72%);
  box-shadow: 0 10px 22px rgba(85, 53, 24, 0.18);
}

.story-jewels i {
  width: 88px;
  height: 88px;
  left: 12px;
  bottom: 18px;
  border: 14px solid #c58b35;
  background: radial-gradient(circle at 50% 50%, #fff 0 18%, transparent 19%), #c58b35;
}

.story-jewels b {
  width: 42px;
  height: 42px;
  right: 74px;
  bottom: 24px;
}

.story-jewels em {
  width: 30px;
  height: 30px;
  right: 26px;
  bottom: 34px;
}

.temple-arch,
.lamp,
.pearl,
.gold-chain {
  display: none !important;
}

.editorial-copy {
  color: var(--ink);
}

.editorial-copy .eyebrow {
  color: var(--gold);
}

.editorial h2 em {
  color: #9f671f;
}

.editorial-copy > p:not(.eyebrow) {
  color: var(--muted);
}

.editorial .text-link {
  border-color: var(--ink);
}

.newsletter {
  background: linear-gradient(135deg, #f3dfbd, #fff8ee);
  color: var(--ink);
}

.newsletter .eyebrow,
.newsletter small,
.newsletter > p:not(.eyebrow) {
  color: var(--muted);
}

footer {
  background: #fffaf2;
  border-top: 1px solid var(--line);
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: center;
}

footer p {
  text-align: center;
}

footer div {
  align-items: center;
}

footer .contact-details {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: right;
}

footer small {
  text-align: center;
}

.profile-modal {
  background: rgba(42, 29, 21, 0.46);
}

.profile-card,
.cart-panel {
  background: #fffdf8;
}

@media (max-width: 760px) {
  .editorial {
    grid-template-columns: 1fr;
  }

  .editorial-art {
    min-height: 520px;
  }

  .story-card {
    min-height: 480px;
  }

  footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  footer .footer-logo,
  footer div {
    justify-content: center;
  }

  footer .contact-details {
    text-align: center;
  }
}

/* Final layout safety overrides */
.site-header {
  gap: 24px;
}

.site-header nav {
  margin-left: auto;
}

.user-menu {
  order: 3 !important;
  margin-left: 0 !important;
}

.cart-button {
  order: 2;
}

.profile-modal[hidden] {
  display: none !important;
}

.profile-modal.open {
  display: grid !important;
}

.editorial-art {
  min-height: 680px !important;
  background: #fff8ee !important;
}

.story-card {
  width: min(345px, 92%) !important;
  aspect-ratio: 323 / 881 !important;
  min-height: 0 !important;
  padding: 0 !important;
  background: url("assets/story-reference.png") center / contain no-repeat !important;
  border: 0 !important;
  box-shadow: 0 28px 70px rgba(81, 52, 25, 0.12) !important;
}

.story-card > * {
  display: none !important;
}

@media (max-width: 760px) {
  .site-header {
    gap: 14px;
  }

  .site-header nav {
    margin-left: 0;
  }

  .user-menu {
    order: 4 !important;
  }

  .cart-button {
    order: 3;
  }

  .menu-button {
    order: 2;
  }

  .story-card {
    width: min(300px, 86%) !important;
  }
}
