/* ==========================================================
   Smart Saving Stores - style.css
   Colors are defined once at the top. Change them here.
   ========================================================== */

/* ---------- Colors and fonts ----------
   One brand color (Great Lakes blue) plus neutrals: white, greys and near-black. */
:root {
  --bg: #FFFFFF;          /* page background */
  --card: #FFFFFF;        /* cards and panels */
  --soft: #F4F6F8;        /* light grey sections */
  --text: #151A21;        /* main text */
  --muted: #5A626D;       /* secondary text */
  --line: #E2E6EB;        /* borders */
  --brand: #1D4E89;       /* THE brand color: buttons, links, highlights */
  --brand-dark: #153C6B;
  --brand-tint: #EAF1F9;  /* very light version of the brand color */
  --accent: var(--brand); /* same color: there is only one */
  --deep: #151A21;        /* footer */
  --good: #151A21;        /* savings lines use text color (no second color) */
  --bad: #1D4E89;         /* errors use the brand color */
  --on-brand: #FFFFFF;    /* text on brand-colored backgrounds */
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Inter', system-ui, sans-serif;
  --mono: 'Roboto Mono', ui-monospace, monospace;
  --radius: 10px;
}
/* Dark mode: same names, darker values */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1318; --card: #161B22; --soft: #1B2129; --text: #EEF2F6; --muted: #A6AFBA; --line: #2B333D;
    --brand: #7FB2EE; --brand-dark: #A6CAF4; --brand-tint: #16263A; --deep: #0A0D11; --good: #EEF2F6; --bad: #7FB2EE; --on-brand: #0F1318;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1318; --card: #161B22; --soft: #1B2129; --text: #EEF2F6; --muted: #A6AFBA; --line: #2B333D;
  --brand: #7FB2EE; --brand-dark: #A6CAF4; --brand-tint: #16263A; --deep: #0A0D11; --good: #EEF2F6; --bad: #7FB2EE; --on-brand: #0F1318;
  color-scheme: dark;
}

/* ---------- Basics ---------- */
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }  /* hidden things stay hidden, whatever other rules say */
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; }
h1, h2 { font-family: var(--display); font-weight: 800; }
h1 { font-size: clamp(30px, 4vw, 44px); }
h2 { font-size: clamp(22px, 2.4vw, 28px); }
h3 { font-size: 18px; }
p { margin: 0 0 12px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; padding-top: 24px; padding-bottom: 24px; }
.section { padding-top: 32px; padding-bottom: 32px; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--brand); margin-bottom: 6px; }
.eyebrow.light { color: var(--on-brand); }
.lead { font-size: 18px; color: var(--muted); }
.small-note { font-size: 13.5px; color: var(--muted); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--brand); color: var(--on-brand); border: 2px solid var(--brand); border-radius: 999px; padding: 10px 22px; font: inherit; font-size: 15px; font-weight: 700; line-height: 1.3; text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-small { padding: 7px 14px; font-size: 14px; }
.btn-full { width: 100%; margin-top: 10px; }
.btn-accent { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn-accent:hover { background: var(--muted); border-color: var(--muted); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--line); }
.btn-outline:hover { background: var(--soft); border-color: var(--text); }
.link-button { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--brand); text-decoration: underline; cursor: pointer; }

