/* Best Deal Cashback - main stylesheet
   Colors and fonts are set here. Change them in one place. */
:root {
  --ink: #16181D;
  --graphite: #23262D;
  --lime: #C6F04B;
  --lime-soft: #F1FBD3;
  --coral: #FF6A4D;
  --cream: #F6F5EF;
  --white: #FFFFFF;
  --text: #2E3138;
  --muted: #646872;
  --line: #16181D;
  --shadow: 4px 4px 0 var(--ink);
  --head: "Mona Sans", Arial, sans-serif;
  --body: "Hind", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); line-height: 1.15; margin: 0 0 12px; }
h1 { font-size: clamp(34px, 5vw, 60px); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 14px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

/* Icons */
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ic.sm { width: 18px; height: 18px; }
.ic.xs { width: 14px; height: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; font-family: var(--head); font-weight: 700; font-size: 15px; text-decoration: none; color: var(--white); background: var(--ink); border: 2px solid var(--ink); border-radius: 6px; box-shadow: var(--shadow); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn.lime { background: var(--lime); color: var(--ink); }
.btn.outline-light { background: transparent; color: var(--white); border-color: var(--white); box-shadow: 4px 4px 0 var(--lime); }
.btn.full { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--head); font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none; border-bottom: 3px solid var(--lime); }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--lime); padding: 4px 10px; border-radius: 4px; margin-bottom: 14px; }
.kicker.light { background: rgba(198, 240, 75, .15); color: var(--lime); border: 1px solid var(--lime); }

