/* Market Mega Offer - styles
   Colors and fonts are set here. Change them once and the whole site follows. */
:root {
  --sun: #FFCE32;
  --sun-soft: #FFF3C4;
  --ink: #141414;
  --ink-2: #2B2B2B;
  --magenta: #D81E5B;
  --magenta-dark: #A8123F;
  --cream: #FFFBEF;
  --white: #FFFFFF;
  --text: #2E2E2E;
  --muted: #6B6B6B;
  --line: #ECE6D3;
  --display: "Anton", Impact, sans-serif;
  --body: "Rubik", Arial, sans-serif;
  --radius: 14px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--text); font: 16px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 .5em; color: var(--ink); line-height: 1.15; }
h1, h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .5px; }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ic.sm { width: 16px; height: 16px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border: 2px solid var(--ink); border-radius: 50px; background: var(--ink); color: var(--sun); font: 600 15px var(--body); text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: var(--magenta); border-color: var(--magenta); color: var(--white); }
.btn.outline { background: transparent; color: var(--ink); }
.btn.outline:hover { background: var(--ink); color: var(--sun); }
.btn.full { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--magenta); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.kicker { display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 50px; background: var(--magenta); color: var(--white); font-size: 13px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }

/* ---------- Top bar and header ---------- */
.topbar { background: var(--ink); color: var(--white); font-size: 14px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 20px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.topbar .ic { color: var(--sun); }
.topbar-right { gap: 20px; }
.header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 3px solid var(--sun); }
.header-in { display: flex; align-items: center; gap: 24px; padding: 12px 20px; }
.logo img { width: 230px; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.main-nav a { display: block; padding: 8px 14px; border-radius: 50px; font-weight: 500; text-decoration: none; }
.main-nav a:hover { background: var(--sun-soft); }
.main-nav a.on { background: var(--sun); color: var(--ink); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-link { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 50px; background: var(--ink); color: var(--white); font-weight: 600; text-decoration: none; }
.cart-count { min-width: 24px; padding: 1px 7px; border-radius: 50px; background: var(--sun); color: var(--ink); font-size: 13px; text-align: center; }
.menu-btn { display: none; padding: 8px; border: 2px solid var(--ink); border-radius: 10px; background: none; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 56px; background: var(--sun); }
.hero-title { max-width: 1000px; margin-bottom: 28px; font-size: clamp(44px, 8vw, 96px); line-height: 1; }
.hero-title span { color: var(--magenta); }
.hero-row { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: center; }
.hero-text p { font-size: 18px; color: var(--ink-2); }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 28px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.hero-stats li { padding: 12px; border-radius: var(--radius); background: var(--white); text-align: center; }
.hero-stats strong { display: block; font: 32px/1 var(--display); color: var(--magenta); }
.hero-stats span { font-size: 13px; font-weight: 500; }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 6px solid var(--ink); border-radius: 24px; }
.sticker { position: absolute; top: -26px; right: -14px; display: flex; flex-direction: column; justify-content: center; align-items: center; width: 128px; height: 128px; border: 4px dashed var(--sun); border-radius: 50%; background: var(--magenta); color: var(--white); text-align: center; transform: rotate(12deg); box-shadow: 0 0 0 5px var(--magenta); }
.sticker small { font-size: 12px; font-weight: 600; text-transform: uppercase; }
.sticker strong { font: 34px/1 var(--display); }

/* Ticker strip */
.ticker { overflow: hidden; background: var(--ink); color: var(--white); }
.ticker-track { display: flex; width: max-content; animation: slide 30s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; font: 18px var(--display); letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; }
.ticker .ic { color: var(--sun); fill: var(--sun); }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.cream { background: var(--cream); }
.section.dark { background: var(--ink); color: #D9D9D9; }
.section.dark h2, .section.dark h3 { color: var(--white); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; }
.sec-head h2 { margin: 0; }
.sec-head.center { justify-content: center; text-align: center; }

/* Departments */
.dept-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.dept { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 170px; padding: 22px; border-radius: var(--radius); background: var(--sun-soft); text-decoration: none; transition: transform .2s; }
.dept:nth-child(2), .dept:nth-child(8) { background: var(--ink); color: var(--white); }
.dept:nth-child(3), .dept:nth-child(5) { background: var(--magenta); color: var(--white); }
.dept:hover { transform: translateY(-4px); }
.dept-num { position: absolute; top: 14px; right: 18px; font: 34px/1 var(--display); opacity: .25; }
.dept-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--white); color: var(--ink); }
.dept strong { margin-top: auto; font-size: 18px; }
.dept small { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; opacity: .85; }

