/* ========== LUXE — Main Stylesheet ========== */

:root {
  --ink: #151311;
  --paper: #f7f4ee;
  --panel: #ffffff;
  --gold: #a9702f;
  --gold-deep: #7c4f1e;
  --line: #e4ddce;
  --muted: #7a7266;
}

/* ---------- Reset & Base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Manrope', sans-serif;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
}

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 238, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 5%;
}

.brand {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 2.4rem;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-icons {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  font-size: 1.15rem;
}

.cart-btn {
  position: relative;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 1.15rem;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--gold);
  color: #fff;
  font-size: 0.65rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  font-size: 1.4rem;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  max-width: 1300px;
  margin: 0 auto;
  padding: 5rem 5% 4rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  color: var(--gold-deep);
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.05;
  font-weight: 500;
  margin-bottom: 1.4rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-deep);
}

.hero p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2.2rem;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  cursor: pointer;
  border: 1px solid var(--ink);
  transition: all 0.25s;
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(160deg, #d8cdb4, #efe8d8);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  opacity: 0.9;
}

.hero-tag {
  position: absolute;
  bottom: 1.4rem;
  left: 1.4rem;
  background: var(--panel);
  padding: 0.8rem 1.2rem;
  border-radius: 3px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  font-size: 0.85rem;
}

.hero-tag strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
}

/* ---------- Strip ---------- */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.strip-wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 1.4rem 5%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.4px;
}

.strip-wrap span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.strip-wrap i {
  color: var(--gold-deep);
}

/* ---------- Section & Filters ---------- */
.section {
  max-width: 1300px;
  margin: 0 auto;
  padding: 5rem 5%;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.6rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 500;
}

.filters {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 30px;
  font-size: 0.85rem;
  cursor: pointer;
  background: var(--panel);
  transition: all 0.2s;
}

.filter-chip.active,
.filter-chip:hover {
  border-color: var(--gold-deep);
  color: var(--gold-deep);
}

/* ---------- Product Grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(20, 15, 5, 0.1);
}

.card-img {
  aspect-ratio: 1/1.1;
  background: linear-gradient(150deg, #eee6d3, #d9cdb1);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  color: var(--gold-deep);
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wish {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  border: none;
}

.wish.active {
  color: #b3323f;
}

.card-body {
  padding: 1.2rem 1.3rem 1.5rem;
}

.card-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.card-title {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.8rem;
}

.price {
  font-weight: 700;
  font-size: 1.05rem;
}

.price .was {
  text-decoration: line-through;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.85rem;
  margin-right: 0.4rem;
}

.add-btn {
  background: var(--ink);
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.add-btn:hover {
  background: var(--gold-deep);
}

/* ---------- Banner ---------- */
.banner {
  background: var(--ink);
  color: #f3ede0;
  border-radius: 6px;
  padding: 3.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 0 5% 5rem;
}

.banner h3 {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 500;
  max-width: 480px;
}

.banner p {
  color: #c9c0ab;
  margin-top: 0.6rem;
}

/* ---------- Footer ---------- */
footer {
  background: var(--panel);
  border-top: 1px solid var(--line);
  padding: 4rem 5% 2rem;
}

.foot-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.foot-grid h4 {
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--muted);
}

.foot-grid ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.92rem;
}

.foot-bottom {
  max-width: 1300px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ---------- Cart Drawer ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 5, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 90;
}

.overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: min(420px, 92vw);
  height: 100vh;
  background: var(--panel);
  z-index: 100;
  transition: right 0.35s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.15);
}

.drawer.open {
  right: 0;
}

.drawer-head {
  padding: 1.6rem 1.6rem 1rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-head h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
}

.drawer-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem 1.6rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.cart-thumb {
  width: 64px;
  height: 64px;
  border-radius: 4px;
  background: linear-gradient(150deg, #eee6d3, #d9cdb1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-deep);
  flex-shrink: 0;
  overflow: hidden;
}

.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-info {
  flex: 1;
}

.cart-info .name {
  font-weight: 600;
  font-size: 0.95rem;
}

.cart-info .meta {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.2rem;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.qty-row button {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  background: none;
  border-radius: 50%;
  cursor: pointer;
}

.remove-item {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  align-self: flex-start;
}

.drawer-empty {
  text-align: center;
  color: var(--muted);
  padding: 3rem 1rem;
}

.drawer-foot {
  padding: 1.4rem 1.6rem 1.8rem;
  border-top: 1px solid var(--line);
}

.subtotal-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.checkout-btn {
  width: 100%;
  justify-content: center;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 5, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 110;
  padding: 1.5rem;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--panel);
  border-radius: 8px;
  max-width: 440px;
  width: 100%;
  padding: 2.4rem;
  text-align: center;
}

.modal i {
  font-size: 2.6rem;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}

.modal h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}

.modal p {
  color: var(--muted);
  margin-bottom: 1.6rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .foot-grid {
    grid-template-columns: 1fr;
  }
  .banner {
    padding: 2.4rem 1.6rem;
  }
  .section {
    padding: 3.5rem 6%;
  }
}