/* ==========================================================================
   TERRA — Organic / Soft Editorial Design Tokens
   Deliberately distinct from both AURA (minimal premium) and RIOT (bold
   streetwear): warm earthy palette, serif type, rounded organic shapes,
   a fixed sidebar layout instead of a top header, asymmetric editorial grid.
   ========================================================================== */
:root {
  --clay: #7A5C42;
  --terracotta: #C86B4A;
  --sage: #7C8B6F;
  --cream: #FBF6EE;
  --cream-dim: #F2E9D8;
  --bark: #3A2E24;
  --linen: #E8DCC8;

  --accent: #C86B4A;
  --accent-dark: #A5502F;
  --accent-soft: #F3E1D6;
  --success: #6E8C5A;
  --error: #B5493A;

  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Work Sans", "Segoe UI", sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-button: 999px;
  --radius-lg: 28px;
  --radius-card: 32px;
  --radius-blob: 42% 58% 65% 35% / 45% 40% 60% 55%;

  --shadow-sm: 0 2px 8px rgba(58,46,36,0.06);
  --shadow-md: 0 8px 24px rgba(58,46,36,0.10);
  --shadow-lg: 0 20px 48px rgba(58,46,36,0.14);

  --ease-micro: 160ms ease-out;
  --ease-base: 320ms cubic-bezier(.25,.8,.4,1);
  --ease-page: 500ms cubic-bezier(.19,1,.22,1);

  --sidebar-width: 232px;
  --container: 1320px;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--bark);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
input, select { font-family: inherit; }

:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 6px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-8); }

.section { padding: var(--space-20) 0; }
.section-header { margin-bottom: var(--space-10); }
.eyebrow {
  display: block; font-family: var(--font-sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--terracotta); margin-bottom: var(--space-3);
}
.section-header h2 { font-family: var(--font-serif); font-size: 42px; font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; font-style: italic; }
.section-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--bark);
  border-bottom: 1px solid var(--terracotta); padding-bottom: 2px;
  transition: color var(--ease-micro), gap var(--ease-micro);
}
.section-link:hover { color: var(--terracotta); gap: 10px; }

/* ==========================================================================
   App shell — sidebar layout instead of a top navbar
   ========================================================================== */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--bark);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: var(--space-8) var(--space-6);
  z-index: 100;
}
.sidebar-logo {
  font-family: var(--font-serif); font-style: italic; font-size: 26px;
  margin-bottom: var(--space-10);
}
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; margin-bottom: auto; }
.sidebar-nav a {
  display: flex; align-items: center; gap: var(--space-3);
  font-size: 14px; font-weight: 500; color: rgba(251,246,238,0.65);
  padding: var(--space-3) var(--space-3);
  border-radius: var(--radius-md);
  transition: background var(--ease-micro), color var(--ease-micro), padding-left var(--ease-micro);
}
.sidebar-nav a svg { flex-shrink: 0; opacity: 0.8; }
.sidebar-nav a:hover { background: rgba(251,246,238,0.08); color: var(--cream); padding-left: var(--space-4); }
.sidebar-nav a.active { background: var(--terracotta); color: var(--cream); }
.sidebar-nav a.active svg { opacity: 1; }

.sidebar-utility { display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-6); border-top: 1px solid rgba(251,246,238,0.14); }
.sidebar-icon-row { display: flex; gap: var(--space-2); }
.sidebar-icon-btn {
  position: relative;
  width: 42px; height: 42px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  background: rgba(251,246,238,0.06); color: var(--cream);
  transition: background var(--ease-micro), transform var(--ease-micro);
}
.sidebar-icon-btn:hover { background: var(--terracotta); transform: translateY(-2px); }
.sidebar-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--sage); color: var(--cream);
  font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
  border: 2px solid var(--bark);
}
.sidebar-search { display: flex; align-items: center; gap: var(--space-2); background: rgba(251,246,238,0.06); border-radius: var(--radius-md); padding: 0 var(--space-3); height: 42px; transition: background var(--ease-micro); }
.sidebar-search:focus-within { background: rgba(251,246,238,0.12); }
.sidebar-search input { background: transparent; border: none; outline: none; color: var(--cream); font-size: 13px; width: 100%; }
.sidebar-search input::placeholder { color: rgba(251,246,238,0.45); }
.sidebar-search svg { color: rgba(251,246,238,0.5); flex-shrink: 0; }

