/* Shared Products Styles: landing + categories */

/* Theme */
:root {
  --choco-900: #2c1810;
  --choco-800: #3b2217;
  --choco-700: #5D4037;
  --choco-600: #8D6E63;
  --cream-50: #F5F5F0;
  --gold-500: #FFB300;
  --gold-400: #d4a574;
}

/* Page fade-in */
.page-enter { opacity: 0; transform: translateY(6px); }
.page-enter-active { opacity: 1; transform: translateY(0); transition: opacity .4s ease, transform .4s ease; }

/* Sticky header padding offset helper */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Hero (landing) */
.hero-landing {
  position: relative; overflow: hidden; border-radius: 18px; padding: 40px 22px; margin: 18px 0 16px;
  background: radial-gradient(900px 500px at 10% -10%, rgba(212,165,116,.15), transparent 60%),
              radial-gradient(700px 400px at 100% 0%, rgba(255,179,0,.12), transparent 60%),
              linear-gradient(135deg, #f7f4ef 0%, #fff 100%);
}
.hero-landing .title { font-size: 32px; font-weight: 900; color: var(--choco-900); }
.hero-landing .subtitle { color: var(--choco-600); }
.parallax-deco { position: absolute; inset: -10%; pointer-events: none; animation: slowSpin 36s linear infinite; filter: blur(40px); opacity: .5; }
@keyframes slowSpin { to { transform: rotate(360deg); } }

/* Category grid (landing) */
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1200px) { .category-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
.category-card { position: relative; border-radius: 16px; overflow: hidden; cursor: pointer; background: linear-gradient(135deg,#f7f4ef,#fff); border: 1px solid #eee1cf; box-shadow: 0 8px 28px rgba(0,0,0,.06); transition: transform .2s ease, box-shadow .2s ease; }
.category-card:hover { transform: translateY(-3px); box-shadow: 0 16px 44px rgba(139,94,52,.18); }
.category-card .cat-media { width: 100%; aspect-ratio: 4/3; overflow: hidden; display: grid; }
.category-card .cat-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform .45s ease; display: block; }
.category-card:hover .cat-media img { transform: scale(1.08); }
.category-card .cat-label { padding: 10px 12px; font-weight: 900; color: var(--choco-900); display: flex; align-items: center; justify-content: space-between; }
.category-card .cat-label span { color: var(--choco-600); font-weight: 700; font-size: 12px; }
.cat-stagger { animation: rise .5s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* Category page header */
.section-header { margin: 18px 0 12px; }
.section-header .eyebrow { color: #b07d46; font-weight: 800; text-transform: uppercase; letter-spacing: .18em; font-size: 12px; }
.section-header h1 { margin: 6px 0; font-size: 30px; color: var(--choco-900); position: relative; display: inline-block; }
.section-header h1::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; border-radius: 3px; background: var(--gold-400); box-shadow: 0 6px 12px rgba(212,165,116,.4); }
.typewriter { display: inline-block; overflow: hidden; white-space: nowrap; border-right: 2px solid var(--gold-400); animation: typing 3s steps(30, end), blink .8s step-end infinite; }
@keyframes typing { from { width: 0; } to { width: 100%; } }
@keyframes blink { 50% { border-color: transparent; } }
.breadcrumb { font-size: 13px; color: var(--choco-600); margin-bottom: 6px; }

/* Filters */
.filters-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 16px; }
@media (max-width: 920px) { .filters-wrap { grid-template-columns: 1fr; } }
.filters { background: #fff; border: 1px solid #eee1cf; border-radius: 14px; padding: 12px; box-shadow: 0 8px 28px rgba(0,0,0,.06); }
.filter-group { margin-bottom: 12px; }
.filter-group h4 { margin: 0 0 8px; color: var(--choco-900); font-size: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid #eadbc7; border-radius: 999px; margin: 4px; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.chip input { appearance: none; width: 12px; height: 12px; border-radius: 3px; border: 1px solid #eadbc7; position: relative; }
.chip input:checked { background: var(--gold-400); border-color: var(--gold-400); }
.chip:hover { background: #faf6ee; border-color: var(--gold-400); }
.select { width: 100%; padding: 10px 12px; border: 1px solid #eadbc7; border-radius: 10px; }
.range { padding: 8px 0; }
.range .row { display: flex; align-items: center; gap: 10px; }
.range input[type="range"] { width: 100%; }
.btn-clear { background: transparent; border: 1px solid #eadbc7; color: var(--choco-600); border-radius: 10px; padding: 8px 12px; cursor: pointer; font-weight: 800; }
.btn-clear:hover { border-color: var(--gold-400); color: var(--choco-900); }

/* Sorting + count */
.toolbar { display: flex; justify-content: space-between; align-items: center; margin: 10px 0; }
.toolbar .count { color: var(--choco-600); }
.toolbar .sorter select { padding: 8px 10px; border: 1px solid #eadbc7; border-radius: 10px; }

/* Grid + Cards */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 980px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .product-grid { grid-template-columns: 1fr; } }
.card { position: relative; overflow: hidden; border-radius: 16px; background: linear-gradient(180deg,#ffffff,#fbf7f2); border: 1px solid #eee1cf; box-shadow: 0 8px 28px rgba(0,0,0,.06); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(139,94,52,.18); }
.card .media { width: 100%; aspect-ratio: 4/3; overflow: hidden; position: relative; background: #f7f4ef; }
.card .media img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.02); transition: transform .4s ease; }
.card:hover .media img { transform: scale(1.08); }
.card .badge { position: absolute; top: 10px; left: 10px; background: rgba(212,165,116,.92); color: #1a0f0a; padding: 6px 10px; border-radius: 999px; font-weight: 800; font-size: 12px; }
.card .body { padding: 12px; display: grid; gap: 6px; }
.card .title { font-weight: 900; color: var(--choco-900); }
.card .desc { font-style: italic; color: var(--choco-600); }
.card .meta { font-size: 12px; color: var(--choco-600); }
.stars { color: #f5a623; text-shadow: 0 2px 6px rgba(0,0,0,.1); }
.price { font-weight: 900; color: var(--choco-900); }
.qty { display: inline-flex; align-items: center; border: 1px solid #eadbc7; border-radius: 10px; overflow: hidden; }
.qty button { width: 30px; height: 30px; border: none; background: transparent; cursor: pointer; font-weight: 900; }
.qty input { width: 40px; text-align: center; border: none; background: transparent; }
.flavor { padding: 6px 8px; border: 1px solid #eadbc7; border-radius: 8px; }
.actions { display: flex; gap: 8px; }
.btn-cart { background: var(--choco-700); color: #fff; border: none; border-radius: 10px; padding: 8px 12px; font-weight: 800; cursor: pointer; }
.btn-cart:hover { background: var(--choco-800); box-shadow: 0 0 0 4px rgba(93,64,55,.15); }
.btn-fav { background: transparent; border: 1px solid #eadbc7; border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.btn-fav.active { border-color: var(--gold-400); box-shadow: 0 0 0 4px rgba(212,165,116,.15); }

/* Animations */
.fade-scale-enter { opacity: 0; transform: scale(.96); }
.fade-scale-enter-active { opacity: 1; transform: scale(1); transition: opacity .35s ease, transform .35s ease; }
.fade-scale-exit { opacity: 1; transform: scale(1); }
.fade-scale-exit-active { opacity: 0; transform: scale(.98); transition: opacity .25s ease, transform .25s ease; }
.stagger { animation: rise .5s ease both; }

/* Loader */
.skeleton { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sk-card { height: 220px; border-radius: 16px; background: linear-gradient(90deg, #f3ede6 25%, #ede6dd 37%, #f3ede6 63%); background-size: 400% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* Toast */
.toast { position: fixed; right: 16px; bottom: 16px; background: #1a0f0a; color: #fff; padding: 10px 14px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.3); opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s; z-index: 9999; }
.toast.show { opacity: 1; transform: translateY(0); }


