/* ==========================================================
   Shop Mark Avista - style.css
   Bootstrap 5 does the layout (grid, buttons, forms).
   This file adds our one brand color, the font and a few extras.
   Change the brand color here, in the :root block.
   ========================================================== */

/* ---------- Colors and font ----------
   One brand color (rosewood) plus neutral greys: white, greys and near-black. */
:root {
  --brand: #8E3B46;        /* THE brand color: buttons, links, highlights */
  --brand-dark: #74303A;   /* hover color for buttons */
  --brand-tint: #F7ECEE;   /* very light version of the brand color */
  --text: #2A1D20;         /* main text */
  --muted: #6B5B5F;        /* secondary text */
  --line: #EADDE0;         /* borders */
  --soft: #FBF7F7;         /* light grey sections */
  --deep: #2B171B;         /* top bar and footer */
  --font: 'Overpass', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Tell Bootstrap to use our font and colors */
  --bs-body-font-family: var(--font);
  --bs-body-color: var(--text);
  --bs-body-bg: #FFFFFF;
  --bs-link-color: var(--brand);
  --bs-link-color-rgb: 142, 59, 70;
  --bs-link-hover-color: var(--brand-dark);
  --bs-link-hover-color-rgb: 116, 48, 58;
  --bs-border-color: var(--line);
  --bs-border-radius: 12px;
  --display: 'Overpass', system-ui, sans-serif;
}

/* ---------- Basics ---------- */
body { background: #FFFFFF; color: var(--text); font-family: var(--font); }
img { max-width: 100%; height: auto; }   /* photos keep their shape */
[hidden] { display: none !important; }   /* hidden things stay hidden, whatever other rules say */
h1, h2, h3, .h4 { font-family: var(--display); font-weight: 800; letter-spacing: -0.015em; }
h4, h5, h6, .h5, .h6 { font-weight: 700; }
h1 { font-size: clamp(30px, 4vw, 44px); }
h2 { font-size: clamp(22px, 2.4vw, 30px); }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand); margin-bottom: 6px; }
.eyebrow.light { color: #FFFFFF; opacity: 0.85; }
.text-brand { color: var(--brand); }
.small-note { font-size: 14px; color: var(--muted); }
.lead { color: var(--muted); }
.narrow { max-width: 820px; }
.see-all { font-weight: 700; text-decoration: none; }
.sub-title { font-size: 22px; margin: 8px 0 16px; }
figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; }
figcaption a { color: inherit; }

/* ---------- Buttons: our brand version of Bootstrap's btn-primary ---------- */
.btn-brand {
  --bs-btn-color: #FFFFFF;
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-color: #FFFFFF;
  --bs-btn-hover-bg: var(--brand-dark);
  --bs-btn-hover-border-color: var(--brand-dark);
  --bs-btn-active-color: #FFFFFF;
  --bs-btn-active-bg: var(--brand-dark);
  --bs-btn-active-border-color: var(--brand-dark);
  font-weight: 700;
}
.btn { font-weight: 700; border-radius: 10px; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--brand); box-shadow: 0 0 0 0.2rem rgba(142, 59, 70, 0.2); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }

