/* Vitrin — P1 "built-in app" package (announcement bar, trust badges, cart drawer, badges, wishlist, quick view,
   sticky add-to-cart, zoom, swatches, info tabs, quantity breaks, bundle offer, newsletter, order progress).
   Values follow the P1Storefront design; colours use the theme tokens from site.css. */
:root { --p1-soft: #FBF8F3; }

/* Announcement bar */
.announce-nav { background: none; border: 0; color: inherit; font-size: 18px; line-height: 1; min-width: 32px; min-height: 28px; cursor: pointer; border-radius: 6px; opacity: .85; }

/* Product card: badges stacked top-left, heart top-right, quick view at the bottom of the image */
.product-card .card-badges .badge { position: static; font-size: 12px; padding: 3px 8px; border-radius: 6px; }
.qv-btn { position: absolute; left: 10px; right: 10px; bottom: 10px; min-height: 38px; font-size: 15px; background: rgba(255,255,255,.95); opacity: 0; transform: translateY(4px); transition: opacity .2s ease, transform .2s ease; }
@media (hover: none) { .qv-btn { opacity: 1; transform: none; } }
/* Phones: no quick view on the card (it covered the lower part of the small image); the card opens the product page. */
@media (max-width: 720px) { .qv-btn { display: none; } }
@media (prefers-reduced-motion: reduce) { .qv-btn { transition: none; } }

/* Drawer + modal shells */
.drawer-backdrop, .modal-backdrop { position: absolute; inset: 0; background: rgba(30,27,24,.45); }
/* Sections keep their height and the panel scrolls (otherwise suggestions collapse to nothing). */
.drawer-head h2 { font-size: 20px; font-weight: 800; }
.ship-bar { height: 8px; border-radius: 9px; background: var(--line); overflow: hidden; }
.ship-bar span { display: block; height: 8px; border-radius: 9px; background: var(--brand); transition: width .3s ease; }
.drawer-line .thumb { width: 64px; height: 64px; border-radius: 12px; flex-shrink: 0; }
/* The line total never breaks inside the amount; under pressure it moves to its own right-aligned line. */
.mini-qty { display: inline-flex; align-items: center; border: 1px solid var(--field); border-radius: 999px; margin: 0; }
.mini-qty button { width: 36px; height: 36px; border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--ink); border-radius: 999px; }
.sg-thumb { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; }
/* Display currency other than TL: charged in TL + approximate amount (Shared/_ChargeCurrencyNote). */
@media (prefers-reduced-motion: reduce) { .drawer-panel, .ship-bar span { transition: none; } }

.modal-panel { position: relative; background: #fff; border-radius: 16px; width: min(880px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; outline: none; box-shadow: 0 20px 48px rgba(0,0,0,.2); }

/* Quick view */
.qv-name { font-size: 28px; font-weight: 800; padding-right: 36px; }

.content-tab > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 8px; }

.bundle-offer { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.bundle-thumb { width: 64px; height: 64px; border-radius: 12px; }
.bundle-badge { background: var(--accent-soft); color: var(--brand); }
/* The chosen bundle pill in the theme's burgundy (the design), not the ink of the shared pill. */
.bundle-opts .pill input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }

.sticky-thumb { width: 48px; height: 48px; border-radius: 10px; flex-shrink: 0; }

/* Newsletter: footer form + pop-up */
.footer-news { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px 40px; padding-top: 40px; padding-bottom: 32px; position: relative; }
.footer-news::after { content: ""; position: absolute; bottom: 0; left: 32px; right: 32px; border-top: 1px solid #3A3430; } /* content edge, like .bottom */
@media (max-width: 720px) { .footer-news::after { left: 16px; right: 16px; } }
.footer-news-text { display: flex; flex-direction: column; gap: 4px; max-width: 420px; }
.footer-news-text .display { font-size: 22px; }
.footer-news-form { flex: 1 1 360px; max-width: 520px; display: flex; flex-direction: column; gap: 10px; margin: 0; }
.footer-news-row { display: flex; gap: 8px; }
.footer-news-row .input { flex: 1; min-width: 0; min-height: 44px; }
.footer-news-row .btn { min-height: 44px; }
.footer-news-consent { font-size: 13px; color: #D9D3CB; }
.footer-news-status:empty { display: none; }
.footer-news-status .ok { color: #9FD3B5; font-weight: 600; }
.footer-news-status .err { color: #F6A89E; font-weight: 600; }
@media (max-width: 560px) { .footer-news-row { flex-direction: column; } }

.nl-panel { width: min(420px, 100%); padding: 0; overflow: hidden; }
.nl-body h2 { font-size: 22px; font-weight: 800; padding-right: 40px; }
.nl-body .input { min-height: 44px; }
.nl-body .btn { min-height: 44px; }

/* Order progress (Alındı → Hazırlanıyor → Kargoda / Hazır → Teslim) */
.steps::before, .steps::after { content: ""; position: absolute; top: 19px; left: 10%; height: 3px; border-radius: 3px; }
.steps::before { right: 10%; background: var(--line); }
.steps::after { width: calc(80% * var(--progress, 0)); background: var(--brand); }

/* Premium package: promotion countdown, delivery estimate, back-to-top, scroll reveal, countdown banner section */
.countdown { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--err-bg); color: var(--err); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; margin: 0; }
/* Small screens: the button (and the sticky add-to-cart bar) would sit on the last footer lines (ETBİS, newsletter consent)
   at the end of the page; the footer ends with that much empty space instead. */
.reveal { opacity: 0; transform: translateY(30px); }
.pb-countdown { background: var(--ink); color: #fff; border-radius: 20px; padding: 40px 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
@media (max-width: 720px) { .pb-countdown { padding: 28px 24px; } }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.revealed { opacity: 1; transform: none; transition: none; }
}

/* Compare: toggle on product cards / product page and the floating tray (premium.js shows them while the browser list is usable) */
.cmp-tray { position: fixed; left: 20px; bottom: var(--to-top-base, 20px); z-index: 42; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 16px; box-shadow: 0 8px 24px rgba(30,27,24,.16); }
.cmp-tray .btn { min-height: 44px; padding: 0 18px; }
@media (max-width: 720px) { .cmp-tray { left: 16px; } }
