/* Avelis — Round 4 Final: Elegant collectibles showcase */

:root {
  /* Colors - refined palette */
  --cream: #faf8f4;
  --cream-dark: #f0ede7;
  --warm-white: #fffefb;
  --ink: #2c3845;
  --ink-soft: #4a5568;
  --ink-light: #6b7280;
  --gold: #c9a961;
  --gold-dark: #b8935a;
  --gold-light: #d4b876;
  --line: #e5e1d8;
  --line-soft: #f0ece3;
  --blue-mist: #d8e3eb;
  --sage: #e8f0e5;

  /* Semantic */
  --text-primary: #2c3845;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --surface: #f8f6f1;
  --surface-light: #fcfaf7;
  --focus: #8fa4b8;

  /* Spacing - generous */
  --space-xs: 0.5rem;
  --space-sm: 0.875rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  /* Typography */
  --text-xs: 0.6875rem;
  --text-sm: 0.8125rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 180ms var(--ease-smooth);
  --transition-base: 320ms var(--ease-smooth);
  --transition-slow: 480ms var(--ease-smooth);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

button, a, input, select {
  touch-action: manipulation;
}

/* Focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

/* Typography */
h1, h2, h3 {
  font-family: 'Georgia', 'Baskerville', 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 6vw + 0.5rem, 4.5rem);
  margin-bottom: var(--space-xl);
}

h2 {
  font-size: clamp(2rem, 4vw + 0.5rem, 3.25rem);
  margin-bottom: var(--space-lg);
}

h3 {
  font-size: clamp(1.375rem, 2.5vw + 0.25rem, 1.875rem);
  margin-bottom: var(--space-md);
}

p {
  margin: 0 0 var(--space-md);
  color: var(--text-secondary);
  line-height: 1.7;
}

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

/* Announcement */
.announcement {
  background: var(--ink);
  color: var(--warm-white);
  text-align: center;
  padding: 0.625rem 1rem;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  font-weight: 500;
  text-transform: uppercase;
}

/* Header - elegant and spacious */
header {
  height: 5.5rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
  gap: 2.5rem;
  background: rgba(250, 248, 244, 0.96);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(180%);
}

.logo {
  font-family: Georgia, Baskerville, serif;
  font-size: 2.125rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  transition: color var(--transition-fast);
}

.logo:hover {
  color: var(--gold);
}

.logo span {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.4375rem;
  letter-spacing: 0.16em;
  text-align: center;
  margin-top: 0.375rem;
  font-weight: 400;
  text-transform: uppercase;
}

/* Navigation - refined */
nav {
  display: flex;
  gap: 2rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

nav a {
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

nav a:hover {
  color: var(--gold);
}

nav a[aria-current="page"] {
  color: var(--gold);
}

nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: 1px;
}

/* Utilities */
.utilities {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-shrink: 0;
}

.utilities > a {
  position: relative;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.utilities > a:hover {
  color: var(--gold);
}

.utilities small {
  font-size: 0.625rem;
  position: absolute;
  top: 4px;
  right: 0;
  background: var(--ink);
  color: var(--warm-white);
  border-radius: 10px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(44, 56, 69, 0.15);
}

.utilities svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon.menu {
  display: none;
}

/* Eyebrow */
.eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: block;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

/* Hero - elegant single focal point */
.hero-storefront {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 6%;
}

.hero-product-large {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 6rem;
  align-items: center;
  padding: var(--space-3xl) 0;
  min-height: 82vh;
}

.hero-content-compact {
  max-width: 34rem;
}

.hero-content-compact h1 {
  line-height: 1.05;
  margin-bottom: var(--space-lg);
}

.hero-content-compact p {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: 30rem;
}

.hero-visual-large {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.hero-visual-large::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 40%, rgba(201, 169, 97, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-visual-large img {
  max-height: 72vh;
  width: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 20px 60px rgba(44, 56, 69, 0.08));
  transition: transform var(--transition-slow);
}

.hero-visual-large a:hover img {
  transform: translateY(-8px);
}

/* Actions */
.actions-compact {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Buttons - refined */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.625rem;
  padding: 1.125rem 2.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  min-height: 52px;
  border-radius: 4px;
  transition: all var(--transition-base);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--ink);
  color: var(--warm-white);
  box-shadow: 0 2px 8px rgba(44, 56, 69, 0.12);
}

.btn-primary:hover:not(:disabled) {
  background: var(--ink-soft);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44, 56, 69, 0.18);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--surface);
  border-color: var(--ink-soft);
}

