:root {
  --brand-purple: #6f306a;
  --brand-purple-dark: #572253;
  --brand-purple-soft: #f5edf5;
  --cream: #f7f3f7;
  --surface: #ffffff;
  --surface-alt: #fbf9fb;
  --border: #e5dce5;
  --text-main: #241c24;
  --text-muted: #5c505c;
  --star-yellow: #f5b301;
  --focus-ring: #6f306a;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 2px 10px rgba(36, 28, 36, 0.06);
  --shadow-lg: 0 16px 40px rgba(36, 28, 36, 0.18);
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-main);
  background: var(--surface);
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-purple);
  color: #ffffff;
  padding: 10px 16px;
  z-index: 100;
  text-decoration: none;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.container {
  width: 100%;
  max-width: 1390px;
  margin-inline: auto;
  padding-inline: clamp(20px, 2.5vw, 36px);
}

/* Top strip */
.top-strip {
  background: var(--brand-purple);
  color: #ffffff;
  font-size: 13px;
  line-height: 24px;
  min-height: 24px;
  text-align: center;
  padding: 0;
}

.top-strip p {
  margin: 0;
  letter-spacing: 0.01em;
}

/* Header */
.site-header {
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(16px, 3.75vw, 38px);
  min-height: 65px;
  padding-block: 6px;
  padding-inline: clamp(16px, 4.8vw, 49px) clamp(16px, 4vw, 40px);
}

.brand-link {
  position: relative;
  display: block;
  width: 220px;
  height: 52px;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  transform: translateY(3px);
}

.brand-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.search-form {
  position: relative;
  flex: 1 1 450px;
  max-width: 450px;
  display: flex;
  align-items: center;
}

.search-icon-btn {
  position: absolute;
  left: 6px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search-icon-btn:hover {
  color: var(--brand-purple);
}

.search-icon-btn svg {
  width: 16px;
  height: 16px;
}

.search-form input {
  width: 100%;
  height: 33px;
  min-height: 33px;
  padding: 4px 34px 4px 36px;
  border: 1px solid #cbbdca;
  border-radius: 11px;
  background: var(--surface-alt);
  font-size: 13.5px;
}

.search-form input:focus {
  background: #ffffff;
  border-color: var(--brand-purple);
}

.search-form input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.search-clear {
  position: absolute;
  right: 6px;
  min-width: 26px;
  min-height: 26px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 50%;
}

.search-autocomplete {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: min(660px, calc(100vw - 290px));
  min-width: 100%;
  max-height: min(68vh, 460px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 60;
}

.search-autocomplete-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 8px;
}

.search-autocomplete-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}

.search-autocomplete-item:hover,
.search-autocomplete-item.is-active {
  background: var(--brand-purple-soft);
  border-color: var(--brand-purple);
}

.search-autocomplete-thumb {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
}

.search-autocomplete-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.search-autocomplete-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-autocomplete-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-purple);
}

.search-autocomplete-empty {
  margin: 0;
  padding: 12px;
  font-size: 13.5px;
  color: var(--text-muted);
  text-align: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.header-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-main);
}

.header-action-btn:hover {
  background: var(--brand-purple-soft);
  color: var(--brand-purple);
}

.cart-trigger {
  position: relative;
  padding-inline: 14px 10px;
}

.cart-trigger::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 22px;
  background: var(--border);
}