.main-content { flex: 1; min-width: 0; }

.announce-bar {
  background: var(--sage); color: var(--cream);
  text-align: center; font-size: 12px; font-weight: 600; letter-spacing: 0.03em;
  padding: var(--space-2) var(--space-4);
}
.announce-bar strong { color: var(--bark); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  height: 50px; padding: 0 var(--space-6); border-radius: var(--radius-button);
  font-size: 14px; font-weight: 600; border: 1.5px solid transparent;
  transition: background var(--ease-micro), color var(--ease-micro), border-color var(--ease-micro), transform var(--ease-micro), box-shadow var(--ease-micro);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--bark); color: var(--cream); }
.btn-primary:hover { background: var(--terracotta); }
.btn-accent { background: var(--terracotta); color: var(--cream); }
.btn-accent:hover { background: var(--accent-dark); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--bark); border-color: var(--bark); }
.btn-outline:hover { background: var(--cream-dim); }
.btn-ghost { background: transparent; color: var(--bark); }
.btn-ghost:hover { background: var(--cream-dim); }
.btn-sm { height: 40px; padding: 0 var(--space-5); font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: 50%; background: var(--cream); border: 1.5px solid var(--linen); }
.btn-icon:hover { border-color: var(--terracotta); }

/* ==========================================================================
   Hero — asymmetric editorial split, not a full-bleed banner
   ========================================================================== */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-10);
  align-items: center;
  padding: var(--space-16) 0 var(--space-20);
}
.hero-copy { padding-right: var(--space-6); }
.hero-copy .eyebrow { }
.hero-copy h1 {
  font-family: var(--font-serif); font-weight: 500; font-style: italic;
  font-size: 64px; line-height: 1.04; letter-spacing: -0.01em; margin-bottom: var(--space-6);
  animation: heroUp var(--ease-page) both;
}
.hero-copy p {
  font-size: 17px; color: var(--clay); max-width: 420px; margin-bottom: var(--space-8);
  animation: heroUp var(--ease-page) both; animation-delay: 100ms;
}
.hero-copy .hero-cta { display: flex; gap: var(--space-4); animation: heroUp var(--ease-page) both; animation-delay: 180ms; }
@keyframes heroUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.hero-visual { position: relative; aspect-ratio: 4/5; }
.hero-blob-1, .hero-blob-2 {
  position: absolute; border-radius: var(--radius-blob); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-blob-1 { inset: 0 12% 12% 0; z-index: 2; animation: blobFloat 9s ease-in-out infinite; }
.hero-blob-2 { inset: 14% 0 0 14%; z-index: 1; opacity: 0.55; animation: blobFloat 11s ease-in-out infinite reverse; }
.hero-blob-1 img, .hero-blob-2 img { width: 100%; height: 100%; object-fit: cover; }
@keyframes blobFloat {
  0%, 100% { border-radius: var(--radius-blob); }
  50% { border-radius: 58% 42% 35% 65% / 55% 65% 35% 45%; }
}
.hero-dot { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--terracotta); top: 6%; right: 4%; z-index: 3; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.3); } }

/* ==========================================================================
   Advantages — vertical stacked strip, not a 4-col grid
   ========================================================================== */
.advantages { border-top: 1px solid var(--linen); border-bottom: 1px solid var(--linen); }
.advantages .container { display: flex; justify-content: space-between; padding: var(--space-6) var(--space-8); gap: var(--space-6); flex-wrap: wrap; }
.advantage { display: flex; align-items: center; gap: var(--space-3); }
.advantage .icon-wrap { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--terracotta); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.advantage strong { display: block; font-size: 13px; font-weight: 600; }
.advantage span { display: block; font-size: 12px; color: var(--clay); }

/* ==========================================================================
   Categories — offset masonry-style columns, not a uniform grid
   ========================================================================== */
.categories-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.categories-row a:nth-child(2n) { margin-top: var(--space-10); }
.category-card {
  position: relative; border-radius: var(--radius-card); overflow: hidden;
  aspect-ratio: 3/4; background: var(--cream-dim);
  transition: border-radius var(--ease-base), box-shadow var(--ease-base);
  box-shadow: var(--shadow-sm);
}
.category-card:hover { border-radius: var(--radius-blob); box-shadow: var(--shadow-lg); }
.category-card .cat-bg { position: absolute; inset: 0; transition: transform var(--ease-page); }
.category-card:hover .cat-bg { transform: scale(1.08); }
.category-card .cat-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(58,46,36,0.65) 0%, rgba(58,46,36,0) 50%); }
.category-card .cat-label { position: absolute; left: var(--space-5); bottom: var(--space-5); color: var(--cream); font-family: var(--font-serif); font-style: italic; font-size: 19px; }
.category-card .cat-label span { display: block; font-family: var(--font-sans); font-style: normal; font-size: 11px; color: rgba(251,246,238,0.7); margin-top: 4px; }

