/* ===== Maison Stella — Fine Jewellery Template ===== */
:root {
  --cream: #faf7f2;
  --cream-2: #f3ede3;
  --ink: #2b2b2b;
  --ink-soft: #5a5a55;
  --gold: #b08d57;
  --gold-deep: #9a7642;
  --line: #e6dfd3;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(43, 43, 43, 0.08);
  --shadow-sm: 0 4px 14px rgba(43, 43, 43, 0.06);
  --radius: 2px;
  --maxw: 1280px;
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Songti SC",
    "STSong", serif;
  --sans: "Inter", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", system-ui,
    sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.2;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* ===== Announcement bar ===== */
.announcement {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  padding: 9px 16px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.brand {
  font-family: var(--serif);
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.brand small {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 4px;
}

.nav {
  display: flex;
  gap: 30px;
}
.nav a {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav a:hover::after {
  width: 100%;
}

.actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  position: relative;
  padding: 4px;
}
.icon-btn:hover {
  color: var(--gold-deep);
}
.cart-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  background: var(--gold);
  color: #fff;
  font-size: 0.66rem;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

#lang-toggle {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 7px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
}
#lang-toggle:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(120deg, #f6efe4 0%, #fbf6ee 100%);
  padding: 0;
}
.hero > .container.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  min-height: 560px;
}
.hero-content {
  padding: 80px 56px 80px 0;
}
.hero-content .eyebrow {
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  margin-bottom: 22px;
}
.hero p.lead {
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: var(--radius);
}
.btn:hover {
  background: transparent;
  color: var(--ink);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
}

.hero-media {
  position: relative;
  height: 100%;
  min-height: 460px;
  background: var(--cream-2);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media .badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}

/* ===== Category strip ===== */
.cats {
  padding: 72px 0 8px;
  text-align: center;
}
.section-head {
  text-align: center;
  margin-bottom: 40px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-top: 10px;
}
.section-head p {
  color: var(--ink-soft);
  max-width: 640px;
  margin: 12px auto 0;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.cat-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  cursor: pointer;
}
.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.cat-card:hover img {
  transform: scale(1.05);
}
.cat-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.45));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 22px;
}
.cat-card .overlay span {
  color: #fff;
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: 0.06em;
}

/* ===== Products ===== */
.products {
  padding: 60px 0 30px;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-btn {
  background: none;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 9px 20px;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.2s ease;
}
.filter-btn:hover {
  border-color: var(--gold);
  color: var(--ink);
}
.filter-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.results-count {
  font-size: 0.8rem;
  color: var(--ink-soft);
}
#sort-select {
  font-family: var(--sans);
  font-size: 0.8rem;
  padding: 9px 14px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 22px;
}
.product-card {
  display: flex;
  flex-direction: column;
}
.product-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--cream-2);
  border-radius: var(--radius);
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product-card:hover .product-media img {
  transform: scale(1.04);
}
.add-btn {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 12px 26px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  white-space: nowrap;
}
.product-card:hover .add-btn {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.add-btn:hover {
  background: var(--gold-deep);
}
.product-info {
  padding: 16px 4px 0;
  text-align: center;
}
.product-title {
  font-size: 1.02rem;
  font-weight: 500;
  margin-bottom: 4px;
}
.product-type {
  font-size: 0.74rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.product-price {
  font-size: 0.95rem;
  color: var(--gold-deep);
  font-weight: 600;
}

/* ===== Story / Sustainability ===== */
.split {
  padding: 90px 0;
}
.split > .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}
.split.split-reverse > .container > .split-media {
  order: 2;
}
.split-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream-2);
}
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  margin: 12px 0 20px;
}
.split-text p {
  color: var(--ink-soft);
  margin-bottom: 28px;
  max-width: 540px;
}

/* ===== Contact strip ===== */
.contact-strip {
  padding: 80px 0 40px;
  text-align: center;
  background: var(--cream-2);
}
.contact-strip h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  margin: 12px 0 10px;
}
.contact-sub {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 26px;
}
.contact-email {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--gold-deep);
  letter-spacing: 0.04em;
  border-bottom: 1px dashed var(--gold);
  padding-bottom: 4px;
  transition: all 0.2s ease;
}
.contact-email:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.perk-email {
  font-size: 0.82rem;
  color: var(--gold-deep);
  margin-top: 4px;
  font-weight: 500;
}