.btn.outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn.outline:hover:not(:disabled) {
  border-color: var(--gold);
  background: rgba(201, 169, 97, 0.05);
}

.text-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition-fast);
}

.text-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transition: transform var(--transition-base);
  transform-origin: left;
}

.text-link:hover {
  color: var(--gold-dark);
}

.text-link:hover::after {
  transform: scaleX(0);
  transform-origin: right;
}

/* Section spacing - generous */
.section {
  padding: var(--space-3xl) 6%;
  max-width: 1680px;
  margin: 0 auto;
}

.section-head-compact {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-2xl);
  gap: var(--space-xl);
}

.section-head-compact h2 {
  margin: 0;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  max-width: 36rem;
  line-height: 1.65;
}

/* Product grid - airy layout */
.product-grid-compact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem 2rem;
}

/* Product card - refined */
.card {
  min-width: 0;
  position: relative;
  opacity: 1;
}

.card-photo {
  aspect-ratio: 3 / 4;
  background: var(--warm-white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 6px;
  position: relative;
  margin-bottom: var(--space-md);
  border: 1px solid var(--line-soft);
  transition: all var(--transition-base);
  box-shadow: 0 1px 3px rgba(44, 56, 69, 0.03);
}

.card:hover .card-photo {
  border-color: var(--line);
  box-shadow: 0 8px 24px rgba(44, 56, 69, 0.08);
  transform: translateY(-4px);
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.25rem;
  transition: transform var(--transition-slow);
}

.card:hover .card-photo img {
  transform: scale(1.04);
}

.heart {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  font-size: 1.125rem;
  z-index: 2;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(44, 56, 69, 0.08);
  backdrop-filter: blur(8px);
}

.heart:hover:not(:disabled) {
  background: #fff;
  transform: scale(1.12);
  box-shadow: 0 4px 12px rgba(44, 56, 69, 0.15);
}

.heart.saved {
  color: #a8626a;
  background: rgba(168, 98, 106, 0.1);
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.card h3 {
  font-size: 1.25rem;
  margin: 0;
  line-height: 1.3;
  transition: color var(--transition-fast);
}

.card a:hover h3 {
  color: var(--gold-dark);
}

.preview-price {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.preview-price span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  gap: var(--space-xs);
  font-weight: 500;
  text-transform: uppercase;
  margin-top: 0.375rem;
}

/* Themes - elegant with subtle backgrounds */
.section-themes-visual {
  background: var(--surface);
}

.themes-grid-visual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.theme-visual-card {
  position: relative;
  min-height: 28rem;
  border-radius: 8px;
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  background: var(--warm-white);
  box-shadow: 0 2px 12px rgba(44, 56, 69, 0.04);
}

.theme-visual-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(44, 56, 69, 0.12);
}

.theme-midnight .theme-bg {
  background: linear-gradient(165deg, #3a4150 0%, #2a2f3e 100%);
}

.theme-garden .theme-bg {
  background: linear-gradient(165deg, #f0f5ed 0%, #e5efe0 100%);
}

.theme-everyday .theme-bg {
  background: linear-gradient(165deg, #e8f0f7 0%, #d8e6f1 100%);
}

.theme-bg {
  height: 20rem;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2.5rem 1.5rem 2rem;
  flex-shrink: 0;
}

.theme-bg img {
  max-height: 100%;
  max-width: 90%;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-slow);
  filter: drop-shadow(0 8px 24px rgba(44, 56, 69, 0.12));
}

.theme-visual-card:hover .theme-bg img {
  transform: translateY(-8px) scale(1.03);
}

.theme-overlay {
  background: var(--warm-white);
  padding: 1.75rem;
  border-top: 1px solid var(--line-soft);
}

.theme-overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 0.625rem;
  line-height: 1.25;
}

.theme-overlay p {
  font-size: 0.9375rem;
  margin-bottom: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.theme-cta {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gold-dark);
  letter-spacing: 0.01em;
}

.illustration-note {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.625rem;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text-muted);
  padding: 0.375rem 0.625rem;
  border-radius: 3px;
  letter-spacing: 0.03em;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 6px rgba(44, 56, 69, 0.08);
}

/* Collections - refined cards */
.collection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.collection {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--warm-white);
  align-items: center;
  overflow: hidden;
  min-height: 20rem;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  transition: all var(--transition-base);
  box-shadow: 0 2px 8px rgba(44, 56, 69, 0.04);
}

