/* =========================================================
   Laposse — inner pages, shop, cart
   ========================================================= */

/* Solid header (pages without a photo banner) */
body[data-header="solid"] main { padding-top: 99px; }
.site-header.solid { background: var(--red); }

/* Cart badge + drawer */
.cart { position: relative; }
.cart-count { position: absolute; top: -6px; right: -10px; background: var(--gold-2); color: #000; font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.cart-count[hidden] { display: none; }
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 90; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 380px; max-width: 100%; background: #fff; z-index: 100; display: flex; flex-direction: column; box-shadow: -8px 0 30px rgba(0,0,0,.15); }
.cart-overlay[hidden], .cart-drawer[hidden] { display: none; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; background: var(--red); color: #fff; }
.cart-head h3 { font-size: 18px; font-weight: 800; }
.cart-head button { font-size: 28px; line-height: 1; color: #fff; }
.cart-items { flex: 1; overflow-y: auto; padding: 8px 22px; }
.cart-empty { text-align: center; color: #6b7280; margin-top: 40px; }
.cart-line { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-line img { width: 72px; height: 72px; object-fit: contain; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.cl-title { font-weight: 700; font-size: 14px; }
.cl-var { font-size: 12px; color: #6b7280; }
.cl-price { font-size: 13px; margin: 2px 0 6px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 20px; }
.qty button { width: 30px; height: 28px; font-size: 16px; }
.qty span { min-width: 24px; text-align: center; font-size: 13px; }
.cart-foot { padding: 18px 22px 24px; border-top: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; font-size: 16px; margin-bottom: 4px; }
.cart-note { font-size: 12px; color: #6b7280; margin-bottom: 14px; }
.cart-checkout { width: 100%; font-size: 14px; }
.cart-checkout.disabled { opacity: .45; pointer-events: none; }

/* Page banner (photo hero on inner pages) */
.page-banner { height: 400px; background: var(--red) center/cover no-repeat; color: #fff; display: flex; align-items: center; position: relative; }
.page-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,0) 70%); }
.page-banner .container { position: relative; padding-top: 60px; }
.page-banner h1 { font-size: 40px; font-weight: 800; line-height: 1.15; }
.page-banner p { font-size: 18px; margin-top: 10px; max-width: 460px; }
.page-banner.plain { height: 300px; background: linear-gradient(120deg, #a31b21, var(--red) 60%, #d8434a); }
.page-banner.plain::before { display: none; }

.breadcrumb { font-size: 13px; color: #6b7280; padding: 22px 0; }
.breadcrumb a { color: var(--ink); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span.sep { margin: 0 8px; }

/* ---------- Shop ---------- */
.shop { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding-bottom: 90px; }
.shop-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; gap: 16px; flex-wrap: wrap; }
.shop-head h2 { margin: 0; }
.shop-head .count { font-size: 13px; color: #6b7280; }
.filters h4 { font-size: 13px; font-weight: 800; color: var(--red); text-transform: uppercase; letter-spacing: .04em; margin: 18px 0 8px; }
.filters h4:first-child { margin-top: 0; }
.filters a { display: block; font-size: 14px; padding: 5px 0; color: var(--ink); }
.filters a:hover, .filters a.active { color: var(--red); font-weight: 700; }
.search-box { width: 100%; height: 40px; border: 1px solid #c4c4c4; border-radius: 20px; padding: 0 16px; font: inherit; font-size: 14px; outline: none; }
.search-box:focus { border-color: var(--red); }
.notice { background: #fff7e6; border: 1px solid #f1d9a6; border-radius: 6px; padding: 10px 14px; font-size: 13px; margin-bottom: 18px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.p-card { border: 1px solid var(--border); border-radius: 8px; background: #fff; display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.p-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.p-card .p-img { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; padding: 14px; background: #fff; }
.p-card .p-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.p-card .p-body { padding: 0 14px 16px; display: flex; flex-direction: column; flex: 1; text-align: center; }
.p-card h3 { font-size: 14px; font-weight: 700; margin: 4px 0 4px; min-height: 40px; display: flex; align-items: center; justify-content: center; }
.p-card .price { font-size: 15px; font-weight: 600; color: var(--red); margin-bottom: 12px; }
.p-card .price s { color: #9ca3af; font-weight: 400; margin-left: 6px; font-size: 13px; }
.p-card .btn-gold { margin-top: auto; height: 34px; font-size: 11px; width: 100%; }
.p-card .sold { margin-top: auto; font-size: 12px; color: #6b7280; height: 34px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--border); border-radius: 20px; }
.skeleton { background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 37%, #f3f4f6 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; border-radius: 8px; height: 320px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.empty { text-align: center; padding: 60px 20px; color: #4b5563; }
.empty h3 { color: var(--red); font-size: 20px; margin-bottom: 8px; }
.empty .btn-red { margin-top: 18px; font-size: 12px; }

/* Product detail */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; padding-bottom: 100px; }
.pdp-gallery .main { aspect-ratio: 1 / 1; border: 1px solid var(--border); border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 28px; background: #fff; }
.pdp-gallery .main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs button { width: 70px; height: 70px; border: 1px solid var(--border); border-radius: 6px; padding: 4px; background: #fff; }
.thumbs button.active { border-color: var(--red); border-width: 2px; }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp-info h1 { font-size: 30px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.pdp-info .type { font-size: 12px; color: var(--gold-2); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.pdp-info .price { font-size: 24px; color: var(--red); font-weight: 700; margin: 14px 0 20px; }
.pdp-info .desc { font-size: 15px; line-height: 1.65; color: #374151; margin-top: 26px; }
.pdp-info .desc p { margin-bottom: 10px; }
.variant-select { margin-bottom: 18px; }
.variant-select label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.variant-select select { height: 42px; border: 1px solid #c4c4c4; border-radius: 6px; padding: 0 12px; font: inherit; min-width: 220px; }
.buy-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.buy-row .qty { height: 44px; border-radius: 22px; }
.buy-row .qty button { width: 40px; height: 42px; }
.buy-row .btn-gold { height: 44px; padding: 0 34px; font-size: 13px; }
.trust { display: flex; gap: 22px; margin-top: 26px; font-size: 12px; color: #4b5563; flex-wrap: wrap; }
.trust span::before { content: "✓ "; color: var(--red); font-weight: 700; }

/* ---------- Regalos ---------- */
.gift-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 70px; }
.gift-types .gift-card { flex: none; height: 300px; }
.section-title { text-align: center; margin: 10px 0 30px; }

/* ---------- Recetas ---------- */
.chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 34px; }
.chip { height: 36px; padding: 0 20px; border-radius: 18px; border: 1.5px solid var(--gold-2); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; color: var(--ink); }
.chip.active, .chip:hover { background: var(--gold-grad); border-color: transparent; }
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 28px; padding-bottom: 90px; }
.r-card { border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--border); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.r-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.08); }
.r-art { height: 170px; display: flex; align-items: center; justify-content: center; font-size: 64px; position: relative; }
.r-art .tag { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.92); color: var(--red); font-size: 11px; font-weight: 800; border-radius: 12px; padding: 4px 10px; text-transform: uppercase; letter-spacing: .04em; }
.r-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.r-body h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.r-body p { font-size: 13px; color: #4b5563; margin-bottom: 14px; }
.r-meta { display: flex; gap: 14px; font-size: 12px; color: #6b7280; margin-bottom: 16px; }
.r-body .btn-gold { margin-top: auto; align-self: flex-start; }
.art-choc { background: linear-gradient(135deg, #3b1f12, #6b3a1f); }
.art-cara { background: linear-gradient(135deg, #b8742a, #e3b162); }
.art-maza { background: linear-gradient(135deg, #d9b98a, #f1e2c4); }
.art-turr { background: linear-gradient(135deg, #c9a36a, #efe1bf); }

.recipe { display: grid; grid-template-columns: 340px 1fr; gap: 56px; padding-bottom: 100px; }
.recipe-side { background: var(--gray-bg); border-radius: 12px; padding: 26px; align-self: start; position: sticky; top: 20px; }
.recipe-side h3 { color: var(--red); font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.recipe-side ul { list-style: none; }
.recipe-side li { font-size: 14px; padding: 7px 0; border-bottom: 1px solid #e5e5e5; }
.recipe-side li strong { color: var(--red); }
.recipe-side .uses { margin-top: 22px; }
.recipe-side .uses a { display: block; font-size: 13px; padding: 5px 0; color: var(--red); font-weight: 600; }
.recipe-main .r-art { height: 260px; border-radius: 12px; font-size: 96px; margin-bottom: 26px; }
.recipe-main h1 { font-size: 32px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.recipe-main .lede { font-size: 16px; color: #4b5563; margin: 10px 0 18px; }
.recipe-main h2 { color: var(--red); font-size: 20px; font-weight: 800; margin: 30px 0 14px; }
.recipe-main ol { padding-left: 0; list-style: none; counter-reset: s; }
.recipe-main ol li { counter-increment: s; position: relative; padding: 0 0 18px 48px; font-size: 15px; line-height: 1.6; }
.recipe-main ol li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--gold-grad); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.tip { background: #fff7e6; border-left: 4px solid var(--gold-2); padding: 14px 18px; border-radius: 0 8px 8px 0; font-size: 14px; margin-top: 10px; }

/* ---------- Historia ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 30px 0 70px; }
.story p { font-size: 15px; line-height: 1.7; margin-bottom: 14px; }
.story img { border-radius: 14px; width: 100%; }
.story.reverse > :first-child { order: 2; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 10px 0 90px; }
.tl { border-top: 3px solid var(--red); padding-top: 16px; }
.tl strong { display: block; font-size: 26px; font-weight: 800; color: var(--red); }
.tl span { font-size: 14px; }

/* ---------- Dónde comprar ---------- */
.stores { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding-bottom: 60px; }
.store { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.store img { width: 100%; height: 220px; object-fit: cover; }
.store .s-body { padding: 22px 24px 26px; }
.store h3 { color: var(--red); font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.store p { font-size: 14px; margin-bottom: 16px; }
.retailers { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; padding: 10px 0 100px; }
.retailers span { border: 1px solid var(--border); border-radius: 10px; padding: 16px 28px; font-weight: 800; font-size: 16px; color: #374151; background: #fff; }

/* ---------- Blog / legal ---------- */
.article { max-width: 760px; margin: 0 auto; padding-bottom: 100px; }
.article img.cover { width: 100%; border-radius: 12px; margin-bottom: 28px; }
.article h1 { font-size: 34px; font-weight: 800; line-height: 1.2; margin-bottom: 10px; }
.article .meta { font-size: 13px; color: #6b7280; margin-bottom: 26px; }
.article h2 { color: var(--red); font-size: 21px; font-weight: 800; margin: 30px 0 10px; }
.article p { font-size: 16px; line-height: 1.75; margin-bottom: 14px; color: #1f2937; }
.article ul { margin: 0 0 14px 20px; list-style: disc; }
.article li { font-size: 15px; line-height: 1.7; }
.draft-note { background: #fff7e6; border: 1px solid #f1d9a6; border-radius: 6px; padding: 12px 16px; font-size: 13px; margin-bottom: 26px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 80px 16px 120px; }
.notfound h1 { font-size: 64px; color: var(--red); font-weight: 800; }
.notfound p { margin: 10px 0 26px; font-size: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .shop { grid-template-columns: 1fr; gap: 20px; }
  .filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
  .filters h4 { display: none; }
  .filters a { white-space: nowrap; border: 1px solid var(--border); border-radius: 16px; padding: 6px 14px; font-size: 13px; }
  .filters .search-box { min-width: 200px; }
  .pdp, .recipe, .story, .stores { grid-template-columns: 1fr; gap: 28px; }
  .story.reverse > :first-child { order: 0; }
  .recipe-side { position: static; }
  .gift-types { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .page-banner { height: 300px; }
  .page-banner h1 { font-size: 28px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 820px) { body[data-header="solid"] main { padding-top: 72px; } }
