/* Theme for the public site and shared admin styles. Bootstrap 5.3 overrides + components from the design mockups.
   Fonts are self-hosted (DSGVO). Colours: ink #0F1014, ground #F2F2EE, accent lime #C8F542, violet #6D4AFF, coral #FF5A36. */

@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/inter-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/inter-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/inter-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+20AC, U+2000-206F; }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/inter-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+1E00-1E9F; }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/inter-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+20AC, U+2000-206F; }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/inter-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+1E00-1E9F; }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/inter-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+20AC, U+2000-206F; }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/inter-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+1E00-1E9F; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/bricolage-grotesque-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+20AC, U+2000-206F; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/bricolage-grotesque-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+1E00-1E9F; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/bricolage-grotesque-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+20AC, U+2000-206F; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/bricolage-grotesque-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+1E00-1E9F; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/bricolage-grotesque-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+20AC, U+2000-206F; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/bricolage-grotesque-latin-ext-800-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+1E00-1E9F; }

:root {
  --ink: #0F1014;
  --ink-2: #1C1E24;
  --ink-3: #23262D;
  --ground: #F2F2EE;
  --accent: #C8F542;
  --violet: #6D4AFF;
  --violet-ink: #4B2DD6;
  --coral: #FF5A36;
  --coral-ink: #B42A0C;
  --coral-bg: #FFE3DA;
  --muted: #5B6070;
  --muted-dark: #B9BCC6;
  --radius-xl: 6px;
  --radius-lg: 6px;
  --bs-body-font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--ground);
  --bs-link-color: var(--violet-ink);
  --bs-link-color-rgb: 75, 45, 214;
  --bs-link-hover-color: #2F1A9E;
  --bs-border-radius: 6px;
  --bs-border-radius-lg: 18px;
  --bs-focus-ring-color: rgba(109, 74, 255, .45);
}