/* ---------- Top bar and header ---------- */
.topbar { background: var(--soft); color: var(--muted); font-size: 13.5px; border-top: 4px solid var(--brand); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar b { font-family: var(--mono); color: var(--brand); }
.topbar a { color: var(--text); font-weight: 600; text-decoration: none; }
.header { background: var(--card); }
.header-row { display: flex; align-items: center; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.logo { flex: none; display: block; }
.logo img { width: 200px; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: block; } }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
.search { flex: 1; display: flex; align-items: center; background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: 4px; min-width: 0; }
.search:focus-within { border-color: var(--brand); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 7px 14px; font: inherit; color: var(--text); outline: none; }
.search button { border: 0; border-radius: 999px; background: var(--brand); color: var(--on-brand); font: inherit; font-weight: 700; padding: 7px 20px; cursor: pointer; }
.header-links { display: flex; align-items: center; gap: 20px; }
.header-links a { color: var(--text); text-decoration: none; font-weight: 600; }
.header-links a:hover { color: var(--brand); }
.cart-link { display: inline-flex; align-items: center; background: var(--brand-tint); color: var(--brand) !important; padding: 9px 16px; border-radius: 999px; }
.cart-link:hover { background: var(--brand); color: var(--on-brand) !important; }
.cart-count { display: inline-block; min-width: 22px; text-align: center; background: var(--brand); color: var(--on-brand); border-radius: 999px; font-size: 13px; line-height: 22px; padding: 0 6px; margin-left: 6px; }
.dept-nav { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dept-nav .container { display: flex; justify-content: center; gap: 6px; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; }
.dept-nav a { flex: none; color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; padding: 12px 12px; border-bottom: 2px solid transparent; }
.dept-nav a:hover { color: var(--brand); }
.dept-nav a.active { color: var(--brand); border-bottom-color: var(--brand); }
@media (max-width: 1100px) { .dept-nav .container { justify-content: flex-start; } }
@media (max-width: 860px) {
  .header-row { flex-wrap: wrap; gap: 14px; }
  .search { order: 3; flex-basis: 100%; }
  .header-links a:not(.cart-link) { display: none; }
  .header-links { margin-left: auto; }
  .logo img { height: 30px; }
}
@media (max-width: 480px) { .topbar .container { justify-content: center; text-align: center; gap: 2px 12px; } }

/* ---------- Homepage banner: text and image in one row ---------- */
.banner { padding-top: 40px; padding-bottom: 16px; }
.banner-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.banner h1 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.05; }
.banner h1 span { display: block; color: var(--brand); }
.banner p { color: var(--muted); font-size: 17px; }
.banner-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.banner .btn { border-radius: 999px; }
.banner-photo { margin: 0; }
.banner-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 62% 50%; border-radius: 18px; }
.promise-line { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; color: var(--muted); }
.promise-line li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.promise-line b { color: var(--brand); }
figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; }
figcaption a { color: inherit; }
@media (max-width: 860px) { .banner-row { gap: 28px; } .banner .btn { padding: 8px 15px; font-size: 14px; } .banner-buttons .btn { flex: 1 1 100%; } .banner p { font-size: 15.5px; } .promise-line li + li { padding-left: 0; border-left: 0; } .promise-line { flex-direction: column; gap: 4px; } }
/* Phones stack the image under the text */
@media (max-width: 640px) { .banner-row { grid-template-columns: minmax(0, 1fr); gap: 20px; } .banner { padding-top: 22px; } }

