.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding: 14px 26px;
  border-radius: 999px;
  transition: 0.3s var(--ease);
  font-weight: 500;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: var(--rose-deep);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.btn-ghost:hover {
  background: #fff;
  color: var(--ink);
}

.btn-outline {
  background: transparent;
  color: var(--brown);
  border: 1px solid var(--brown);
}

.btn-outline:hover {
  background: var(--brown);
  color: #fff;
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}

.btn-gold:hover {
  background: var(--gold-light);
}

.btn-full {
  width: 100%;
}

.btn-sm {
  padding: 10px 16px;
  font-size: 0.66rem;
}

/* PRODUCT CARD */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.product-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ivory);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.product-card:hover .product-media img {
  transform: scale(1.06);
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  z-index: 2;
}

.badge.new { background: var(--rose); }
.badge.sale { background: var(--gold); color: var(--ink); }
.badge.limited { background: #8b4548; }
.badge.best { background: var(--brown); }

.wish-float,
.qv-btn {
  position: absolute;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--brown);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.3s;
  z-index: 2;
}

.wish-float { top: 12px; }
.qv-btn { top: 56px; font-size: 0.72rem; width: auto; padding: 0 12px; border-radius: 999px; }

.product-card:hover .wish-float,
.product-card:hover .qv-btn {
  opacity: 1;
  transform: none;
}

.wish-float.active {
  color: var(--rose);
  opacity: 1;
  transform: none;
}

.product-body {
  padding: 16px 16px 20px;
}

.product-cat {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-body h3 {
  font-size: 1.12rem;
  margin: 4px 0 8px;
}

.price {
  font-weight: 500;
  color: var(--brown);
}

.price s {
  color: var(--muted);
  margin-left: 6px;
  font-weight: 400;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.card-actions .btn {
  flex: 1;
}

/* CAROUSEL */
.carousel-wrap {
  position: relative;
}

.carousel {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
}

.carousel::-webkit-scrollbar { display: none; }

.carousel .product-card {
  min-width: 280px;
  scroll-snap-align: start;
}

.carousel-nav {
  position: absolute;
  top: 38%;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  z-index: 2;
}

.carousel-nav.prev { left: -12px; }
.carousel-nav.next { right: -12px; }

/* QUICK VIEW */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 18, 18, 0.55);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open { display: flex; }

.modal {
  background: #fff;
  width: min(980px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  border: 0;
  background: var(--ivory);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
}

.modal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}

.modal-info {
  padding: 36px;
}

/* SEARCH OVERLAY */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 252, 250, 0.96);
  z-index: 2100;
  display: none;
  padding: 80px 24px 40px;
  overflow: auto;
}

.search-overlay.open { display: block; }

.search-box {
  width: min(760px, 100%);
  margin: 0 auto 28px;
  display: flex;
  gap: 10px;
}

.search-box input {
  flex: 1;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-size: 1.4rem;
  padding: 12px 4px;
  outline: none;
  font-family: var(--font-serif);
}

.search-results {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ACCOUNT MODAL */
.account-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 36px;
}

.form-row {
  margin-bottom: 14px;
}

.form-row label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--muted);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--cream);
  outline: none;
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

.form-error {
  color: var(--rose-deep);
  font-size: 0.85rem;
  margin-top: 4px;
  display: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 3000;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.mobile-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(360px, 88vw);
  background: #fff;
  z-index: 1800;
  transform: translateX(100%);
  transition: 0.35s var(--ease);
  padding: 28px 22px;
  overflow: auto;
}

.mobile-drawer.open {
  transform: none;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1700;
  display: none;
}

.drawer-backdrop.open { display: block; }

.mobile-drawer a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.related-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  background: #fff;
}

.chip:hover {
  border-color: var(--rose);
  color: var(--rose-deep);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--rose);
}

.zoom-lens {
  overflow: hidden;
}

.zoom-lens img.zoomed {
  transform: scale(1.6);
  cursor: zoom-out;
}

.article-hero {
  max-width: 820px;
}

.article-list article {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
}

.article-list img {
  height: 190px;
  width: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.info-card {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.policy {
  max-width: 860px;
}

.policy h3 {
  margin: 28px 0 10px;
}

.policy p,
.policy li {
  color: var(--muted);
  margin-bottom: 10px;
}

.policy ul {
  padding-left: 18px;
  list-style: disc;
}

.theme-rose .page-hero::after { background: linear-gradient(180deg, rgba(139, 69, 72, 0.25), rgba(26, 18, 18, 0.6)); }
.theme-gold .page-hero::after { background: linear-gradient(180deg, rgba(196, 165, 116, 0.25), rgba(26, 18, 18, 0.58)); }
.theme-ink .page-hero::after { background: linear-gradient(180deg, rgba(26, 18, 18, 0.2), rgba(26, 18, 18, 0.7)); }
.theme-blush .page-hero::after { background: linear-gradient(180deg, rgba(232, 196, 196, 0.2), rgba(61, 43, 43, 0.55)); }

.pdp-price {
  font-size: 1.6rem;
  margin: 10px 0 16px;
}

.stars-lg {
  color: var(--gold);
  margin: 8px 0;
}

.action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