/* ==========================================================================
   Product Card
   ========================================================================== */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-8) var(--space-6); }
.product-card { position: relative; animation: cardIn var(--ease-base) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.product-media {
  position: relative; border-radius: var(--radius-card); overflow: hidden;
  aspect-ratio: 3/4; background: var(--cream-dim); margin-bottom: var(--space-4);
  transition: border-radius var(--ease-base);
}
.product-card:hover .product-media { border-radius: var(--radius-blob); }
.product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity var(--ease-base), transform var(--ease-page); }
.product-media .img-primary { opacity: 1; }
.product-media .img-secondary { opacity: 0; }
.product-card:hover .img-primary { opacity: 0; transform: scale(1.05); }
.product-card:hover .img-secondary { opacity: 1; transform: scale(1.05); }

.product-badges { position: absolute; top: var(--space-3); left: var(--space-3); display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.badge {
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  padding: 5px 12px; border-radius: 999px; color: var(--cream); background: var(--bark);
  width: fit-content;
}
.badge-sale { background: var(--terracotta); }
.badge-new { background: var(--sage); }
.badge-limited { background: var(--clay); }
.badge-out { background: rgba(58,46,36,0.5); }

.wishlist-btn {
  position: absolute; top: var(--space-3); right: var(--space-3); z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(251,246,238,0.92); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--ease-micro), background var(--ease-micro);
  color: var(--bark);
}
.wishlist-btn:hover { transform: scale(1.08); }
.wishlist-btn.active { color: var(--terracotta); background: var(--accent-soft); }
.wishlist-btn.active svg { fill: var(--terracotta); }
.wishlist-btn.pop { animation: wishPop 380ms ease; }
@keyframes wishPop { 0% { transform: scale(1); } 40% { transform: scale(1.3) rotate(-6deg); } 100% { transform: scale(1); } }

.product-quickbar {
  position: absolute; left: var(--space-3); right: var(--space-3); bottom: var(--space-3);
  display: flex; gap: var(--space-2); opacity: 0; transform: translateY(8px);
  transition: opacity var(--ease-base), transform var(--ease-base); z-index: 2;
}
.product-card:hover .product-quickbar { opacity: 1; transform: translateY(0); }
.product-quickbar .btn { flex: 1; height: 42px; font-size: 12px; padding: 0 var(--space-3); }
.product-quickbar .btn-icon-sm { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; background: var(--cream); border: none; display: flex; align-items: center; justify-content: center; }

.product-info .brand { font-size: 12px; color: var(--clay); margin-bottom: 2px; }
.product-info .title { font-family: var(--font-serif); font-style: italic; font-size: 16px; margin-bottom: 6px; }
.product-price { display: flex; align-items: center; gap: var(--space-2); margin-bottom: 6px; }
.product-price .current { font-size: 15px; font-weight: 600; }
.product-price .old { font-size: 13px; color: var(--clay); opacity: 0.6; text-decoration: line-through; }
.product-price .discount { font-size: 12px; font-weight: 700; color: var(--terracotta); }

.swatches { display: flex; gap: 6px; margin-bottom: 4px; }
.swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--linen); cursor: pointer; }
.swatch.more { font-size: 10px; color: var(--clay); display: flex; align-items: center; }

.product-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--clay); }
.product-meta .stars { color: var(--terracotta); letter-spacing: 1px; font-size: 11px; }

/* ==========================================================================
   Editorial split
   ========================================================================== */
.editorial { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--space-6); align-items: stretch; }
.editorial-panel { position: relative; border-radius: var(--radius-card); overflow: hidden; background: var(--cream-dim); }
.editorial-panel:first-child { aspect-ratio: 3/4.6; }
.editorial-panel:last-child { aspect-ratio: 4/3.2; align-self: end; }
.editorial-panel .ed-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(58,46,36,0.7), transparent 55%); }
.editorial-panel .ed-copy { position: absolute; left: var(--space-6); bottom: var(--space-6); color: var(--cream); max-width: 320px; }
.editorial-panel .ed-copy h3 { font-family: var(--font-serif); font-style: italic; font-size: 26px; margin-bottom: var(--space-3); line-height: 1.15; }
.editorial-panel .ed-copy a { font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--cream); padding-bottom: 2px; }