.collection:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(44, 56, 69, 0.1);
  border-color: var(--line);
}

.collection:nth-child(2) {
  background: #fdfcfa;
}

.collection img {
  height: 20rem;
  width: 100%;
  object-fit: contain;
  padding: 2rem;
  transition: transform var(--transition-slow);
  content-visibility: auto;
}

.collection:hover img {
  transform: scale(1.06);
}

.collection > div {
  padding: 2rem;
}

.collection h3 {
  font-size: 1.875rem;
  margin-bottom: 0.625rem;
}

.collection p {
  font-size: 1rem;
  margin-bottom: var(--space-md);
  line-height: 1.65;
}

/* CTA section - refined */
.section-cta {
  background: var(--blue-mist);
  text-align: center;
  padding: var(--space-4xl) 6%;
}

.cta-content {
  max-width: 42rem;
  margin: 0 auto;
}

.cta-content h2 {
  margin-bottom: var(--space-lg);
}

.cta-content p {
  font-size: 1.125rem;
  line-height: 1.75;
  margin-bottom: var(--space-2xl);
}

/* Info cards - clean */
.section-info-compact {
  background: var(--surface);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.info-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.875rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.info-card p {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

/* Section variants */
.section-products-immediate {
  background: var(--cream);
}

.section-scales-compact {
  background: var(--surface-light);
}

/* Muted text */
.muted {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Footer - refined */
footer {
  background: var(--cream-dark);
  padding: var(--space-3xl) 6% var(--space-lg);
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 3rem;
  border-top: 1px solid var(--line);
}

footer h3 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 var(--space-md);
  letter-spacing: 0.02em;
}

footer a:not(.logo) {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
  transition: color var(--transition-fast);
  line-height: 1.6;
}

footer a:not(.logo):hover {
  color: var(--gold-dark);
}

footer p {
  font-size: 0.9375rem;
  margin-top: var(--space-lg);
  line-height: 1.7;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: var(--space-lg);
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: var(--space-xl);
}

.footer-bottom span:last-child {
  display: flex;
  gap: 2rem;
}

/* Page layouts */
.page {
  padding: var(--space-2xl) 6% var(--space-3xl);
  min-height: 60vh;
  max-width: 1680px;
  margin: 0 auto;
}

.page-title {
  max-width: 48rem;
  padding: var(--space-lg) 0 var(--space-xl);
}

.page-title h1 {
  font-size: clamp(2.75rem, 5vw, 4rem);
  margin-bottom: var(--space-lg);
}

.page-title p {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-top: var(--space-md);
}

.breadcrumb {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.02em;
}

.breadcrumb a {
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--gold-dark);
}

/* Filters - refined */
.filters {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: var(--space-xl) 0 var(--space-2xl);
  flex-wrap: wrap;
}

.filters small {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Form elements - elegant */
input, textarea, select {
  padding: 1rem 1.25rem;
  background: var(--warm-white);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 1rem;
  transition: all var(--transition-base);
  width: 100%;
}

input:focus, textarea:focus, select:focus {
  background: #fff;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.08);
}

.filters input, .filters select {
  font-size: 1rem;
  min-width: 0;
}

.filters input {
  flex: 1;
  min-width: 14rem;
}

.filters select {
  min-width: 11rem;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232c3845' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 3rem;
}

/* Product grid standard */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 3rem 2rem;
}

@media (min-width: 1400px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Product detail - refined */
.product-detail {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 7%;
}

.detail-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: var(--warm-white);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  transition: all var(--transition-base);
  box-shadow: 0 2px 12px rgba(44, 56, 69, 0.04);
  content-visibility: auto;
}

.photo-button {
  border: 0;
  padding: 0;
  background: none;
  width: 100%;
  cursor: zoom-in;
  border-radius: 8px;
  overflow: hidden;
}

.photo-button:hover .detail-photo {
  border-color: var(--line);
  box-shadow: 0 8px 24px rgba(44, 56, 69, 0.08);
  transform: scale(1.005);
}

.photo-note {
  font-size: 0.875rem;
  text-align: center;
  margin: var(--space-md) 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.product-info {
  padding-top: var(--space-lg);
}

.product-info h1 {
  font-size: clamp(2.75rem, 5vw, 3.75rem);
  margin-bottom: var(--space-lg);
}

.product-info > p {
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.status {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  border: 1px solid var(--gold);
  padding: 0.5rem 0.875rem;
  margin-bottom: var(--space-lg);
  border-radius: 3px;
  font-weight: 500;
  text-transform: uppercase;
}

.detail-row {
  border-top: 1px solid var(--line);
  padding: 1.125rem 0;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  font-size: 1rem;
}

.detail-row span:first-child {
  font-weight: 500;
}

.detail-row span:last-child {
  text-align: right;
  color: var(--text-secondary);
}

/* Purchase section */
.purchase {
  padding: var(--space-xl) 0;
}

.purchase label {
  display: block;
  font-size: 0.9375rem;
  margin: var(--space-md) 0 var(--space-sm);
  font-weight: 500;
}

.purchase select,
.purchase input {
  width: 100%;
  font-size: 1rem;
}

.buy-row {
  display: flex;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.buy-row input {
  width: 5.5rem;
  text-align: center;
}

.buy-row .btn {
  flex: 1;
}

.alert {
  padding: 1.25rem 1.75rem;
  background: #eef3f8;
  border-left: 3px solid var(--focus);
  font-size: 1rem;
  margin: var(--space-xl) 0;
  border-radius: 4px;
  line-height: 1.7;
}

/* Product info details */
.product-info details {
  border-top: 1px solid var(--line);
  padding: 1.125rem 0;
  font-size: 1rem;
}

.product-info summary {
  cursor: pointer;
  font-weight: 500;
  padding: 0.375rem 0;
  transition: color var(--transition-fast);
}

.product-info summary:hover {
  color: var(--gold-dark);
}

.product-info details p {
  margin-top: var(--space-md);
  line-height: 1.7;
}

/* Prose content */
.prose {
  max-width: 52rem;
  margin: var(--space-lg) auto;
}

.prose h1 {
  font-size: clamp(2.75rem, 5vw, 4rem);
  margin-bottom: var(--space-xl);
}

.prose h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-lg);
}

.prose p {
  max-width: 68ch;
  line-height: 1.75;
  margin-bottom: var(--space-lg);
  font-size: 1.0625rem;
}

.prose details {
  border-top: 1px solid var(--line);
  padding: 1.375rem 0;
}

.prose summary {
  cursor: pointer;
  font-weight: 500;
  transition: color var(--transition-fast);
  font-size: 1.0625rem;
}

.prose summary:hover {
  color: var(--gold-dark);
}

.prose details p {
  margin-top: var(--space-md);
}

/* Form layouts */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  font-size: 0.9375rem;
  font-weight: 500;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
  font-size: 1rem;
}

textarea {
  min-height: 9rem;
  resize: vertical;
  line-height: 1.7;
}

.form-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 7%;
}

