/* ============================================================
   Pizza73 Marketplace — Page & component specific styles
   Class names here are kept in sync with catalog.js output and
   the page markup (category-card / product-card / steps-grid …).
   ============================================================ */

/* ---------- Shared section bits ---------- */
.section-alt { background: var(--surface-2); }
.narrow { max-width: 820px; margin-inline: auto; }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head.center, .section-head.center .eyebrow { margin-inline: auto; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-block: 0.6rem; }
.section-head p { color: var(--text-muted); }
.mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; } .mb-6 { margin-bottom: 1.5rem; }
.lede { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--text-muted); max-width: 56ch; margin-top: 1rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 7vw, 5.5rem); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 520px at 88% -12%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 55%),
    radial-gradient(720px 520px at -8% 115%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 55%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.04; margin-block: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.02rem; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }
.chip { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.9rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 0.84rem; font-weight: 600; box-shadow: var(--shadow-sm); }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: #57c073; box-shadow: 0 0 0 4px rgba(87,192,115,0.18); }

.hero-media { position: relative; }
.hero-media > img {
  width: 100%; border-radius: 50%; aspect-ratio: 1; object-fit: cover;
  box-shadow: var(--shadow-lg); border: 10px solid var(--surface);
  animation: spinIn 1s var(--ease) both;
}
@keyframes spinIn { from { transform: rotate(-22deg) scale(0.86); opacity: 0; } to { transform: rotate(0) scale(1); opacity: 1; } }
.hero-stats {
  position: absolute; right: -0.5rem; bottom: 1rem; display: flex; gap: 1.4rem;
  padding: 1rem 1.3rem; border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-stats .stat { display: flex; flex-direction: column; gap: 0.1rem; }
.hero-stats .stat strong { font-family: var(--font-head); font-size: 1.7rem; line-height: 1; color: var(--primary); }
.hero-stats .stat span { display: flex; flex-direction: column; }
.hero-stats .stat b { font-size: 0.82rem; font-weight: 700; }
.hero-stats .stat i { font-size: 0.72rem; color: var(--text-muted); font-style: normal; }

/* ---------- Category cards ---------- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.1rem; }
.category-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3.4; box-shadow: var(--shadow-sm); }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.category-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,15,12,0.86), rgba(20,15,12,0.04) 62%); }
.category-card:hover img { transform: scale(1.08); }
.category-overlay { position: absolute; left: 1rem; right: 1rem; bottom: 0.9rem; z-index: 2; color: #fff; }
.category-overlay h3 { color: #fff; font-size: 1.15rem; }
.category-overlay p { font-size: 0.82rem; opacity: 0.86; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 1.4rem; }
.product-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease); }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.product-media { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.06); }
.card-badges { position: absolute; top: 0.7rem; left: 0.7rem; z-index: 2; display: flex; gap: 0.35rem; flex-wrap: wrap; }
.badge-popular { background: color-mix(in srgb, var(--primary) 16%, transparent); color: var(--red-dark); }
.product-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.product-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.6rem; }
.product-body h3 { font-family: var(--font-body); font-size: 1.04rem; font-weight: 700; }
.product-body h3 a:hover { color: var(--primary); }
.product-desc { font-size: 0.86rem; color: var(--text-muted); margin-top: 0.35rem; flex: 1; }
.rating { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--accent); font-weight: 700; font-size: 0.82rem; flex-shrink: 0; }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; }
.price { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; color: var(--text); }
.price-old { font-size: 0.9rem; color: var(--text-muted); text-decoration: line-through; margin-right: 0.4rem; }

/* ---------- Steps / how it works ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; }
.step-card { padding: 1.6rem; border-radius: var(--radius); position: relative; }
.step-num { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--red-dark); font-family: var(--font-head); font-size: 1.3rem; margin-bottom: 0.9rem; }
.step-card h3 { font-family: var(--font-body); font-size: 1.1rem; margin-bottom: 0.4rem; }
.step-card p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Accordion (home / generic) ---------- */
.accordion { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.acc-item + .acc-item { border-top: 1px solid var(--border); }
.acc-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.3rem; text-align: left; font-weight: 700; font-family: var(--font-head); font-size: 1.02rem; }
.acc-ico { position: relative; width: 22px; height: 22px; flex-shrink: 0; }
.acc-ico::before, .acc-ico::after { content: ""; position: absolute; background: var(--primary); border-radius: 2px; transition: transform 0.3s var(--ease); }
.acc-ico::before { top: 10px; left: 0; width: 22px; height: 2.5px; }
.acc-ico::after { left: 10px; top: 0; width: 2.5px; height: 22px; }
.acc-item.open .acc-ico::after { transform: rotate(90deg); opacity: 0; }
.acc-a { max-height: 0; overflow: hidden; transition: max-height 0.34s var(--ease); }
.acc-item.open .acc-a { max-height: 320px; }
.acc-a p { padding: 0 1.3rem 1.2rem; color: var(--text-muted); }

/* ---------- Newsletter ---------- */
.newsletter { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--charcoal); color: #fff; padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.newsletter::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 320px at 88% 10%, rgba(240,138,36,0.22), transparent 60%); }
.newsletter h2 { color: #fff; position: relative; }
.newsletter p { color: #cdbfb0; position: relative; max-width: 46ch; margin-top: 0.5rem; }
.newsletter-form { position: relative; display: flex; gap: 0.6rem; flex-wrap: wrap; min-width: 300px; }
.newsletter-form input { flex: 1; min-width: 200px; padding: 0.85rem 1rem; border-radius: 999px; background: rgba(255,255,255,0.10); border: 1.5px solid rgba(255,255,255,0.2); color: #fff; }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.6); }

/* ---------- Catalog toolbar / filters ---------- */
.catalog-layout { display: grid; grid-template-columns: 250px 1fr; gap: 2rem; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 1rem); padding: 1.3rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.filters h3 { font-family: var(--font-body); font-size: 0.95rem; font-weight: 700; margin-bottom: 0.8rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; margin-bottom: 1.5rem; }
.search-box { position: relative; flex: 1; min-width: 220px; }
.search-box svg { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-muted); pointer-events: none; }
.search-box input { padding-left: 2.6rem; }
.result-count { font-size: 0.88rem; color: var(--text-muted); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.6rem; }
.filter-pill { padding: 0.5rem 1.05rem; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface); font-size: 0.88rem; font-weight: 600; transition: all 0.16s; }
.filter-pill:hover { border-color: var(--primary); color: var(--primary); }
.filter-pill.active { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.gallery-main { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1; box-shadow: var(--shadow); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.detail-info h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.detail-price { font-family: var(--font-head); font-size: 2rem; color: var(--primary); margin-block: 0.8rem; }
.ingredient-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ingredient-list li { padding: 0.4rem 0.85rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 0.85rem; }
.nutrition { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
.nutrition .nut { text-align: center; padding: 1rem 0.6rem; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); }
.nutrition .nut strong { display: block; font-family: var(--font-head); font-size: 1.3rem; color: var(--text); }
.nutrition .nut span { font-size: 0.76rem; color: var(--text-muted); }
.qty-row { display: flex; align-items: center; gap: 1rem; margin-block: 1.4rem; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: 999px; overflow: hidden; }
.qty button { width: 42px; height: 42px; display: grid; place-items: center; font-size: 1.2rem; font-weight: 700; transition: background 0.16s; }
.qty button:hover { background: var(--surface-2); color: var(--primary); }
.qty input { width: 46px; text-align: center; border: 0; background: transparent; font-weight: 700; }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.cart-item { display: grid; grid-template-columns: 90px 1fr auto; gap: 1rem; padding: 1.1rem; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.cart-item + .cart-item { margin-top: 0.9rem; }
.cart-item img { width: 90px; height: 90px; border-radius: 12px; object-fit: cover; }
.cart-item h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; }
.cart-item-actions { display: flex; align-items: center; gap: 1rem; }
.remove-btn { color: var(--text-muted); transition: color 0.16s; display: grid; place-items: center; }
.remove-btn:hover { color: var(--red); }
.summary { position: sticky; top: calc(var(--header-h) + 1rem); padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.summary-row { display: flex; justify-content: space-between; padding: 0.5rem 0; font-size: 0.94rem; }
.summary-row.total { border-top: 1px solid var(--border); margin-top: 0.6rem; padding-top: 1rem; font-family: var(--font-head); font-size: 1.4rem; }
.coupon-row { display: flex; gap: 0.5rem; margin-block: 1rem; }
.coupon-row .input { flex: 1; }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.checkout-card { padding: 1.6rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ---------- About ---------- */
.about-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-hero img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.value-card { padding: 1.6rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.value-card .v-ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--red); margin-bottom: 1rem; }
.value-card .v-ico svg { width: 24px; height: 24px; }
.timeline { max-width: 720px; margin-inline: auto; }
.timeline li { position: relative; padding: 0 0 2rem 2.2rem; border-left: 2px solid var(--border); }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--bg); }
.timeline .yr { font-family: var(--font-head); color: var(--primary); font-weight: 600; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.contact-info-card { padding: 1.4rem; display: flex; gap: 1rem; align-items: flex-start; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.contact-info-card .ci-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); flex-shrink: 0; }
.contact-info-card .ci-ico svg { width: 20px; height: 20px; }
.notice { padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); font-size: 0.9rem; display: flex; gap: 0.7rem; align-items: flex-start; }
.notice svg { width: 20px; height: 20px; color: var(--red); flex-shrink: 0; margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 0.2rem; text-align: left; font-weight: 700; font-size: 1.04rem; font-family: var(--font-head); }
.faq-q .pm { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); transition: background 0.2s, transform 0.3s; font-size: 1.2rem; line-height: 1; }
.faq-item.open .faq-q .pm { background: var(--primary); color: #fff; transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.34s var(--ease); }
.faq-a-inner { padding: 0 0.2rem 1.3rem; color: var(--text-muted); }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem; }
.blog-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.blog-card .blog-media { aspect-ratio: 16/10; overflow: hidden; }
.blog-card .blog-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.blog-card:hover .blog-media img { transform: scale(1.05); }
.blog-body { padding: 1.3rem; }
.blog-body .b-meta { font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.04em; text-transform: uppercase; }
.blog-body h3 { font-size: 1.2rem; margin-block: 0.5rem; }
.blog-body h3 a:hover { color: var(--primary); }
.read-more { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--primary); font-weight: 700; font-size: 0.9rem; margin-top: 0.8rem; }
.read-more svg { width: 16px; height: 16px; transition: transform 0.2s; }
.read-more:hover svg { transform: translateX(4px); }