/* ==========================================================================
   Brand strip
   ========================================================================== */
.brand-strip { display: flex; align-items: center; justify-content: space-between; padding: var(--space-8) 0; overflow-x: auto; border-top: 1px solid var(--linen); }
.brand-strip span { font-family: var(--font-serif); font-style: italic; font-size: 21px; color: var(--clay); opacity: 0.55; transition: opacity var(--ease-micro); white-space: nowrap; }
.brand-strip span:hover { opacity: 1; }

/* ==========================================================================
   Reviews — offset stacked cards
   ========================================================================== */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.reviews-grid > div:nth-child(2) { margin-top: var(--space-8); }
.review-card { background: var(--cream-dim); border-radius: var(--radius-card); padding: var(--space-6); transition: box-shadow var(--ease-base), transform var(--ease-base); }
.review-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.review-card .stars { color: var(--terracotta); font-size: 13px; margin-bottom: var(--space-3); letter-spacing: 2px; }
.review-card p { font-family: var(--font-serif); font-style: italic; font-size: 15px; color: var(--bark); margin-bottom: var(--space-4); line-height: 1.5; }
.review-author { display: flex; align-items: center; gap: var(--space-3); }
.review-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--linen); }
.review-author strong { font-size: 13px; display: block; }
.review-author span { font-size: 12px; color: var(--clay); }

/* ==========================================================================
   Newsletter
   ========================================================================== */
.newsletter { background: var(--sage); color: var(--cream); border-radius: var(--radius-card); padding: var(--space-16) var(--space-12); text-align: center; position: relative; overflow: hidden; }
.newsletter h2 { font-family: var(--font-serif); font-style: italic; font-size: 34px; margin-bottom: var(--space-3); }
.newsletter p { color: rgba(251,246,238,0.8); margin-bottom: var(--space-6); }
.newsletter-form { display: flex; gap: var(--space-3); max-width: 420px; margin: 0 auto; }
.newsletter-form input { flex: 1; height: 50px; border-radius: var(--radius-button); border: 1.5px solid rgba(251,246,238,0.3); background: rgba(251,246,238,0.08); color: var(--cream); padding: 0 var(--space-5); font-size: 14px; outline: none; }
.newsletter-form input::placeholder { color: rgba(251,246,238,0.5); }
.newsletter-form .btn { height: 50px; background: var(--bark); }
.newsletter-form .btn:hover { background: var(--terracotta); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--bark); color: var(--cream); padding-top: var(--space-16); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: var(--space-8); padding-bottom: var(--space-12); border-bottom: 1px solid rgba(251,246,238,0.14); }
.footer-grid h4 { font-size: 13px; font-weight: 600; margin-bottom: var(--space-4); color: var(--terracotta); }
.footer-grid ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-grid a { font-size: 13px; color: rgba(251,246,238,0.65); transition: color var(--ease-micro); }
.footer-grid a:hover { color: var(--cream); }
.footer-brand .logo { font-family: var(--font-serif); font-style: italic; font-size: 24px; margin-bottom: var(--space-3); }
.footer-brand p { font-size: 13px; color: rgba(251,246,238,0.65); max-width: 260px; margin-bottom: var(--space-5); }
.lang-switch { display: flex; gap: var(--space-2); }
.lang-switch button { font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(251,246,238,0.25); color: var(--cream); transition: all var(--ease-micro); }
.lang-switch button.active { background: var(--terracotta); border-color: var(--terracotta); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: var(--space-6) 0; font-size: 12px; color: rgba(251,246,238,0.55); }
.footer-social { display: flex; gap: var(--space-4); }
.footer-social a:hover { color: var(--terracotta); }

/* ==========================================================================
   Cart Drawer
   ========================================================================== */
