/* Best Offer Place - styles
   Colors and fonts live in :root so they are easy to change. */
:root {
  --cobalt: #2340C8;
  --cobalt-dark: #172B8F;
  --ink: #0E1530;
  --orange: #FF6B2C;
  --orange-soft: #FFE8DC;
  --ice: #EEF2FF;
  --bg: #F7F8FC;
  --white: #FFFFFF;
  --text: #2E3550;
  --muted: #646B85;
  --line: #DDE2F0;
  --radius: 18px;
  --head: "Space Grotesk", Arial, sans-serif;
  --body: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--body); color: var(--text); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt); text-decoration: none; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: 46px; }
h2 { font-size: 32px; }
h3 { font-size: 19px; }
p { margin: 0 0 14px; }
ul { margin: 0; padding: 0; list-style: none; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* 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: 17px; height: 17px; }
.ic.xs { width: 14px; height: 14px; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border: 0; border-radius: 999px;
  background: var(--orange); color: var(--white); font-family: var(--head); font-weight: 600; font-size: 16px; cursor: pointer; transition: background .2s; }
.btn:hover { background: #E85414; }
.btn.small { padding: 9px 18px; font-size: 14px; }
.btn.full { width: 100%; }
.btn.light { background: var(--white); color: var(--cobalt); }
.btn.light:hover { background: var(--orange-soft); }
.btn.ghost { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.6); }
.btn.ghost:hover { background: rgba(255,255,255,.12); }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--cobalt); }
.text-link:hover { color: var(--orange); }
.kicker { display: inline-flex; align-items: center; gap: 6px; font-family: var(--head); font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }

/* Top bar and header */
.topbar { background: var(--ink); color: #C9CFEA; font-size: 14px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 9px 20px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 6px; color: #C9CFEA; }
.topbar-right { gap: 22px !important; }
.header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 78px; }
.logo img { height: 46px; width: auto; }
.main-nav ul { display: flex; gap: 6px; }
.main-nav a { display: block; padding: 8px 16px; border-radius: 999px; font-weight: 500; color: var(--ink); }
.main-nav a:hover { background: var(--ice); }
.main-nav a.on { background: var(--cobalt); color: var(--white); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.cart-link { position: relative; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ice); color: var(--cobalt); }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 999px; background: var(--orange);
  color: var(--white); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.menu-btn { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); cursor: pointer; }

/* Sections */
.section { padding: 76px 0; }
.section.tint { background: var(--ice); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 34px; }
.sec-head h2 { margin: 0; }
.sec-head.center { justify-content: center; text-align: center; }

/* Bento hero */
.hero { padding: 32px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr 250px; grid-template-rows: 1fr 1fr; gap: 18px; }
.hero-main { grid-row: 1 / 3; background: var(--cobalt); color: #DCE3FF; border-radius: var(--radius); padding: 54px 46px; display: flex; flex-direction: column; justify-content: center;
  background-image: radial-gradient(circle at 92% 12%, rgba(255,255,255,.14) 0 90px, transparent 91px), radial-gradient(circle at 8% 100%, rgba(255,107,44,.35) 0 120px, transparent 121px); }
