/* RESET */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul, li, figure, form, fieldset { margin: 0; padding: 0; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; border: none; background: none; margin: 0; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
table { width: 100%; border-collapse: collapse; }

/* THEME */
:root {
  /* Colors */
  --bg: #FAF7F5;
  --surface: #FFFFFF;
  
  --primary: #411928; /* Rich burgundy/plum */
  --primary-hover: #2d101a;
  --accent: #B07464; /* Rose gold/Blush */
  --accent-hover: #985e50;
  
  --text: #2A2425;
  --text-muted: #7A7273;
  
  --border: #E8DFDA;
  --border-light: #F4EFEB;
  
  --success: #366A4E;
  --danger: #932D3A;
  --warning: #B47C35;
  
  /* Radii */
  --radius-sm: 2px;
  --radius: 4px;
  --radius-lg: 8px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(65, 25, 40, 0.05);
  --shadow: 0 4px 12px rgba(65, 25, 40, 0.04);
  --shadow-hover: 0 12px 28px rgba(65, 25, 40, 0.08);
  
  /* Fonts */
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main { flex: 1; }

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 { 
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  color: var(--primary);
}
h1 { font-size: 2.75rem; margin-bottom: 1.25rem; font-style: italic; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.1rem; }

.font-serif { font-family: var(--font-serif); }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.hover-underline:hover { text-decoration: underline; }
.tracking-wide { letter-spacing: 0.05em; }

/* LAYOUT */
.container { width: 100%; max-width: 1300px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.flex-1 { flex: 1; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

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

.col-span-3 { grid-column: span 3; }
.col-span-4 { grid-column: span 4; }
.col-span-5 { grid-column: span 5; }
.col-span-7 { grid-column: span 7; }
.col-span-8 { grid-column: span 8; }
.col-span-9 { grid-column: span 9; }

/* UTILS */
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.pb-4 { padding-bottom: 1rem; }
.pt-4 { padding-top: 1rem; }
.border-b { border-bottom: 1px solid var(--border); }
.border-t { border-top: 1px solid var(--border); }
.w-full { width: 100%; }
.h-full { height: 100%; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.inline-block { display: inline-block; }
.object-cover { object-fit: cover; }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .grid-cols-4 { grid-template-columns: repeat(3, 1fr); }
  .grid-cols-12 { grid-template-columns: 1fr; }
  .col-span-3, .col-span-4, .col-span-5, .col-span-7, .col-span-8, .col-span-9 { grid-column: span 1; }
  .lg\:flex-col { flex-direction: column; }
}
@media (max-width: 768px) {
  .grid-cols-4, .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-2 { grid-template-columns: 1fr; }
  .nav { display: none; }
  .section { padding: 3rem 0; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
}
@media (max-width: 480px) {
  .grid-cols-4, .grid-cols-3, .grid-cols-2 { grid-template-columns: 1fr; }
  .header-top { flex-wrap: wrap; }
  .nav-actions { margin-left: auto; }
  .table-responsive { width: 100%; overflow-x: auto; display: block; -webkit-overflow-scrolling: touch; }
  .mobile-menu-btn { display: block !important; }
}

/* HEADER */
.header { 
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light); 
  position: sticky; 
  top: 0; 
  z-index: 100;
  transition: all var(--transition);
}
.header-top { display: flex; align-items: center; justify-content: space-between; height: 5rem; }
.logo { 
  font-family: var(--font-serif);
  font-size: 1.75rem; 
  font-weight: 400; 
  letter-spacing: 0.02em; 
  color: var(--primary); 
  font-style: italic;
  display: flex;
  align-items: center;
}
.logo-span { color: var(--accent); font-style: normal; margin-left: 0.1rem; }
.nav { display: flex; gap: 2.5rem; align-items: center; }
.nav a { 
  font-size: 0.9rem; 
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text); 
  transition: color var(--transition); 
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--primary);
  transition: width var(--transition);
}
.nav a:hover { color: var(--primary); }
.nav a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 1.5rem; }
.nav-actions a { color: var(--text); transition: color var(--transition); font-size: 0.9rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.nav-actions a:hover { color: var(--primary); }

.cart-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cart-badge { 
  background: var(--accent); 
  color: white; 
  border-radius: var(--radius-full); 
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem; 
  font-weight: 600; 
}

/* COMPONENTS */
.card { 
  background: var(--surface); 
  border-radius: var(--radius); 
  border: 1px solid var(--border-light); 
  padding: 2rem; 
  box-shadow: var(--shadow-sm); 
}

/* BUTTONS */
.btn { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  padding: 0.875rem 2rem; 
  border-radius: var(--radius-sm); 
  font-family: var(--font-sans);
  font-weight: 500; 
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all var(--transition); 
  text-align: center; 
  gap: 0.5rem; 
  position: relative; 
  border: 1px solid transparent;
}
.btn-primary { 
  background: var(--primary); 
  color: white; 
  border-color: var(--primary);
}
.btn-primary:hover { 
  background: var(--primary-hover); 
  border-color: var(--primary-hover);
}
.btn-accent { 
  background: var(--accent); 
  color: white; 
  border-color: var(--accent);
}
.btn-accent:hover { 
  background: var(--accent-hover); 
  border-color: var(--accent-hover);
}
.btn-outline { 
  border-color: var(--primary); 
  color: var(--primary); 
  background: transparent; 
}
.btn-outline:hover { 
  background: var(--primary); 
  color: white; 
}
.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.8rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; pointer-events: none; }

/* FORMS */
.form-group { margin-bottom: 1.5rem; }
.label { 
  display: block; 
  font-weight: 500; 
  font-size: 0.85rem; 
  margin-bottom: 0.5rem; 
  color: var(--text);
  letter-spacing: 0.02em;
}
.input { 
  width: 100%; 
  padding: 0.875rem 1rem; 
  border: 1px solid var(--border); 
  border-radius: var(--radius-sm); 
  background: var(--surface); 
  transition: all var(--transition); 
  font-family: inherit; 
  color: var(--text);
}
.input:focus { 
  outline: none; 
  border-color: var(--accent); 
  box-shadow: 0 0 0 1px var(--accent);
}
select.input { 
  appearance: none; 
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23411928'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
  padding-right: 2.5rem;
}
textarea.input { resize: vertical; min-height: 100px; }

/* CHECKBOX & RADIO */
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
}
.check-label input {
  margin-top: 0.25rem;
  accent-color: var(--primary);
  width: 1rem;
  height: 1rem;
}

