@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #f8f4ef;
  --surface: #ffffff;
  --text: #171418;
  --muted: #5c565f;
  --accent: #c5557c;
  --accent-soft: #f1c6d2;
  --accent-deep: #a8425b;
  --border: rgba(23, 20, 24, 0.12);
  --shadow: 0 20px 45px rgba(15, 10, 20, 0.08);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

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

body.menu-open {
  overflow: hidden;
}

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

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

button, input, select, textarea {
  font: inherit;
}

.page-padding {
  width: min(1180px, 100% - 3rem);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 244, 239, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header.scrolled {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.header-inner > * {
  min-width: 0;
}

.primary-nav,
.header-actions {
  min-width: 0;
}

.header-actions {
  flex-shrink: 0;
}

.brand {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.25rem, 1vw + 0.6rem, 1.7rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand span {
  color: var(--accent-deep);
}

.primary-nav {
  display: flex;
  gap: 1.5rem;
}

.primary-nav a {
  position: relative;
  padding-bottom: 0.25rem;
  font-weight: 500;
  color: var(--muted);
}

.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.7);
  display: grid;
  place-items: center;
  transition: border 0.3s ease, transform 0.3s ease;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  stroke: var(--text);
}

.icon-btn:hover,
.icon-btn:focus-visible {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
}

.icon-wrapper {
  position: relative;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--text);
  border-radius: 999px;
}

.drawer-wrapper {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
}

.drawer-wrapper.open {
  pointer-events: auto;
}

.drawer-wrapper .drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.drawer-wrapper.open .drawer-overlay,
.drawer-wrapper .drawer-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.drawer-wrapper .mobile-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100dvh;
  background: var(--surface);
  box-shadow: -12px 0 30px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.drawer-wrapper.open .mobile-drawer {
  transform: translateX(0);
}

.mobile-drawer a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.drawer-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.hero {
  min-height: 85vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  margin-top: -1px;
  width: 100%;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5, 5, 5, 0.86), rgba(5, 5, 5, 0.6));
}

.hero-content {
  position: relative;
  padding: 4rem 2rem 3rem;
  width: min(1200px, 100% - 2rem);
  margin: 0 auto;
  color: #fff;
  display: grid;
  gap: 1rem;
  max-width: 720px;
  z-index: 2;
}

@media (max-width: 900px) {
  .hero {
    align-items: flex-start;
  }

  .hero-content {
    width: 100%;
    max-width: none;
    padding: 2.5rem 1.5rem 2rem;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #fff;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero .trust-chip,
  .hero .featured-category {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
  }
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.75rem, 4vw, 4rem);
  margin: 0;
  line-height: 1.1;
}

.hero h1,
.hero p,
.hero .section-subtitle,
.hero .hero-actions .btn,
.hero .trust-chip,
.hero .featured-category {
  text-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}

.hero p {
  max-width: 45ch;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(197, 85, 124, 0.35);
}

.btn--secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(197, 85, 124, 0.25);
}

.trust-chips {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.trust-chip {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.featured-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.featured-category {
  background: rgba(255, 255, 255, 0.12);
  padding: 0.8rem 1rem;
  border-radius: 999px;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section {
  padding: 4rem 0;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 2.5vw, 2.7rem);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--muted);
  margin-bottom: 2rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 1rem;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-card img {
  border-radius: 18px;
  height: 260px;
  width: 100%;
  object-fit: cover;
}

.product-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.product-meta h3 {
  margin: 0;
  font-size: 1.1rem;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
}

.price {
  font-weight: 700;
  font-size: 1.2rem;
}

.rating {
  display: inline-flex;
  gap: 0.2rem;
  color: var(--accent);
  font-size: 0.9rem;
  align-items: center;
}

.quick-view {
  align-self: flex-start;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 0.4rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.quick-view:hover,
.quick-view:focus-visible {
  background: var(--accent-soft);
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.collection-card {
  border-radius: 32px;
  position: relative;
  overflow: hidden;
  min-height: 220px;
  background-size: cover;
  background-position: center;
}

.collection-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.65));
}

.collection-content {
  position: absolute;
  inset: auto 1.2rem 1.2rem;
  color: #fff;
  font-family: 'Playfair Display', serif;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.collection-content a {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
}

.best-sellers {
  position: relative;
}

.best-seller-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
}

.best-seller-card {
  min-width: 240px;
  background: var(--surface);
  border-radius: 24px;
  padding: 1rem;
  flex: 0 0 auto;
  scroll-snap-align: start;
  box-shadow: var(--shadow);
  border: 1px solid transparent;
}

.best-seller-card img {
  border-radius: 18px;
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.best-seller-content {
  margin-top: 0.8rem;
}

.best-seller-row::-webkit-scrollbar {
  height: 6px;
}

.best-seller-row::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 999px;
}

.best-seller-controls {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
}

.control-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  display: grid;
  place-items: center;
}

