/* =============================================================
   Z&C Logistics & Imports — styles.css
   1. Tokens   2. Reset   3. Utilities   4. Typography
   5. Components   6. Sections   7. Effects   8. Responsive   9. Reduced motion
   ============================================================= */

/* ============================== 1. TOKENS ============================== */
:root {
  --bg: #f5f1ea;
  --bg-soft: #efe9df;
  --paper: #ffffff;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.75);
  --ink: #1c1a16;
  --ink-soft: #55524a;
  --ink-mute: #8f897c;
  --accent: #c9962e;
  --accent-dark: #9c7420;
  --accent-ink: #1c1a16;
  --accent-2: #33302a;
  --line: rgba(28, 26, 22, 0.10);
  --success: #16a34a;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Sora", var(--sans);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 22px;
  --radius-sm: 14px;
}

/* ============================== 2. RESET / BASE ============================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
  position: relative;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.02em; font-family: var(--display); font-weight: 700; }
ul { list-style: none; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

/* ============================== 3. UTILITIES ============================== */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .7rem 1.1rem; background: var(--ink); color: #fff;
  z-index: 9999; border-radius: 8px; font-weight: 600;
  transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(201,150,46,0.22);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.mt-lg { margin-top: clamp(2rem,5vw,3.4rem); }

/* ============================== 4. TYPOGRAPHY ============================== */
.h-xl { font-size: clamp(2.4rem, 6.4vw, 4.6rem); }
.h-lg { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.h-md { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.lede { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--ink-soft); max-width: 48ch; }

/* ============================== 5. COMPONENTS ============================== */

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.55rem; border-radius: 999px; font-weight: 600; font-size: .93rem;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .3s, color .3s;
  will-change: transform; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--accent); color: var(--accent-ink); font-weight: 700; box-shadow: 0 10px 26px -10px rgba(201,150,46,.55); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-3px); box-shadow: 0 16px 32px -10px rgba(201,150,46,.55); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-3px); }
.btn-glass {
  background: var(--glass); backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.6); color: var(--ink);
}
.btn-glass:hover { transform: translateY(-3px); background: var(--glass-strong); }
.btn-outline { border: 1.5px solid var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--accent-2); color: var(--accent-2); transform: translateY(-3px); }
.btn-block { width: 100%; }
.btn-sm { padding: .6rem 1.1rem; font-size: .84rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* --- Glass card --- */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px -30px rgba(32,36,43,0.35);
}
@supports not (backdrop-filter: blur(1px)) {
  .glass-card { background: rgba(255,255,255,0.86); }
}

/* --- Nav --- */
.site-header { position: sticky; top: 0; z-index: 500; padding-top: .8rem; }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .7rem .9rem .7rem 1.3rem;
  background: var(--glass-strong);
  backdrop-filter: blur(18px) saturate(180%); -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 999px;
  box-shadow: 0 12px 34px -18px rgba(32,36,43,.35);
}
.brand { display: flex; align-items: center; gap: .5rem; font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.brand-logo { height: 34px; width: auto; display: block; }
.footer-logo { height: 46px; width: auto; display: block; margin-bottom: .9rem; }
.nav-links { display: none; align-items: center; gap: 1.9rem; font-size: .9rem; font-weight: 600; }
.nav-links a { position: relative; color: var(--ink-soft); transition: color .25s var(--ease-out); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--accent);
  transition: width .3s var(--ease-out);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.is-active::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: .6rem; }
.icon-btn {
  position: relative; width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(32,36,43,0.05); transition: background .25s var(--ease-out), transform .3s var(--ease-out);
}
.icon-btn:hover { background: rgba(32,36,43,0.1); transform: translateY(-2px); }
.icon-btn svg { width: 20px; height: 20px; }
.cart-count {
  position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 4px;
  border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .68rem; font-weight: 700;
  display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg);
}
.nav-toggle { display: inline-flex; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 600; background: var(--bg);
  padding: 1.3rem var(--gutter) 2rem; transform: translateY(-100%);
  transition: transform .45s var(--ease-out); overflow-y: auto;
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2.4rem; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 1.5rem; }
.mobile-menu a { font-family: var(--display); font-size: 1.9rem; font-weight: 700; }

