.deals-page { background: var(--paper); }
.deals-page main { width: var(--page-container); margin-inline: auto; }
.deals-page section { padding: 0; }
.deals-page > main > section { padding-inline: 0; }
.deals-header, .deals-footer { width: var(--page-container); margin-inline: auto; padding-block: 16px; }
.deals-header a { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 720; }
.deals-header img { border-radius: 9px; }
.deals-page .deals-intro { padding: clamp(22px, 5vw, 58px) 0 26px; }
.deals-intro h1 { font-size: clamp(34px, 7vw, 66px); text-wrap: balance; }
.deals-intro h1 em { display: block; }
.deals-intro > p { color: var(--muted); font-size: 17px; line-height: 1.45; margin-top: 12px; }
.deals-page .stores { justify-content: flex-start; margin-top: 18px; gap: 8px; }
.deals-page .store { height: 48px; font-size: 17px; padding-inline: 10px 12px; gap: 7px; }
.deals-page .store svg { width: 20px; height: 24px; }
.deals-page .store small { font-size: 10px; }
.deals-page .deals-note { color: var(--muted); font-size: 13px; line-height: 1.5; }
.deals-page .deals-availability { margin: 12px 0 28px; }
.deals-section-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
#deals-preview { font-size: 25px; }
.deals-arrows { display: flex; gap: 7px; }
.deals-arrows[hidden] { display: none; }
.deals-arrows button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--petrol); }
.deals-arrows button::before { content: ""; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; rotate: 45deg; margin-inline-end: 3px; }
.deals-arrows .deals-back::before { rotate: 225deg; margin-inline: 3px 0; }
.deals-arrows button:disabled { opacity: .38; cursor: default; }
.deals-carousel { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; scroll-padding-inline: 2px; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: #b4c3c4 transparent; }
.deals-carousel[hidden] { display: none; }
.deals-carousel.is-dragging { scroll-snap-type: none; }
.deals-offer { flex: 0 0 clamp(176px, 52vw, 208px); min-width: 0; display: flex; flex-direction: column; scroll-snap-align: start; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: white; }
.deals-offer[hidden] { display: none; }
.deals-offer:focus-visible { outline-offset: -3px; border-radius: 20px; }
@media (pointer: fine) {
  .deals-carousel { user-select: none; }
  .deals-carousel.is-dragging, .deals-carousel.is-dragging .deals-offer { cursor: grabbing; }
}
.deal-photo { position: relative; display: grid; place-items: center; height: 126px; }
.deal-category-art { width: 92px; height: 92px; object-fit: contain; }
.deal-product-photo { position: absolute; inset: 0; width: 100%; height: 100%; padding: 10px; object-fit: contain; opacity: 0; }
.deal-product-photo.is-loaded { opacity: 1; background: white; }
.deal-badge { --badge-top: #1c9e8f; --badge-bottom: #0a6b63; --badge-depth: #054a45; --badge-text: white; position: absolute; top: 9px; right: 9px; z-index: 1; overflow: hidden; padding: 4px 9px; border: 1px solid #fff6; border-radius: 10px; background: linear-gradient(var(--badge-top), var(--badge-bottom)); color: var(--badge-text); font: 850 16px/1.2 ui-rounded, system-ui, sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; box-shadow: inset 0 1px 0 #fffb, 0 3px 0 var(--badge-depth), 0 5px 7px #122b3950; transform: rotate(-6deg); }
.deal-badge--green { --badge-top: #339e4f; --badge-bottom: #176e33; --badge-depth: #0d4d21; }
.deal-badge--gold { --badge-top: #ffcc54; --badge-bottom: #f79421; --badge-depth: #b35c08; --badge-text: #3b1f00; }
.deal-badge::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 26%, #fff7 50%, transparent 74%); transform: translateX(-110%); animation: deal-badge-shine .9s ease-in-out .25s both; pointer-events: none; }
@keyframes deal-badge-shine { to { transform: translateX(110%); } }
@media (prefers-reduced-motion: reduce) {
  .deal-badge { transform: none; }
  .deal-badge::after { animation: none; }
}
.deal-details { flex: 1; display: flex; flex-direction: column; padding: 6px 14px 14px; }
.deal-details :is(h3, h4) { min-height: 2.4em; font-size: 16px; line-height: 1.2; overflow-wrap: anywhere; }
.deal-details p { color: var(--muted); font-size: 13px; line-height: 1.35; }
.deal-details .deal-retailer { margin-top: 4px; }
.deal-details .deals-price { margin: 9px 0 4px; font-variant-numeric: tabular-nums; }
.deals-price strong { display: block; color: var(--petrol); font-size: 19px; line-height: 1.2; }
.deals-link { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.deals-page .deals-use { display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, 220px); align-items: center; gap: 28px; padding: clamp(16px, 4vw, 36px); border-radius: 20px; background: white; }
.deals-use h2 { font-size: clamp(25px, 5vw, 42px); }
.deals-use ol { padding-inline-start: 21px; line-height: 1.55; }
.deals-use li + li { margin-top: 7px; }
.deals-use img { width: 100%; height: auto; border-radius: 18px; }
.deals-footer { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--muted); }
.deals-footer a { text-decoration: underline; text-underline-offset: 3px; }

.guide-page .weekly-deals-hero { padding-block: clamp(24px, 4vw, 48px) clamp(48px, 5vw, 72px); }
.weekly-deals-hero .stores { margin-top: 16px; }
.weekly-deals-hero .hero-visual { height: 340px; }
.weekly-deals-hero .hero-visual .solo { top: 24px; }
.weekly-deals-hero .guide-hero-owl img { max-height: 340px; width: auto; max-width: 100%; }
.weekly-deals-preview { padding-block: 0 28px; }
.weekly-deals-preview .deals-offer { flex-basis: clamp(176px, 52vw, 218px); }
.weekly-deals-preview .deals-note { color: var(--muted); font-size: 13px; line-height: 1.5; }
.weekly-deals-preview .deals-availability { margin-top: 8px; }
.deal-details .deal-terms { margin-top: 3px; overflow-wrap: anywhere; }
/* Every offer of one shop, from the server (backend/finudy/shop_deal_pages.py). */
.shop-deals { padding-block: 0 clamp(32px, 5vw, 56px); }
.shop-deals .deals-note { color: var(--muted); font-size: 14px; line-height: 1.5; max-width: 75ch; margin-top: 8px; }
.shop-deals-index ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 16px 0 0; list-style: none; }
.shop-deals-index a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: white; font-size: 14px; }
.shop-deals h3 { font-size: clamp(21px, 3vw, 27px); scroll-margin-top: 90px; }
.shop-deals-row .deals-section-header { margin-top: 32px; }
.shop-deals-row h3 { margin: 0; }
.shop-deals h4 { margin: 0; overflow-wrap: break-word; hyphens: auto; }

@media (max-width: 860px) {
  .weekly-deals-hero .hero-visual { display: none; }
}

@media (max-width: 570px) {
  .deals-page .deals-use { grid-template-columns: 1fr; }
  .deals-use img { width: min(100%, 210px); margin-inline: auto; }
}