.form-layout img {
  max-height: 40rem;
  width: 100%;
  object-fit: contain;
  background: var(--warm-white);
  border-radius: 8px;
  padding: 2rem;
  border: 1px solid var(--line-soft);
  content-visibility: auto;
}

/* Shopping bag - refined */
.bag-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 7%;
  align-items: start;
}

.bag-item {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  gap: var(--space-lg);
  border-top: 1px solid var(--line);
  padding: var(--space-xl) 0;
}

.bag-item img {
  width: 7.5rem;
  height: 10rem;
  object-fit: contain;
  background: var(--warm-white);
  border-radius: 6px;
  padding: 0.625rem;
  border: 1px solid var(--line-soft);
  content-visibility: auto;
}

.bag-item h3 {
  font-size: 1.625rem;
  margin-bottom: 0.5rem;
}

.bag-item p {
  font-size: 0.9375rem;
  margin: 0.375rem 0;
  line-height: 1.5;
}

.bag-item > strong {
  font-size: 1.125rem;
  font-weight: 500;
  align-self: start;
}

.qty {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.qty button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--warm-white);
  border-radius: 4px;
  font-size: 1.125rem;
  transition: all var(--transition-base);
}

.qty button:hover:not(:disabled) {
  background: var(--surface);
  border-color: var(--gold);
  transform: scale(1.05);
}