/* ---------- Legal / prose ---------- */
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2rem; margin-bottom: 0.8rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6rem; margin-bottom: 0.5rem; font-family: var(--font-body); }
.prose p, .prose li { color: var(--text); line-height: 1.75; margin-bottom: 0.9rem; }
.prose ul { padding-left: 1.3rem; list-style: disc; }
.prose ul li { margin-bottom: 0.4rem; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.legal-meta { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 2rem; }
.toc { padding: 1.3rem 1.5rem; margin-bottom: 2rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.toc h4 { font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.7rem; }
.toc a { display: block; padding: 0.25rem 0; color: var(--primary); font-size: 0.92rem; }

/* ---------- Page header band ---------- */
.page-band { position: relative; padding-block: clamp(2.4rem, 6vw, 4rem); background: var(--surface-2); border-bottom: 1px solid var(--border); overflow: hidden; }
.page-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 300px at 90% -30%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%); }
.page-band h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); position: relative; }
.page-band p { color: var(--text-muted); max-width: 60ch; margin-top: 0.6rem; position: relative; }

/* ---------- 404 ---------- */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 3rem 1rem; }
.error-code { font-family: var(--font-head); font-size: clamp(5rem, 18vw, 11rem); line-height: 0.9; color: var(--primary); }

/* ---------- Search ---------- */
.big-search { position: relative; max-width: 620px; margin-inline: auto; }
.big-search input { width: 100%; padding: 1.1rem 1.2rem 1.1rem 3.2rem; font-size: 1.05rem; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface); }
.big-search svg { position: absolute; left: 1.2rem; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--text-muted); }