.overlay { position: fixed; inset: 0; background: rgba(58,46,36,0.4); opacity: 0; pointer-events: none; transition: opacity var(--ease-base); z-index: 200; }
.overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 92vw;
  background: var(--cream); z-index: 201;
  border-radius: var(--radius-card) 0 0 var(--radius-card);
  transform: translateX(100%); transition: transform var(--ease-page);
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.cart-drawer.open { transform: translateX(0); }
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding: var(--space-5) var(--space-6); border-bottom: 1px solid var(--linen); }
.drawer-header h3 { font-family: var(--font-serif); font-style: italic; font-size: 19px; }
.cart-items { flex: 1; overflow-y: auto; padding: var(--space-5) var(--space-6); display: flex; flex-direction: column; gap: var(--space-5); }
.cart-item { display: flex; gap: var(--space-4); animation: cardIn var(--ease-base) both; }
.cart-item img { width: 76px; height: 96px; border-radius: var(--radius-md); object-fit: cover; background: var(--cream-dim); }
.cart-item-info { flex: 1; }
.cart-item-info .name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.cart-item-info .variant { font-size: 12px; color: var(--clay); margin-bottom: var(--space-2); }
.cart-item-row { display: flex; align-items: center; justify-content: space-between; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--linen); border-radius: 999px; overflow: hidden; }
.qty-control button {
  width: 34px; height: 34px; min-width: 34px; display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--bark); background: var(--cream-dim);
  transition: background var(--ease-micro);
}
.qty-control button:hover { background: var(--linen); }
.qty-control button:active { background: var(--linen); }
.qty-control span { width: 30px; text-align: center; font-size: 13px; font-weight: 600; }
.cart-item .price { font-size: 13px; font-weight: 600; }
.cart-item .remove { font-size: 11px; color: var(--clay); margin-top: var(--space-2); }
.cart-item .remove:hover { color: var(--error); }

.drawer-footer { padding: var(--space-6); border-top: 1px solid var(--linen); }
.promo-row { display: flex; gap: var(--space-2); margin-bottom: var(--space-4); }
.promo-row input { flex: 1; height: 44px; border: 1px solid var(--linen); border-radius: var(--radius-button); padding: 0 var(--space-4); font-size: 13px; outline: none; }
.promo-row input:focus { border-color: var(--terracotta); }
.summary-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--clay); margin-bottom: var(--space-2); }
.summary-row.total { font-size: 16px; font-weight: 700; color: var(--bark); margin-top: var(--space-3); }
.cart-empty { text-align: center; padding: var(--space-20) var(--space-6); color: var(--clay); }
.cart-empty svg { color: var(--linen); margin-bottom: var(--space-4); }

/* ==========================================================================
   Toast
   ========================================================================== */
.toast-stack { position: fixed; bottom: var(--space-6); left: 50%; transform: translateX(calc(-50% + var(--sidebar-width) / 2)); z-index: 300; display: flex; flex-direction: column; gap: var(--space-2); align-items: center; }
.toast { background: var(--bark); color: var(--cream); padding: var(--space-3) var(--space-5); border-radius: var(--radius-button); font-size: 13px; font-weight: 500; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: var(--space-2); animation: toastIn var(--ease-base) both; }
.toast svg { color: var(--sage); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ==========================================================================
   Catalog page — filters on the right, not the left
   ========================================================================== */
.catalog-header { padding: var(--space-10) 0 var(--space-6); }
.breadcrumbs { display: flex; gap: var(--space-2); font-size: 12px; color: var(--clay); margin-bottom: var(--space-4); }
.breadcrumbs a:hover { color: var(--terracotta); }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) 0; border-top: 1px solid var(--linen); border-bottom: 1px solid var(--linen); margin-bottom: var(--space-8); }
.result-count { font-size: 13px; color: var(--clay); }
.toolbar-actions { display: flex; align-items: center; gap: var(--space-4); }
.view-toggle { display: flex; gap: 2px; background: var(--cream-dim); border-radius: var(--radius-button); padding: 3px; }
.view-toggle button { width: 32px; height: 32px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.view-toggle button.active { background: var(--cream); box-shadow: var(--shadow-sm); }
.sort-select {
  height: 40px; border: 1px solid var(--linen); border-radius: var(--radius-button); padding: 0 34px 0 var(--space-4); font-size: 13px; background: var(--cream);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%237A5C42' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; cursor: pointer;
}

.catalog-layout { display: grid; grid-template-columns: 1fr 280px; gap: var(--space-8); align-items: start; }
.filters-panel { position: sticky; top: var(--space-8); order: 2; }
.filter-group { border-bottom: 1px solid var(--linen); padding: var(--space-5) 0; }
.filter-group summary { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group summary::after { content: "+"; font-size: 16px; font-weight: 400; color: var(--clay); }
.filter-group[open] summary::after { content: "–"; }
.filter-body { padding-top: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.filter-option { display: flex; align-items: center; gap: var(--space-3); font-size: 13px; cursor: pointer; }
.filter-option input[type="checkbox"] { appearance: none; width: 18px; height: 18px; border: 1.5px solid var(--linen); border-radius: 6px; position: relative; flex-shrink: 0; transition: all var(--ease-micro); }
.filter-option input[type="checkbox"]:checked { background: var(--terracotta); border-color: var(--terracotta); }
.filter-option input[type="checkbox"]:checked::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid var(--cream); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.filter-option .count { color: var(--clay); opacity: 0.6; margin-left: auto; }
.color-swatch-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.color-swatch-row button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--cream); box-shadow: 0 0 0 1px var(--linen); }
.color-swatch-row button.active { box-shadow: 0 0 0 2px var(--terracotta); }
.size-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); }
.size-grid button { height: 36px; border: 1px solid var(--linen); border-radius: var(--radius-sm); font-size: 12px; font-weight: 500; transition: all var(--ease-micro); }
.size-grid button:hover { border-color: var(--bark); }
.size-grid button.active { background: var(--bark); color: var(--cream); border-color: var(--bark); }
.price-range { padding: var(--space-2) 0; }
.price-range input[type="range"] { width: 100%; accent-color: var(--terracotta); }
.price-range .values { display: flex; justify-content: space-between; font-size: 12px; color: var(--clay); margin-top: var(--space-2); }