.icon-btn svg {
  stroke-width: 1.5;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.feature-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.feature-card svg {
  width: 36px;
  height: 36px;
  stroke: var(--accent);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.testimonial-card {
  border-radius: 20px;
  background: #fff;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.newsletter {
  padding: 2.5rem;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
}

.newsletter form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.newsletter input {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0.8rem 1.2rem;
  min-width: 220px;
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent);
  margin: 2rem 0;
}

.filter-panel {
  background: #fff;
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.filter-group {
  margin-bottom: 1.25rem;
}

.filter-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.filter-group select,
.filter-group input[type='range'] {
  width: 100%;
}

.filter-controls {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.filter-drawer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  justify-content: flex-end;
  pointer-events: none;
}

.filter-drawer.active {
  display: flex;
  pointer-events: auto;
}

.filter-drawer-content {
  display: none;
}

@media (max-width: 900px) {
  .filter-panel {
    display: none;
  }

  body.filters-open .filter-panel {
    display: block;
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: min(320px, 90vw);
    z-index: 210;
    border-radius: 0 0 0 0;
    box-shadow: -10px 0 20px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
  }

  .filter-drawer.active {
    display: flex;
  }
}

.collapsible-trigger {
  width: 100%;
  border: none;
  background: none;
  text-align: left;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-panel.open {
  max-height: 200px;
}

.collections-hero {
  border-radius: 28px;
  background-size: cover;
  background-position: center;
  min-height: 360px;
  position: relative;
  overflow: hidden;
}

.collections-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 2, 4, 0.65), rgba(5, 2, 4, 0.2));
}

.collections-hero-content {
  position: relative;
  color: #fff;
  padding: 2.5rem;
  max-width: 520px;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.small-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 1rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.main-gallery {
  border-radius: 24px;
  overflow: hidden;
  min-height: 420px;
}

.main-gallery img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.thumbnail-row {
  display: flex;
  gap: 0.75rem;
}

.thumbnail-row img {
  border-radius: 16px;
  height: 100px;
  width: 100px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
}

.thumbnail-row img.active {
  border-color: var(--accent);
}

.product-details {
  display: grid;
  gap: 1rem;
}

.size-options,
.color-options {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.size-button,
.color-swatch {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0.45rem 1rem;
  cursor: pointer;
  background: #fff;
}

.size-button.active,
.color-swatch.active {
  border-color: var(--accent);
  color: var(--accent);
}

.color-swatch {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}

.quantity-stepper {
  display: inline-flex;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.quantity-stepper button {
  border: none;
  background: #fff;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
}

.quantity-stepper input {
  width: 50px;
  text-align: center;
  border: none;
}

.details-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.accordion-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  background: #fff;
}

.accordion-card button {
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
}

.accordion-card p {
  margin-top: 0.5rem;
}

.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.recommendation-card {
  background: #fff;
  border-radius: 18px;
  padding: 1rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.recommendation-card img {
  border-radius: 14px;
  height: 160px;
  object-fit: cover;
  width: 100%;
}

.cart-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.cart-items,
.order-summary {
  background: #fff;
  border-radius: 24px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.cart-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.cart-row:last-child {
  border-bottom: none;
}

.cart-row img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 16px;
}

.cart-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cart-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.cart-actions button {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.order-summary .summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.order-summary .checkout-btn {
  width: 100%;
}

.empty-cart {
  text-align: center;
  padding: 3rem 1rem;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.footer {
  background: #1c1a1f;
  color: #f5f3f0;
  padding: 3rem 0 2rem;
}

.footer-inner {
  width: min(1180px, 100% - 2rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.footer a {
  color: #f5f3f0;
}

.footer-column h4 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 0.5rem;
}

.footer-small {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(245, 243, 240, 0.8);
}

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #18131a;
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.quick-view-modal {
  position: fixed;
  inset: 0;
  background: rgba(9, 7, 9, 0.6);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.quick-view-modal.active {
  opacity: 1;
  visibility: visible;
}

.quick-view-card {
  background: #fff;
  border-radius: 24px;
  padding: 1.5rem;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.75rem;
}

.quick-view-card img {
  width: 100%;
  border-radius: 18px;
  height: 220px;
  object-fit: cover;
}

.quick-view-close {
  border: none;
  background: none;
  font-size: 1rem;
  color: var(--muted);
  align-self: flex-end;
  padding: 0;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .header-inner {
    width: min(1100px, 100% - 2rem);
  }
}

@media (max-width: 900px) {
  .primary-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .header-actions .icon-btn {
    width: 36px;
    height: 36px;
  }

  .hero-content {
    padding: 3rem 1.5rem 2rem;
  }

  .section {
    padding: 3rem 0;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: clamp(2.4rem, 6vw, 3.3rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-card img {
    height: 200px;
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