/* Top bar and header */
.topbar { background: var(--lime); color: var(--ink); font-size: 14px; font-weight: 500; }
.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-right { gap: 20px !important; }
.header { background: var(--white); border-bottom: 2px solid var(--ink); position: sticky; top: 0; z-index: 50; }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.logo img { height: 48px; width: auto; }
.main-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 8px 14px; font-family: var(--head); font-weight: 600; font-size: 15px; text-decoration: none; color: var(--ink); border-radius: 4px; }
.main-nav a:hover { background: var(--cream); }
.main-nav a.on { background: var(--ink); color: var(--lime); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-link { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border: 2px solid var(--ink); border-radius: 6px; background: var(--lime); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.cart-count { position: absolute; top: -9px; right: -9px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--coral); color: var(--white); font-size: 12px; font-weight: 600; display: grid; place-items: center; border: 2px solid var(--ink); }
.menu-btn { display: none; width: 46px; height: 46px; border: 2px solid var(--ink); border-radius: 6px; background: var(--white); cursor: pointer; }

/* Hero */
.hero { background: var(--ink); color: #D8DAE0; padding: 70px 0 50px; text-align: center; }
.hero-in { max-width: 860px; }
.hero h1 { color: var(--white); }
.hero mark { background: var(--lime); color: var(--ink); padding: 0 10px; border-radius: 6px; }
.hero p { font-size: 19px; max-width: 640px; margin: 0 auto 26px; }
.hero-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.hero-photo-wrap { margin-top: 50px; position: relative; padding-bottom: 0; }
.hero-photo { border: 2px solid var(--lime); border-radius: 12px; overflow: hidden; }
.hero-photo img { width: 100%; height: 420px; object-fit: cover; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: -50px 40px 0; position: relative; }
.stat-card { display: grid; box-shadow: 4px 4px 0 var(--lime) !important; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; text-align: left; background: var(--white); border: 2px solid var(--ink); border-radius: 8px; box-shadow: var(--shadow); padding: 16px 18px; color: var(--muted); }
.stat-card .ic { grid-row: span 2; width: 40px; height: 40px; padding: 8px; background: var(--lime); color: var(--ink); border-radius: 50%; }
.stat-card strong { font-family: var(--head); color: var(--ink); font-size: 17px; }
.stat-card span { font-size: 14px; }

/* Sections */
.section { padding: 80px 0; }
.section.tint { background: var(--cream); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.section.dark { background: var(--graphite); }
.section.dark h2 { color: var(--white); }
.section.lime-band { background: var(--lime-soft); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 36px; }
.sec-head h2 { margin: 0; }
.sec-head.center { justify-content: center; text-align: center; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { border: 2px solid var(--ink); border-radius: 8px; padding: 28px; background: var(--white); box-shadow: var(--shadow); }
.step .num { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--lime); border: 2px solid var(--ink); font-family: var(--head); font-weight: 800; font-size: 20px; color: var(--ink); margin-bottom: 16px; }
.step p { margin: 0; color: var(--muted); }

/* Departments */
.dept-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.dept { display: flex; align-items: center; gap: 14px; padding: 18px; background: var(--white); border: 2px solid var(--ink); border-radius: 8px; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.dept:hover { box-shadow: var(--shadow); transform: translate(-2px, -2px); }
.dept-ic { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 8px; background: var(--ink); color: var(--lime); flex-shrink: 0; }
.dept-text { flex: 1; display: flex; flex-direction: column; }
.dept-text strong { font-family: var(--head); color: var(--ink); font-size: 16px; line-height: 1.2; }
.dept-text small { color: var(--muted); font-size: 14px; }
.dept .go { color: var(--ink); }

/* Products */
.product-grid { display: grid; gap: 22px; }
.product-grid.four { grid-template-columns: repeat(4, 1fr); }
.product-grid.three { grid-template-columns: repeat(3, 1fr); }
.product { display: flex; flex-direction: column; background: var(--white); border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.product:hover { box-shadow: var(--shadow); transform: translate(-2px, -2px); }
.product-img { position: relative; aspect-ratio: 1 / 1; background: #fff; border-bottom: 2px solid var(--ink); }
.product-img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.earn { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 5px; background: var(--lime); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 20px; padding: 2px 10px; font-size: 13px; font-weight: 600; }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 16px; }
.p-dept { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.product h3 { font-size: 16px; margin: 4px 0 6px; min-height: 2.3em; }
.product p { font-size: 15px; color: var(--muted); line-height: 1.5; }
.product-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.price { font-family: var(--head); font-weight: 800; font-size: 20px; color: var(--ink); }
.add-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; font-family: var(--head); font-weight: 700; font-size: 13px; background: var(--ink); color: var(--white); border: 2px solid var(--ink); border-radius: 6px; cursor: pointer; }
.add-btn:hover, .add-btn.added { background: var(--lime); color: var(--ink); }

/* Split and lists */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 2px solid var(--ink); border-radius: 8px; box-shadow: 10px 10px 0 var(--lime); }
.ticks { list-style: none; padding: 0; margin: 0 0 26px; }
.ticks li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #c9cbd0; }
.ticks .ic { background: var(--lime); border-radius: 50%; padding: 2px; color: var(--ink); }

/* Testimonials */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote { margin: 0; display: flex; flex-direction: column; background: var(--white); border: 2px solid var(--ink); border-radius: 8px; padding: 26px; box-shadow: 6px 6px 0 var(--lime); }
.stars { display: flex; gap: 3px; color: var(--coral); margin-bottom: 12px; }
.stars .ic { fill: var(--coral); }
.quote blockquote { margin: 0 0 20px; font-size: 17px; color: var(--text); flex: 1; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote figcaption span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.quote small { color: var(--muted); }
.avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--lime); font-family: var(--head); font-weight: 700; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-grid.two-col { grid-template-columns: repeat(2, 1fr); }
.post { display: flex; flex-direction: column; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; background: var(--white); }
.post-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-bottom: 2px solid var(--ink); }
.post-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 20px; }
.post-body h3 a { text-decoration: none; }
.post-body p { color: var(--muted); flex: 1; }

/* Newsletter */
.news { display: grid; grid-template-columns: 1.2fr 1fr; background: var(--ink); border-radius: 12px; overflow: hidden; border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--lime); }
.news-text { padding: 50px; color: #D8DAE0; }
.news-text h2 { color: var(--white); }
.news-form { display: flex; gap: 10px; }
.news-form input { flex: 1; }
.news .form-msg { color: var(--lime); }
.news-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Page banner */
.banner { background: var(--ink); color: #D8DAE0; padding: 56px 0; border-bottom: 6px solid var(--lime); }
.banner h1 { color: var(--white); font-size: clamp(30px, 4vw, 46px); }
.banner p { margin: 0; max-width: 680px; }
.crumbs { font-size: 14px; margin-bottom: 10px !important; color: var(--lime); }
.crumbs a { color: #D8DAE0; text-decoration: none; }
.crumbs span { margin: 0 6px; color: #8b8f99; }

/* Shop */
.chips ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 40px; }
.chips a { display: block; padding: 7px 16px; border: 2px solid var(--ink); border-radius: 30px; text-decoration: none; font-weight: 600; font-size: 15px; }
.chips a:hover { background: var(--lime-soft); }
.chips a.on { background: var(--ink); color: var(--lime); }
.group { margin-bottom: 56px; }
.group-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 14px; margin-bottom: 24px; border-bottom: 2px solid var(--ink); }
.group-head h2 { display: flex; align-items: center; gap: 10px; font-size: 26px; margin: 0; }

/* About */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value { background: var(--white); border: 2px solid var(--ink); border-radius: 8px; padding: 26px; }
.value .ic { width: 46px; height: 46px; padding: 10px; background: var(--lime); border-radius: 8px; margin-bottom: 14px; color: var(--ink); }
.value p { margin: 0; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; }
.stats div { padding: 30px; text-align: center; border-right: 2px solid var(--ink); }
.stats div:last-child { border-right: 0; }
.stats strong { display: block; font-family: var(--head); font-size: 40px; font-weight: 800; color: var(--ink); }
.stats span { color: var(--muted); }

/* Articles */
.narrow { max-width: 780px; margin: 0 auto; }
.article h2 { font-size: 24px; margin-top: 30px; }
.article-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 2px solid var(--ink); border-radius: 8px; margin-bottom: 20px; }

/* Forms */
input, textarea { width: 100%; font: inherit; font-size: 16px; padding: 11px 13px; border: 2px solid var(--ink); border-radius: 6px; background: var(--white); margin-top: 6px; }
input:focus, textarea:focus { outline: 3px solid var(--lime); }
label { display: block; font-weight: 600; font-size: 15px; color: var(--ink); margin-bottom: 16px; }
.form-card { background: var(--white); border: 2px solid var(--ink); border-radius: 8px; padding: 30px; box-shadow: var(--shadow); }
.form-card h2 { font-size: 24px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.form-msg { margin-top: 14px; font-weight: 600; color: #3d6b00; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 2px solid var(--ink); border-radius: 8px; margin-bottom: 20px; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed #c9cbd0; }
.info-list .ic { width: 42px; height: 42px; padding: 9px; background: var(--lime); border-radius: 50%; color: var(--ink); }
.info-list div { display: flex; flex-direction: column; }
.info-list strong { font-family: var(--head); color: var(--ink); }
.info-list a { text-decoration: none; }

/* Cart and checkout */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 30px; align-items: start; }
.table-wrap { overflow-x: auto; border: 2px solid var(--ink); border-radius: 8px; }
.cart-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.cart-table th { background: var(--ink); color: var(--white); text-align: left; padding: 12px; font-family: var(--head); font-size: 14px; }
.cart-table td { padding: 12px; border-bottom: 1px solid #dfe0e4; vertical-align: middle; }
.cart-table img { width: 64px; height: 64px; object-fit: contain; border: 1px solid #dfe0e4; border-radius: 6px; }
.cart-table input { width: 72px; margin: 0; }
.remove-btn { background: none; border: 0; color: var(--coral); font-weight: 600; cursor: pointer; font-size: 15px; }
.summary { background: var(--cream); border: 2px solid var(--ink); border-radius: 8px; padding: 24px; box-shadow: var(--shadow); }
.summary h2 { font-size: 22px; }
.summary-line { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed #c9cbd0; }
.summary-line.total { font-family: var(--head); font-weight: 800; font-size: 19px; color: var(--ink); border-bottom: 0; }
.earn-line { background: var(--lime); border: 2px solid var(--ink); border-radius: 6px; padding: 10px 12px; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.earn-line span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.note { font-size: 14px; color: var(--muted); }
.link-back { display: block; text-align: center; margin-top: 14px; font-weight: 600; }
.empty { text-align: center; max-width: 520px; margin: 0 auto; padding: 40px; border: 2px dashed var(--ink); border-radius: 8px; }
.done-ic { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--lime); border: 2px solid var(--ink); margin-bottom: 16px; }

/* Footer */
.footer { background: var(--ink); color: #B9BCC4; padding: 60px 0 0; font-size: 15px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--lime); }
.f-top { display: flex; justify-content: space-between; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid #383b44; }
.f-brand { max-width: 380px; }
.f-brand img { height: 48px; width: auto; margin-bottom: 14px; }
.f-contact { list-style: none; padding: 0; margin: 0; }
.f-contact li { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.f-contact .ic { color: var(--lime); }
.f-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 36px 0; }
.f-col h3 { color: var(--white); font-size: 16px; margin-bottom: 14px; }
.f-col ul { list-style: none; padding: 0; margin: 0; }
.f-col li { padding: 4px 0; }
.f-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; border-top: 1px solid #383b44; }
.f-bottom p { margin: 0; }
.f-bottom span { margin: 0 6px; color: #5b5f69; }

/* Toast */
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: flex; align-items: center; gap: 14px; background: var(--ink); color: var(--white); border: 2px solid var(--lime); border-radius: 8px; padding: 14px 18px; box-shadow: 4px 4px 0 var(--lime); opacity: 0; transform: translateY(20px); pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: none; pointer-events: auto; }
.toast a { color: var(--lime); font-weight: 600; }

/* Responsive */
@media (max-width: 1024px) {
  .product-grid.four, .dept-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { margin: -40px 0 0; }
}
@media (max-width: 860px) {
  .menu-btn { display: grid; place-items: center; }
  .main-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--white); border-bottom: 2px solid var(--ink); padding: 12px 20px; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .topbar-right { display: none !important; }
  .split, .contact-grid, .cart-layout, .news { grid-template-columns: 1fr; }
  .product-grid.three, .quote-grid, .blog-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: 1fr; margin: 20px 0 0; }
  .hero-photo img { height: 300px; }
  .news-text { padding: 32px; }
  .news-photo { display: none; }
  .f-top { flex-direction: column; }
  .f-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .product-grid.four, .product-grid.three, .dept-grid, .quote-grid, .blog-grid, .blog-grid.two-col, .steps, .value-grid { grid-template-columns: 1fr; }
  .two, .three-col { grid-template-columns: 1fr; gap: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 2px solid var(--ink); }
  .sec-head, .group-head, .f-bottom { flex-direction: column; align-items: flex-start; }
  .news-form { flex-direction: column; }
  .section { padding: 56px 0; }
}