.active-filters { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.active-filter-chip { display: flex; align-items: center; gap: 6px; background: var(--accent-soft); color: var(--accent-dark); font-size: 12px; font-weight: 600; padding: 6px 10px 6px 12px; border-radius: 999px; }
.active-filter-chip button { display: flex; }

.pagination { display: flex; align-items: center; justify-content: center; gap: var(--space-2); margin-top: var(--space-12); }
.pagination button { width: 38px; height: 38px; border-radius: 50%; font-size: 13px; font-weight: 500; transition: all var(--ease-micro); }
.pagination button.active { background: var(--bark); color: var(--cream); }
.pagination button:hover:not(.active) { background: var(--cream-dim); }

/* ==========================================================================
   Utilities
   ========================================================================== */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--bark); color: var(--cream); padding: var(--space-3) var(--space-5); z-index: 999; border-radius: 0 0 var(--radius-sm) 0; }
.skip-link:focus { left: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 1100px) {
  .app-shell { flex-direction: column; }
  .sidebar { position: static; width: 100%; height: auto; flex-direction: row; align-items: center; padding: var(--space-4) var(--space-6); }
  .sidebar-nav { flex-direction: row; margin-bottom: 0; margin-left: var(--space-8); }
  .sidebar-utility { flex-direction: row; align-items: center; border-top: none; padding-top: 0; margin-left: auto; }
  .sidebar-search { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .product-grid, .categories-row { grid-template-columns: repeat(2, 1fr); }
  .categories-row a:nth-child(2n) { margin-top: 0; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters-panel { position: static; order: 0; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .reviews-grid > div:nth-child(2) { margin-top: 0; }
  .editorial { grid-template-columns: 1fr; }
  .editorial-panel:last-child { align-self: stretch; }
  .toast-stack { transform: translateX(-50%); }
}
@media (max-width: 640px) {
  .product-grid, .categories-row { grid-template-columns: repeat(2, 1fr); gap: var(--space-4) var(--space-3); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-copy h1 { font-size: 36px; }
  .sidebar { padding: var(--space-3) var(--space-4); }
  .sidebar-logo { font-size: 20px; }
  .sidebar-nav { margin-left: var(--space-3); gap: 0; }
  .sidebar-nav a span:last-child { display: none; }
  .sidebar-nav a { padding: var(--space-2); gap: 0; }
  .sidebar-utility { margin-left: var(--space-2); }
  .newsletter { padding: var(--space-10) var(--space-6); }
  .newsletter-form { flex-direction: column; }
  .cart-drawer { width: 100%; max-width: 100%; border-radius: 0; }
}
@media (max-width: 400px) {
  .sidebar-nav a:nth-child(3) { display: none; }
}