/* ---------- Empty ---------- */
.empty-state { text-align: center; padding: 3.5rem 1rem; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { position: relative; padding-block: clamp(2.6rem, 6vw, 4.2rem); background: var(--surface-2); border-bottom: 1px solid var(--border); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(720px 320px at 88% -28%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%); }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin-top: 0.6rem; }
.bg-cream { background: var(--surface-2); }
.pill { display: inline-block; padding: 0.35rem 0.85rem; border-radius: 999px; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--red-dark); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- Search page ---------- */
.search-box-lg { position: relative; max-width: 600px; margin-top: 1.6rem; }
.search-box-lg input { width: 100%; padding: 1.05rem 1.2rem 1.05rem 3.2rem; font-size: 1.05rem; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); }
.search-box-lg svg { position: absolute; left: 1.2rem; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--text-muted); }
.search-count { margin-top: 1rem; font-weight: 600; }
.faq-search { margin-bottom: 1.6rem; }
.faq-search input { width: 100%; padding: 0.9rem 1.2rem; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface); }

/* ---------- Language page ---------- */
.lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.6rem; }
.lang-card { display: flex; align-items: center; gap: 1rem; padding: 1.4rem; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--surface); text-align: left; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.lang-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.lang-card.active { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.lang-flag { width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; background: var(--charcoal); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.lang-info { display: flex; flex-direction: column; gap: 0.15rem; flex: 1; }
.lang-info strong { font-size: 1.1rem; }
.lang-info .muted { font-size: 0.86rem; }
.lang-check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; position: relative; transition: all 0.2s; }
.lang-card.active .lang-check { border-color: var(--primary); background: var(--primary); }
.lang-card.active .lang-check::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.lang-current { margin-top: 0.5rem; }

/* ---------- Blog (dynamic) ---------- */
.blog-card-img { aspect-ratio: 16/10; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 1.3rem; }
.blog-card-body h3 { font-size: 1.2rem; margin-block: 0.6rem; }
.blog-card:hover .blog-card-body h3 { color: var(--primary); }
.blog-meta { display: flex; gap: 1rem; font-size: 0.8rem; color: var(--text-muted); margin-top: 0.8rem; }
.article-hero .back-link { display: inline-block; color: var(--primary); font-weight: 600; font-size: 0.9rem; margin-bottom: 1rem; }
.article-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 2rem; aspect-ratio: 16/9; }
.article-img img { width: 100%; height: 100%; object-fit: cover; }
.article-body p { line-height: 1.8; margin-bottom: 1.2rem; color: var(--text); font-size: 1.04rem; }

/* ---------- Cookie settings page ---------- */
.cookie-settings-card { padding: 0.5rem 1.5rem; }
.cookie-setting-row { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 1.2rem 0; border-bottom: 1px solid var(--border); }
.cookie-setting-row:last-of-type { border-bottom: 0; }
.cookie-setting-row strong { display: block; }
.cookie-setting-row small { display: block; margin-top: 0.2rem; max-width: 48ch; }
.cookie-setting-actions { padding: 1.3rem 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
}
@media (max-width: 620px) {
  .lang-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero-grid, .product-detail, .about-hero, .contact-layout { grid-template-columns: 1fr; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 420px; margin-inline: auto; }
  .hero-stats { right: 0; }
}
@media (max-width: 620px) {
  .form-row { grid-template-columns: 1fr; }
  .nutrition { grid-template-columns: repeat(2, 1fr); }
  .cart-item { grid-template-columns: 70px 1fr; }
  .cart-item img { width: 70px; height: 70px; }
  .cart-item-actions { grid-column: 1 / -1; justify-content: space-between; }
  .hero-stats { position: static; margin-top: 1.5rem; }
}