.cart-trigger .cart-label {
  display: none;
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand-purple);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.cart-badge.is-pulsing {
  animation: cart-badge-pop 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cart-badge-pop {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(111, 48, 106, 0.3);
  }
  45% {
    transform: scale(1.24);
    box-shadow: 0 0 0 5px rgba(111, 48, 106, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(111, 48, 106, 0);
  }
}

/* Activity Nav */
.activity-nav {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.activity-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 8px clamp(20px, 6.7vw, 68px);
  min-height: 36px;
  padding-block: 0;
  padding-left: calc(clamp(20px, 2.5vw, 36px) + 24px);
}

.activity-btn {
  min-height: 36px;
  padding: 4px 6px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* Bootstrap Icons - chevron-down (MIT License) */
.activity-btn::after {
  content: "";
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23241c24'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

.activity-btn:hover,
.activity-btn.is-active {
  color: var(--brand-purple);
  border-bottom-color: var(--brand-purple);
}

.activity-btn:hover::after,
.activity-btn.is-active::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236f306a'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--brand-purple);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--brand-purple-dark);
}

.btn-secondary {
  background: #ffffff;
  color: var(--brand-purple);
  border-color: var(--brand-purple);
}

.btn-secondary:hover {
  background: var(--brand-purple-soft);
}

.btn-lg {
  min-height: 48px;
  padding: 12px 26px;
}

.link-btn {
  background: transparent;
  border: none;
  padding: 8px 4px;
  min-height: 44px;
  color: var(--brand-purple);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.link-btn.subtle {
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1016 / 324;
  max-height: 390px;
  display: flex;
  align-items: flex-start;
  background: #f7f1e9;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  top: 0;
  right: 0;
  width: 63.3%;
  height: 100%;
  overflow: hidden;
  container-type: size;
  pointer-events: none;
}

.hero-photo-frame {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: max(100cqw, calc(100cqh * 643 / 324));
  aspect-ratio: 643 / 324;
  overflow: hidden;
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0 auto 0 -2px;
  width: 24%;
  background: linear-gradient(
    90deg,
    #f7f1e9 0%,
    #f7f1e9 14%,
    rgba(247, 241, 233, 0.85) 38%,
    rgba(247, 241, 233, 0.35) 70%,
    rgba(247, 241, 233, 0) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: clamp(28px, 4.43vw, 52px);
  padding-bottom: clamp(24px, 3.4vw, 44px);
  padding-inline: clamp(20px, 3.44vw, 48px);
  max-width: 520px;
  margin-inline: 0;
}

@media (min-width: 1390px) {
  .hero-content {
    margin-left: max(0px, calc((100% - 1390px) / 2));
  }
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-purple);
}

.hero .eyebrow {
  margin-bottom: 21px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.2;
}

.hero h1 {
  margin: 0 0 7px;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.035vw, 2.9rem);
  font-weight: 400;
  letter-spacing: -1.4px;
  line-height: 1;
  color: var(--text-main);
}

.hero-subtitle {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--text-main);
  max-width: 305px;
}

.hero .btn-primary {
  min-width: 216px;
  min-height: 38px;
  height: 38px;
  padding: 0 24px;
  border-radius: 5px;
  font-size: 15.5px;
}

/* Sections */
.catalog-section,
.categories-section,
.reviews-section {
  padding-block: 52px;
}

.categories-section {
  background: var(--cream);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 24px;
}

.section-header h2 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  color: var(--brand-purple);
  line-height: 1.15;
}

.section-subtitle {
  margin: 0;
  color: var(--text-muted);
}

/* Toolbar */
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.category-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.tab-btn {
  min-height: 44px;
  padding: 8px 14px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  color: var(--text-muted);
  font-weight: 500;
}

.tab-btn:hover {
  color: var(--brand-purple);
}

.tab-btn.is-active {
  color: var(--brand-purple);
  border-bottom-color: var(--brand-purple);
  font-weight: 700;
}

.sort-control select {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #cbbdca;
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.catalog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.catalog-meta p {
  margin: 0;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.product-card-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border: none;
  padding: 0;
  margin-bottom: 12px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.product-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.discount-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--brand-purple);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}

.product-card-title {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0 0 6px;
  text-align: left;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.35;
  color: var(--text-main);
  cursor: pointer;
}

.product-card-title:hover {
  color: var(--brand-purple);
  text-decoration: underline;
}

.product-card-sub {
  margin: 0 0 10px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.product-card-price-row {
  margin-top: auto;
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.price-current {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-purple);
}

.price-regular {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.empty-state {
  text-align: center;
  padding: 48px 20px;
  background: var(--cream);
  border: 1px dashed #c8b6c8;
  border-radius: var(--radius-md);
}

.empty-state h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  color: var(--brand-purple);
}

.empty-state p {
  margin: 0 0 20px;
  color: var(--text-muted);
}

/* Categories */
.category-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.category-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.category-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.category-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.category-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--brand-purple);
}