/* Products */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: box-shadow .2s; }
.product:hover { box-shadow: 0 12px 28px rgba(20, 20, 20, .1); }
.product-img { position: relative; aspect-ratio: 1; background: var(--white); }
.product-img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.price-tag { position: absolute; left: 12px; bottom: 12px; padding: 5px 12px; border-radius: 50px; background: var(--magenta); color: var(--white); font: 18px var(--display); letter-spacing: .5px; }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; border-top: 1px solid var(--line); }
.p-dept { font-size: 12px; font-weight: 600; color: var(--magenta); text-transform: uppercase; letter-spacing: .5px; }
.product h3 { min-height: 2.5em; margin: 4px 0 6px; font-size: 16px; line-height: 1.25; }
.product p { flex: 1; font-size: 14px; color: var(--muted); }
.add-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 11px; border: 0; border-radius: 50px; background: var(--sun); color: var(--ink); font: 600 14px var(--body); cursor: pointer; transition: background .2s, color .2s; }
.add-btn:hover { background: var(--ink); color: var(--sun); }
.add-btn.added { background: var(--magenta); color: var(--white); }

/* Offer zone */
.offer-zone { background: var(--magenta); }
.offer-zone h2 { color: var(--white); }
.offer-zone .kicker { background: var(--sun); color: var(--ink); }
.offer-zone .text-link { color: var(--sun); }

/* Split blocks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-media { position: relative; }
.split-media::before { content: ""; position: absolute; inset: 22px -18px -18px 22px; border-radius: 24px; background: var(--sun); }
.split-media img { position: relative; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; }
.why-list { display: grid; gap: 16px; margin: 24px 0 28px; }
.why-item { display: flex; gap: 14px; align-items: flex-start; }
.why-item strong { display: block; color: var(--ink); }
.why-item span { color: var(--muted); font-size: 15px; }
.why-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--sun); color: var(--ink); flex-shrink: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.steps li { padding: 26px 22px; border: 1px solid #3A3A3A; border-radius: var(--radius); }
.steps .num { display: block; margin-bottom: 10px; font: 52px/1 var(--display); color: var(--sun); }
.steps p { margin: 0; font-size: 15px; }
.section.dark .kicker { background: var(--sun); color: var(--ink); }

/* Testimonials */
.testimonials { background: var(--sun); }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote { position: relative; display: flex; flex-direction: column; margin: 0; padding: 30px 26px 26px; border-radius: var(--radius); background: var(--ink); color: #E6E6E6; }
.q-mark { position: absolute; top: 4px; right: 22px; font: 90px/1 var(--display); color: var(--magenta); }
.stars { display: flex; gap: 3px; color: var(--sun); }
.stars .ic { fill: var(--sun); }
.quote blockquote { flex: 1; margin: 16px 0 20px; font-size: 16px; }
.quote figcaption { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid #3A3A3A; }
.quote figcaption strong { display: block; color: var(--white); }
.quote figcaption small { color: #A8A8A8; }
.avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--magenta); color: var(--white); font-weight: 700; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--cream); }
.blog-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.blog-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 24px; }
.blog-body h3 { min-height: 2.3em; font-size: 20px; }
.blog-body h3 a { text-decoration: none; }
.blog-body h3 a:hover { color: var(--magenta); }
.blog-body p { flex: 1; color: var(--muted); font-size: 15px; }

/* Newsletter */
.news { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: 24px; background: var(--sun); }
.news-media img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.news-text { padding: 48px 44px; }
.news-form { display: flex; gap: 10px; margin-top: 8px; }
.news-form input { flex: 1; min-width: 0; padding: 13px 18px; border: 2px solid var(--ink); border-radius: 50px; font: 15px var(--body); }
.form-msg { margin: 12px 0 0; font-weight: 600; color: var(--magenta-dark); }

/* ---------- Inner pages ---------- */
.banner { padding: 52px 0 46px; background: var(--sun); border-bottom: 6px solid var(--ink); }
.banner h1 { margin: 6px 0 8px; font-size: clamp(38px, 6vw, 64px); }
.banner p { max-width: 640px; margin: 0; font-size: 17px; color: var(--ink-2); }
.crumbs { font-size: 14px; }
.crumbs a { font-weight: 600; text-decoration: none; }
.crumbs a:hover { color: var(--magenta); }
.crumbs span { margin: 0 6px; opacity: .6; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chips a { padding: 8px 16px; border: 2px solid var(--ink); border-radius: 50px; font-size: 14px; font-weight: 500; text-decoration: none; }
.chips a:hover { background: var(--sun-soft); }
.chips a.on { background: var(--ink); color: var(--sun); }
.group { margin-bottom: 56px; }
.group-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 3px solid var(--sun); }
.group-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 28px; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value { padding: 26px 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.value .why-ic { margin-bottom: 14px; }
.value p { margin: 0; color: var(--muted); font-size: 15px; }
.article { max-width: 780px; margin: 0 auto; }
.article-img { width: 100%; margin-bottom: 30px; border-radius: 20px; aspect-ratio: 3 / 2; object-fit: cover; }
.article h2 { margin-top: 1.4em; font-size: 26px; }
.back { margin-top: 32px; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 20px; margin-bottom: 24px; }
.info-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0; padding: 0; list-style: none; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; }
.info-list strong { display: block; color: var(--ink); }
.info-list a, .info-list span { font-size: 15px; text-decoration: none; word-break: break-word; }

