/* Public catalog (/tienda) — builds on landing.css (tokens, nav, buttons,
   footer). Mobile first; wide from 960px. */

.nav-links a[aria-current="page"] { color: var(--navy); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.sf-cart { position: relative; width: 42px; height: 42px; border-radius: 50%; background: var(--sun-soft); color: var(--navy-deep); display: grid; place-items: center; transition: transform 0.25s var(--bounce), background 0.2s ease; }
.sf-cart:hover { background: var(--sun); transform: rotate(-8deg); }
.sf-cart.bump { animation: cartbump 0.5s var(--bounce); }
@keyframes cartbump { 30% { transform: scale(1.25) rotate(-10deg); } 100% { transform: none; } }
.sf-cart-badge[hidden], .sf-toast[hidden] { display: none; }
.sf-cart-badge { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--coral); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }

/* ---------- breadcrumbs ---------- */
.sf-crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 13px; color: var(--ink-soft); }
.sf-crumbs li + li::before { content: "›"; margin-right: 4px; color: var(--pg-ink-faint); }
.sf-crumbs a { text-decoration: none; color: var(--ink-soft); font-weight: 600; }
.sf-crumbs a:hover { color: var(--navy); text-decoration: underline; }
.sf-crumbs [aria-current] { color: var(--pg-ink-faint); }