/* ---------- Department tiles ---------- */
.dept-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dept-tile { display: grid; justify-items: center; gap: 2px; padding: 16px 16px 18px; border-radius: var(--radius); background: var(--soft); text-decoration: none; color: var(--text); text-align: center; border: 1.5px solid transparent; }
.dept-tile:hover { border-color: var(--brand); }
.dept-pic { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; background: #FFFFFF; border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
.dept-pic img { width: 72%; height: 88%; object-fit: contain; transition: transform 0.2s; }
.dept-tile:hover img { transform: scale(1.05); }
.dept-tile b { font-size: 15.5px; line-height: 1.3; }
.dept-tile small { color: var(--muted); font-size: 13px; }
@media (max-width: 860px) { .dept-tiles { gap: 12px; } .dept-tile { padding: 10px 10px 14px; } .dept-tile b { font-size: 14px; } }
@media (max-width: 700px) { .dept-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Soft band section ---------- */
.soft-band { background: var(--soft); margin: 16px 0; }

/* ---------- Gift card cells ---------- */
.gift-cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gift-cell { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.gift-cell img { width: 96px; height: 64px; object-fit: contain; background: #FFFFFF; border-radius: 6px; }
.gift-cell a { display: block; color: var(--text); font-weight: 600; font-size: 14.5px; line-height: 1.3; text-decoration: none; }
.gift-cell a:hover { color: var(--brand); }
.gift-cell span { color: var(--brand); font-weight: 700; font-size: 14.5px; }
.gift-cell .btn { border-radius: 999px; }
.gift-note { margin-top: 14px; }
@media (max-width: 1000px) { .gift-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .gift-cells { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Town card ---------- */
.town-card { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.town-card figure { margin: 0; }
.town-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; }
.town-text p { color: var(--muted); }
@media (max-width: 860px) { .town-card { grid-template-columns: minmax(0, 1fr); gap: 18px; } }

/* ---------- Order progress steps (cart, checkout, confirmation) ---------- */
.steps { list-style: none; display: flex; align-items: center; gap: 10px; padding-top: 6px; padding-bottom: 10px; margin: 0 auto; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--muted); font-size: 14.5px; }
.steps li + li::before { content: ""; width: 36px; height: 2px; background: var(--line); margin-right: 2px; }
.steps span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); font-size: 13px; }
.steps li.on { color: var(--text); }
.steps li.on span { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.steps li.done span { border-color: var(--brand); color: var(--brand); }
.steps li.done + li::before, .steps li.on::before { background: var(--brand); }
@media (max-width: 480px) { .steps { gap: 6px; flex-wrap: nowrap; } .steps li { font-size: 13px; gap: 6px; } .steps li + li::before { width: 14px; } .steps span { width: 24px; height: 24px; font-size: 12px; } }

/* ---------- Section headings ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head > a { padding-bottom: 3px; }
.section-head > div { min-width: 0; }
.section-head a { font-weight: 700; text-decoration: none; white-space: nowrap; }
.page-head { padding-top: 10px; padding-bottom: 6px; }
.page-head p { color: var(--muted); max-width: 760px; }
.sub-title { font-size: 22px; margin-bottom: 14px; }
.crumbs { font-size: 14px; color: var(--muted); padding-top: 16px; padding-bottom: 8px; }
.crumbs a { color: var(--muted); }

/* ---------- Product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card:hover { box-shadow: 0 10px 24px rgba(23, 20, 26, 0.10); }
.card-img { display: block; background: #fff; padding: 14px; }
.card-img img { aspect-ratio: 1; object-fit: contain; width: 100%; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; border-top: 1px solid var(--line); }
.card-dept { font-size: 12px; font-family: var(--mono); color: var(--brand); text-transform: uppercase; }
.card-title { color: var(--text); text-decoration: none; font-weight: 600; font-size: 14.5px; line-height: 1.4; min-height: 2.8em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title:hover { color: var(--brand); }
.card-note { font-size: 13px; color: var(--muted); }
.card .btn { margin-top: auto; }
.price { font-size: 24px; font-weight: 800; }
.price sup { font-size: 0.5em; top: -0.8em; }
.plan-art { aspect-ratio: 1; display: grid; place-content: center; text-align: center; gap: 4px; background: var(--brand); color: var(--on-brand); border-radius: var(--radius); padding: 12px; }
.plan-art b { font-size: 18px; color: var(--on-brand); }
.plan-art.big { border-radius: var(--radius); }
.plan-art.big b { font-size: 28px; }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }  /* 4 or 2 per row, so rows of 8 always fill */
@media (max-width: 700px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .price { font-size: 20px; } .card-img { padding: 8px; } }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { margin: 0; display: flex; flex-direction: column; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 20px; }
.review blockquote { flex: 1; }
.reviews + .small-note { margin-top: 14px; }
.sample-label { display: inline-block; align-self: flex-start; font-family: var(--mono); font-size: 11px; text-transform: uppercase; background: var(--soft); padding: 2px 8px; border-radius: 6px; color: var(--muted); }
.stars { color: var(--brand); margin: 8px 0; letter-spacing: 2px; }
.review blockquote { margin: 0 0 10px; font-style: italic; color: var(--muted); }
.review figcaption { font-size: 13px; margin: 0; }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post-grid.two { grid-template-columns: repeat(2, 1fr); }
.post-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); }
.post-card:hover { border-color: var(--brand); }
.post-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--soft); padding: 12px; }
.post-imgs img { aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 8px; padding: 4px; }
.post-imgs.big { border-radius: var(--radius); margin: 16px 0 20px; }
.post-text { padding: 16px; }
.post-text p { color: var(--muted); font-size: 14.5px; margin: 0; }
.post-meta { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.article h2 { margin-top: 26px; font-size: 22px; }
.article ul { padding-left: 20px; }
@media (max-width: 860px) { .post-grid, .post-grid.two { grid-template-columns: 1fr; } }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--brand); color: var(--on-brand); margin-top: 30px; }
.newsletter .eyebrow.light { color: var(--on-brand); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .newsletter { background: var(--soft); } }
:root[data-theme="dark"] .newsletter { background: var(--soft); }
.newsletter-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; padding-top: 36px; padding-bottom: 36px; }
.newsletter p { color: var(--on-brand); margin: 0; opacity: 0.92; }
.newsletter h2 { color: var(--on-brand); }
.inline-form { display: flex; gap: 8px; }
.inline-form input { flex: 1; min-width: 0; border: 0; border-radius: 4px; padding: 12px 18px; font: inherit; }
.newsletter .success { background: rgba(255, 255, 255, 0.15); color: var(--on-brand); }
@media (max-width: 860px) { .newsletter-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.footer { background: var(--deep); color: #C3CBD5; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 24px; padding-top: 40px; padding-bottom: 24px; }
.footer-logo { height: 34px; width: auto; margin-bottom: 14px; }
.footer h4 { color: #fff; margin: 0 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer a { color: #C3CBD5; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { position: relative; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 20px; font-size: 13px; }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: 16px; right: 16px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- Department page listings (full product details, no separate product pages) ---------- */
.listings { display: grid; gap: 16px; }
.listing { display: grid; grid-template-columns: 220px minmax(0, 1fr) 210px; gap: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; scroll-margin-top: 16px; }
.listing:target { border-color: var(--brand); box-shadow: 0 0 0 3px var(--soft); }
.listing-img { background: #fff; border-radius: 8px; padding: 10px; align-self: start; }
.listing-img img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.listing-info h2 { font-size: 19px; font-weight: 600; line-height: 1.35; margin: 4px 0 6px; letter-spacing: 0; }
.listing-info > .price { display: none; }
.features { padding-left: 18px; margin: 8px 0 10px; font-size: 14.5px; }
.features li { margin-bottom: 5px; }
.listing details { border-top: 1px solid var(--line); padding-top: 10px; }
.listing summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.listing details[open] summary { margin-bottom: 10px; }
.listing details p { margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.listing-buy { border-left: 1px solid var(--line); padding-left: 20px; align-self: start; }
@media (max-width: 860px) {
  .listing { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px; }
  .listing-img { width: 160px; justify-self: center; }
  .listing-info > .price { display: block; }
  .listing-buy { grid-column: 1 / -1; border-left: 0; padding-left: 0; }
  .listing-buy > .price, .listing-buy .stock { display: none; }
  .listing-info h2 { font-size: 16px; }
}

/* ---------- Product page (not used: products are listed on department pages) ---------- */
.product { display: grid; grid-template-columns: 1fr 1.2fr 300px; gap: 28px; align-items: start; padding-top: 8px; }
.product-img { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 16px; }
.product-info h1 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; }
.brand { font-size: 14px; }
.product-price { padding: 8px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.about h2 { font-size: 18px; }
.about ul { padding-left: 18px; margin: 0; }
.about li { margin-bottom: 8px; }
.buy-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.buy-box label { display: block; font-weight: 600; margin-top: 10px; }
.buy-box select { width: 100%; padding: 9px; border-radius: 10px; border: 1px solid var(--line); font: inherit; background: var(--bg); color: var(--text); }
.delivery { font-size: 14px; color: var(--muted); }
.stock { color: var(--text); font-weight: 700; margin: 0; }
.mini-table { width: 100%; font-size: 13.5px; margin-top: 14px; border-collapse: collapse; }
.mini-table th { text-align: left; color: var(--muted); font-weight: 500; padding: 4px 8px 4px 0; vertical-align: top; }
.product-details { padding-top: 24px; }
.product-details > * { max-width: 900px; }
.product-details h2 { font-size: 21px; margin-top: 26px; }
.spec-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 34%; background: var(--soft); font-weight: 600; }
@media (max-width: 960px) {
  .product { grid-template-columns: 1fr; }
  .product-img { position: static; max-width: 420px; }
}

/* ---------- Cart and checkout ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; padding-bottom: 30px; }
.cart-line { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 10px; }
.cart-line img { width: 80px; height: 80px; object-fit: contain; background: #fff; border-radius: 8px; }
.cart-name { font-weight: 700; color: var(--text); text-decoration: none; display: block; }
.qty-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.qty-row button:not(.link-button) { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); cursor: pointer; font-size: 16px; }
.summary { overflow-anchor: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: 16px; }
.summary h2 { font-size: 20px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.sum-row.good { color: var(--good); font-weight: 600; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-weight: 800; font-size: 18px; }
.promo-form { margin-top: 12px; }
.promo-form label { font-weight: 600; font-size: 14px; }
.promo-form div { display: flex; gap: 8px; margin-top: 4px; }
.promo-form input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 4px; font: inherit; background: var(--bg); color: var(--text); text-transform: uppercase; }
.promo-msg { color: var(--bad); font-size: 13.5px; margin: 6px 0 0; }
.promo-on { color: var(--good); font-weight: 600; font-size: 14px; margin-top: 10px; }
.mini-lines { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; }
.mini-line { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--muted); padding: 3px 0; }
.checkout-form h2 { font-size: 19px; margin-top: 22px; }
.checkout-form label, .panel label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 10px; }
input, select, textarea { font: inherit; color: var(--text); }
.checkout-form input, .checkout-form select, .panel input, .panel select, .panel textarea {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); font-weight: 400;
}
.invalid { border-color: var(--bad) !important; background: color-mix(in srgb, var(--bad) 6%, var(--card)) !important; }
.form-error { color: var(--bad); font-weight: 600; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row.three { grid-template-columns: 1.4fr 1fr 1fr; }
.radio { display: flex !important; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; font-weight: 400 !important; }
.radio span:nth-of-type(1) { flex: 1; }
.radio input { width: auto !important; margin: 0 !important; display: inline !important; }
@media (max-width: 860px) {
  .cart-layout { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .row, .row.three { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Content pages ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel.dark { background: var(--deep); color: #DCE2E9; border: 0; }
.panel.dark a { color: #fff; }
.panel.dark b { color: #fff; }
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.about-page { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; padding-top: 10px; padding-bottom: 30px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.about-grid div { background: var(--soft); border-radius: var(--radius); padding: 18px; }
.about-grid p { color: var(--muted); font-size: 14.5px; margin: 6px 0 0; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 8px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 12px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.check { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 400 !important; }
.check input { width: auto !important; display: inline !important; margin-top: 5px !important; }
.success { background: var(--soft); color: var(--text); border-radius: var(--radius); padding: 14px 16px; font-weight: 600; margin: 0; }
.empty { color: var(--muted); }
.shop-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.shop-tools select { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); }
#shop-count { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .contact-layout, .about-page, .about-grid, .checks { grid-template-columns: 1fr; } }

/* ---------- Pop-up message ---------- */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 140%); background: var(--deep); color: #fff; padding: 12px 18px; border-radius: var(--radius); font-size: 14.5px; transition: transform 0.25s; z-index: 50; max-width: calc(100% - 32px); visibility: hidden; }
.toast a { color: #fff; }
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* ---------- Cart panel (slides in from the right) ---------- */
.cart-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4); z-index: 60; }
.mini-cart { position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 100%); background: var(--card); z-index: 61; display: flex; flex-direction: column; transform: translateX(105%); transition: transform 0.25s ease; box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15); }
.mini-cart:not(.open) { visibility: hidden; box-shadow: none; transition: transform 0.25s ease, visibility 0s 0.25s; }
.mini-cart.open { transform: none; }
.mini-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.mini-head h2 { font-size: 20px; margin: 0; }
.mini-close { border: 0; background: var(--soft); color: var(--text); width: 36px; height: 36px; border-radius: 8px; font-size: 22px; cursor: pointer; }
.mini-body { padding: 16px 20px; overflow-y: auto; display: grid; gap: 10px; align-content: start; }
.mini-notice { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--brand-tint); color: var(--brand); font-weight: 600; font-size: 14px; }
.mini-lines-list { display: grid; }
.mini-lines-list .mini-line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mini-lines-list .mini-line img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 6px; border: 1px solid var(--line); }
.mini-lines-list .mini-line a { color: var(--text); font-weight: 600; font-size: 14px; text-decoration: none; display: block; }
.mini-lines-list .mini-line b { font-size: 14px; }
.mini-empty { color: var(--muted); }