body { -webkit-font-smoothing: antialiased; }
.display-title, h1, .h1 { font-family: "Bricolage Grotesque", Inter, sans-serif; font-weight: 800; letter-spacing: -0.03em; }
h2, .h2, h3, .h3 { font-family: "Bricolage Grotesque", Inter, sans-serif; font-weight: 800; letter-spacing: -0.02em; }
.text-accent { color: var(--accent) !important; }
.bg-ink { background: var(--ink) !important; color: #fff; }
.text-secondary { color: var(--muted) !important; }
.text-secondary-light { color: var(--muted-dark) !important; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.skip-link { position: absolute; left: 1rem; top: 1rem; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: 6px; }
.price { font-family: "Bricolage Grotesque", Inter, sans-serif; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tabular { font-variant-numeric: tabular-nums; }

/* Buttons */
.btn { border-radius: 6px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
.btn-accent { background: var(--accent); color: var(--ink); border: 0; font-weight: 700; }
.btn-accent:hover, .btn-accent:focus { background: #b6e52c; color: var(--ink); }
.btn-dark { background: var(--ink); border-color: var(--ink); }
.btn-violet { background: var(--violet); color: #fff; border: 0; }
.btn-violet:hover { background: var(--violet-ink); color: #fff; }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: 6px; color: var(--ink); }
.btn-ghost-light { border: 1.5px solid #4A4E58; color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }

/* Forms */
.form-control, .form-select { border-radius: 6px; border: 2px solid transparent; background-color: var(--ground); min-height: 48px; }
.form-control:focus, .form-select:focus { border-color: var(--ink); box-shadow: none; background-color: #fff; }
.card .form-control, .auth-card .form-control, .surface .form-control { background-color: var(--ground); }
.form-control.is-invalid { border-color: #B42318; }
.form-label { font-weight: 600; }
.auth-card { max-width: 460px; background: #fff; border-radius: var(--radius-xl); padding: 2.25rem; }

/* Header */
.site-header { background: #fff; position: relative; z-index: 1020; }
.header-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; padding-block: .85rem; }
.header-bar .brand { order: 1; }
.account-links { order: 2; margin-left: auto; display: flex; align-items: center; gap: .15rem; }
@media (min-width: 992px) { .header-bar { flex-wrap: nowrap; padding-block: 1rem; } .header-bar .site-search { order: 2; flex: 1 1 auto; } .account-links { order: 3; margin-left: 0; } }
.brand-name { font-family: "Bricolage Grotesque", Inter, sans-serif; font-weight: 800; font-size: 1.6rem; letter-spacing: -0.04em; color: var(--ink); }
.site-search { order: 3; flex: 1 1 100%; min-width: 0; display: flex; align-items: center; gap: .25rem; background: var(--ground); border-radius: 6px; padding: 4px 4px 4px 16px; transition: box-shadow .2s ease, background-color .2s ease; }
.site-search input { flex: 1; min-width: 0; border: 0; background: transparent; min-height: 44px; padding: 0 .5rem; outline: none; }
.site-search:focus-within { box-shadow: 0 0 0 3px rgba(109, 74, 255, .35); background: #fff; }
.category-strip { display: flex; gap: .25rem; overflow-x: auto; padding-bottom: .5rem; align-items: center; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.category-strip::-webkit-scrollbar { display: none; }
@media (max-width: 991.98px) { .category-strip { mask-image: linear-gradient(90deg, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 2rem; } }
.category-strip a { flex: 0 0 auto; transition: background-color .2s ease, color .2s ease; padding: .55rem .8rem; font-size: .9rem; font-weight: 500; color: #3A3F4B; text-decoration: none; white-space: nowrap; border-radius: 6px; }
.category-strip a:hover { background: var(--ground); }
.category-strip .deal-pill { background: var(--ink); color: #fff; font-weight: 700; display: inline-flex; gap: .35rem; align-items: center; }
.category-strip .deal-pill:hover { background: var(--ink-3); color: #fff; }

/* Footer */
.site-footer { background: var(--ink); color: var(--muted-dark); margin-top: 4rem; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 3rem; }
@media (min-width: 768px) { .footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.footer-links a { color: #E6E7EA; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* Hero */
.hero { background: var(--ink); color: #fff; border-radius: 6px; padding: clamp(2rem, 5vw, 4rem); overflow: hidden; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: .98; letter-spacing: -0.045em; }
.hero p.lead { color: var(--muted-dark); max-width: 34rem; }
.live-chip { display: inline-flex; align-items: center; gap: .6rem; border: 1px solid #34373F; color: #E6E7EA; font-weight: 600; font-size: .875rem; padding: .45rem .9rem; border-radius: 6px; }
.live-dot { width: 9px; height: 9px; border-radius: 6px; background: var(--accent); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(200, 245, 66, .8); } 70% { box-shadow: 0 0 0 10px rgba(200, 245, 66, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 245, 66, 0); } }
.ticker-wrap { margin-top: 1.75rem; background: var(--accent); color: var(--ink); overflow: hidden; transform: rotate(-1.2deg); width: 104%; margin-left: -2%; }
.ticker { display: flex; width: max-content; padding: .85rem 0; animation: ticker 45s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: .9rem; padding: 0 1.1rem; font-weight: 700; white-space: nowrap; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }


/* Section heads */
.section-title { font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -0.04em; margin: 0; }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.cat-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 1.75rem; min-height: 118px; padding: 1.1rem; border-radius: 6px; text-decoration: none; color: var(--ink); font-weight: 700; line-height: 1.25; hyphens: auto; }
@media (min-width: 768px) { .cat-tile { min-height: 140px; padding: 1.25rem; } }
.cat-tile i { font-size: 2.2rem; }
.tint-1 { background: #E8E2FF; } .tint-1 i { color: #4B2DD6; }
.tint-2 { background: #D7F3E6; } .tint-2 i { color: #146B48; }
.tint-3 { background: #FBE0EE; } .tint-3 i { color: #A3245F; }
.tint-4 { background: #EAF7C9; } .tint-4 i { color: #3F5A00; }
.tint-5 { background: #DCEEFF; } .tint-5 i { color: #1B5FA8; }
.tint-6 { background: #E3E6EC; } .tint-6 i { color: #333A47; }
.tint-7 { background: #F5EBD8; } .tint-7 i { color: #7A5414; }
.tint-8 { background: #FFE3DA; } .tint-8 i { color: #B42A0C; }
.lift { transition: transform .25s ease, box-shadow .25s ease; }
.lift:hover { transform: translateY(-5px); box-shadow: 0 28px 50px -28px rgba(15, 16, 20, .5); }

/* Offer cards */
.offer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 576px) { .offer-grid { gap: 16px; } }
@media (min-width: 768px) { .offer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1200px) { .offer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }
@media (min-width: 992px) { .deals-band .offer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 768px) and (max-width: 991.98px) { .deals-band .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.offer-card { --pad: 10px; position: relative; background: #fff; border-radius: 6px; padding: var(--pad); display: flex; flex-direction: column; min-width: 0; }
.offer-card .media { position: relative; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: #E3E6EC; display: flex; align-items: center; justify-content: center; }
.offer-card .media img { width: 100%; height: 100%; object-fit: cover; }
.offer-card .badges { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 700; padding: .35rem .65rem; border-radius: 6px; background: #fff; color: var(--ink); }
.chip-dark { background: var(--ink); color: #fff; }
.chip-accent { background: var(--accent); color: var(--ink); }
.chip-coral { background: var(--coral-bg); color: var(--coral-ink); }
.offer-card .body { padding: 1rem .65rem .65rem; display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.offer-card .title { font-weight: 600; color: var(--ink); text-decoration: none; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: break-word; hyphens: auto; }
.offer-card .title:hover { color: var(--violet-ink); }
.offer-card .title::after { content: ""; position: absolute; inset: 0; border-radius: 6px; }
.offer-card .watch { position: absolute; top: 16px; right: 16px; z-index: 2; }
.offer-card .price { font-size: 1.75rem; line-height: 1.05; display: inline-block; white-space: nowrap; border-radius: 4px; }
.price-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .35rem .75rem; }
.offer-card .cta { position: relative; z-index: 2; margin-top: auto; }
.time-bar { height: 5px; border-radius: 6px; background: #ECECE7; overflow: hidden; }
.time-bar > span { display: block; height: 100%; background: var(--ink); border-radius: 6px; transition: width 1s linear, background-color .4s ease; }
.is-urgent .time-bar > span { background: var(--coral); }
.time-bar.urgent > span { background: var(--coral); }
.urgent-text { color: var(--coral-ink); font-weight: 700; }

/* Deal section (dark) */
.deals-band { background: var(--ink); color: #fff; border-radius: 6px; padding: clamp(1.5rem, 4vw, 3rem); }
.deal-card { --pad: 10px; background: var(--ink-2); border-radius: 6px; padding: var(--pad); display: flex; flex-direction: column; color: #fff; position: relative; min-width: 0; transition: transform .25s ease, box-shadow .25s ease; }
.deal-card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -26px rgba(0, 0, 0, .9); }
.deal-card .time-bar, .panel-dark .time-bar { background: #2C2F37; }
.deal-card .time-bar > span { background: #fff; }
.panel-dark .time-bar > span { background: var(--accent); }
.deal-card.is-urgent .time-bar > span, .panel-dark.is-urgent .time-bar > span { background: var(--coral); }
.deal-card .media { position: relative; height: 160px; border-radius: 6px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #2C2F37; }
.deal-card .media img { width: 100%; height: 100%; object-fit: cover; }
.deal-card .title { color: #fff; font-weight: 600; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: break-word; hyphens: auto; }
.deal-card .price { color: var(--accent); font-size: clamp(1.5rem, 2.2vw, 2rem); display: inline-block; border-radius: 4px; white-space: nowrap; }
.deal-card .strike { text-decoration: line-through; }
.delta { white-space: nowrap; font-size: .8rem; font-weight: 800; padding: .25rem .55rem; border-radius: 6px; background: #2C2F37; color: var(--muted-dark); }
.delta.down { background: #fff; color: var(--ink); }
.delta.up { background: var(--coral); color: var(--ink); }
.bust-overlay { position: absolute; inset: 0; background: rgba(15, 16, 20, .72); display: flex; align-items: center; justify-content: center; color: #fff; font-family: "Bricolage Grotesque", Inter, sans-serif; font-weight: 800; font-size: 1.8rem; }

/* Offer detail: gallery, buy box, details. Phones: buy box directly under the photos. */
.offer-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
@media (min-width: 992px) {
  .offer-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto 1fr; grid-template-areas: "gallery aside" "details aside"; align-items: start; }
  .offer-gallery { grid-area: gallery; } .offer-aside { grid-area: aside; } .offer-details { grid-area: details; }
}
.gallery-main { aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: #E3E6EC; display: flex; align-items: center; justify-content: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.gallery-thumbs button { aspect-ratio: 1; border-radius: 6px; overflow: hidden; border: 3px solid transparent; padding: 0; background: #E3E6EC; }
.gallery-thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.surface { background: #fff; border-radius: var(--radius-xl); padding: clamp(1.25rem, 3vw, 2rem); }
.panel-dark { background: var(--ink); color: #fff; border-radius: var(--radius-xl); padding: 1.75rem; }
.panel-dark .form-control { background: var(--ink-2); color: #fff; border-color: #3A3D46; }
.panel-dark .form-control:focus { border-color: var(--accent); }
.panel-dark .form-control::placeholder { color: #8E929C; opacity: 1; }
.panel-dark .text-secondary { color: var(--muted-dark) !important; }
.panel-dark .big-price { color: var(--accent); font-size: clamp(3rem, 6vw, 4.25rem); line-height: 1; }
.clock { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.clock > div { background: var(--ink-2); border-radius: 6px; text-align: center; padding: .75rem 0 .6rem; overflow: hidden; transition: box-shadow .3s ease; }
.clock strong { display: block; transition: color .3s ease; font-family: "Bricolage Grotesque", Inter, sans-serif; font-size: 2.1rem; line-height: 1; font-variant-numeric: tabular-nums; }
.clock span { font-size: .75rem; color: #8E929C; font-weight: 600; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 0; }
.spec-grid div { background: var(--ground); border-radius: 6px; padding: .85rem 1rem; }
.spec-grid dt { font-size: .8rem; color: var(--muted); font-weight: 500; }
.spec-grid dd { margin: 0; font-weight: 700; }
.bust-box { background: var(--coral); color: var(--ink); border-radius: 6px; padding: 1.5rem; }
.bust-box .bust-title { font-family: "Bricolage Grotesque", Inter, sans-serif; font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -0.04em; line-height: 1; }
.win-box { background: var(--accent); color: var(--ink); border-radius: 6px; padding: 1.5rem; }
.sparkline { width: 100%; height: 110px; display: block; }

/* Sell form */
.type-card { position: relative; display: flex; flex-direction: column; gap: .6rem; padding: 1.4rem; border-radius: 6px; cursor: pointer; background: var(--ground); }
.type-card input { position: absolute; opacity: 0; }
.type-card:has(input:checked) { background: var(--ink); color: #fff; }
.type-card:has(input:checked) .text-secondary { color: #C9CCD4 !important; }
.type-card:has(input:focus-visible) { outline: 3px solid var(--violet); outline-offset: 2px; }
.choice-pill { position: relative; display: inline-flex; align-items: center; min-height: 46px; padding: 0 1.2rem; border-radius: 6px; background: var(--ground); font-weight: 700; cursor: pointer; }
.choice-pill input { position: absolute; opacity: 0; }
.choice-pill:has(input:checked) { background: var(--ink); color: #fff; }
.choice-pill:has(input:focus-visible) { outline: 3px solid var(--violet); outline-offset: 2px; }
.cond-card { position: relative; display: flex; flex-direction: column; gap: .3rem; padding: 1rem; border-radius: 6px; background: var(--ground); cursor: pointer; min-height: 92px; }
.cond-card input { position: absolute; opacity: 0; }
.cond-card:has(input:checked) { background: var(--ink); color: #fff; }
.cond-card:has(input:checked) small { color: #C9CCD4; }
.cond-card:has(input:focus-visible) { outline: 3px solid var(--violet); outline-offset: 2px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 6px; background: var(--accent); font-family: "Bricolage Grotesque", Inter, sans-serif; font-weight: 800; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.photo-grid .slot { aspect-ratio: 1; border-radius: 6px; background: var(--ground); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.photo-grid .slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-add { aspect-ratio: 1; border-radius: 6px; background: var(--ink); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; cursor: pointer; font-weight: 700; }
.photo-add .plus { width: 48px; height: 48px; border-radius: 6px; background: var(--accent); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }

/* Account */
.account-nav a { display: flex; align-items: center; gap: .5rem; padding: .7rem 1rem; border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 600; }
.account-nav a[aria-current="page"], .account-nav a:hover { background: #fff; }

/* CMS pages */
.cms-body { background: #fff; border-radius: var(--radius-xl); padding: clamp(1.25rem, 3vw, 2.5rem); max-width: 860px; }
.cms-body h2 { font-size: 1.5rem; margin-top: 1.5rem; }
.cms-body h3 { font-size: 1.2rem; margin-top: 1.25rem; }

.empty-state { background: #fff; border-radius: var(--radius-xl); padding: 3rem 1.5rem; text-align: center; color: var(--muted); }
.table > :not(caption) > * > * { background-color: transparent; }
.qr-box { width: 220px; height: 220px; background: #fff; border-radius: 6px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line, #e5e5e5); }
.qr-box svg, .qr-box img { width: 200px; height: 200px; }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* Design rule: corner radius max 6px (Bootstrap components and utilities included) */
:root {
  --bs-border-radius: 6px; --bs-border-radius-sm: 4px; --bs-border-radius-lg: 6px; --bs-border-radius-xl: 6px;
  --bs-border-radius-xxl: 6px; --bs-border-radius-2xl: 6px; --bs-border-radius-pill: 6px;
}
.rounded-3, .rounded-4, .rounded-5, .rounded-pill, .rounded-top-4, .rounded-bottom-4 { border-radius: 6px !important; }
.btn, .form-control, .form-select, .input-group-text, .card, .alert, .dropdown-menu, .modal-content, .offcanvas, .toast, .badge { border-radius: 6px; }
.form-check-input[type="checkbox"] { border-radius: 3px; }
.form-switch .form-check-input { border-radius: 4px; --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3crect x='-3' y='-3' width='6' height='6' rx='1' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e"); }
.form-switch .form-check-input:focus { --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3crect x='-3' y='-3' width='6' height='6' rx='1' fill='%230F1014'/%3e%3c/svg%3e"); }
.form-switch .form-check-input:checked { --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3crect x='-3' y='-3' width='6' height='6' rx='1' fill='%23fff'/%3e%3c/svg%3e"); }

/* App pairing (QR) */
.qr-box.qr-lg { width: 260px; height: 260px; padding: 10px; }
.qr-box.qr-lg svg { width: 240px; height: 240px; }
.pair-code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 2rem; font-weight: 700; letter-spacing: .12em; }
[data-pair].is-expired .qr-box { opacity: .3; }
[data-pair].is-done .qr-box { outline: 4px solid var(--accent); }
.pair-status { font-weight: 700; color: #1d6b2c; }

/* "Install as app" banner (public site) */
.install-banner { position: fixed; z-index: 1040; left: 1rem; right: 1rem; bottom: 1rem; max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; background: var(--ink); color: #fff; border-radius: 6px; box-shadow: 0 12px 32px rgba(0, 0, 0, .28); }
.install-banner img { border-radius: 6px; flex: none; }
.install-banner [data-install-ios]:not([hidden]) ~ .install-lead { display: none; }
@media (prefers-reduced-motion: no-preference) { .install-banner:not([hidden]) { animation: install-in .3s ease-out; } }
@keyframes install-in { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* 1.6.0 — live countdowns, card states, light motion */
@media (max-width: 575.98px) {
  .brand-name { font-size: 1.3rem; }
  .brand svg, .brand img { width: 34px; height: 34px; }
  .account-links .btn-link { padding-inline: .5rem; font-size: 1.25rem; }
  .hero p.lead { font-size: 1.05rem; }
  .hero h1 { font-size: 2.4rem; }
}
.countdown { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; margin-left: auto; transition: color .3s ease; }
.offer-card .countdown { font-size: .875rem; }
.is-urgent .countdown, .offer-card.is-urgent .countdown { color: var(--coral-ink); }
.deal-card .countdown { color: #fff; margin-left: 0; }
.deal-card.is-urgent .countdown { color: #FF8A6B; }
.panel-dark.is-urgent .clock strong { color: #FF8A6B; }
.panel-dark.is-final .clock > div { box-shadow: inset 0 0 0 2px var(--coral); }
.clock + .time-bar { margin-top: -4px; }
.clock-sm + .time-bar { margin-top: 10px; }
.clock-sm strong { font-size: 1.6rem; }
.clock-sm > div { padding: .55rem 0 .45rem; }
.clock-sm span { font-size: .7rem; }
.offer-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; border-top: 1px solid #23262D; padding-top: 1rem; }
.offer-meta-row .watch-btn { min-height: 38px; }

/* Ended / busted cards: label over the photo, muted call to action */
.offer-card.is-ended::before, .offer-card.is-bust::before, .deal-card.is-ended::before, .deal-card.is-bust::before {
  content: attr(data-ended-label); position: absolute; z-index: 1; left: var(--pad); right: var(--pad); top: var(--pad);
  display: flex; align-items: center; justify-content: center; border-radius: 6px; background: rgba(15, 16, 20, .66); color: #fff;
  font-family: "Bricolage Grotesque", Inter, sans-serif; font-weight: 800; font-size: 1.5rem; pointer-events: none; text-align: center; padding: .5rem;
}
.offer-card.is-ended::before, .offer-card.is-bust::before { aspect-ratio: 4 / 3; }
.deal-card.is-ended::before, .deal-card.is-bust::before { height: 160px; }
.offer-card.is-bust::before, .deal-card.is-bust::before { content: attr(data-bust-label); background: rgba(255, 90, 54, .9); color: var(--ink); }
.offer-card.is-ended .cta, .offer-card.is-ended .countdown, .deal-card.is-ended .btn-accent { opacity: .55; }
.offer-card.is-ended .time-bar, .deal-card.is-ended .time-bar { opacity: .4; }

/* Compact two-column cards on phones */
@media (max-width: 575.98px) {
  .offer-card, .deal-card { --pad: 6px; }
  .offer-card .body { padding: .6rem .3rem .3rem; gap: .5rem; }
  .offer-card .title, .deal-card .title { font-size: .9rem; }
  .offer-card .price { font-size: 1.25rem; }
  .deal-card .price { font-size: 1.4rem; }
  .offer-card .badges { top: 10px; left: 10px; gap: 4px; right: 48px; }
  .offer-card .badges .chip { font-size: .65rem; padding: .2rem .4rem; }
  .offer-card .watch { top: 10px; right: 10px; width: 36px; height: 36px; min-height: 36px; }
  .offer-card .cta, .deal-card .btn-accent { font-size: .78rem; min-height: 40px; padding: .35rem .3rem; gap: .25rem; white-space: nowrap; }
  .offer-card .countdown, .deal-card .countdown { font-size: .78rem; margin-left: 0; }
  .offer-card .small, .deal-card .small { font-size: .75rem; }
  .deal-card .media { height: 120px; }
  .deal-card.is-ended::before, .deal-card.is-bust::before { height: 120px; }
  .offer-card.is-ended::before, .deal-card.is-ended::before { font-size: 1.1rem; }
  .clock strong { font-size: 1.7rem; }
}

/* Light motion — only when the visitor has not asked for reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: color .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .12s ease; }
  .btn:active:not(:disabled):not(.disabled) { transform: translateY(1px) scale(.98); }
  .offer-card .media img, .deal-card .media img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
  .offer-card:hover .media img, .deal-card:hover .media img { transform: scale(1.045); }
  .cat-tile i { transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
  .cat-tile:hover i { transform: translateY(-3px) rotate(-6deg); }
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--reveal-delay, 0ms); }
  .reveal.is-visible { opacity: 1; transform: none; }
  .hero h1, .hero .lead, .hero .live-chip, .hero .btn { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .live-chip { animation-delay: .05s; } .hero h1 { animation-delay: .1s; } .hero .lead { animation-delay: .2s; } .hero .btn { animation-delay: .28s; }
  .price-flash { animation: price-flash 1.1s ease; }
  .delta-in { animation: delta-in .45s cubic-bezier(.2, .7, .2, 1); }
  .clock strong.flip { animation: digit-in .35s cubic-bezier(.2, .7, .2, 1); }
  .is-final .countdown [data-ends] { animation: urgent-pulse 1s ease-in-out infinite; }
  .pop i { animation: heart-pop .45s ease; }
  .is-ended::before, .is-bust::before { animation: fade-in .4s ease both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes price-flash { 0% { background-color: rgba(200, 245, 66, .55); transform: scale(1); } 30% { transform: scale(1.07); } 100% { background-color: rgba(200, 245, 66, 0); transform: scale(1); } }
@keyframes delta-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes digit-in { from { opacity: .2; transform: translateY(-40%); } to { opacity: 1; transform: none; } }
@keyframes urgent-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes heart-pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .ticker, .live-dot { animation: none !important; }
  .lift, .lift:hover, .deal-card, .deal-card:hover { transition: none !important; transform: none !important; }
  .time-bar > span { transition: none !important; }
}

/* 2.0.0 — shop mode: cart badge, product cards, cart, checkout, order progress */
.text-coral { color: var(--coral-ink) !important; }
.chip-violet { background: #E8E2FF; color: var(--violet-ink); }
.cart-link { position: relative; }
.cart-badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; background: var(--accent); color: var(--ink); font-size: .72rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff; }
.cart-badge[hidden] { display: none; }
.category-strip .shop-pill { background: var(--accent); color: var(--ink); font-weight: 700; }
.category-strip .shop-pill i { margin-right: .35rem; }
.product-card .tax-note { font-size: .72rem; line-height: 1.25; }
.stock-hint { font-size: .8rem; font-weight: 600; color: #2E7D32; white-space: nowrap; }
.stock-hint.low { color: var(--coral-ink); }
.product-card form { margin-top: auto; }
.buy-box .display-price { font-size: clamp(2.25rem, 4vw, 3rem); line-height: 1; }
.qty-input { width: 84px; text-align: center; }
.running-offer { display: flex; align-items: center; gap: .6rem; padding: .75rem .9rem; border-radius: 6px; background: var(--ink); color: #fff; text-decoration: none; font-size: .92rem; }
.running-offer:hover { color: #fff; background: var(--ink-3); }
.running-offer > i:first-child { color: var(--accent); font-size: 1.1rem; }
.trust-list li { display: flex; gap: .5rem; align-items: baseline; }
.cart-list { display: flex; flex-direction: column; }
.cart-line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto; gap: .5rem 1rem; align-items: center; padding: .9rem 0; border-top: 1px solid #ECECE7; }
.cart-line:first-child { border-top: 0; }
.cart-line img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; background: #E3E6EC; }
.cart-line.has-problem { background: linear-gradient(90deg, var(--coral-bg), transparent 60%); }
.cart-info { min-width: 0; }
.cart-info a { color: var(--ink); }
.cart-sum { text-align: right; min-width: 90px; }
.cart-sum .price { font-size: 1.15rem; }
@media (max-width: 575.98px) {
  .cart-line { grid-template-columns: 72px minmax(0, 1fr); }
  .cart-line img { width: 72px; height: 56px; }
  .cart-qty, .cart-sum { grid-column: 2; }
  .cart-sum { text-align: left; display: flex; gap: 1rem; align-items: center; }
}
.sum-list { margin: 0 0 1rem; }
.sum-list > div { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; }
.sum-list dt { font-weight: 500; color: var(--muted); }
.sum-list dd { margin: 0; font-weight: 700; text-align: right; }
.sum-list .total { border-top: 2px solid var(--ink); margin-top: .35rem; padding-top: .6rem; }
.sum-list .total dt { color: var(--ink); font-weight: 800; }
.sum-list .total dd { font-family: "Bricolage Grotesque", Inter, sans-serif; font-size: 1.6rem; font-weight: 800; }
.checkout-items li { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; }
.checkout-items li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 992px) { .sticky-lg { position: sticky; top: 1rem; } }
.step-no { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 6px; background: var(--ink); color: var(--accent); font-size: .9rem; font-weight: 800; margin-right: .6rem; vertical-align: 2px; }
.choice-list { display: flex; flex-direction: column; gap: .5rem; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-body { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border: 2px solid #E3E3DD; border-radius: 6px; background: #fff; transition: border-color .15s ease, background-color .15s ease; }
.choice-body > i { font-size: 1.35rem; color: var(--muted); }
.choice:hover .choice-body { border-color: #C9C9C1; }
.choice input:checked + .choice-body { border-color: var(--ink); background: #FAFAF7; box-shadow: inset 0 0 0 1px var(--ink); }
.choice input:checked + .choice-body > i { color: var(--ink); }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--violet); outline-offset: 2px; }
.choice.is-disabled { opacity: .45; pointer-events: none; }
.order-steps { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 0 0 1.5rem; counter-reset: s; }
.order-steps li { flex: 1; display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-radius: 6px; background: #fff; color: var(--muted); font-weight: 600; font-size: .92rem; }
.order-steps li span { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 6px; background: var(--ground); font-weight: 800; flex: none; }
.order-steps li.done { color: var(--ink); }
.order-steps li.done span { background: var(--accent); color: var(--ink); }
.order-steps li.current { background: var(--ink); color: #fff; }
.order-steps li.current span { background: var(--accent); color: var(--ink); }
@media (max-width: 575.98px) { .order-steps { flex-direction: column; } }
.pay-box { border: 2px solid var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .cart-badge.bump-in { animation: heart-pop .45s ease; }
}
.site-toast { position: fixed; left: 50%; bottom: 1.25rem; z-index: 1080; transform: translate(-50%, 150%); max-width: min(92vw, 520px); padding: .8rem 1.1rem; border-radius: 6px; background: var(--ink); color: #fff; font-weight: 600; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6); transition: transform .3s cubic-bezier(.2, .7, .2, 1); pointer-events: none; }
.site-toast.show { transform: translate(-50%, 0); }
.site-toast[data-kind="err"] { background: var(--coral-ink); }
html, body { overflow-x: clip; } /* the tilted winners ticker must never widen the page */