.qty span {
  min-width: 2.5rem;
  text-align: center;
  font-weight: 500;
  font-size: 1.0625rem;
}

.remove {
  font-size: 0.9375rem;
  background: none;
  border: 0;
  text-decoration: underline;
  padding: 0.625rem;
  transition: color var(--transition-fast);
}

.remove:hover {
  color: var(--gold-dark);
}

.summary-box {
  background: var(--surface);
  padding: 2.25rem;
  border-radius: 8px;
  position: sticky;
  top: 7rem;
  border: 1px solid var(--line-soft);
  box-shadow: 0 2px 12px rgba(44, 56, 69, 0.04);
}

.summary-box h3 {
  margin-bottom: var(--space-lg);
}

.summary-box .btn {
  width: 100%;
  margin-top: var(--space-lg);
}

.summary-box .detail-row {
  border-color: rgba(44, 56, 69, 0.12);
}

/* Empty states */
.empty {
  text-align: center;
  padding: var(--space-4xl) var(--space-lg);
}

.empty h2 {
  font-size: clamp(2.25rem, 4vw, 3rem);
  margin-bottom: var(--space-lg);
}

.empty p {
  font-size: 1.0625rem;
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}

/* Error and result messages */
.error {
  color: #b83838;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-top: var(--space-sm);
}

.result-note {
  font-size: 0.9375rem;
  margin-top: var(--space-md);
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Demo flag */
.demo-flag {
  background: #e3ecf4;
  padding: 0.875rem 6%;
  font-size: 0.9375rem;
  text-align: center;
  font-weight: 500;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Dialog - refined */
dialog {
  border: none;
  padding: 1.25rem;
  max-width: 94vw;
  max-height: 95vh;
  background: var(--cream);
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(44, 56, 69, 0.25);
}

dialog::backdrop {
  background: rgba(44, 56, 69, 0.7);
  backdrop-filter: blur(6px);
}

#zoom {
  width: min(72rem, 94vw);
}

.zoom-tools {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  background: var(--cream);
  z-index: 1;
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-md);
}

.zoom-tools button {
  background: var(--warm-white);
  border: 1px solid var(--line);
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem;
  min-height: 48px;
  border-radius: 5px;
  transition: all var(--transition-base);
}

.zoom-tools button:hover {
  background: var(--surface);
  border-color: var(--gold);
}

.zoom-viewport {
  max-height: 78vh;
  overflow: auto;
  border-radius: 6px;
}

#zoom img {
  max-height: 76vh;
  object-fit: contain;
  max-width: 100%;
  margin: auto;
  display: block;
}

#zoom.magnified img {
  max-height: none;
  max-width: none;
  width: 180%;
  height: auto;
  margin: 0;
  cursor: grab;
}

#zoom.magnified img:active {
  cursor: grabbing;
}

/* Quick view dialog */
#quick-view {
  max-width: min(90vw, 1100px);
  max-height: 90vh;
  overflow: hidden;
}

.dialog-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  z-index: 10;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 8px rgba(44, 56, 69, 0.1);
}

.dialog-close:hover {
  background: #fff;
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(44, 56, 69, 0.15);
}

.quick-view-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 3.5rem;
  padding: 2.5rem;
  max-height: 85vh;
  overflow-y: auto;
}