/* Forms */
.form-card { padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: var(--cream); }
.form-card.narrow { max-width: 520px; margin: 0 auto; }
.form-card h2 { font-size: 28px; }
label { display: block; margin-bottom: 14px; font-size: 14px; font-weight: 600; color: var(--ink); }
input, textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid #D8D1BC; border-radius: 10px; background: var(--white); font: 15px var(--body); }
input:focus, textarea:focus { outline: 2px solid var(--magenta); border-color: transparent; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

/* Cart and checkout */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.table-wrap { overflow-x: auto; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { padding: 12px; background: var(--ink); color: var(--sun); font-size: 14px; text-align: left; }
.cart-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table img { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; background: var(--cream); }
.cart-table input { width: 70px; margin: 0; }
.remove-btn { padding: 6px 12px; border: 1px solid var(--magenta); border-radius: 50px; background: none; color: var(--magenta); font: 500 13px var(--body); cursor: pointer; }
.remove-btn:hover { background: var(--magenta); color: var(--white); }
.summary { padding: 26px; border-radius: 20px; background: var(--sun-soft); }
.summary h2 { font-size: 26px; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed #D8C88E; font-size: 15px; }
.summary-line.total { border: 0; font-size: 18px; font-weight: 700; color: var(--ink); }
.note { margin: 10px 0 16px; font-size: 14px; color: var(--muted); }
.link-back { display: block; margin-top: 14px; text-align: center; font-weight: 600; color: var(--magenta); }
.empty { max-width: 520px; margin: 0 auto; text-align: center; }
.done-ic { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 16px; border-radius: 50%; background: var(--sun); color: var(--ink); }

/* ---------- Footer ---------- */
.footer { padding: 56px 0 24px; background: var(--ink); color: #BDBDBD; font-size: 15px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--sun); }
.f-top { display: flex; justify-content: space-between; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid #333; }
.f-brand { max-width: 420px; }
.f-brand img { width: 230px; margin-bottom: 14px; }
.f-contact { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.f-contact li { display: flex; align-items: center; gap: 10px; }
.f-contact .ic { color: var(--sun); }
.f-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 32px 0; }
.f-col h3 { color: var(--white); font: 20px var(--display); letter-spacing: .5px; text-transform: uppercase; }
.f-col ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.f-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 20px; border-top: 1px solid #333; font-size: 14px; }
.f-bottom p { margin: 0; }
.f-bottom span { margin: 0 6px; opacity: .5; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; display: flex; gap: 14px; align-items: center; max-width: calc(100% - 32px); padding: 14px 20px; border-radius: 50px; background: var(--ink); color: var(--white); font-size: 15px; transform: translate(-50%, 140%); transition: transform .3s; }
.toast.show { transform: translate(-50%, 0); }
.toast a { color: var(--sun); font-weight: 600; white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .product-grid, .dept-grid, .values { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-row, .split, .contact-layout, .cart-layout, .news { grid-template-columns: 1fr; }
  .quote-grid, .blog-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 680px; }
}
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 12px 20px 18px; background: var(--white); border-bottom: 3px solid var(--sun); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .header-in { position: relative; }
  .header-actions { margin-left: auto; }
  .topbar-right a:last-child { display: none; }
  .f-top { flex-direction: column; }
  .f-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .logo img { width: 170px; }
  .cart-label { display: none; }
  .topbar-in > span:first-child { display: none; }
  .topbar-in { justify-content: center; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-body { padding: 12px; }
  .product p { display: none; }
  .product h3 { font-size: 14px; }
  .blog-body h3 { min-height: 0; }
  .price-tag { font-size: 15px; }
  .add-btn { font-size: 13px; padding: 10px 6px; }
  .values, .steps, .info-list { grid-template-columns: 1fr; }
  .dept-grid { gap: 12px; }
  .dept { min-height: 0; padding: 16px; }
  .dept strong { font-size: 15px; }
  .dept-num { font-size: 24px; }
  .two, .three { grid-template-columns: 1fr; }
  .news-text { padding: 32px 22px; }
  .news-form { flex-direction: column; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .sec-head.center { align-items: center; }
  .sticker { width: 96px; height: 96px; top: -18px; right: -4px; }
  .sticker strong { font-size: 26px; }
  .f-bottom { flex-direction: column; }
  .section { padding: 56px 0; }
  .cart-table th:nth-child(3), .cart-table td:nth-child(3) { display: none; }
}