/* PRODUCT ART / IMAGES */
.product-art-container {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--border-light);
}
.product-art { 
  width: 100%;
  height: 100%;
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 3rem; 
  font-weight: 500; 
  font-family: var(--font-serif);
  color: rgba(65,25,40,0.2); 
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
}
.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover .product-img,
.product-card:hover .product-art { 
  transform: scale(1.05); 
}

/* TONES */
.tone-warm { background-color: #F3E5E3; color: #B07464; }
.tone-cool { background-color: #E2E8F0; color: #4A5568; }
.tone-dark { background-color: #373334; color: #F9F7F5; }
.tone-earth { background-color: #E6DFD6; color: #7B6858; }
.tone-tech { background-color: #EAE6EF; color: #6B5B95; }
.tone-default { background-color: var(--border-light); }

/* PRODUCT CARD */
.product-card { display: flex; flex-direction: column; gap: 1rem; }
.product-meta { display: flex; flex-direction: column; gap: 0.4rem; padding-top: 0.5rem; text-align: center; }
.product-category-text { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.product-title { font-size: 1.1rem; font-family: var(--font-serif); font-weight: 400; color: var(--primary); }
.product-price { font-weight: 500; color: var(--text); font-size: 0.95rem; }
.product-price-old { text-decoration: line-through; color: var(--text-muted); font-size: 0.85rem; margin-left: 0.5rem; }

/* CATEGORY & FILTER BADGES */
.filter-badge { 
  display: inline-flex;
  padding: 0.5rem 1rem; 
  border-radius: var(--radius-sm); 
  background: var(--surface); 
  border: 1px solid var(--border); 
  font-size: 0.85rem; 
  color: var(--text);
  white-space: nowrap; 
  transition: all var(--transition); 
}
.filter-badge:hover { border-color: var(--primary); }
.filter-badge.active { background: var(--primary); color: white; border-color: var(--primary); }

.filter-group-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

/* BADGE */
.badge { 
  position: absolute; 
  top: 1rem; 
  right: 1rem; 
  background: var(--surface); 
  color: var(--primary); 
  padding: 0.25rem 0.75rem; 
  font-size: 0.7rem; 
  font-weight: 600; 
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2; 
}
.badge.badge-sale {
  background: var(--accent);
  color: white;
}

/* TABLES */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 1rem; border-bottom: 1px solid var(--border-light); text-align: left; vertical-align: middle; }
.table th { font-weight: 500; color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.table tr:last-child td { border-bottom: none; }
.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ALERTS */
.alert { padding: 1rem 1.5rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; font-weight: 500; font-size: 0.9rem; display: flex; align-items: center; gap: 0.75rem; }
.alert-success { background: #EDF7F1; color: var(--success); border-left: 4px solid var(--success); }
.alert-error { background: #FDF3F4; color: var(--danger); border-left: 4px solid var(--danger); }
.alert-info { background: #F2F5F8; color: var(--primary); border-left: 4px solid var(--primary); }
.alert-warning { background: #FDF9F2; color: var(--warning); border-left: 4px solid var(--warning); }

/* FOOTER */
.footer { 
  background: var(--primary); 
  color: #D5CED0; 
  padding: 5rem 0 2rem; 
  margin-top: auto; 
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem; margin-bottom: 4rem; }
.footer h4 { color: white; margin-bottom: 1.5rem; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; font-family: var(--font-sans); }
.footer ul { display: flex; flex-direction: column; gap: 0.85rem; font-size: 0.9rem; }
.footer a { transition: color var(--transition); }
.footer a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; text-align: center; font-size: 0.85rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;}
.footer-logo { font-family: var(--font-serif); font-size: 1.5rem; color: white; font-style: italic; }
.footer-year-brand { display: flex; align-items: baseline; gap: 0.35rem; }
.footer-brand-rainbow {
  display: inline-flex;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.rainbow-letter {
  display: inline-block;
  color: #ff7a00;
  animation: footer-letter-cycle 1.15s linear infinite;
  animation-delay: calc(var(--i) * -0.075s);
}
.rainbow-space { display: inline-block; width: 0.32em; }
@keyframes footer-letter-cycle {
  0%, 100% { color: #ff7a00; }
  20% { color: #ff4fa3; }
  40% { color: #ff2d3f; }
  60% { color: #ffd83d; }
  80% { color: #26a8ff; }
}
.footer-payment-row {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.payment-logos { display: flex; align-items: center; flex-wrap: wrap; gap: 0.65rem; }
.payment-logo {
  width: 68px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 5px;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.payment-logo svg { width: 100%; height: 100%; display: block; }
.footer-company-rights {
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-align: right;
}

@media (max-width: 768px) {
  .footer-bottom { justify-content: center; }
  .footer-payment-row { flex-direction: column; justify-content: center; }
  .payment-logos { justify-content: center; }
  .footer-company-rights { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .rainbow-letter { animation-duration: 4s; }
}

/* HERO SECTION */
.hero { 
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-color: var(--primary);
  color: white;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 600px;
}
.hero h1 { 
  font-size: 4rem; 
  margin-bottom: 1.5rem; 
  color: white;
  line-height: 1.1;
}
.hero p { 
  font-size: 1.25rem; 
  color: rgba(255,255,255,0.9); 
  margin-bottom: 2.5rem; 
  font-family: var(--font-serif);
}

@media (max-width: 768px) {
  .hero { min-height: 60vh; }
  .hero h1 { font-size: 3rem; }
}

/* PRODUCT DETAILS PAGE */
.product-gallery {
  position: sticky;
  top: 7rem;
}
.details-table td {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
}
.details-table tr:last-child td {
  border-bottom: none;
}
.details-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: 120px;
}
.variant-select {
  padding: 1rem;
  font-size: 1rem;
  border-color: var(--primary);
}
.size-guide-toggle {
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.size-guide-toggle:hover {
  color: var(--primary);
}

/* CART & CHECKOUT */
.cart-item-img {
  width: 80px;
  height: 100px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--border-light);
}
.checkout-summary {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 2rem;
  position: sticky;
  top: 7rem;
}

/* ADMIN / INFLUENCER */
.admin-split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(320px, 1fr); gap: 2rem; align-items: start; }
.admin-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  position: sticky;
  top: 7rem;
}
.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.admin-nav a {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 500;
  transition: all var(--transition);
}
.admin-nav a:hover, .admin-nav a.active {
  background: var(--border-light);
  color: var(--primary);
}
.status-pill { 
  display: inline-flex; 
  align-items: center; 
  white-space: nowrap; 
  padding: 0.25rem 0.75rem; 
  border-radius: var(--radius-full); 
  font-size: 0.7rem; 
  font-weight: 600; 
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.status-success { background: #EDF7F1; color: var(--success); }
.status-danger { background: #FDF3F4; color: var(--danger); }
.status-warning { background: #FDF9F2; color: var(--warning); }
.status-muted { background: var(--border-light); color: var(--text-muted); }

/* MISC */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}
.divider:not(:empty)::before {
  margin-right: 1rem;
}
.divider:not(:empty)::after {
  margin-left: 1rem;
}

/* BEAUTY BANNER / LINGERIE BANNER */
.category-banner {
  background: var(--primary);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  border-radius: var(--radius-sm);
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}
.category-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  mix-blend-mode: multiply;
}
.category-banner-content {
  position: relative;
  z-index: 10;
}
.category-banner h2 { color: white; margin-bottom: 0.5rem; }
.category-banner p { font-family: var(--font-serif); font-size: 1.1rem; }

@media (max-width: 768px) {
  .header-top { min-height: 4.5rem; height: auto; gap: 0.75rem; }
  .nav { display: none; }
  .logo { font-size: 1.45rem; }
  .nav-actions { gap: 0.85rem; }
  .nav-actions a { font-size: 0.75rem; letter-spacing: 0.03em; }
  .catalog-heading { align-items: stretch; flex-direction: column; gap: 1rem; }
  .catalog-heading form { width: 100%; }
  .catalog-heading form select { min-width: 0; flex: 1; }
  .catalog-filter {
    position: static !important;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 2rem;
    background: var(--surface);
    border: 1px solid var(--border-light);
  }
  .catalog-filter > * { margin: 0 !important; min-width: 0; }
  .catalog-filter-search,
  .catalog-categories,
  .catalog-filter > button,
  .catalog-filter > a { grid-column: 1 / -1; }
  .catalog-category-links {
    flex-direction: row;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.4rem;
  }
  .catalog-category-links a {
    flex: 0 0 auto;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--border);
  }
}

@media (max-width: 420px) {
  .container { padding-left: 1rem; padding-right: 1rem; }
  .catalog-filter { grid-template-columns: 1fr; }
  .catalog-filter > * { grid-column: 1; }
  .hero h1, .hero h1[style] { font-size: 2.6rem !important; }
}