/* ===== Perks ===== */
.perks {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 50px 0;
}
.perks > .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.perk {
  text-align: center;
}
.perk h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.perk p {
  font-size: 0.84rem;
  color: var(--ink-soft);
}
.perk a:hover {
  color: var(--gold-deep);
}

/* ===== Footer ===== */
.site-footer {
  background: #1f1f1d;
  color: #cfc8ba;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 14px;
}
.footer-grid p {
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 360px;
}
.footer-col h5 {
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 9px;
}
.footer-col a {
  font-size: 0.88rem;
  color: #a8a294;
}
.footer-col a:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid #34342f;
  padding-top: 22px;
  text-align: center;
  font-size: 0.78rem;
  color: #8d877b;
}

/* ===== Cart drawer ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 90;
}
.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  background: var(--cream);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open {
  transform: translateX(0);
}
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.cart-header h3 {
  font-size: 1.3rem;
}
.cart-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink);
  line-height: 1;
}
.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}
.cart-empty {
  text-align: center;
  color: var(--ink-soft);
  padding: 40px 0;
  font-size: 0.92rem;
}
.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.cart-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius);
}
.cart-item-title {
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.cart-item-price {
  font-size: 0.82rem;
  color: var(--gold-deep);
}
.cart-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.cart-qty button {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  border-radius: 50%;
  font-size: 0.9rem;
  line-height: 1;
}
.cart-qty button:hover {
  border-color: var(--gold);
}
.cart-item-remove {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--ink-soft);
  cursor: pointer;
  align-self: flex-start;
}
.cart-item-remove:hover {
  color: #c00;
}
.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
}
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  margin-bottom: 16px;
}
.cart-footer .btn {
  width: 100%;
  margin-bottom: 10px;
}

/* ===== Subpages (About / Contact) ===== */
.subpage .page-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 72px 24px 90px;
}
.page-wrap h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 44px;
}
.page-wrap p {
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.9;
  color: #3d3d38;
  margin-bottom: 30px;
}
.page-wrap a {
  color: var(--gold-deep);
}
.back-link {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft) !important;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: color 0.2s ease;
}
.back-link:hover {
  color: var(--gold-deep) !important;
}

.contact-list {
  margin: 0 0 26px;
}
.contact-row {
  margin-bottom: 22px;
}
.contact-row dt {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 4px;
}
.contact-row dd {
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.8;
  color: #3d3d38;
  margin: 0;
}
.contact-mailto {
  color: var(--gold-deep);
  border-bottom: 1px dashed var(--gold);
  transition: color 0.2s ease;
}
.contact-mailto:hover {
  color: var(--ink);
}

/* ===== Product detail page ===== */
.pdp-main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px 90px;
}
.pdp-crumbs {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 30px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pdp-crumbs a:hover {
  color: var(--gold-deep);
}
.pdp-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: start;
}
.pdp-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--cream-2);
  border-radius: var(--radius);
}
.pdp-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pdp-info h1 {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  margin-bottom: 10px;
}
.pdp-type {
  font-size: 0.8rem;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.pdp-price {
  font-size: 1.5rem;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 22px;
}
.pdp-desc {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 30px;
  max-width: 520px;
}
.pdp-qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}
.pdp-qty-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.pdp-qty {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 14px;
  border-radius: var(--radius);
}
.pdp-qty button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
.pdp-qty button:hover {
  border-color: var(--gold);
}
.pdp-qty span {
  min-width: 24px;
  text-align: center;
  font-size: 0.95rem;
}
.pdp-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.pdp-perks {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.pdp-perk h4 {
  font-size: 0.98rem;
  margin-bottom: 5px;
}
.pdp-perk p {
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.pdp-perk a:hover {
  color: var(--gold-deep);
}

/* ===== Toast ===== */
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 200;
}
#toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .pdp-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .pdp-perks {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .hero > .container.hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-content {
    padding: 50px 28px;
  }
  .hero-media {
    min-height: 320px;
  }
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .split > .container {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .split {
    padding: 60px 0;
  }
  .split:nth-child(even) .split-media {
    order: 0;
  }
  .perks {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav {
    display: none;
  }
}
@media (max-width: 560px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .toolbar-right {
    justify-content: space-between;
  }
}