.category-card p {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.category-card .link-btn {
  margin-top: auto;
  align-self: flex-start;
  padding-inline: 0;
}

/* Reviews */
.google-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.google-wordmark {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.g-blue { color: #1a73e8; }
.g-red { color: #d93025; }
.g-yellow { color: #e37400; }
.g-green { color: #188038; }

.google-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.review-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  background: #ffffff;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-purple-soft);
  color: var(--brand-purple);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-author h3 {
  margin: 0;
  font-size: 1rem;
}

.review-author p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.stars {
  margin: 0 0 8px;
  color: var(--star-yellow);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.review-text {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-main);
}

/* Advisory Band */
.advisory-band {
  background: var(--cream);
  border-top: 1px solid var(--border);
  padding-block: 32px;
}

.advisory-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.advisory-band h2 {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  color: var(--brand-purple);
  font-size: 1.6rem;
}

.advisory-band p {
  margin: 0;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: var(--brand-purple);
  color: #ffffff;
  padding-top: 44px;
}

.site-footer :focus-visible {
  outline-color: #ffd166;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 28px;
  padding-bottom: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.footer-logo-wrap img {
  width: 96px;
  height: 96px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.footer-brand p {
  margin: 0;
  color: #f4e9f4;
  font-size: 0.94rem;
}

.site-footer h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.footer-links,
.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.92rem;
  color: #f4e9f4;
}

.footer-links button {
  background: transparent;
  border: none;
  padding: 4px 0;
  min-height: 36px;
  color: #ffffff;
  text-align: left;
  cursor: pointer;
}

.footer-links button:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-block: 16px;
  font-size: 0.84rem;
  color: #f4e9f4;
}

.footer-bottom p {
  margin: 0;
}

/* Modal & Drawer */
.modal-backdrop,
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 14, 24, 0.56);
  z-index: 80;
  display: flex;
}

.modal-backdrop[hidden],
.drawer-backdrop[hidden] {
  display: none;
}

.modal-backdrop {
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px;
}

.icon-close-btn {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #ffffff;
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.modal-product-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.modal-product-media {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-product-info h2 {
  margin: 6px 0 12px;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  line-height: 1.25;
}

.variant-group {
  margin: 16px 0;
}

.variant-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.variant-group select {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #cbbdca;
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.variant-note {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cbbdca;
  border-radius: var(--radius-sm);
}

.qty-stepper button {
  min-width: 44px;
  min-height: 44px;
  border: none;
  background: var(--surface-alt);
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
}

.qty-stepper input {
  width: 52px;
  min-height: 44px;
  text-align: center;
  border: none;
  border-inline: 1px solid #cbbdca;
}

/* Cart Drawer */
.drawer-backdrop {
  justify-content: flex-end;
}

.drawer-panel {
  width: 100%;
  max-width: 430px;
  height: 100%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.drawer-header h2 {
  margin: 0;
  font-family: var(--font-serif);
  color: var(--brand-purple);
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.cart-empty {
  text-align: center;
  padding: 40px 12px;
}

.cart-empty p {
  color: var(--text-muted);
  margin-bottom: 18px;
}

.cart-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.cart-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.cart-item-title {
  margin: 0 0 4px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
}

.cart-item-variant {
  margin: 0 0 4px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.cart-item-price {
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--brand-purple);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cart-qty-mini {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cbbdca;
  border-radius: var(--radius-sm);
}

.cart-qty-mini button {
  min-width: 36px;
  min-height: 36px;
  border: none;
  background: var(--surface-alt);
  cursor: pointer;
  font-weight: 700;
}

.cart-qty-mini span {
  min-width: 32px;
  text-align: center;
  font-weight: 600;
}

.cart-remove-btn {
  min-height: 36px;
  padding: 4px 10px;
  border: none;
  background: transparent;
  color: #8a2040;
  cursor: pointer;
  font-size: 0.85rem;
  text-decoration: underline;
}

.drawer-footer {
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  background: var(--surface-alt);
}

.cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cart-summary-row.total {
  font-size: 1.2rem;
  color: var(--brand-purple);
}

.demo-note {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 90;
  max-width: 360px;
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-purple);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 28px rgba(36, 28, 36, 0.14);
  font-size: 0.94rem;
  font-weight: 500;
}

.toast.is-visible {
  animation: toast-enter 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes toast-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-cards,
  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header-main {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 16px;
    min-height: auto;
    padding-block: 10px;
    padding-inline: 16px;
  }

  .brand-link {
    width: 170px;
    height: 40px;
    transform: none;
  }

  .search-form {
    order: 3;
    flex-basis: 100%;
    max-width: 100%;
  }

  .search-autocomplete {
    width: 100%;
    max-width: 100%;
    max-height: min(60vh, 400px);
  }

  .search-autocomplete-list {
    grid-template-columns: 1fr;
  }

  .activity-nav-list {
    flex-wrap: wrap;
    height: auto;
    padding-block: 4px;
    padding-inline: 20px;
    gap: 4px 16px;
  }

  .hero {
    aspect-ratio: auto;
    max-height: none;
    min-height: auto;
    flex-direction: column;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    padding-top: 28px;
    padding-bottom: clamp(186px, 52vw, 285px);
    padding-inline: 20px;
  }

  .hero .btn-primary {
    min-height: 44px;
    height: 44px;
  }

  .hero-media {
    position: absolute;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: clamp(236px, 68vw, 390px);
    container-type: normal;
    -webkit-mask-image: linear-gradient(
      to bottom,
      transparent 14%,
      rgba(0, 0, 0, 0.12) 28%,
      rgba(0, 0, 0, 0.58) 40%,
      #000 50%
    );
    mask-image: linear-gradient(
      to bottom,
      transparent 14%,
      rgba(0, 0, 0, 0.12) 28%,
      rgba(0, 0, 0, 0.58) 40%,
      #000 50%
    );
  }

  .hero-photo-frame {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
  }

  .hero-photo-frame img {
    object-fit: cover;
    object-position: center;
  }

  .hero-overlay {
    display: none;
  }

  .modal-product-layout {
    grid-template-columns: 1fr;
  }

  .category-cards,
  .reviews-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

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

  .activity-nav-list {
    justify-content: flex-start;
    gap: 4px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cart-badge.is-pulsing,
  .toast.is-visible {
    animation: none;
  }
}