/* --- Product card --- */
.product-card {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: var(--paper); border: 1px solid var(--line);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s;
  transform-style: preserve-3d; will-change: transform;
}
.product-card:hover { box-shadow: 0 30px 60px -28px rgba(32,36,43,.4); border-color: transparent; }
.product-media {
  position: relative; aspect-ratio: 1 / 0.86; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.55), transparent 60%), var(--cat-color, #e5e7eb);
  overflow: hidden;
}
.product-media svg { width: 42%; height: 42%; color: #fff; filter: drop-shadow(0 10px 18px rgba(0,0,0,.18)); transition: transform .5s var(--ease-bounce); }
.product-card:hover .product-media svg { transform: scale(1.1) rotate(-4deg); }
.product-photo { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-bounce); }
.product-card:hover .product-photo { transform: scale(1.06); }
.product-badge {
  position: absolute; top: 12px; left: 12px; padding: .32rem .7rem; border-radius: 999px;
  background: rgba(32,36,43,0.85); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .03em;
}
.product-body { padding: 1.1rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.product-cat { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); }
.product-name { font-size: 1rem; font-weight: 700; line-height: 1.3; }
.product-desc { font-size: .84rem; color: var(--ink-soft); flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: .4rem; gap: .6rem; }
.product-price { font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.product-price--query { font-size: .82rem; font-weight: 700; color: var(--ink-mute); font-family: var(--sans); text-transform: uppercase; letter-spacing: .03em; }
.product-wholesale {
  display: flex; flex-wrap: wrap; gap: .35rem .55rem; padding: .5rem .6rem; margin-top: -.1rem;
  background: var(--bg-soft); border-radius: 10px; font-size: .72rem; color: var(--ink-soft);
}
.product-wholesale b { color: var(--accent-dark); font-weight: 800; margin-right: .15rem; }
.add-btn {
  width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; transition: background .3s var(--ease-out), transform .3s var(--ease-bounce);
  flex-shrink: 0;
}
.add-btn svg { width: 19px; height: 19px; }
.add-btn:hover { background: var(--accent); transform: scale(1.08) rotate(90deg); }
.add-btn.is-added { background: var(--success); }

/* --- Price mode toggle (Mayorista / Minorista) --- */
.price-toggle {
  display: inline-flex; padding: .28rem; border-radius: 999px; background: var(--bg-soft);
  border: 1.5px solid var(--line); gap: .2rem;
}
.price-toggle button {
  padding: .5rem 1.15rem; border-radius: 999px; font-size: .85rem; font-weight: 700;
  color: var(--ink-soft); transition: all .3s var(--ease-out); white-space: nowrap;
}
.price-toggle button.is-active { background: var(--ink); color: #fff; box-shadow: 0 8px 18px -8px rgba(32,36,43,.4); }
.price-toggle button:not(.is-active):hover { color: var(--ink); }

/* Vistas de precio dentro de la tarjeta: por defecto minorista visible */
.price-view--mayorista { display: none; }
html[data-price-mode="mayorista"] .price-view--minorista { display: none; }
html[data-price-mode="mayorista"] .price-view--mayorista { display: block; }
.product-price--mayorista-from { font-size: .95rem; }
.product-wholesale--empty { color: var(--ink-mute); font-style: italic; }

/* --- Category tile --- */
.cat-tile {
  position: relative; border-radius: var(--radius); padding: 1.6rem; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; min-height: 190px;
  color: #fff; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.cat-tile:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -24px rgba(32,36,43,.5); }
.cat-tile .cat-icon { width: 40px; height: 40px; opacity: .95; }
.cat-tile h3 { font-size: 1.2rem; }
.cat-tile span { font-size: .82rem; opacity: .85; font-weight: 500; }
.cat-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.18), transparent 60%);
}

