/*
Theme Name: BOGO
Theme URI: https://bogo.co.uk
Description: A handful of exceptional deals. No catalogue, no timers. Built for WooCommerce.
Version: 0.1.3
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: bogo
*/

:root {
  --paper: #f4f1ea;
  --tile: #e9e5da;
  --ink: #101010;
  --muted: #6a665d;
  --line: #d6d1c4;
  --accent: #d6ff3f;
  --wrap: 1240px;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* ---------- shared pieces ---------- */
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.label::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.label.on-dark::before { background: var(--accent); }

.display {
  font-weight: 900; font-stretch: 75%; text-transform: uppercase;
  line-height: .9; letter-spacing: -.02em;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  background: var(--ink); color: var(--paper);
  border: 2px solid var(--ink); padding: 20px 34px;
  font-weight: 800; font-size: 16px; letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer; transition: background .15s, color .15s;
}
.btn:hover, .btn:focus-visible { background: var(--accent); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn[disabled] { background: transparent; color: var(--muted); border-color: var(--line); cursor: default; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.chip {
  display: inline-block; background: var(--accent); color: var(--ink);
  font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 10px; font-size: 14px;
}
.chip-gone { background: var(--ink); color: var(--paper); }

.tile { position: relative; background: var(--tile); aspect-ratio: 4 / 3; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: contain; padding: 6%; mix-blend-mode: multiply; }

.stock { max-width: 380px; }
.stock p { font-size: 17px; }
.stock-bar { height: 6px; background: var(--line); margin: 10px 0 8px; }
.stock-bar span { display: block; height: 100%; background: var(--ink); }
.stock-note { color: var(--muted); font-size: 14px !important; }
.stock.is-low strong { background: var(--accent); padding: 1px 6px; }

/* scrolling strip under the header */
.ticker {
  overflow: hidden; white-space: nowrap; background: var(--accent); color: var(--ink);
  border-bottom: 1px solid var(--ink); padding: 9px 0;
  font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
}
.ticker div { display: inline-block; animation: tick 60s linear infinite; }
.ticker:hover div { animation-play-state: paused; }
.ticker span { margin: 0 14px; }
.ticker span::after { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); margin-left: 28px; vertical-align: middle; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker div { animation: none; } }

/* ---------- header / footer ---------- */
.site-head { border-bottom: 1px solid var(--ink); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { font-weight: 900; font-stretch: 110%; font-size: 30px; letter-spacing: -.04em; }
.logo i { font-style: normal; display: inline-block; width: .32em; height: .32em; border-radius: 50%; background: var(--accent); border: 2px solid var(--ink); margin-left: 3px; }
.nav { display: flex; gap: 30px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

.site-foot { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: space-between; align-items: baseline; }
.site-foot .logo { color: var(--ink); font-size: 22px; }
.site-foot nav { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- home: THE DEAL ---------- */
.hero { padding: 44px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; margin-top: 26px; }
.hero .tile { aspect-ratio: 1 / 1; }
.hero h1 { font-size: 22px; font-weight: 600; line-height: 1.25; }
.hero .kind { color: var(--muted); margin-top: 4px; }
.price-now { font-size: clamp(96px, 15vw, 210px); margin: 22px 0 6px -4px; }
.price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; font-size: 20px; }
.price-row .was { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--muted); font-weight: 600; }
.price-row .chip { font-size: 20px; padding: 7px 14px; }
.hero .stock { margin: 34px 0 30px; }
.hero .fine { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* ---------- home: THE BOGO DROP ---------- */
.drop { padding: 80px 0; border-top: 1px solid var(--line); }
.drop-head { display: grid; grid-template-columns: 1.7fr 1fr; gap: 40px; align-items: end; margin-bottom: 44px; }
.drop-head h1, .drop-head h2 { font-size: clamp(48px, 7vw, 96px); margin-top: 18px; }
.drop-head p { max-width: 460px; color: var(--muted); justify-self: end; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 28px; }
.card { display: flex; flex-direction: column; }
.card .tile { transition: background .15s; }
.card:hover .tile { background: #dfdacd; }
.tag {
  position: absolute; left: 12px; top: 12px; background: var(--paper);
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 5px 9px;
}
.card h3 { font-size: 17px; font-weight: 600; margin-top: 16px; }
.card-price { display: flex; align-items: baseline; gap: 14px; margin-top: 6px; }
.card-price .now { font-size: 64px; font-weight: 900; font-stretch: 75%; letter-spacing: -.02em; line-height: 1; }
.card-price .was { color: var(--muted); text-decoration: line-through; font-weight: 600; }
.card-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 12px; font-size: 14px; }
.card-foot .left { color: var(--muted); }
.card-foot .go { margin-left: auto; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; }
.card:hover .go { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.card.is-gone .tile img { filter: grayscale(1); opacity: .45; }
.card.is-gone .tag { background: var(--ink); color: var(--paper); }
.card.is-gone h3, .card.is-gone .card-price { color: var(--muted); }
.card.is-gone .card-price .now { text-decoration: line-through; text-decoration-thickness: 4px; }

/* ---------- home: why / statement / notify ---------- */
.why { padding: 80px 0; border-top: 1px solid var(--line); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 40px; }
.why-grid b { display: block; font-size: 13px; letter-spacing: .16em; color: var(--muted); }
.why-grid h3 { font-size: 34px; margin: 12px 0 12px; }
.why-grid p { color: var(--muted); max-width: 340px; }

.statement { background: var(--ink); color: var(--paper); padding: 110px 0; }
.statement h2 { font-size: clamp(46px, 8.6vw, 132px); }
.statement h2 span { color: var(--accent); display: block; }
.statement p { margin-top: 30px; color: #b9b5aa; font-size: 19px; }

.notify { padding: 80px 0; }
.notify .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.notify h2 { font-size: clamp(36px, 4.6vw, 60px); }
.notify p { color: var(--muted); margin-top: 12px; max-width: 420px; }
.notify form { display: flex; }
.notify input { flex: 1; min-width: 0; border: 2px solid var(--ink); border-right: 0; background: transparent; padding: 0 18px; font-size: 17px; }
.notify .done { font-weight: 700; font-size: 19px; }

/* ---------- deal page ---------- */
.back { display: inline-block; margin: 26px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.back:hover { text-decoration: underline; text-underline-offset: 5px; }
.deal-top { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; padding: 26px 0 80px; align-items: start; }
.gallery .tile { aspect-ratio: 1 / 1; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.thumbs button { border: 2px solid transparent; padding: 0; background: var(--tile); aspect-ratio: 1; cursor: pointer; }
.thumbs button[aria-current='true'] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
.deal-info { position: sticky; top: 24px; }
.deal-info h1 { font-size: 30px; font-weight: 700; line-height: 1.15; margin-top: 18px; }
.deal-info .kind { color: var(--muted); margin-top: 6px; }

/* the signature Was / Now / You save block */
.wns { display: grid; grid-template-columns: auto 1fr; border: 2px solid var(--ink); margin: 26px 0; }
.wns > div { padding: 16px 20px; }
.wns small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.wns .w-now { grid-row: span 2; border-right: 2px solid var(--ink); display: flex; flex-direction: column; justify-content: center; }
.wns .w-now b { font-size: clamp(76px, 9vw, 128px); font-weight: 900; font-stretch: 75%; letter-spacing: -.02em; line-height: .9; margin-top: 6px; }
.wns .w-was { border-bottom: 2px solid var(--ink); color: var(--muted); }
.wns .w-was b { font-size: 30px; font-weight: 700; text-decoration: line-through; text-decoration-thickness: 2px; }
.wns .w-save { background: var(--accent); }
.wns .w-save b { font-size: 30px; font-weight: 900; }
.deal-info .btn { width: 100%; margin-top: 26px; padding: 24px; font-size: 18px; }
.assure { list-style: none; padding: 0; margin-top: 18px; display: grid; gap: 6px; font-size: 15px; color: var(--muted); }
.assure li::before { content: '✓  '; color: var(--ink); font-weight: 800; }

.band { padding: 80px 0; border-top: 1px solid var(--line); }
.band h2 { font-size: clamp(40px, 5.4vw, 72px); margin-top: 18px; }
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 44px; }
.reasons b { font-size: 13px; letter-spacing: .16em; color: var(--muted); }
.reasons h3 { font-size: 24px; line-height: 1.15; margin: 10px 0; }
.reasons p { color: var(--muted); }

.getting { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.getting ul { list-style: none; padding: 0; margin-top: 30px; border-top: 2px solid var(--ink); }
.getting li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 19px; font-weight: 500; }

.story { background: var(--ink); color: var(--paper); border: 0; }
.story .wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.story p { font-size: clamp(21px, 2.3vw, 30px); line-height: 1.35; font-weight: 500; }
.story p em { font-style: normal; color: var(--accent); }

.again { text-align: center; }
.again .price-now { font-size: clamp(110px, 20vw, 280px); margin: 20px 0 10px; }
.again .price-row { justify-content: center; }
.again .stock { margin: 36px auto 30px; }
.details { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; margin-top: 26px; color: var(--muted); font-size: 15px; }

.gone-banner { background: var(--ink); color: var(--paper); padding: 18px 20px; margin: 26px 0 0; font-weight: 600; }
.is-gone-page .gallery img { filter: grayscale(1); opacity: .5; }
.is-gone-page .w-now b { text-decoration: line-through; text-decoration-thickness: 6px; color: var(--muted); }
.is-gone-page .w-save { background: var(--tile); color: var(--muted); }

/* sticky buy bar (small screens) + reserved drawer */
.buybar { display: none; }
dialog.reserved {
  border: 0; padding: 0; margin: 0 0 0 auto; height: 100dvh; max-height: none; width: min(460px, 100vw);
  background: var(--paper); color: var(--ink);
}
dialog.reserved::backdrop { background: rgba(16, 16, 16, .55); }
.reserved-in { display: flex; flex-direction: column; height: 100%; padding: 30px; }
.reserved h2 { font-size: 54px; margin: 18px 0 8px; }
.reserved .line { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); padding: 18px 0; margin-top: 24px; }
.reserved .line .tile { aspect-ratio: 1; }
.reserved .sum { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.reserved .sum.total { font-size: 24px; font-weight: 900; border-bottom: 2px solid var(--ink); }
.reserved .actions { margin-top: auto; display: grid; gap: 10px; }
.reserved .proto { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .wrap { padding: 0 18px; }
  .nav { gap: 18px; font-size: 12px; }
  .nav .hide-s { display: none; }
  .hero { padding: 28px 0 56px; }
  .hero .tile, .gallery .tile { aspect-ratio: 4 / 3; }
  .hero-grid, .deal-top, .drop-head, .notify .wrap, .getting, .story .wrap { grid-template-columns: 1fr; gap: 28px; }
  .drop-head p { justify-self: start; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 34px 16px; }
  .card-price { flex-direction: column; gap: 2px; }
  .card-price .now { font-size: 46px; }
  .card-foot .left { display: none; }
  .card-foot .go { margin-left: 0; width: 100%; }
  .why-grid, .reasons { grid-template-columns: 1fr; gap: 30px; }
  .drop, .why, .notify, .band { padding: 56px 0; }
  .statement { padding: 72px 0; }
  .deal-info { position: static; }
  .getting .tile { order: -1; }
  body.has-buybar { padding-bottom: 78px; }
  .buybar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
    align-items: center; justify-content: space-between; gap: 14px;
    background: var(--paper); border-top: 2px solid var(--ink); padding: 10px 18px;
  }
  .buybar b { font-size: 34px; font-weight: 900; font-stretch: 75%; line-height: 1; }
  .buybar small { display: block; font-size: 12px; color: var(--muted); }
  .buybar .btn { padding: 15px 20px; font-size: 14px; }
}
@media (max-width: 480px) {
  .notify form { flex-direction: column; gap: 10px; }
  .notify input { border-right: 2px solid var(--ink); padding: 18px; }
  .wns .w-was b, .wns .w-save b { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* logo tagline (desktop only) */
.brand { display: flex; align-items: baseline; gap: 18px; }
.tagline { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: .04em; }
@media (max-width: 900px) { .tagline { display: none; } }

/* "next deal" card */
.card-next .tile { background: var(--ink); color: var(--accent); display: grid; place-items: center; text-align: center; }
.card-next:hover .tile { background: var(--ink); }
.card-next .tile .display { font-size: clamp(44px, 6vw, 84px); }
.card-next p { color: var(--muted); margin-top: 6px; font-size: 15px; }
.card-next .card-foot .go { margin-left: 0; }

/* ---------- WordPress / WooCommerce additions ---------- */
.site-foot nav ul { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; padding: 0; }
.site-foot a:hover { color: var(--ink); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.hero h1.hero-empty { font-size: clamp(48px, 8vw, 110px); margin: 22px 0 18px; }
.drop-all { border-top: 0; padding-top: 56px; }
.wns-single { grid-template-columns: 1fr; }
.wns-single .w-now { border-right: 0; }

.page { padding-top: 56px; padding-bottom: 90px; min-height: 55vh; }
.page > h1 { font-size: clamp(44px, 7vw, 96px); margin: 14px 0 12px; }
.page-lead { color: var(--muted); font-size: 19px; margin-bottom: 30px; }
.entry { margin-top: 30px; max-width: 100%; }
.band .entry { max-width: 760px; }
.entry > * + * { margin-top: 1em; }
.entry h2, .entry h3 { line-height: 1.2; margin-top: 1.6em; }
.entry a { text-decoration: underline; text-underline-offset: 3px; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry table { border-collapse: collapse; width: 100%; }
.entry th, .entry td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }

/* WooCommerce buttons and notices, in the house style */
.wc-block-components-button:not(.is-link), .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .wc-form .single_add_to_cart_button {
  background: var(--ink); color: var(--paper); border: 2px solid var(--ink); border-radius: 0;
  font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 16px 26px; cursor: pointer;
}
.wc-block-components-button:not(.is-link):hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .wc-form .single_add_to_cart_button:hover { background: var(--accent); color: var(--ink); }
.woocommerce-message, .woocommerce-info, .woocommerce-error { list-style: none; border: 2px solid var(--ink); padding: 14px 18px; margin: 20px 0; }
.woocommerce-error { background: var(--ink); color: var(--paper); }
.wc-form { margin-top: 26px; }
.wc-form select, .wc-form input.qty { border: 2px solid var(--ink); background: transparent; padding: 10px; margin: 0 10px 10px 0; }