/* ---------- Top bar, header and menus ---------- */
.topbar { background: var(--deep); color: #E3C6CB; font-size: 13.5px; }
.topbar b { color: #FFFFFF; letter-spacing: 0.03em; }
.topbar a { color: #FFFFFF; font-weight: 700; text-decoration: none; }
.site-header { border-bottom: 1px solid var(--line); background: #FFFFFF; }
.logo { height: 38px; width: auto; }
.navbar .nav-link { color: var(--text); font-weight: 600; }
.navbar .nav-link:hover { color: var(--brand); }
.cart-count { background: #FFFFFF; color: var(--brand); margin-left: 4px; }
.dept-nav { border-top: 1px solid var(--line); background: #FFFFFF; }
.dept-nav .nav { overflow-x: auto; white-space: nowrap; scrollbar-width: thin; justify-content: space-between; }
.dept-nav .nav-link { color: var(--text); font-weight: 600; font-size: 14px; padding: 12px 10px; border-bottom: 3px solid transparent; }
.dept-nav .nav-link:hover { color: var(--brand); }
.dept-nav .nav-link.active { color: var(--brand); border-bottom-color: var(--brand); }
@media (max-width: 1199px) { .dept-nav .nav { justify-content: flex-start; } }
@media (max-width: 991px) { .logo { height: 28px; } }
@media (max-width: 575px) { .logo { height: 22px; } }

/* ---------- Homepage banner: photo and text in one row ---------- */
.hero { background: linear-gradient(180deg, var(--brand-tint) 0%, #FFFFFF 100%); padding: 56px 0 48px; }
.hero h1 { font-size: clamp(2rem, 3.8vw, 3.2rem); line-height: 1.08; margin: 6px 0 14px; }
.hero h1 span { color: var(--brand); }
.hero .lead { color: var(--muted); }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 24px 0 0; font-size: 14.5px; font-weight: 600; }
.hero-points li { position: relative; padding-left: 20px; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 10px; margin-top: -6px; border-radius: 50%; background: var(--brand); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 55% 60%; display: block; border-radius: 24px 24px 24px 4px; box-shadow: 0 22px 46px rgba(43, 23, 27, 0.16); }

/* ---------- Department tiles ---------- */
.dtile { display: flex; align-items: center; gap: 14px; height: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #FFFFFF; text-decoration: none; color: var(--text); transition: border-color 0.15s, box-shadow 0.15s; }
.dtile:hover { border-color: var(--brand); box-shadow: 0 10px 22px rgba(43, 23, 27, 0.08); }
.dtile-img { flex-shrink: 0; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--soft); }
.dtile-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dtile-text b { display: block; font-size: 16px; line-height: 1.25; }
.dtile-text small { color: var(--muted); font-size: 13.5px; }
.dtile-all { background: var(--brand); border-color: var(--brand); color: #FFFFFF; min-height: 98px; padding: 12px 20px; }
.dtile-all small { color: #FFFFFF; opacity: 0.85; }
.dtile-all:hover { background: var(--brand-dark); color: #FFFFFF; }

/* ---------- Free shipping helper ---------- */
.fship { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-top: 18px; }
.fship-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.fship-row b { font-size: 1.5rem; }
.fship-bar { height: 12px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 12px 0; }
.fship-bar span { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 999px; transition: width 0.3s; }
.fship-msg { font-weight: 600; }
.fship.done { border-color: var(--brand); background: var(--brand-tint); }
.addons { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.addon { display: grid; grid-template-columns: 56px 1fr auto auto; align-items: center; gap: 14px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: #FFFFFF; }
.addon:last-child { border-bottom: 0; }
.addon img { width: 56px; height: 56px; object-fit: contain; background: var(--soft); border-radius: 8px; }
.addon-name a { color: var(--text); font-weight: 600; text-decoration: none; line-height: 1.3; }
.addon-name a:hover { color: var(--brand); }
.addon-fit { display: none; color: var(--brand); font-weight: 700; font-size: 12.5px; }
.addon.fits { background: var(--brand-tint); }
.addon.fits .addon-fit { display: block; }

/* ---------- Gift cards ---------- */
.gift-col { display: flex; flex-direction: column; }
.gift-photo { flex-grow: 1; }
.gift-photo img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; object-position: 60% 50%; border-radius: 4px 24px 24px 24px; display: block; }
.gtile { display: flex; flex-direction: column; height: 100%; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.gtile-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; display: block; }
.gtile-name { color: var(--text); font-weight: 600; text-decoration: none; margin: 8px 0 10px; line-height: 1.3; }
.gtile-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; }
.gtile-foot b { font-size: 18px; }

/* ---------- Membership ---------- */
.plan-intro { max-width: 640px; }
.plan-row { max-width: 860px; margin: 0 auto; }
.aplan { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 26px; background: #FFFFFF; }
.aplan small { color: var(--muted); font-size: 13.5px; }
.aplan h3 { font-size: 1.4rem; margin: 2px 0 4px; }
.aplan-price { font-size: 30px; font-weight: 800; }
.aplan-price em { font-style: normal; font-size: 14px; font-weight: 500; color: var(--muted); }
.aplan ul { list-style: none; padding: 0; margin: 14px 0 22px; flex-grow: 1; }
.aplan li { padding: 5px 0 5px 24px; position: relative; font-size: 15px; }
.aplan li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.aplan-dark { background: var(--brand); border-color: var(--brand); color: #FFFFFF; }
.aplan-dark small, .aplan-dark em { color: #FFFFFF !important; opacity: 0.85; }
.aplan-dark li::before { color: #FFFFFF; }
.aplan-dark .btn-light { color: var(--brand); font-weight: 700; }

/* ---------- Homepage blog ---------- */
.apost { display: flex; flex-direction: column; height: 100%; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--text); }
.apost:hover b { color: var(--brand); }
.apost-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.apost-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; }
.apost-body b { font-size: 17px; line-height: 1.3; }
.apost-body small { color: var(--muted); font-size: 14px; }
.apost-big .apost-body b { font-size: 22px; }
.apost-big .apost-img img { aspect-ratio: 16 / 9; }

/* ---------- Help box ---------- */
.help-box { display: grid; gap: 2px; background: var(--brand-tint); border-radius: 12px; padding: 18px 20px; margin-top: 18px; }
.help-box span { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-top: 8px; }
.help-box span:first-child { margin-top: 0; }
.help-box a { font-weight: 700; font-size: 17px; text-decoration: none; word-break: break-word; }

@media (max-width: 767px) {
  .hero { padding: 32px 0; }
}
@media (max-width: 575px) {
  .addon { grid-template-columns: 48px 1fr auto; gap: 10px; padding: 10px 12px; }
  .addon img { width: 48px; height: 48px; }
  .addon .btn { grid-column: 2 / -1; justify-self: start; }
  .gtile-foot .btn { width: 100%; }
  .gift-photo img { height: auto; min-height: 0; aspect-ratio: 3 / 2; }
  .dtile { flex-direction: column; align-items: flex-start; gap: 10px; }
  .dtile-img { width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .dtile-img { background: #FFFFFF; }
  .dtile-img img { object-fit: contain; }
  .dtile-text b { font-size: 15px; }
  .dtile-all { justify-content: center; }
}

/* ---------- Other ---------- */
.photo-credit { font-size: 12px; color: var(--muted); margin: 8px 0 0; text-align: center; }
.photo-credit a { color: inherit; }
.about-benefit { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; height: 100%; }
.about-benefit b { display: block; }
.about-benefit span { color: var(--muted); font-size: 14px; }
.btn-outline-brand { --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-color: #FFFFFF; --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand); --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-color: #FFFFFF; }

/* ---------- Product cards ---------- */
.product-card { border-radius: 12px; overflow: hidden; }
.product-card:hover { box-shadow: 0 12px 26px rgba(43, 23, 27, 0.10); }
.card-photo { display: block; background: #FFFFFF; padding: 14px; border-bottom: 1px solid var(--line); }
.card-photo img { aspect-ratio: 1; object-fit: contain; }
.product-card .card-body { gap: 6px; }
.card-dept { font-size: 12px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: 0.04em; }
.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); }
.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: #FFFFFF; border-radius: 8px; padding: 12px; }
.plan-art b { font-size: 18px; }
@media (max-width: 575px) { .price { font-size: 20px; } .card-photo { padding: 8px; } }

/* ---------- Soft band and FAQ ---------- */
.soft-band { background: var(--soft); }
.accordion { --bs-accordion-active-bg: var(--brand-tint); --bs-accordion-active-color: var(--brand); --bs-accordion-btn-focus-box-shadow: 0 0 0 0.2rem rgba(142, 59, 70, 0.2); }
.accordion-button { font-weight: 700; }
.faq-item { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin-bottom: 8px; }
.faq-item summary { font-weight: 700; cursor: pointer; }
.faq-item p { margin: 10px 0 0; color: var(--muted); }

/* ---------- Blog ---------- */
.post-card { text-decoration: none; color: var(--text); border-radius: 8px; overflow: hidden; }
.post-card:hover { border-color: var(--brand); }
.post-card img { aspect-ratio: 3 / 2; object-fit: cover; }
.post-meta { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--brand); }
.article h2 { font-size: 22px; margin-top: 26px; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--brand); color: #FFFFFF; }
.newsletter .eyebrow.light { color: #FFFFFF; opacity: 0.85; }
.newsletter p { color: rgba(255, 255, 255, 0.85); }
.newsletter .btn-dark { background: var(--deep); border-color: var(--deep); }
.newsletter .btn-dark:hover { background: #000000; border-color: #000000; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: #D2B3B8; font-size: 14.5px; }
.site-footer h4 { color: #FFFFFF; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #D2B3B8; text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-logo { height: 32px; width: auto; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 13px; }

/* ---------- Department page listings ---------- */
.listing { border-radius: 8px; scroll-margin-top: 16px; }
.listing:target { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.listing-img { background: #FFFFFF; border-radius: 8px; }
.listing-img img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.listing-title { font-size: 19px; font-weight: 700; line-height: 1.35; letter-spacing: 0; margin: 4px 0 8px; }
.features { padding-left: 18px; font-size: 14.5px; }
.features li { margin-bottom: 5px; }
.listing summary { cursor: pointer; font-weight: 700; color: var(--brand); }
.buy-box { border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.stock { font-weight: 700; margin: 4px 0 12px; }
@media (max-width: 767px) { .listing-img { max-width: 180px; margin: 0 auto; } .listing-title { font-size: 16px; } }

/* ---------- Order progress steps ---------- */
.steps { list-style: none; display: flex; align-items: center; gap: 10px; padding: 4px 0 14px; margin: 0; 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); }
.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: #FFFFFF; }
.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; } }

/* ---------- Cart, checkout and summary ---------- */
.summary { overflow-anchor: none; border: 1px solid var(--line); border-radius: 8px; padding: 18px; position: sticky; top: 16px; background: #FFFFFF; }
.sum-row { padding: 6px 0; gap: 12px; }
.sum-row.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-msg { color: var(--brand); font-size: 13.5px; margin: 6px 0 0; }
.promo-on { font-weight: 600; font-size: 14px; margin-top: 10px; }
.mini-lines { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; }
.mini-lines .mini-line { font-size: 13.5px; color: var(--muted); padding: 3px 0; }
.cart-line { display: grid !important; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 14px; align-items: center; border-radius: 8px; }
.cart-line img { width: 80px; height: 80px; object-fit: contain; background: #FFFFFF; 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: #FFFFFF; color: var(--text); cursor: pointer; font-size: 16px; line-height: 1; }
.link-button { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--brand); text-decoration: underline; cursor: pointer; }
.radio { border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-bottom: 8px; cursor: pointer; }
.invalid { border-color: var(--brand) !important; }
.form-error { color: var(--brand); font-weight: 700; }
@media (max-width: 991px) { .summary { position: static; } }

/* ---------- Panels (forms and contact box) ---------- */
.panel { border: 1px solid var(--line); border-radius: 8px; padding: 22px; background: #FFFFFF; }
.panel-dark { background: var(--deep); color: #EAD6D9; border: 0; }
.panel-dark a, .panel-dark b { color: #FFFFFF; }

/* ---------- Cart panel (Bootstrap offcanvas, opened by cart.js) ---------- */
.offcanvas { --bs-offcanvas-width: 400px; }
.mini-notice { margin: 0 0 6px; padding: 10px 12px; border-radius: 8px; background: var(--brand-tint); color: var(--brand); font-weight: 700; font-size: 14px; }
.mini-lines-list .mini-line { display: grid !important; 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: #FFFFFF; border-radius: 8px; 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-empty { color: var(--muted); }

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