/* ---------- list hero ---------- */
.sf-hero { padding: 26px 0 30px; background: linear-gradient(180deg, #fff, var(--cream)); }
.sf-hero h1 { font-size: clamp(38px, 8vw, 64px); font-weight: 800; color: var(--navy-deep); margin-top: 16px; }
.sf-intro { color: var(--ink-soft); font-size: 17px; margin: 10px 0 0; max-width: 620px; }
.sf-ship { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sf-ship li { font-size: 13.5px; font-weight: 600; color: var(--navy-deep); background: #fff; padding: 7px 13px; border-radius: 999px; box-shadow: 0 6px 16px -12px rgba(22, 35, 43, 0.5); }
.sf-ship .sf-ship-free { background: var(--mint); color: #08707a; }

/* ---------- filters ---------- */
.sf-catalog { padding-top: 22px; padding-bottom: 50px; }
.sf-filters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.sf-filters::-webkit-scrollbar { display: none; }
.sf-chip { flex-shrink: 0; text-decoration: none; font-family: var(--font-fun); font-weight: 700; font-size: 15px; padding: 8px 16px 6px; border-radius: 999px; background: #fff; color: var(--ink-soft); border: 2px solid #e7edf0; transition: transform 0.25s var(--bounce), background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.sf-chip:hover { transform: translateY(-2px) rotate(-1deg); border-color: var(--sun); color: var(--navy); }
.sf-chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.sf-species { display: flex; gap: 6px; margin-top: 6px; }
.sf-species-chip { text-decoration: none; font-size: 13px; font-weight: 600; color: var(--pg-ink-faint); padding: 5px 10px; border-radius: 9px; }
.sf-species-chip:hover { color: var(--navy); }
.sf-species-chip.active { background: var(--mint); color: #08707a; }

/* ---------- grid + cards ---------- */
.sf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.sf-card { background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 16px 34px -26px rgba(22, 35, 43, 0.55); border: 2px solid #f1f4f6; transition: transform 0.35s var(--bounce), box-shadow 0.3s ease; }
.sf-card:hover { transform: translateY(-6px) rotate(-0.5deg); box-shadow: 0 26px 46px -28px rgba(22, 35, 43, 0.6); }
.sf-card:nth-child(even):hover { transform: translateY(-6px) rotate(0.5deg); }
.sf-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.sf-card-media, .sf-product-media { position: relative; aspect-ratio: 5 / 4; background: linear-gradient(135deg, var(--sun-soft), var(--mint)); display: grid; place-items: center; overflow: hidden; }
.sf-card-media img, .sf-product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.sf-card:hover .sf-card-media img { transform: scale(1.06); }
.soldout img, .soldout .sf-placeholder { opacity: 0.45; filter: grayscale(0.4); }
.sf-placeholder { font-size: 54px; }
.sf-badge { position: absolute; top: 10px; left: 10px; background: var(--navy); color: #fff; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; transform: rotate(-4deg); }
.sf-badge-offer { background: var(--coral); }
.sf-card-body { padding: 12px 14px 16px; }
.sf-brand { margin: 0; font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--pg-ink-faint); }
.sf-name { font-family: var(--font-fun); font-size: 18px; font-weight: 700; color: var(--navy-deep); line-height: 1.15; margin-top: 2px; }
.sf-pres { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-soft); }
.sf-price { margin: 8px 0 0; font-family: var(--font-fun); font-weight: 800; font-size: 22px; color: var(--navy-deep); line-height: 1; }
.sf-price s, .sf-price-lg s { font-family: var(--font-body); font-weight: 500; font-size: 13px; color: var(--pg-ink-faint); }
.sf-note { margin: 6px 0 0; font-size: 12px; color: var(--pg-ink-faint); font-weight: 600; }
.sf-note-low { color: #b34322; }
.sf-note-rx { margin-top: 10px; color: #7a2d16; }
.sf-empty { margin: 40px 0; text-align: center; color: var(--ink-soft); }
.sf-empty a { color: var(--navy); font-weight: 700; }

/* ---------- product page ---------- */
.sf-product { padding-top: 22px; padding-bottom: 40px; }
.sf-product-grid { display: grid; gap: 26px; margin-top: 16px; }
.sf-product-media { border-radius: 30px; box-shadow: 0 30px 60px -36px rgba(15, 76, 115, 0.6); border: 5px solid #fff; }
.sf-product-media .sf-placeholder { font-size: 96px; }
.sf-product-info .eyebrow { text-decoration: none; }
.sf-brand-lg { margin-top: 16px; font-size: 12px; }
.sf-product-info h1 { font-size: clamp(32px, 6vw, 48px); font-weight: 800; color: var(--navy-deep); margin-top: 4px; }
.sf-pres-lg { margin: 6px 0 0; font-size: 16px; color: var(--ink-soft); font-weight: 500; }
.sf-price-lg { margin: 18px 0 0; font-family: var(--font-fun); font-weight: 800; font-size: 44px; color: var(--navy-deep); line-height: 1; }
.sf-price-lg small { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.sf-price-lg s { font-size: 16px; margin-left: 6px; }
.sf-facts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; font-size: 15px; color: var(--ink-soft); }
.sf-facts-low { color: #b34322; font-weight: 600; }
.sf-buy { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.sf-buy .btn-fun { flex: 1 1 220px; }
.sf-buy .btn-soft { flex: 0 1 auto; }
.sf-buy-note { margin: 10px 0 0; font-size: 13px; color: var(--pg-ink-faint); }
.sf-rx { margin-top: 22px; background: var(--coral-soft); border-radius: 20px; padding: 16px 18px; color: #7a2d16; }
.sf-rx p { margin: 4px 0 0; font-size: 14.5px; }
.sf-rx a { color: #7a2d16; font-weight: 700; }
.sf-product-info .sf-ship { margin-top: 22px; }
.sf-product-info .sf-ship li { background: var(--cream); box-shadow: none; }
.sf-desc { margin-top: 40px; max-width: 760px; }
.sf-desc h2, .sf-related h2 { font-size: clamp(26px, 4.5vw, 36px); font-weight: 800; color: var(--navy-deep); }
.sf-desc p { white-space: pre-line; color: var(--ink-soft); font-size: 16px; }
.sf-related { padding-bottom: 30px; }

/* ---------- CTA + 404 ---------- */
.sf-cta { margin: 10px 0 70px; text-align: center; border-radius: 34px; padding: 44px 22px; background: var(--sun-soft); }
.sf-cta h2 { font-size: clamp(26px, 4.6vw, 40px); font-weight: 800; color: var(--navy-deep); }
.sf-cta p { color: var(--ink-soft); font-size: 16.5px; margin: 12px auto 22px; max-width: 540px; }
.sf-404 { text-align: center; padding: 80px 20px 100px; }
.sf-404-emoji { font-size: 70px; display: block; animation: float 4s ease-in-out infinite; }
.sf-404 h1 { font-size: clamp(32px, 6vw, 52px); font-weight: 800; color: var(--navy-deep); margin-top: 14px; }
.sf-404 p { color: var(--ink-soft); font-size: 17px; margin: 12px auto 26px; max-width: 460px; }

/* ---------- toast ---------- */
.sf-toast { position: fixed; left: 16px; right: 16px; bottom: 22px; margin: 0 auto; width: fit-content; max-width: 520px; z-index: 60; display: flex; align-items: center; gap: 14px; background: var(--navy-deep); color: #fff; padding: 12px 12px 12px 18px; border-radius: 22px; box-shadow: 0 18px 36px -14px rgba(8, 46, 71, 0.7); font-weight: 600; font-size: 14.5px; line-height: 1.35; animation: toastin 0.35s var(--bounce); }
.sf-toast span { flex: 1; min-width: 0; }
.sf-toast a { flex-shrink: 0; white-space: nowrap; background: var(--sun); color: var(--navy-deep); text-decoration: none; font-family: var(--font-fun); font-weight: 700; padding: 7px 14px 5px; border-radius: 999px; }
@keyframes toastin { from { opacity: 0; transform: translateY(14px); } }

@media (max-width: 400px) {
  .nav-actions .btn-fun { display: none; }
}

@media (min-width: 720px) {
  .sf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
}

@media (min-width: 960px) {
  .sf-hero { padding: 40px 0 40px; }
  .sf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
  .sf-product-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
  .sf-product-media { position: sticky; top: 90px; }
  .sf-cta { padding: 60px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