.quick-view-image {
  position: sticky;
  top: 0;
  height: fit-content;
}

.quick-view-image img {
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 8px;
  background: var(--warm-white);
  padding: 2rem;
  border: 1px solid var(--line-soft);
}

.quick-view-info {
  padding: 1.25rem 1.25rem 2.5rem 0;
}

.quick-view-info h2 {
  font-size: 2.25rem;
  margin: 0.625rem 0 1.25rem;
}

.quick-view-info p {
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  font-size: 1.0625rem;
}

.quick-view-meta {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: var(--space-xl) 0;
}

.quick-view-meta .detail-row {
  padding: 1rem 0;
  border: none;
}

.quick-view-actions {
  display: flex;
  gap: 1rem;
  margin-top: var(--space-xl);
}

.quick-view-actions .btn {
  flex: 1;
}

/* Toast notification */
#toast {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--warm-white);
  padding: 1rem 1.75rem;
  font-size: 0.9375rem;
  z-index: 150;
  display: none;
  max-width: 90vw;
  border-radius: 6px;
  box-shadow: 0 8px 28px rgba(44, 56, 69, 0.3);
  line-height: 1.6;
  backdrop-filter: blur(8px);
}

/* Skip link */
.skip {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cream);
  color: var(--ink);
  padding: 1rem 1.75rem;
  z-index: 200;
  border: 2px solid var(--ink);
  border-radius: 5px;
  font-weight: 500;
  transition: top var(--transition-fast);
}

.skip:focus {
  top: 1.25rem;
}

/* Mobile buy bar */
.mobile-buy {
  display: none;
}

/* Main focus */
main:focus {
  outline: none;
}

/* Fade-in animations */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 420ms var(--ease-smooth), transform 420ms var(--ease-smooth);
}

.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* Print styles */
@media print {
  .announcement,
  header,
  .mobile-buy,
  footer,
  .heart,
  .utilities,
  #toast {
    display: none !important;
  }

  body {
    background: white;
  }

  a {
    text-decoration: underline;
  }
}