.hero-main .kicker { color: #FFC7AC; }
.hero-main h1 { color: var(--white); }
.hero-main p { font-size: 18px; margin-bottom: 26px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { grid-row: 1 / 3; border-radius: var(--radius); overflow: hidden; min-height: 440px; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-tile { border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-tile strong { font-family: var(--head); font-size: 46px; line-height: 1; margin-bottom: 8px; }
.hero-tile.orange { background: var(--orange); color: var(--white); }
.hero-tile.pale { background: var(--orange-soft); color: var(--ink); }

/* Perks */
.perks { padding: 18px 0 0; }
.perks-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.perk { display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: var(--cobalt); }
.perk strong { display: block; font-family: var(--head); color: var(--ink); }
.perk span { font-size: 14px; color: var(--muted); }

/* Departments */
.dept-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.dept { display: flex; flex-direction: column; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; color: var(--ink); transition: transform .2s, border-color .2s; }
.dept:hover { transform: translateY(-3px); border-color: var(--cobalt); }
.dept-ic { width: 52px; height: 52px; border-radius: 14px; background: var(--ice); color: var(--cobalt); display: flex; align-items: center; justify-content: center; }
.dept:nth-child(even) .dept-ic { background: var(--orange-soft); color: var(--orange); }
.dept-name { font-family: var(--head); font-weight: 600; font-size: 18px; }
.dept-count { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); margin-top: auto; }

/* 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: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.product-img { aspect-ratio: 1 / 1; background: var(--white); padding: 14px; border-bottom: 1px solid var(--line); }
.product-img img { width: 100%; height: 100%; object-fit: contain; }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 18px; }
.p-dept { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--orange); margin-bottom: 6px; }
.product h3 { font-size: 17px; margin-bottom: 8px; }
.product p { font-size: 14px; color: var(--muted); }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.price { font-family: var(--head); font-weight: 700; font-size: 21px; color: var(--cobalt); }
.add-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 0; border-radius: 999px; background: var(--cobalt); color: var(--white);
  font-family: var(--body); font-weight: 700; font-size: 14px; cursor: pointer; transition: background .2s; }
.add-btn:hover { background: var(--cobalt-dark); }
.add-btn.added { background: var(--orange); }

/* Split blocks (why, about) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split-photo img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.why-item { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.why-item .num { font-family: var(--head); font-weight: 700; color: var(--orange); }
.why-item h3 { margin: 6px 0; font-size: 17px; }
.why-item p { margin: 0; font-size: 14px; color: var(--muted); }

/* Under $20 band */
.deal-band { background: var(--orange-soft); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 26px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; background: var(--cobalt);
  color: var(--white); font-family: var(--head); font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.step p { margin: 0; color: var(--muted); }

/* Testimonials */
.testimonials { background: var(--ink); }
.testimonials h2 { color: var(--white); }
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.t-card { margin: 0; display: flex; flex-direction: column; background: #1A2348; border-radius: var(--radius); padding: 28px; color: #D5DAF0; }
.t-stars { display: flex; gap: 3px; color: var(--orange); margin-bottom: 14px; }
.t-stars .ic { fill: var(--orange); }
.t-card blockquote { margin: 0 0 22px; font-size: 17px; }
.t-card figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.t-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--cobalt); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 700; }
.t-card strong { display: block; color: var(--white); }
.t-card small { color: #9AA3C8; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.blog-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.blog-body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.blog-body h3 a { color: var(--ink); }
.blog-body p { color: var(--muted); font-size: 15px; }
.blog-body .text-link { margin-top: auto; }

/* Newsletter */
.news { display: grid; grid-template-columns: 1fr 1.1fr; background: var(--cobalt); border-radius: var(--radius); overflow: hidden; }
.news-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; }
.news-text { padding: 46px; color: #DCE3FF; }
.news-text .kicker { color: #FFC7AC; }
.news-text h2 { color: var(--white); }
.news-form { display: flex; gap: 10px; }
.news-form input { flex: 1; }
.news-text .form-msg { color: var(--white); }

/* Page banner */
.banner { background: var(--cobalt); color: #DCE3FF; padding: 54px 0; background-image: radial-gradient(circle at 95% 20%, rgba(255,107,44,.45) 0 80px, transparent 81px); }
.banner h1 { color: var(--white); font-size: 40px; margin-bottom: 8px; }
.banner p { margin: 0; max-width: 640px; }
.crumbs { font-size: 14px; margin-bottom: 10px !important; }
.crumbs a { color: var(--white); }
.crumbs span { margin: 0 6px; color: #9EB0FF; }

/* Shop */
.chips ul { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 38px; }
.chips a { display: block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font-size: 14px; font-weight: 500; }
.chips a:hover { border-color: var(--cobalt); }
.chips a.on { background: var(--cobalt); border-color: var(--cobalt); color: var(--white); }
.group { margin-bottom: 54px; }
.group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 2px solid var(--line); }
.group-head h2 { margin: 0; font-size: 26px; flex: 1; }
.group-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--ice); color: var(--cobalt); display: flex; align-items: center; justify-content: center; }

/* About */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value { background: var(--white); border-radius: var(--radius); padding: 26px; color: var(--cobalt); }
.value h3 { margin: 12px 0 8px; }
.value p { margin: 0; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats div { background: var(--orange-soft); border-radius: var(--radius); padding: 30px 20px; }
.stats strong { display: block; font-family: var(--head); font-size: 40px; color: var(--ink); }
.stats span { color: var(--muted); }

/* Contact and forms */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 34px; align-items: start; }
.contact-info img { border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; margin-bottom: 22px; }
.info-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.info-list li { display: flex; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px; font-size: 14px; }
.info-list strong { display: block; color: var(--ink); }
.info-ic { color: var(--orange); }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.form-card.narrow { max-width: 560px; margin: 0 auto; }
.form-card h2 { font-size: 24px; }
label { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 14px; }
input, textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; background: var(--white); }
input:focus, textarea:focus { outline: 2px solid var(--cobalt); border-color: var(--cobalt); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.form-msg { margin: 12px 0 0; font-weight: 700; color: var(--cobalt); }

/* Articles */
.article-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.article { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px; }
.article.narrow { max-width: 820px; margin: 0 auto; }
.article h2 { font-size: 23px; margin-top: 26px; }
.article-img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 14px; margin-bottom: 10px; }
.article-side { background: var(--ice); border-radius: var(--radius); padding: 26px; position: sticky; top: 100px; }
.article-side li { margin-bottom: 12px; }
.article-side a { font-weight: 500; }
.article-side .btn { margin-top: 10px; color: var(--white); }

/* Cart and checkout */
.empty { text-align: center; max-width: 520px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 46px 30px; }
.done-ic { display: inline-flex; width: 64px; height: 64px; border-radius: 50%; background: var(--cobalt); color: var(--white); align-items: center; justify-content: center; margin-bottom: 14px; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: start; }
.table-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; padding: 14px; font-family: var(--head); font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line); }
.cart-table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table img { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; }
.cart-table input { width: 70px; margin: 0; }
.remove-btn { border: 0; background: none; color: var(--orange); font-weight: 700; cursor: pointer; }
.summary { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.summary h2 { font-size: 22px; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.summary-line.total { font-family: var(--head); font-weight: 700; font-size: 19px; color: var(--ink); border-bottom: 0; }
.note { font-size: 14px; color: var(--muted); }
.link-back { display: block; text-align: center; margin-top: 14px; font-weight: 500; }

/* Footer */
.footer { background: var(--ink); color: #AEB5D3; padding: 60px 0 0; margin-top: 0; }
.footer a { color: #AEB5D3; }
.footer a:hover { color: var(--white); }
.f-top { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding-bottom: 34px; border-bottom: 1px solid #262F55; }
.f-brand img { height: 46px; width: auto; margin-bottom: 12px; }
.f-brand p { max-width: 420px; margin: 0; }
.f-contact li { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.f-contact .ic { color: var(--orange); }
.f-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 38px 0; }
.f-col h3 { color: var(--white); font-size: 17px; }
.f-col li { margin-bottom: 9px; }
.f-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; border-top: 1px solid #262F55; font-size: 14px; }
.f-bottom p { margin: 0; }
.f-bottom span { margin: 0 8px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); display: flex; align-items: center; gap: 16px; background: var(--ink); color: var(--white);
  padding: 14px 20px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .3s, visibility .3s; z-index: 100; max-width: calc(100% - 32px); visibility: hidden; }
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.toast a { color: var(--orange); font-weight: 700; white-space: nowrap; }

/* Tablet */
@media (max-width: 1024px) {
  h1 { font-size: 38px; }
  .hero-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .hero-main, .hero-photo { grid-row: auto; }
  .hero-photo { min-height: 320px; }
  .perks-grid, .dept-grid, .product-grid.four, .value-grid, .stats { grid-template-columns: repeat(2, 1fr); }
  .product-grid.three, .blog-grid, .t-grid { grid-template-columns: repeat(2, 1fr); }
  .f-cols { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid, .cart-layout, .article-wrap { grid-template-columns: 1fr; }
  .article-side { position: static; }
}

/* Phone */
@media (max-width: 760px) {
  .topbar-in { justify-content: center; text-align: center; }
  .topbar-right { display: none !important; }
  .header-in { height: 70px; }
  .logo img { height: 38px; }
  .header-actions .btn { display: none; }
  .menu-btn { display: flex; align-items: center; justify-content: center; }
  .main-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 12px 16px; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .container { padding: 0 16px; }
  .section { padding: 54px 0; }
  h1, .banner h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { padding: 36px 26px; }
  .hero-tile strong { font-size: 36px; }
  .perks-grid, .dept-grid, .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .perk { flex-direction: column; align-items: flex-start; padding: 16px; }
  .dept { padding: 18px; }
  .product-grid.four, .product-grid.three, .blog-grid, .t-grid,
  .why-grid, .value-grid, .steps, .info-list, .two, .three-col, .f-cols { grid-template-columns: 1fr; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .sec-head.center { align-items: center; }
  .news { grid-template-columns: 1fr; }
  .news-text { padding: 30px 24px; }
  .news-form { flex-direction: column; }
  .f-top, .f-bottom { flex-direction: column; align-items: flex-start; }
  .article { padding: 24px; }
  .form-card { padding: 24px; }
}