/* --- Filters bar --- */
.filters-bar {
  display: flex; flex-wrap: wrap; gap: .6rem; align-items: center;
}
.chip {
  padding: .55rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--line);
  font-size: .85rem; font-weight: 600; color: var(--ink-soft);
  transition: all .3s var(--ease-out);
}
.chip:hover { border-color: var(--accent-2); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.search-box {
  display: flex; align-items: center; gap: .5rem; padding: .55rem 1rem;
  border-radius: 999px; border: 1.5px solid var(--line); flex: 1; min-width: 180px; max-width: 320px;
}
.search-box svg { width: 17px; height: 17px; color: var(--ink-mute); flex-shrink: 0; }
.search-box input { border: 0; background: none; outline: 0; width: 100%; font-size: .88rem; }

/* --- Cart line item --- */
.cart-line {
  display: grid; grid-template-columns: 74px 1fr auto; gap: 1rem; align-items: center;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.cart-line-media {
  width: 74px; height: 74px; border-radius: 14px; display: grid; place-items: center;
  background: var(--cat-color, #e5e7eb); overflow: hidden;
}
.cart-line-media svg { width: 40%; height: 40%; color: #fff; }
.cart-line-media .product-photo { width: 100%; height: 100%; object-fit: cover; }
.cart-line-name { font-weight: 700; font-size: .95rem; }
.cart-line-cat { font-size: .76rem; color: var(--ink-mute); margin-top: 2px; }
.qty-stepper { display: flex; align-items: center; gap: .5rem; margin-top: .5rem; }
.qty-stepper button {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; transition: border-color .25s;
}
.qty-stepper button:hover { border-color: var(--accent-2); }
.qty-stepper span { min-width: 20px; text-align: center; font-weight: 700; font-size: .88rem; }
.cart-line-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; }
.cart-line-price { font-weight: 800; font-family: var(--display); }
.remove-btn { font-size: .78rem; color: var(--ink-mute); text-decoration: underline; text-underline-offset: 2px; }
.remove-btn:hover { color: var(--accent); }

/* --- Form --- */
.field { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.1rem; }
.field label { font-size: .84rem; font-weight: 700; }
.field input, .field select, .field textarea {
  padding: .85rem 1rem; border-radius: 12px; border: 1.5px solid var(--line);
  background: rgba(255,255,255,.6); outline: 0; transition: border-color .25s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent-2); }
.field-row { display: grid; gap: 1rem; grid-template-columns: 1fr; }

/* --- Empty state --- */
.empty-state { text-align: center; padding: 4rem 1rem; }
.empty-state svg { width: 64px; height: 64px; margin-inline: auto; color: var(--ink-mute); margin-bottom: 1.2rem; }

/* --- Toast --- */
.toast {
  position: fixed; left: 50%; bottom: 1.4rem; transform: translate(-50%, 140%);
  background: var(--ink); color: #fff; padding: .85rem 1.4rem; border-radius: 999px;
  font-size: .88rem; font-weight: 600; z-index: 900; display: flex; align-items: center; gap: .6rem;
  transition: transform .5s var(--ease-bounce); box-shadow: 0 20px 40px -14px rgba(0,0,0,.4);
}
.toast.is-visible { transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; color: var(--accent); }

/* --- Steps (checkout confirmation) --- */
.step-list { display: grid; gap: .9rem; }
.step-item { display: flex; gap: .8rem; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); }
.step-item b { color: var(--ink); }
.step-num {
  width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-size: .78rem; font-weight: 700; flex-shrink: 0;
}

/* ============================== 6. SECTIONS ============================== */

/* --- Hero --- */
.hero { position: relative; padding-top: clamp(1.6rem, 4vw, 2.6rem); padding-bottom: clamp(3rem, 7vw, 5rem); overflow: clip; }
.hero-mesh {
  position: absolute; inset: -10% -10% auto -10%; height: 120%; z-index: -1;
  background:
    radial-gradient(at 15% 25%, rgba(255,214,165,.9) 0%, transparent 52%),
    radial-gradient(at 85% 20%, rgba(189,178,255,.85) 0%, transparent 52%),
    radial-gradient(at 50% 85%, rgba(255,173,173,.8) 0%, transparent 55%);
  filter: blur(70px) saturate(150%);
  animation: meshDrift 34s ease-in-out infinite;
}
@keyframes meshDrift {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.15) rotate(8deg); }
}
.hero-inner { display: grid; gap: 2.4rem; align-items: center; padding-top: clamp(2rem, 5vw, 3.4rem); }
.hero-title { margin-block: 1rem 1.2rem; }
.hero-title em { font-style: normal; color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: .5rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 1.6rem; font-size: .82rem; color: var(--ink-soft); }
.hero-trust span { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.hero-trust svg { width: 16px; height: 16px; color: var(--success); }
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-visual .glass-card { padding: 2.2rem; width: 100%; max-width: 380px; }
.hero-float {
  animation: floatY 6s ease-in-out infinite;
}
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* --- Category grid (home) --- */
.categories { padding-block: clamp(2.5rem, 6vw, 4rem); }
.cat-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }

/* --- Product grid (generic) --- */
.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.2rem; margin-bottom: clamp(1.8rem, 4vw, 2.6rem); }
.grid-products { display: grid; gap: 1.15rem; grid-template-columns: repeat(2, 1fr); }

/* --- Benefits strip --- */
.benefits { padding-block: 1rem; }
.benefits-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.benefit { display: flex; flex-direction: column; gap: .7rem; padding: 1.4rem; }
.benefit-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(201,150,46,.14); color: var(--accent-dark); display: grid; place-items: center; }
.benefit-icon svg { width: 22px; height: 22px; }
.benefit h4 { font-size: .98rem; }
.benefit p { font-size: .84rem; color: var(--ink-soft); }

/* --- CTA banner --- */
.cta-banner {
  border-radius: 32px; padding: clamp(2.2rem, 6vw, 4rem); text-align: center; position: relative; overflow: clip;
  background: linear-gradient(150deg, var(--ink), #3a3527);
  color: #fff;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 10%, rgba(201,150,46,.35), transparent 55%);
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner .lede { color: rgba(255,255,255,.78); margin-inline: auto; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }

/* --- Catalog layout --- */
.catalog-layout { display: grid; gap: 2rem; }
.catalog-toolbar { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.8rem; }
.catalog-count { font-size: .85rem; color: var(--ink-mute); }

/* --- Cart layout --- */
.cart-layout { display: grid; gap: 2rem; }
.cart-summary { align-self: start; position: sticky; top: 100px; padding: 1.6rem; }
.summary-row { display: flex; justify-content: space-between; font-size: .92rem; color: var(--ink-soft); margin-bottom: .7rem; }
.summary-row.total { font-size: 1.15rem; font-weight: 800; color: var(--ink); margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--line); }

/* --- Contact layout --- */
.contact-layout { display: grid; gap: 2rem; }
.contact-info { display: grid; gap: 1rem; }
.contact-info-item { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem; }
.contact-info-item svg { width: 22px; height: 22px; color: var(--accent-2); flex-shrink: 0; margin-top: 2px; }
.contact-info-item h4 { font-size: .92rem; margin-bottom: .2rem; }
.contact-info-item p, .contact-info-item a { font-size: .85rem; color: var(--ink-soft); }

/* --- Footer --- */
.site-footer { padding-block: 3rem 2rem; margin-top: 3rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.footer-brand { font-family: var(--display); font-weight: 800; font-size: 1.3rem; margin-bottom: .6rem; }
.footer-col h5 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute); margin-bottom: .9rem; }
.footer-col ul { display: grid; gap: .6rem; }
.footer-col a { font-size: .88rem; color: var(--ink-soft); transition: color .25s; }
.footer-col a:hover { color: var(--accent); }
.footer-socials { display: flex; gap: .7rem; margin-top: 1rem; }
.footer-bottom { display: flex; flex-direction: column; gap: .6rem; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--ink-mute); }

/* ============================== 7. EFFECTS ============================== */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998; opacity: 0;
  transition: opacity .3s var(--ease-out); transform: translate3d(-50%,-50%,0);
}
.cursor-dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }
.cursor-ring { width: 32px; height: 32px; border: 1.5px solid rgba(201,150,46,.5); border-radius: 50%; transition: opacity .3s var(--ease-out), width .25s var(--ease-out), height .25s var(--ease-out); }
.cursor-dot.is-ready, .cursor-ring.is-ready { opacity: 1; }
.cursor-ring.is-active { width: 48px; height: 48px; border-color: var(--accent); }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

.js-only { display: none; }
.is-ready .js-only { display: block; }

/* ============================== 8. RESPONSIVE ============================== */
@media (min-width: 540px) {
  .grid-products { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 720px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .hero-inner { grid-template-columns: 1.15fr .85fr; }
  .grid-products { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
  .field-row-2 { grid-template-columns: 1fr 1fr; }
  .cart-layout { grid-template-columns: 1.6fr 1fr; }
  .catalog-layout { grid-template-columns: 220px 1fr; }
  .catalog-toolbar { flex-direction: row; align-items: center; justify-content: space-between; }
  .contact-layout { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .grid-products { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1280px) { .container { padding-inline: 2rem; } }

/* ============================== 9. REDUCED MOTION ============================== */
@media (prefers-reduced-motion: reduce) {
  .hero-mesh, .hero-float { animation: none; }
}