/* Tablet (max-width: 1000px) */
@media (max-width: 1000px) {
  :root {
    --space-3xl: 4.5rem;
    --space-4xl: 6rem;
  }

  header {
    padding: 0 5%;
    gap: 2rem;
  }

  nav {
    gap: 1.5rem;
    font-size: 0.875rem;
  }

  .hero-product-large {
    gap: 4rem;
    padding: var(--space-2xl) 0;
  }

  .section {
    padding: var(--space-2xl) 5%;
  }

  .product-grid-compact {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 1.5rem;
  }

  .themes-grid-visual {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-detail {
    gap: 5%;
  }

  .collection-grid {
    gap: 1.5rem;
  }
}

/* Mobile (max-width: 720px) */
@media (max-width: 720px) {
  :root {
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 3.5rem;
    --space-4xl: 4.5rem;
  }

  /* Header */
  header {
    height: 5rem;
    gap: 1rem;
    padding: 0 4.5%;
  }

  .logo {
    font-size: 1.875rem;
  }

  .logo span {
    font-size: 0.4rem;
    margin-top: 0.25rem;
  }

  .icon.menu {
    display: flex;
    padding: 0.625rem;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .utilities {
    gap: 0.75rem;
  }

  .utilities > a {
    min-width: 40px;
  }

  .utilities > a:first-child {
    display: none;
  }

  .utilities svg {
    width: 21px;
    height: 21px;
  }

  .utilities small {
    font-size: 0.5625rem;
    min-width: 16px;
    height: 16px;
    top: 2px;
    right: -2px;
  }

  /* Navigation */
  nav {
    display: none;
    position: absolute;
    top: calc(5rem - 1px);
    left: 0;
    right: 0;
    background: rgba(250, 248, 244, 0.98);
    padding: var(--space-lg) 6%;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 6px 20px rgba(44, 56, 69, 0.12);
    backdrop-filter: blur(16px);
  }

  nav.open {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  nav a {
    padding: 0.875rem 0;
    font-size: 1rem;
  }

  /* Hero */
  .hero-product-large {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    padding: var(--space-xl) 0 var(--space-2xl);
    min-height: auto;
  }

  .hero-content-compact {
    order: 1;
    max-width: none;
  }

  .hero-visual-large {
    order: 2;
    padding: var(--space-lg);
  }

  .hero-visual-large img {
    max-height: 55vh;
  }

  .hero-content-compact h1 {
    margin-bottom: var(--space-md);
  }

  .hero-content-compact p {
    font-size: 1rem;
    margin-bottom: var(--space-lg);
  }

  .actions-compact {
    gap: 0.875rem;
  }

  .btn {
    padding: 1rem 1.75rem;
    font-size: 0.9375rem;
  }

  /* Sections */
  .section {
    padding: var(--space-2xl) 5%;
  }

  .section-head-compact {
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
    gap: var(--space-md);
  }

  /* Product grid */
  .product-grid-compact,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.25rem;
  }

  .card-photo {
    margin-bottom: 0.75rem;
  }

  .card-photo img {
    padding: 1rem;
  }

  .card h3 {
    font-size: 1.125rem;
  }

  .card-meta {
    font-size: 0.625rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .heart {
    width: 40px;
    height: 40px;
    top: 0.875rem;
    right: 0.875rem;
    font-size: 1.0625rem;
  }

  /* Theme cards */
  .themes-grid-visual {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .theme-visual-card {
    min-height: 24rem;
  }

  .theme-bg {
    height: 16rem;
    padding: 2rem 1.25rem 1.5rem;
  }

  .theme-overlay {
    padding: 1.5rem;
  }

  .theme-overlay h3 {
    font-size: 1.375rem;
  }

  .theme-overlay p {
    font-size: 0.9375rem;
  }

  .illustration-note {
    font-size: 0.5625rem;
    padding: 0.3rem 0.5rem;
    top: 0.625rem;
    left: 0.625rem;
  }

  /* Collections */
  .collection-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .collection {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .collection img {
    height: 18rem;
    padding: 1.5rem;
  }

  .collection > div {
    padding: 1.75rem;
  }

  .collection h3 {
    font-size: 1.625rem;
  }

  /* CTA */
  .section-cta {
    padding: var(--space-3xl) 5%;
  }

  .cta-content p {
    font-size: 1.0625rem;
  }

  /* Info grid */
  .info-grid {
    gap: 2rem;
  }

  /* Footer */
  footer {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 2rem;
    padding: var(--space-2xl) 5% var(--space-lg);
  }

  footer > div:first-child {
    grid-column: 1 / -1;
  }

  footer a:not(.logo) {
    font-size: 0.875rem;
  }

  /* Page */
  .page {
    padding: var(--space-xl) 5% var(--space-2xl);
  }

  .page-title {
    padding: var(--space-md) 0 var(--space-lg);
  }

  /* Filters */
  .filters {
    gap: 0.875rem;
    margin: var(--space-lg) 0 var(--space-xl);
  }

  .filters input {
    flex-basis: 100%;
  }

  .filters select {
    flex: 1;
    flex-basis: 48%;
    padding: 0.875rem 1rem;
  }

  /* Product detail */
  .product-detail {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .detail-photo {
    margin-bottom: var(--space-lg);
  }

  .product-info {
    padding-top: 0;
  }

  .product-info h1 {
    font-size: clamp(2.375rem, 6vw, 3rem);
  }

  /* Mobile buy bar */
  .mobile-buy {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(250, 248, 244, 0.98);
    padding: 0.875rem 5% max(0.875rem, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    z-index: 90;
    box-shadow: 0 -4px 16px rgba(44, 56, 69, 0.08);
    backdrop-filter: blur(16px);
  }

  body:has(.mobile-buy) {
    padding-bottom: 6.5rem;
  }

  .mobile-buy span {
    font-size: 0.9375rem;
    line-height: 1.5;
  }

  .mobile-buy .btn {
    min-width: 8.5rem;
    flex-shrink: 0;
    font-size: 0.875rem;
    padding: 0.875rem 1.5rem;
  }

  /* Form layout */
  .form-layout,
  .bag-layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .form-layout > div:first-child img {
    max-height: 22rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .wide {
    grid-column: auto;
  }

  /* Shopping bag */
  .bag-item {
    grid-template-columns: 6rem 1fr;
    gap: var(--space-md);
    padding: var(--space-lg) 0;
  }

  .bag-item img {
    width: 6rem;
    height: 8rem;
  }

  .bag-item h3 {
    font-size: 1.375rem;
  }

  .bag-item p {
    font-size: 0.875rem;
  }

  .bag-item > strong {
    grid-column: 2;
    text-align: right;
    margin-top: 0.625rem;
  }

  .qty {
    gap: 0.75rem;
  }

  .qty button {
    width: 42px;
    height: 42px;
  }

  .summary-box {
    padding: 2rem;
    top: 6rem;
  }

  /* Quick view */
  .quick-view-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding: 1.5rem;
  }

  .quick-view-image {
    position: static;
  }

  .quick-view-image img {
    max-height: 52vh;
    padding: 1.5rem;
  }

  .quick-view-info {
    padding: 0;
  }

  .quick-view-info h2 {
    font-size: 2rem;
  }

  .quick-view-info p {
    font-size: 1rem;
  }

  .quick-view-actions {
    flex-direction: column;
  }

  .dialog-close {
    top: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    font-size: 1.375rem;
  }

  /* Toast */
  #toast {
    bottom: 7rem;
    font-size: 0.875rem;
  }

  /* Footer */
  .footer-bottom {
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.625rem;
  }

  /* Prose */
  .prose h1 {
    font-size: clamp(2.5rem, 6vw, 3rem);
  }

  .prose h2 {
    font-size: clamp(1.75rem, 4vw, 2rem);
    margin-top: var(--space-2xl);
  }

  .prose p {
    font-size: 1rem;
  }
}

/* Extra small (max-width: 360px) */
@media (max-width: 360px) {
  header {
    padding: 0 4%;
  }

  .logo {
    font-size: 1.75rem;
  }

  .section {
    padding: var(--space-xl) 4%;
  }

  .product-grid-compact,
  .product-grid {
    gap: 1.75rem 1rem;
  }

  .hero-product-large {
    padding: var(--space-lg) 0 var(--space-xl);
  }
}

/* ── Round 5: New arrivals, badges, and vibrancy ── */

/* New badge on cards */
.badge-new {
  position: absolute;
  top: 0.875rem;
  left: 0.875rem;
  background: #e8607a;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 2px;
  z-index: 3;
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { background: #e8607a; }
  50% { background: #c94060; }
}

@media (prefers-reduced-motion: reduce) {
  .badge-new { animation: none; }
}

/* New arrivals section */
.section-new-arrivals {
  background: linear-gradient(160deg, var(--cream) 60%, #fdf0f3 100%);
  padding: 3rem 6%;
  max-width: 1680px;
  margin: 0 auto;
  position: relative;
}

.section-new-arrivals::before {
  content: '';
  position: absolute;
  top: 0;
  left: 6%;
  right: 6%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e8607a 30%, var(--gold) 70%, transparent);
  opacity: 0.5;
  border-radius: 1px;
}

/* Section head for new arrivals */
.section-head-new {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section-head-new h2 {
  margin: 0;
  position: relative;
}

.section-head-new h2::before {
  content: '✦ ';
  color: #e8607a;
  font-size: 0.75em;
}

/* Hero accent border */
.hero-storefront {
  border-top: 3px solid;
  border-image: linear-gradient(90deg, var(--gold), #e8c4c8, var(--gold)) 1;
}

/* Real-product preview bag: reuse the existing bag layout. */
.bag-item > div{min-width:0}.bag-item h3,.bag-package,.bag-includes{overflow-wrap:anywhere}
.bag-item .qty{flex-wrap:wrap;gap:8px}.bag-item .qty .remove{width:auto;padding:0 10px;font-size:13px}
.preview-bag-tools{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
@media(max-width:380px){.bag-item{grid-template-columns:72px minmax(0,1fr);gap:12px}.bag-item img{width:72px;height:104px}}
