/* Ace A Furniture & Interiors: storefront styles. Loads after Bootstrap 5.3.
   The admin area still uses style.css + admin.css and is not affected by this file. */

:root {
  --pine: #d6141f;
  --pine-dark: #a30d16;
  --pine-tint: #fdeaea;
  --ink: #18181b;
  --muted: #71717a;
  --line: #e4e4e7;
  --bg: #f4f4f5;
  --card: #fff;
  --red: #b3141b;
  --amber: #8a5a00;
  --amber-tint: #fbf0d8;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --lift: 0 1px 2px rgba(122, 11, 18, .06), 0 10px 26px -14px rgba(122, 11, 18, .28);
  --header-h: 72px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
}
.container, .container-xl { max-width: 1240px; --bs-gutter-x: 2.5rem; }
@media (min-width: 992px) { .container, .container-xl { --bs-gutter-x: 3rem; } }
/* wide row gutters must never be larger than the page margin, or the page scrolls sideways */
@media (max-width: 767.98px) { .g-5, .gx-5 { --bs-gutter-x: 2.25rem; } }

h1, h2, h3, h4, h5, h6 { font-family: var(--font); color: var(--ink); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1.02rem; }
h6 { font-size: .85rem; font-weight: 700; letter-spacing: 0; }
p { color: #3f3f46; }
a { color: var(--pine); text-underline-offset: 3px; }
a:hover { color: var(--pine-dark); }
img { max-width: 100%; }
.muted { color: var(--muted); }
.ic { flex: none; vertical-align: middle; }
small, .small { color: var(--muted); }

:focus-visible { outline: 2px solid var(--pine); outline-offset: 2px; }
.on-dark :focus-visible, .footer :focus-visible, .hero-panel :focus-visible, .cta-panel :focus-visible { outline-color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  --bs-btn-padding-x: 1.25rem;
  --bs-btn-padding-y: .7rem;
  --bs-btn-font-size: .94rem;
  --bs-btn-font-weight: 600;
  --bs-btn-border-radius: var(--r-sm);
  --bs-btn-disabled-opacity: 1;
  letter-spacing: 0;
  transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { --bs-btn-padding-x: .9rem; --bs-btn-padding-y: .5rem; --bs-btn-font-size: .86rem; }
.btn-lg { --bs-btn-padding-x: 1.6rem; --bs-btn-padding-y: .85rem; --bs-btn-font-size: 1rem; }

.btn-dark-brown {
  --bs-btn-color: #fff; --bs-btn-bg: var(--pine); --bs-btn-border-color: var(--pine);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--pine-dark); --bs-btn-hover-border-color: var(--pine-dark);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--pine-dark); --bs-btn-active-border-color: var(--pine-dark);
  --bs-btn-disabled-color: #52525b; --bs-btn-disabled-bg: #e3e7e3; --bs-btn-disabled-border-color: #e3e7e3;
}
.btn-outline-brown {
  --bs-btn-color: var(--pine); --bs-btn-bg: #fff; --bs-btn-border-color: #c6d2cc;
  --bs-btn-hover-color: var(--pine-dark); --bs-btn-hover-bg: var(--pine-tint); --bs-btn-hover-border-color: var(--pine);
  --bs-btn-active-color: var(--pine-dark); --bs-btn-active-bg: var(--pine-tint); --bs-btn-active-border-color: var(--pine);
  --bs-btn-disabled-color: #52525b; --bs-btn-disabled-bg: #eceeeb; --bs-btn-disabled-border-color: #d5dbd7;
}
.btn-light-solid {
  --bs-btn-color: var(--ink); --bs-btn-bg: #fff; --bs-btn-border-color: #fff;
  --bs-btn-hover-color: var(--ink); --bs-btn-hover-bg: #e9efec; --bs-btn-hover-border-color: #e9efec;
  --bs-btn-active-color: var(--ink); --bs-btn-active-bg: #e9efec; --bs-btn-active-border-color: #e9efec;
}
.btn-ghost-light {
  --bs-btn-color: #fff; --bs-btn-bg: rgba(255, 255, 255, .12); --bs-btn-border-color: rgba(255, 255, 255, .45);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: rgba(255, 255, 255, .24); --bs-btn-hover-border-color: #fff;
  --bs-btn-active-color: #fff; --bs-btn-active-bg: rgba(255, 255, 255, .24); --bs-btn-active-border-color: #fff;
  backdrop-filter: blur(6px);
}
.btn-link {
  --bs-btn-color: var(--pine); --bs-btn-hover-color: var(--pine-dark);
  --bs-btn-padding-x: 0; --bs-btn-padding-y: .2rem;
  text-decoration: none;
}
.btn-link:hover { text-decoration: underline; }

/* ---------- Forms ---------- */
.form-label { font-size: .86rem; font-weight: 600; color: var(--ink); margin-bottom: .4rem; }
.form-control, .form-select {
  border-radius: var(--r-sm);
  border: 1px solid #d3dad5;
  padding: .7rem .95rem;
  background-color: #fff;
  color: var(--ink);
  font-size: .96rem;
}
.form-control:focus, .form-select:focus { border-color: var(--pine); box-shadow: 0 0 0 3px var(--pine-tint); }
.form-control::placeholder { color: #9aa49f; }
.form-control:disabled { background: #eef0ed; }
.form-check-input { border-color: #b9c4be; }
.form-check-input:checked { background-color: var(--pine); border-color: var(--pine); }
.form-check-input:focus { border-color: var(--pine); box-shadow: 0 0 0 3px var(--pine-tint); }

.alert { border: 0; border-radius: var(--r-md); padding: .9rem 1.1rem; }
.alert-success { background: #e6f2ea; color: #1b5133; }
.alert-danger { background: #fbeaea; color: #7d1015; }
.alert-secondary { background: #eceeeb; color: #3f3f46; }

.choice {
  display: flex; gap: .85rem; align-items: flex-start;
  padding: 1rem 1.1rem; margin-bottom: .6rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.choice:hover { border-color: #d4d4d8; }
.choice:has(input:checked) { border-color: var(--pine); background: var(--pine-tint); }
.choice input { margin-top: .3rem; flex: none; }
.choice strong { display: block; font-weight: 600; }
.choice small { display: block; }
.choice:has(input:checked) small { color: #46534c; }

/* ---------- Announcement bar ---------- */
.announce { background: #18181b; color: #e4e4e7; font-size: .8rem; }
.announce .container-xl { display: flex; justify-content: space-between; gap: 1rem; padding-block: .5rem; }
.announce .announce-long { display: none; }
@media (min-width: 768px) { .announce .announce-long { display: inline; } }
.announce a { color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; }
.announce a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.site-header.is-stuck { box-shadow: 0 8px 24px -16px rgba(122, 11, 18, .45); }
.header-bar { display: flex; align-items: center; gap: 1.1rem; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--pine); color: #fff;
  display: grid; place-items: center;
  font-size: 1.25rem; font-weight: 800; letter-spacing: -.04em;
}
.brand-logo { height: 40px; width: auto; display: block; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.12rem; font-weight: 800; letter-spacing: -.02em; }
.brand-text small { font-size: .68rem; font-weight: 500; color: var(--muted); margin-top: .15rem; }

.main-nav { display: none; align-items: center; gap: .15rem; margin-left: .6rem; }
.main-nav .nav-link, .main-nav .dropdown-toggle {
  padding: .5rem .85rem; border-radius: 999px; border: 0; background: none;
  font-size: .92rem; font-weight: 600; color: var(--ink); white-space: nowrap; text-decoration: none;
}
.main-nav .nav-link:hover, .main-nav .dropdown-toggle:hover { background: #eef1ee; color: var(--ink); }
.main-nav .nav-link.active { background: var(--pine-tint); color: var(--pine); }
.main-nav .dropdown-toggle::after { margin-left: .4rem; vertical-align: .15em; }
.dropdown-menu { border: 1px solid var(--line); border-radius: var(--r-md); padding: .4rem; margin-top: .6rem !important; box-shadow: var(--lift); min-width: 220px; }
.dropdown-item { border-radius: 8px; padding: .5rem .8rem; font-size: .92rem; font-weight: 500; }
.dropdown-item:hover { background: var(--pine-tint); color: var(--pine-dark); }

.search-pill {
  display: flex; align-items: center; gap: .6rem;
  background: #eff2ef; border: 1px solid transparent; border-radius: 999px;
  padding: 0 .35rem 0 1rem; height: 44px; color: var(--muted);
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.search-pill:focus-within { background: #fff; border-color: var(--pine); box-shadow: 0 0 0 3px var(--pine-tint); }
.search-pill input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: .94rem; color: var(--ink); outline: 0; }
.search-pill input::placeholder { color: #8a948f; }
.search-pill button { border: 0; background: var(--pine); color: #fff; border-radius: 999px; height: 34px; padding: 0 1rem; font-size: .84rem; font-weight: 600; }
.search-pill button:hover { background: var(--pine-dark); }
.header-search { display: none; flex: 1; max-width: 420px; margin-left: auto; }
.search-row { margin-bottom: .8rem; }

.tools { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
@media (min-width: 1200px) { .header-search + .tools { margin-left: 0; } }
.tool {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-width: 44px; height: 44px; border: 0; border-radius: 999px; background: none;
  color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 600;
}
.tool:hover { background: #eef1ee; color: var(--ink); }
.tool-wide { padding: 0 1rem 0 .85rem; }
.count {
  position: absolute; top: 3px; right: 2px;
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: .68rem; font-weight: 700; line-height: 19px; text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

.drawer .offcanvas-header { border-bottom: 1px solid var(--line); }
.drawer-link { display: flex; align-items: center; justify-content: space-between; padding: .85rem .25rem; font-weight: 600; font-size: 1.02rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.drawer-link.active { color: var(--pine); }
.drawer-label { margin: 1.6rem 0 .4rem; font-size: .8rem; font-weight: 700; color: var(--muted); }
.drawer-cats { display: flex; flex-wrap: wrap; gap: .5rem; }

@media (min-width: 1200px) {
  .main-nav, .header-search { display: flex; }
}

/* ---------- Toast ---------- */
.toast-stack { position: fixed; z-index: 1080; top: 84px; left: 1rem; right: 1rem; display: flex; justify-content: center; pointer-events: none; }
@media (min-width: 992px) { .toast-stack { left: auto; right: 1.5rem; top: 96px; } }
.toast-msg {
  pointer-events: auto; display: flex; align-items: center; gap: .7rem;
  max-width: 420px; padding: .8rem .9rem .8rem 1rem;
  background: var(--ink); color: #fff; border-radius: var(--r-md);
  box-shadow: 0 16px 36px -14px rgba(0, 0, 0, .5);
  animation: toast-in .25s ease-out;
}
.toast-msg .ic { color: #8fd3ae; }
.toast-msg.is-error .ic { color: #ff9c9c; }
.toast-msg span { font-size: .92rem; }
.toast-msg button { border: 0; background: none; color: #aab5b0; font-size: 1.3rem; line-height: 1; padding: 0 .25rem; margin-left: .4rem; }
.toast-msg button:hover { color: #fff; }
.toast-msg.is-leaving { opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .25s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Page header + layout helpers ---------- */
.page-title { padding: 2rem 0 .25rem; text-align: left; border: 0; }
.page-title .container { display: block; }
.page-title h1 { margin: 0; text-transform: none; letter-spacing: -.03em; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.page-title p { color: var(--muted); margin: .4rem 0 0; }

.section { padding-block: 3rem; }
.container.section, .container-xl.section { padding-top: 1.5rem; padding-bottom: 3.5rem; }
.section-soft { background: transparent; }
.section-white { background: #fff; border-block: 1px solid var(--line); }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: .35rem; }
.section-head a:hover { text-decoration: underline; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2.4rem); }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); }

/* ---------- Hero ---------- */
.hero { padding-top: 1.25rem; }
.hero-split { display: grid; grid-template-columns: 1fr; overflow: hidden; border-radius: var(--r-lg); background: #18181b; }
.hero-media { order: -1; aspect-ratio: 5 / 4; background: #f4f4f5; }
.hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 1.75rem 1.5rem 2rem; color: #fff; }
.hero-title { font-size: clamp(1.9rem, 4.6vw, 3.4rem); font-weight: 800; line-height: 1.06; letter-spacing: -.035em; color: #fff; margin: 0 0 1rem; max-width: 13em; }
.hero-copy p { color: #e4e4e7; max-width: 30rem; margin-bottom: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero-actions .btn { flex: 1 1 auto; text-align: center; }
.hero-copy > * { animation: hero-in .55s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .07s; }
.hero-copy > :nth-child(3) { animation-delay: .14s; }
@keyframes hero-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (min-width: 992px) {
  .hero-split { grid-template-columns: 1.05fr 1fr; min-height: 540px; }
  .hero-media { order: 0; aspect-ratio: auto; }
  .hero-copy { padding: 3.5rem 3.5rem 3.5rem 3.75rem; }
  .hero-actions .btn { flex: 0 0 auto; }
}

/* ---------- Trust strip ---------- */
.trust { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.trust-item { padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); }
.trust-item:nth-child(odd) { border-right: 1px solid var(--line); }
.trust-item:nth-last-child(-n+2) { border-bottom: 0; }
.trust-item strong { display: block; font-size: .95rem; font-weight: 700; line-height: 1.3; color: var(--pine); }
.trust-item span { display: block; font-size: .85rem; color: var(--muted); line-height: 1.45; margin-top: .25rem; }
@media (min-width: 992px) {
  .trust { grid-template-columns: repeat(4, 1fr); }
  .trust-item { padding: 1.25rem 1.5rem; border-bottom: 0; border-right: 1px solid var(--line); }
  .trust-item:last-child { border-right: 0; }
}

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 138px; gap: 1rem; overflow-x: auto; padding-bottom: .5rem; scroll-snap-type: x proximity; scrollbar-width: none; }
.cat-grid::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .cat-grid { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); overflow: visible; } }
.cat-tile { display: block; text-decoration: none; color: var(--ink); scroll-snap-align: start; }
.cat-tile .cat-img { aspect-ratio: 1; border-radius: var(--r-md); background: #e6eae6 center / cover no-repeat; border: 1px solid var(--line); transition: border-color .15s, transform .25s; }
.cat-tile:hover .cat-img { border-color: var(--pine); transform: translateY(-2px); }
.cat-tile strong { display: block; margin-top: .65rem; font-size: .94rem; font-weight: 700; line-height: 1.25; }
.cat-tile span { display: block; font-size: .8rem; color: var(--muted); }

/* ---------- Product cards ---------- */
.pcard-product { display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color .15s, box-shadow .2s; }
.pcard-product:hover { border-color: #d4d4d8; box-shadow: var(--lift); }
.pimg { display: block; position: relative; aspect-ratio: 1; background: #e9ece8; overflow: hidden; border-radius: var(--r-sm); }
.pcard-product .pimg { border-radius: 0; }
.pimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pcard-product:hover .pimg img { transform: scale(1.04); }
.noimg { width: 100%; height: 100%; min-height: 50px; display: flex; align-items: center; justify-content: center; color: #a9b3ad; background: #e9ece8; }
.tag { position: absolute; top: .7rem; left: .7rem; background: var(--red); color: #fff; padding: .22rem .65rem; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.tag-out { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.pbody { display: flex; flex-direction: column; flex: 1; padding: .9rem 1rem 1rem; text-align: left; }
.pname { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.pname:hover { color: var(--pine); }
.pprice { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .5rem; margin: .45rem 0 .15rem; }
.pprice strong { font-size: 1.08rem; font-weight: 800; letter-spacing: -.01em; }
.pprice s { color: #71717a; font-size: .84rem; }
.pstock { font-size: .78rem; font-weight: 600; color: var(--amber); }
.pbody form { margin-top: auto; padding-top: .8rem; }

/* ---------- Home: design section, steps, CTA ---------- */
.svc-list { list-style: none; padding: 0; margin: 1.3rem 0 1.6rem; }
.svc-list li { padding: .65rem 0 .65rem 1.9rem; border-bottom: 1px solid var(--line); position: relative; }
.svc-list li:first-child { border-top: 1px solid var(--line); }
.svc-list li::before { content: ""; position: absolute; left: .2rem; top: 1.05rem; width: .7rem; height: .4rem; border-left: 2px solid var(--pine); border-bottom: 2px solid var(--pine); transform: rotate(-45deg); }
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.mosaic .pimg { aspect-ratio: 1; }

.step { height: 100%; padding: 1.4rem; background: var(--bg); border-radius: var(--r-md); }
.step-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--pine); color: #fff; font-weight: 700; font-size: .9rem; margin-bottom: .9rem; }
.step h5 { margin-bottom: .35rem; }
.step p { margin: 0; color: var(--muted); font-size: .92rem; }

.fact { border-top: 2px solid var(--pine); padding-top: 1rem; }
.fact h5 { margin-bottom: .4rem; }
.fact p { color: var(--muted); margin: 0; font-size: .92rem; }

.cta-panel { margin: 1rem 0 3.5rem; padding: clamp(2rem, 5vw, 3.6rem); border-radius: var(--r-lg); color: #fff; text-align: center;
  background: radial-gradient(700px 320px at 15% 0%, #3f3f46 0%, transparent 60%), #18181b; }
.cta-panel h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; margin-bottom: .8rem; }
.cta-panel p { color: #e4e4e7; max-width: 34rem; margin: 0 auto 1.6rem; }
.cta-panel .cta-meta { margin-top: 1.5rem; font-size: .88rem; color: #a1a1aa; }

/* ---------- Shop ---------- */
.shop-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; padding: 2rem 0 1rem; }
.shop-head h1 { margin: 0; letter-spacing: -.03em; }
.chips { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; margin-bottom: 1.25rem; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: .45rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: .88rem; font-weight: 600; text-decoration: none; transition: border-color .15s, background-color .15s; }
.chip:hover { border-color: var(--pine); color: var(--ink); }
.chip.is-active { background: var(--pine); border-color: var(--pine); color: #fff; }

.filter-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.25rem; }
@media (min-width: 992px) { .filter-card { position: sticky; top: calc(var(--header-h) + 1.25rem); } }
.filter-card h2 { font-size: 1rem; margin-bottom: 1rem; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.toolbar p { margin: 0; color: var(--muted); font-size: .92rem; }
.toolbar .form-select { width: auto; padding-block: .5rem; font-size: .9rem; }

.empty { text-align: center; padding: 3.5rem 1.5rem; background: #fff; border: 1px dashed #c6d0ca; border-radius: var(--r-lg); }
.empty .ic { color: #98a69f; margin-bottom: .8rem; }
.empty h2 { font-size: 1.2rem; margin-bottom: .4rem; }
.empty p { color: var(--muted); margin-bottom: 1.2rem; }

.pagination { gap: .3rem; flex-wrap: wrap; }
.page-link { color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-sm) !important; min-width: 40px; text-align: center; font-weight: 600; font-size: .9rem; }
.page-link:hover { background: var(--pine-tint); color: var(--pine-dark); border-color: var(--pine); }
.page-item.active .page-link { background: var(--pine); border-color: var(--pine); color: #fff; }

/* ---------- Product page ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; padding: 1.5rem 0 1rem; font-size: .86rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--pine); text-decoration: underline; }
.crumbs .ic { opacity: .6; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

.gallery-main { aspect-ratio: 1; background: #e9ece8; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .75rem; }
.thumb { width: 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: #e9ece8; opacity: .75; transition: opacity .15s, border-color .15s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb:hover { opacity: 1; }
.thumb.is-active { border-color: var(--pine); opacity: 1; }

.buy-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.3rem, 3vw, 2rem); }
@media (min-width: 992px) { .buy-card { position: sticky; top: calc(var(--header-h) + 1.25rem); } }
.buy-card h1 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); margin-bottom: .9rem; }
.buy-price { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .75rem; margin-bottom: .9rem; }
.buy-price strong { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.buy-price s { color: #71717a; }
.pill { display: inline-block; padding: .25rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.pill-sale { background: var(--red); color: #fff; }
.stock { display: inline-flex; align-items: center; gap: .45rem; font-size: .86rem; font-weight: 600; padding: .3rem .8rem .3rem .65rem; border-radius: 999px; margin-bottom: 1.1rem; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock-ok { background: #e6f2ea; color: #1b6a3e; }
.stock-low { background: var(--amber-tint); color: var(--amber); }
.stock-out { background: #fbeaea; color: var(--red); }
.buy-desc { color: #3f3f46; }
.buy-meta { margin: 0 0 1.25rem; font-size: .92rem; }
.buy-meta strong { font-weight: 600; }
.stepper { display: flex; align-items: stretch; border: 1px solid #d3dad5; border-radius: var(--r-sm); background: #fff; overflow: hidden; }
.stepper:focus-within { border-color: var(--pine); box-shadow: 0 0 0 3px var(--pine-tint); }
.stepper button { width: 40px; border: 0; background: #f1f3f0; color: var(--ink); font-size: 1.1rem; line-height: 1; }
.stepper button:hover { background: var(--pine-tint); }
.stepper input { flex: 1; min-width: 0; width: 100%; border: 0; text-align: center; font-weight: 600; font-size: .96rem; padding: .7rem 0; background: transparent; -moz-appearance: textfield; }
.stepper input:focus { outline: 0; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-actions { display: grid; gap: .6rem; }
@media (min-width: 576px) { .buy-actions { grid-template-columns: 1.4fr 1fr; } }
.assure { list-style: none; padding: 1.1rem 0 0; margin: 1.4rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .8rem; }
.assure li { display: flex; gap: .75rem; font-size: .88rem; color: #3f3f46; line-height: 1.45; }
.assure .ic { color: var(--pine); margin-top: .1rem; }

/* ---------- Cart + checkout ---------- */
.cart-line { display: flex; gap: 1rem; align-items: center; }
.cart-line .pimg { width: 72px; flex: none; }
.cart-line a { font-weight: 600; color: var(--ink); text-decoration: none; }
.cart-line a:hover { color: var(--pine); }
.summary-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; }
@media (min-width: 992px) { .summary-card { position: sticky; top: calc(var(--header-h) + 1.25rem); } }
.summary-card h2 { font-size: 1.1rem; margin-bottom: 1rem; }
.sum-row { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; font-size: .94rem; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 1rem; margin-top: .8rem; border-top: 1px solid var(--line); }
.sum-total strong { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.2rem, 3vw, 1.8rem); margin-bottom: 1.25rem; }
.form-card h2 { font-size: 1.1rem; margin-bottom: 1.1rem; }

/* ---------- Tables, badges, misc ---------- */
.table { --bs-table-bg: transparent; margin: 0; color: var(--ink); }
.table > :not(caption) > * > * { background: transparent; border-color: var(--line); padding: .9rem 1.1rem; vertical-align: middle; }
.table thead th { font-size: .8rem; color: var(--muted); font-weight: 600; white-space: nowrap; background: #f8f9f7; border-bottom: 1px solid var(--line); }
.table tbody tr:last-child > * { border-bottom: 0; }
.table-responsive { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.table-hover > tbody > tr:hover > * { background: #f8faf8; }
.badge { font-weight: 700; border-radius: 999px; padding: .4em .75em; font-size: .74rem; }
.badge.text-bg-dark { background: var(--red) !important; color: #fff !important; }
.auth-box { max-width: 440px; margin: 3rem auto; background: #fff; padding: clamp(1.5rem, 4vw, 2.4rem); border: 1px solid var(--line); border-radius: var(--r-lg); }
.auth-box h2 { text-align: center; margin-bottom: 1.4rem; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.5rem; height: 100%; }
hr { border-color: var(--line); opacity: 1; }

/* ---------- Footer ---------- */
.footer { background: #18181b; color: #d4d4d8; padding: 3.5rem 0 1.5rem; margin-top: 1rem; }
.footer .brand { color: #fff; margin-bottom: 1rem; }
.footer .brand-logo { height: 46px; }
.footer .brand-text small { color: #a1a1aa; }
.footer p { color: #d4d4d8; }
.footer h6 { color: #fff; margin-bottom: 1rem; font-size: .9rem; }
.footer a { color: #d4d4d8; text-decoration: none; font-size: .92rem; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .links a { display: block; margin-bottom: .55rem; }
.footer .line { margin-bottom: .55rem; font-size: .92rem; }
.footer .socials { display: flex; gap: 1.1rem; margin-top: 1.2rem; }
.footer hr { border-color: #3f3f46; margin: 2.4rem 0 1.2rem; }
.footer small { color: #a1a1aa; }

/* ---------- Floating actions + mobile tab bar ---------- */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 50; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #128c4a; color: #fff; box-shadow: 0 10px 24px -8px rgba(18, 140, 74, .7); }
.wa-float:hover { background: #0f7a40; color: #fff; }

.tabbar { position: fixed; z-index: 1025; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom, 0px)); }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .35rem 0; color: var(--muted); text-decoration: none; font-size: .7rem; font-weight: 600; }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--pine); }
.tab .count { top: 0; right: calc(50% - 22px); box-shadow: 0 0 0 2px #fff; }
@media (max-width: 991.98px) {
  body { padding-bottom: 68px; }
  .wa-float { bottom: 80px; right: 14px; width: 48px; height: 48px; }
  .footer { padding-bottom: 2rem; }
}
@media (min-width: 992px) { .tabbar { display: none; } }

@media (max-width: 575.98px) {
  .announce .container-xl { justify-content: center; }
  .announce .announce-phone { display: none; }
  .section { padding-block: 2.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}


/* ---------- Status pills (storefront and admin) ---------- */
.pill-blue { background: #e4edfa; color: #1d4a9b; }
.pill-amber { background: var(--amber-tint); color: var(--amber); }
.pill-green { background: #e3f1e8; color: #1b6a3e; }
.pill-red { background: #fbe6e6; color: #9b1c1c; }
.pill-grey { background: #eceeeb; color: #52525b; }
.pill-violet { background: #ece7f8; color: #52399a; }
.pill { white-space: nowrap; }

/* ---------- Customer account ---------- */
.acct-head { display: flex; align-items: center; gap: 1rem; padding: 2rem 0 1.25rem; }
.acct-head h1 { margin: 0; font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.03em; }
.acct-head p { margin: .15rem 0 0; color: var(--muted); }
.avatar { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--pine); color: #fff; font-size: 1.35rem; font-weight: 800; }

.acct-nav { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: none; }
.acct-nav::-webkit-scrollbar { display: none; }
.acct-nav a { flex: none; display: flex; align-items: center; gap: .6rem; padding: .65rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 600; white-space: nowrap; }
.acct-nav a:hover { border-color: var(--pine); color: var(--ink); }
.acct-nav a.is-active { background: var(--pine); border-color: var(--pine); color: #fff; }
.acct-nav .acct-out { color: var(--red); }
@media (min-width: 992px) {
  .acct-nav { flex-direction: column; gap: .15rem; overflow: visible; padding: .6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); position: sticky; top: calc(var(--header-h) + 1.25rem); }
  .acct-nav a { border: 0; border-radius: 10px; padding: .7rem .85rem; background: transparent; }
  .acct-nav a:hover { background: #f1f4f1; }
  .acct-nav a.is-active { background: var(--pine-tint); color: var(--pine); }
  .acct-nav .acct-out { margin-top: .4rem; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; padding-top: .9rem; }
}

.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.card-head h2 { margin: 0; font-size: 1.1rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .3rem; font-size: .88rem; font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.stat { display: block; height: 100%; padding: 1.1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); text-decoration: none; }
a.stat:hover { border-color: #d4d4d8; color: var(--ink); }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.stat-l { font-size: .84rem; font-weight: 600; color: var(--muted); }
.stat-ic { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--pine-tint); color: var(--pine); flex: none; }
.stat-v { margin-top: .7rem; font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stat-v-sm { font-size: 1.45rem; }
.stat-dark { background: #18181b; border-color: #18181b; color: #fff; }
.stat-dark .stat-l { color: #e4e4e7; }
.stat-dark .stat-ic { background: rgba(255, 255, 255, .16); color: #fff; }

.order-list { display: grid; }
.order-row { display: grid; grid-template-columns: 1fr auto; gap: .5rem .75rem; align-items: center; padding: 1rem .75rem; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; border-radius: 10px; }
.order-row:last-child { border-bottom: 0; }
.order-row:hover { background: #f6f8f6; color: var(--ink); }
.order-row strong { display: block; font-size: .96rem; }
.order-row small { display: block; color: var(--muted); font-size: .8rem; margin-top: .1rem; }
.order-meta { grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: wrap; gap: .4rem; }
.order-total { font-weight: 800; letter-spacing: -.01em; }
@media (min-width: 768px) {
  .order-row { grid-template-columns: 1.2fr 1.4fr auto; }
  .order-meta { grid-column: auto; grid-row: auto; }
  .order-total { text-align: right; min-width: 6.5rem; }
}

.track { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; padding: 0; margin: 0; }
.track li { position: relative; display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; font-size: .78rem; font-weight: 600; color: var(--muted); }
.track li::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.track li:first-child::before { display: none; }
.track .dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); font-size: .8rem; font-weight: 700; color: var(--muted); }
.track li.is-done::before, .track li.is-now::before { background: var(--pine); }
.track li.is-done .dot { background: var(--pine); border-color: var(--pine); color: #fff; }
.track li.is-now .dot { border-color: var(--pine); color: var(--pine); box-shadow: 0 0 0 4px var(--pine-tint); }
.track li.is-done, .track li.is-now { color: var(--ink); }

.notice { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.2rem; margin-bottom: 1.25rem; border-radius: var(--r-md); }
.notice strong { display: block; font-size: .95rem; }
.notice span { display: block; font-size: .88rem; margin-top: .1rem; }
.notice-warn { background: var(--amber-tint); color: #5b3b00; }
.notice-ok { background: #e3f1e8; color: #17512f; }
.quick { display: block; height: 100%; padding: 1.1rem 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); text-decoration: none; }
.quick:hover { border-color: var(--pine); color: var(--ink); }
.quick strong { display: block; }
.quick span { display: block; color: var(--muted); font-size: .88rem; margin-top: .15rem; }

.pay-panel h2 { margin-bottom: .5rem; }
.bank { margin: 1rem 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.bank div { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.bank div:last-child { border-bottom: 0; background: var(--pine-tint); }
.bank dt { color: var(--muted); font-weight: 500; }
.bank dd { margin: 0; font-weight: 700; text-align: right; word-break: break-word; }

/* ---------- Cart lines ---------- */
.cart-list { display: grid; gap: .75rem; }
.cart-item { display: grid; grid-template-columns: 84px 1fr; gap: .8rem 1rem; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.cart-item .pimg { width: 84px; }
.ci-name { font-weight: 600; color: var(--ink); text-decoration: none; display: block; line-height: 1.35; }
.ci-name:hover { color: var(--pine); }
.ci-price { font-size: .86rem; color: var(--muted); margin-top: .25rem; }
.ci-side { grid-column: 1 / -1; display: flex; align-items: center; gap: .75rem; }
.ci-side strong { margin-left: auto; font-size: 1.02rem; letter-spacing: -.01em; }
.ci-qty { width: 76px; text-align: center; padding: .55rem .4rem; }
@media (min-width: 576px) {
  .cart-item { grid-template-columns: 96px 1fr auto; align-items: center; }
  .cart-item .pimg { width: 96px; }
  .ci-side { grid-column: auto; flex-direction: column; align-items: flex-end; gap: .5rem; }
  .ci-side strong { margin-left: 0; }
}

/* ---------- Auth, contact, design ---------- */
.auth-box { margin: 2rem auto 3rem; }
.auth-title { font-size: 1.6rem; text-align: center; margin-bottom: .35rem; }
.auth-sub { text-align: center; color: var(--muted); margin-bottom: 1.5rem; }
.auth-foot { text-align: center; margin: 1.4rem 0 0; color: var(--muted); font-size: .92rem; }
.auth-foot a { font-weight: 600; }
.info-card { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: .75rem; }
.info-card .trust-icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--pine-tint); color: var(--pine); }
.info-card strong { display: block; font-size: .86rem; color: var(--muted); font-weight: 600; }
.info-card span { display: block; font-weight: 600; word-break: break-word; }

/* ---------- Mobile friendliness ---------- */
body { overflow-x: clip; }
.search-strip { padding-top: .75rem; }
.search-strip .search-row { margin: 0; }
@media (max-width: 991.98px) {
  :root { --header-h: 60px; }
  .header-bar { gap: .6rem; }
  .brand-logo { height: 34px; }
  /* 16px text stops iOS from zooming the page when a field is focused */
  .form-control, .form-select, .search-pill input, .stepper input { font-size: 16px; }
  /* comfortable thumb-sized targets */
  .btn { --bs-btn-padding-y: .8rem; }
  .btn-sm { --bs-btn-padding-y: .65rem; --bs-btn-padding-x: 1rem; }
  .chip { padding: .6rem 1.05rem; }
  .stepper button { width: 46px; }
  .page-link { min-width: 44px; padding-block: .65rem; }
  .section-head h2 { font-size: 1.25rem; }
  .shop-head { padding-top: 1.25rem; }
  .buy-card { padding: 1.25rem; }
  .auth-box { margin-top: 1rem; }
  .footer { padding-top: 2.5rem; }
}
@media (max-width: 575.98px) {
  .hero { padding-top: .75rem; }
  .hero-copy { padding: 1.5rem 1.25rem 1.6rem; }
  .pbody { padding: .75rem .8rem .85rem; }
  .pname { font-size: .9rem; }
  .pprice strong { font-size: 1rem; }
  .track li { font-size: .7rem; }
  .track .dot { width: 28px; height: 28px; }
  .track li::before { top: 13px; }
  .bank div { flex-direction: column; gap: .1rem; }
  .bank dd { text-align: left; }
  .buy-actions .btn, .pay-panel .btn { width: 100%; }
  .pay-panel form { width: 100%; }
}

/* ---------- Readable text pages (policies) ---------- */
.prose { max-width: 760px; }
.prose p { font-size: 1.05rem; line-height: 1.75; color: #3f3f46; margin-bottom: 1.1rem; }
.prose p:last-child { margin-bottom: 0; }
@media (max-width: 575.98px) {
  body { font-size: 1.0625rem; }
  .prose p { font-size: 1.0625rem; }
  .muted, small, .small { font-size: .9rem; }
}

.pay-note { display: flex; gap: .9rem; align-items: flex-start; }
.pay-note .trust-icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--pine-tint); color: var(--pine); }
.pay-note strong { display: block; }
.pay-note span:not(.trust-icon) { display: block; color: var(--muted); font-size: .92rem; margin-top: .15rem; }

.pay-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
@media (max-width: 575.98px) { .pay-actions, .pay-actions form { width: 100%; } .pay-actions .btn { width: 100%; } }
.acct-top-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 52vw; }
.link-arrow.back .ic { transform: scaleX(-1); }
.order-list.compact .order-row { grid-template-columns: 1fr auto; }
.order-list.compact .order-meta { grid-column: 1 / -1; grid-row: 2; }
.order-list.compact .order-total { text-align: right; min-width: 0; }

.btn-outline-danger { --bs-btn-color: #b02a37; --bs-btn-border-color: #e3b5ba; --bs-btn-hover-bg: #b02a37; --bs-btn-hover-border-color: #b02a37; --bs-btn-hover-color: #fff; --bs-btn-active-bg: #b02a37; --bs-btn-active-border-color: #b02a37; --bs-btn-active-color: #fff; }

/* Pre-order labelling */
.preorder-tag { position: absolute; bottom: .7rem; left: .7rem; background: var(--ink); color: #fff; padding: .22rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.pnote { font-size: .78rem; color: #52525b; line-height: 1.35; margin: .1rem 0 0; }
.preorder { display: flex; gap: .85rem; align-items: flex-start; padding: .95rem 1.05rem; margin-bottom: 1.1rem; background: var(--amber-tint); color: #4f3300; border-radius: var(--r-md); }
.preorder .ic { margin-top: .15rem; color: var(--amber); }
.preorder strong { display: block; font-size: .95rem; }
.preorder span { display: block; font-size: .88rem; margin-top: .1rem; }
.pre-line { display: flex; align-items: center; gap: .5rem; margin: .8rem 0 0; font-size: .86rem; color: #52525b; }
.pre-line .ic { color: var(--amber); }

.pbody .btn { white-space: nowrap; --bs-btn-padding-x: .5rem; }
.stat-l { line-height: 1.25; }
@media (max-width: 991.98px) { .row > aside.col-lg-3 { margin-top: 0; } }
@media (max-width: 575.98px) { .pbody .btn .ic { width: 15px; height: 15px; } .tag, .preorder-tag { top: auto; } .tag { top: .6rem; left: .6rem; } .preorder-tag { bottom: .6rem; left: .6rem; } }

/* Header fits laptop widths: compact nav, flexible search, icon-only account until there is room */
@media (min-width: 1200px) {
  .header-bar { gap: .8rem; }
  .main-nav { margin-left: .2rem; }
  .main-nav .nav-link, .main-nav .dropdown-toggle { padding: .5rem .7rem; }
  .header-search { flex: 1 1 160px; min-width: 160px; max-width: 380px; }
  .header-search button { display: none; }
  .tool-wide { padding: 0; }
  .tool-wide span { display: none; }
}
@media (min-width: 1440px) {
  .header-bar { gap: 1.1rem; }
  .main-nav .nav-link, .main-nav .dropdown-toggle { padding: .5rem .85rem; }
  .header-search button { display: block; }
  .tool-wide { padding: 0 1rem 0 .85rem; }
  .tool-wide span { display: inline; }
}
