/* ==========================================================================
   Heilebär Shop — storefront styles
   --------------------------------------------------------------------------
   Self-contained: the shop no longer loads the main site's purchased
   template (Bootstrap + theme CSS), whose transparent header overlapped
   page content here. Colours are Heilebär's brand navy, blue and orange;
   headings use Nunito, whose rounded letterforms echo the logo and
   packaging lettering.
   ========================================================================== */

:root {
  --navy: #12305C;
  --navy-dark: #0C2347;
  --blue: #2E5A9C;
  --blue-dark: #244879;
  --orange: #B3550D;
  --sale: #C62828;
  --green: #1E7A3C;
  --text: #1F2933;
  --muted: #5B6573;
  --line: #E3E8EF;
  --soft: #F5F7FA;
  --tint-blue: #EAF1FA;
  --white: #FFFFFF;
  --focus: #2E5A9C;

  --font-head: 'Nunito', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif;
  --font-body: 'Nunito Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(18, 48, 92, .06), 0 6px 20px rgba(18, 48, 92, .07);
  --container: 1240px;
  --gutter: 24px;
  --header-h: 76px;
}

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 800;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.75rem); }
h2 { font-size: clamp(1.45rem, 1.15rem + 1vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: #D6E3F5; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 700;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 64px 0; }
.text-muted { color: var(--muted); }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  border: 2px solid var(--navy); border-radius: 8px;
  background: var(--navy); color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: 1rem; line-height: 1.2;
  cursor: pointer; text-decoration: none; transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; text-decoration: none; }
.btn--outline { background: transparent; color: var(--navy); }
.btn--outline:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--navy); }
.btn--light:hover { background: var(--tint-blue); border-color: var(--tint-blue); color: var(--navy); }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .92rem; }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; }
.btn .icon { width: 18px; height: 18px; flex-shrink: 0; }
.link-arrow { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow .icon { width: 18px; height: 18px; }
.icon { width: 22px; height: 22px; display: inline-block; vertical-align: middle; }

/* ---- Announcement bar ---------------------------------------------------- */
.announcement {
  background: var(--navy); color: #fff; text-align: center;
  font-size: .9rem; font-weight: 600; padding: 9px var(--gutter);
}
.announcement p { margin: 0; }

/* ---- Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(18, 48, 92, .08); }
.site-header__inner {
  display: flex; align-items: center; gap: 28px; min-height: var(--header-h);
}
.site-logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-logo img { height: 30px; width: auto; }
.site-logo__tag {
  font-family: var(--font-head); font-weight: 800; font-size: .75rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue); border-left: 2px solid var(--line); padding-left: 10px;
}
.site-logo:hover { text-decoration: none; }
.main-nav { flex: 1; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  display: block; padding: 10px 12px; border-radius: var(--radius-sm);
  font-family: var(--font-head); font-weight: 700; color: var(--text);
}
.main-nav a:hover { background: var(--soft); color: var(--navy); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--blue); border-radius: 0; }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.header-icon {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; height: 44px; padding: 0 10px; border-radius: var(--radius-sm);
  background: none; border: 0; cursor: pointer; color: var(--navy);
  font-family: var(--font-head); font-weight: 700; font-size: .92rem;
}
.header-icon:hover { background: var(--soft); text-decoration: none; color: var(--navy); }
.cart-count {
  position: absolute; top: 3px; right: 2px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--sale); color: #fff;
  font-size: .72rem; font-weight: 800; line-height: 20px; text-align: center;
}
.cart-count[hidden] { display: none; }
.menu-toggle { display: none; }

/* Mobile navigation drawer */
.nav-drawer {
  position: fixed; inset: 0 auto 0 0; z-index: 90; width: min(86vw, 360px);
  background: #fff; transform: translateX(-100%); transition: transform .25s ease;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.nav-drawer.is-open { transform: none; }
.drawer { visibility: hidden; transition: transform .25s ease, visibility 0s linear .28s; }
.drawer.is-open { visibility: visible; transition: transform .25s ease, visibility 0s; }
html.has-drawer { overflow: hidden; }
.nav-drawer__body .search-form { margin: 6px 0 14px; }
.nav-drawer__body a .icon { width: 18px; height: 18px; margin-right: 4px; }
.nav-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.nav-drawer__body { overflow-y: auto; padding: 12px 12px 24px; }
.nav-drawer__body ul { list-style: none; margin: 0 0 16px; padding: 0; }
.nav-drawer__body a { display: block; padding: 12px 10px; border-radius: var(--radius-sm); font-family: var(--font-head); font-weight: 700; color: var(--text); }
.nav-drawer__body a:hover { background: var(--soft); text-decoration: none; }
.nav-drawer__label { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 800; padding: 8px 10px 4px; }
.backdrop {
  position: fixed; inset: 0; z-index: 80; background: rgba(12, 35, 71, .45);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
}
.backdrop.is-visible { opacity: 1; visibility: visible; }

/* ---- Page hero (shop, category, simple pages) ------------------------------ */
.page-hero { background: var(--hero-tint, var(--tint-blue)); position: relative; overflow: hidden; }
.page-hero__inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-top: 40px; padding-bottom: 48px; }
.page-hero--simple .page-hero__inner { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 36px; }
.page-hero h1 { margin-bottom: 10px; }
.page-hero__intro { font-size: 1.08rem; color: #34404E; max-width: 560px; margin: 0; }
.page-hero__visual { display: flex; justify-content: flex-end; align-items: flex-end; gap: 0; min-height: 170px; }
.page-hero__visual img {
  width: clamp(110px, 12vw, 170px); mix-blend-mode: multiply; margin-left: -28px;
  transform: rotate(var(--r, 0deg)) translateY(var(--y, 0));
}
.page-hero__visual img:nth-child(1) { --r: -6deg; --y: 6px; }
.page-hero__visual img:nth-child(2) { --r: 3deg; --y: -10px; }
.page-hero__visual img:nth-child(3) { --r: -2deg; --y: 2px; }
.page-hero__visual img:nth-child(4) { --r: 5deg; --y: -6px; }
.page-hero::after {
  /* the rounded notch from the Heilebär box design */
  content: ""; position: absolute; left: 50%; bottom: -26px; width: 52px; height: 52px; margin-left: -26px;
  border-radius: 50%; background: #fff;
}

.breadcrumbs { font-size: .9rem; margin-bottom: 14px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: #9AA4B1; }
.breadcrumbs a { color: var(--muted); font-weight: 600; }
.breadcrumbs a:hover { color: var(--navy); }
.breadcrumbs [aria-current] { color: var(--text); font-weight: 700; }

/* ---- Shop layout ------------------------------------------------------------ */
.shop-body { padding: 44px 0 72px; }
.shop-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; }
.shop-sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 26px; }
.widget h2 {
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 10px; font-weight: 800;
}
.category-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.category-list li { border-bottom: 1px solid var(--line); }
.category-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 6px 12px 12px; color: var(--text); font-weight: 700; font-family: var(--font-head);
  border-left: 3px solid transparent; transition: background .15s ease;
}
.category-list a:hover { background: var(--soft); text-decoration: none; color: var(--navy); }
.category-list a[aria-current="page"] { border-left-color: var(--accent, var(--blue)); color: var(--navy); background: var(--soft); }
.category-list .count {
  font-family: var(--font-body); font-size: .8rem; font-weight: 700; color: var(--muted);
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1px 9px;
}
.category-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent, var(--blue)); flex-shrink: 0; }
.category-list .name { display: inline-flex; align-items: center; gap: 10px; }
.search-form { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.search-form input { flex: 1; min-width: 0; border: 0; padding: 11px 12px; background: transparent; }
.search-form input:focus { outline: none; }
.search-form:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(46, 90, 156, .15); }
.search-form button { border: 0; background: var(--navy); color: #fff; width: 46px; cursor: pointer; display: grid; place-items: center; }
.search-form button:hover { background: var(--blue); }
.help-box { background: var(--soft); border-radius: var(--radius); padding: 18px; }
.help-box h2 { color: var(--navy); font-size: 1.02rem; letter-spacing: 0; text-transform: none; margin-bottom: 6px; }
.help-box p { font-size: .93rem; color: var(--muted); margin-bottom: 10px; }
.filter-toggle { display: none; }

.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.shop-toolbar__count { margin: 0; color: var(--muted); font-weight: 600; }
.shop-toolbar select {
  min-height: 44px; padding: 8px 40px 8px 14px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2312305C' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
  -webkit-appearance: none; appearance: none; font-weight: 600; cursor: pointer;
}
.shop-sort { display: flex; align-items: center; gap: 8px; margin: 0; }
.js .sort-apply { display: none; }
.page-hero__intro.rich-text > :last-child { margin-bottom: 0; }
.shop-main { min-width: 0; }
.shop-results { transition: opacity .15s ease; }
.shop-results.is-loading { opacity: .45; pointer-events: none; }

/* ---- Product grid & card ------------------------------------------------------ */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 34px 22px; list-style: none; margin: 0; padding: 0; }
.product-card { display: flex; flex-direction: column; position: relative; }
.product-card__media {
  position: relative; display: block; aspect-ratio: 1 / 1; border-radius: var(--radius);
  background: var(--tint, var(--tint-blue)); overflow: hidden;
}
.product-card__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8%;
  mix-blend-mode: multiply; transition: opacity .25s ease, transform .35s ease;
}
.product-card__media .img-hover { opacity: 0; }
.product-card__media .img-placeholder { padding: 28%; opacity: .35; }
.product-card:hover .product-card__media .img-main { transform: scale(1.04); }
.product-card:hover .product-card__media.has-hover .img-main { opacity: 0; }
.product-card:hover .product-card__media.has-hover .img-hover { opacity: 1; }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--font-head); font-weight: 800; font-size: .78rem; letter-spacing: .03em;
  padding: 5px 10px; border-radius: var(--radius-sm); background: var(--sale); color: #fff;
}
.badge--muted { background: #4B5563; }
.badge + .badge { top: 44px; }
.product-card__body { padding: 14px 2px 0; display: flex; flex-direction: column; flex: 1; }
.product-card__cat {
  font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent, var(--blue)); margin-bottom: 4px;
}
.product-card__title { font-size: 1.06rem; font-weight: 800; margin: 0 0 6px; line-height: 1.3; }
.product-card__title a { color: var(--navy); }
.product-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card clickable */
.product-card__desc {
  font-size: .92rem; color: var(--muted); margin: 0 0 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.product-card__foot .btn { position: relative; z-index: 2; }
.price { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-family: var(--font-head); }
.price__now { font-weight: 800; font-size: 1.15rem; color: var(--text); }
.price__was { color: var(--muted); text-decoration: line-through; font-size: .95rem; font-weight: 600; }
.price--lg .price__now { font-size: 1.85rem; }
.price--lg .price__was { font-size: 1.15rem; }

.btn-add { min-height: 42px; padding: 8px 16px; font-size: .92rem; }
.btn-add.is-added { background: var(--green); border-color: var(--green); color: #fff; }

.empty-state { text-align: center; padding: 48px 20px; background: var(--soft); border-radius: var(--radius); }
.empty-state p { color: var(--muted); }
.not-found .search-form { max-width: 480px; margin: 0 auto 24px; }
.not-found__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 0; }

.pagination { margin-top: 40px; }
.pagination ul { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; padding: 0; margin: 0; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 8px; font-weight: 700; color: var(--text);
}
.pagination a:hover { border-color: var(--navy); text-decoration: none; }
.pagination [aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination .pagination__gap { border-color: transparent; min-width: 24px; padding: 0; }
.pagination .icon { width: 18px; height: 18px; }

/* ---- Single product ------------------------------------------------------------ */
.product-page { padding: 28px 0 72px; }
.product-main { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.gallery__stage {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--tint, var(--tint-blue)); cursor: zoom-in;
}
.gallery__stage img { width: 100%; height: 100%; object-fit: contain; padding: 7%; mix-blend-mode: multiply; }
.gallery__zoom {
  position: absolute; inset: 0; background-repeat: no-repeat; background-size: 200%;
  opacity: 0; transition: opacity .15s ease; pointer-events: none; background-color: #fff;
}
.gallery__stage.is-zooming .gallery__zoom { opacity: 1; }
.gallery__zoom { background-color: var(--tint, #fff); background-blend-mode: multiply; }
.gallery__expand {
  position: absolute; right: 14px; bottom: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow);
}
.gallery__thumbs { display: flex; gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; flex-wrap: wrap; }
.gallery__thumb {
  width: 84px; height: 84px; padding: 0; border: 2px solid transparent; border-radius: var(--radius);
  background: var(--tint, var(--tint-blue)); cursor: pointer; overflow: hidden;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; mix-blend-mode: multiply; }
.gallery__thumb[aria-current="true"] { border-color: var(--navy); }
.lightbox { border: 0; padding: 0; max-width: min(92vw, 860px); width: 100%; border-radius: var(--radius-lg); background: #fff; }
.lightbox::backdrop { background: rgba(12, 35, 71, .7); }
.lightbox img { width: 100%; height: auto; }
.lightbox__close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; cursor: pointer; display: grid; place-items: center; }

.summary__cat { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.summary__cat a { color: var(--accent, var(--blue)); }
.summary h1 { font-size: clamp(1.7rem, 1.25rem + 1.4vw, 2.35rem); margin: 6px 0 14px; }
.summary__price { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.summary__price .badge { position: static; }
.summary__short { font-size: 1.06rem; color: #34404E; margin-bottom: 18px; }
.stock { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 20px; }
.stock::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.stock--in { color: var(--green); }
.stock--out { color: var(--sale); }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; margin-bottom: 22px; }
.buy-row .btn { flex: 1; min-width: 160px; min-height: 52px; font-size: 1.05rem; }
.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.qty button { width: 44px; border: 0; background: var(--soft); cursor: pointer; font-size: 1.2rem; font-weight: 700; color: var(--navy); }
.qty button:hover { background: var(--line); }
.qty input { width: 52px; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm button { width: 34px; font-size: 1rem; }
.qty--sm input { width: 40px; padding: 6px 0; }
.summary__meta { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 4px; font-size: .95rem; display: grid; gap: 8px; }
.summary__meta strong { color: var(--navy); }
.summary__meta p { margin: 0; }
.summary__gst { margin: -8px 0 16px; }
.qty .icon { width: 16px; height: 16px; }
.qty button { display: grid; place-items: center; }
.pay-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pay-list li { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 10px; font-size: .85rem; font-weight: 700; color: var(--muted); }

.tabs { margin-top: 64px; }
.tabs__list { display: flex; gap: 6px; border-bottom: 2px solid var(--line); flex-wrap: wrap; }
.tabs__tab {
  border: 0; background: none; padding: 14px 18px; margin-bottom: -2px; cursor: pointer;
  font-family: var(--font-head); font-weight: 800; font-size: 1.02rem; color: var(--muted);
  border-bottom: 3px solid transparent;
}
.tabs__tab[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--blue); }
.tabs__panel { padding: 28px 0 0; max-width: 820px; }
.tabs__panel[hidden] { display: none; }
.js .tabs__panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html:not(.js) .tabs__list { display: none; }
html:not(.js) .tabs__panel + .tabs__panel { margin-top: 40px; }
.tabs__panel:focus-visible { outline-offset: 6px; }
.rich-text h3 { font-size: 1.25rem; margin: 1.6em 0 .6em; }
.rich-text h3:first-child { margin-top: 0; }
.rich-text h4 { font-size: 1rem; margin: 1.2em 0 .4em; color: var(--blue); }
.rich-text ul, .rich-text ol { padding-left: 1.3em; margin: 0 0 1em; }
.rich-text li { margin-bottom: .45em; }
.attributes { width: 100%; border-collapse: collapse; }
.attributes th, .attributes td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.attributes th { width: 32%; font-family: var(--font-head); color: var(--navy); background: var(--soft); font-weight: 800; }

.related { margin-top: 72px; }
@media (min-width: 992px) { .related .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---- Mini cart drawer ------------------------------------------------------------ */
.cart-drawer {
  position: fixed; inset: 0 0 0 auto; z-index: 95; width: min(100vw, 420px);
  background: #fff; transform: translateX(100%); transition: transform .28s ease;
  display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(12, 35, 71, .18);
}
.cart-drawer.is-open { transform: none; }
.cart-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.cart-drawer__head h2 { font-size: 1.25rem; margin: 0; }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.cart-drawer__foot { border-top: 1px solid var(--line); padding: 18px 22px 22px; display: grid; gap: 12px; background: var(--soft); }
.mini-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.mini-line__img { width: 72px; height: 72px; border-radius: 8px; background: var(--tint, var(--tint-blue)); display: block; overflow: hidden; }
.mini-line__img img { width: 100%; height: 100%; object-fit: contain; padding: 5px; mix-blend-mode: multiply; }
.mini-line__name { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: .95rem; line-height: 1.3; display: block; margin-bottom: 6px; }
.mini-line__price { font-size: .9rem; color: var(--muted); }
.mini-line__side { display: grid; justify-items: end; gap: 8px; }
.remove-btn { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 6px; display: inline-flex; }
.remove-btn:hover { color: var(--sale); background: #FDECEC; }
.totals-row { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; }
.totals-row--grand { font-family: var(--font-head); font-size: 1.2rem; font-weight: 800; color: var(--navy); }
.progress { font-size: .9rem; }
.progress__text { margin: 0; font-weight: 700; color: var(--navy); }
.progress__bar { height: 8px; border-radius: 4px; background: var(--line); margin-top: 6px; overflow: hidden; }
.progress__bar span { display: block; height: 100%; background: var(--green); border-radius: 4px; transition: width .3s ease; }
.cart-drawer__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cart-empty { text-align: center; padding: 40px 10px; color: var(--muted); }

/* ---- Cart page ---------------------------------------------------------------------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 10px 12px; border-bottom: 2px solid var(--line); }
.cart-table td { padding: 18px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table .num { text-align: right; white-space: nowrap; }
.cart-product { display: flex; align-items: center; gap: 16px; }
.cart-product .mini-line__img { width: 84px; height: 84px; flex-shrink: 0; }
.totals-box { background: var(--soft); border-radius: var(--radius-lg); padding: 24px; display: grid; gap: 14px; position: sticky; top: calc(var(--header-h) + 20px); }
.totals-box h2 { font-size: 1.3rem; margin: 0; }
.totals-box .totals-row { font-weight: 600; }
.totals-box hr { border: 0; border-top: 1px solid var(--line); margin: 2px 0; width: 100%; }
.small-note { font-size: .88rem; color: var(--muted); margin: 0; }

/* ---- Forms (checkout, accounts) ------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field { margin-bottom: 18px; }
.field--full { grid-column: 1 / -1; }
.field label, .field .label { display: block; font-weight: 700; margin-bottom: 7px; color: var(--text); }
.field .optional { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="password"],
.field input[type="number"], .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #CDD5DF; border-radius: 8px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(46, 90, 156, .18); }
.field .hint { display: block; margin-top: 6px; font-size: .88rem; color: var(--muted); }
.notice { border-radius: var(--radius); padding: 14px 18px; margin-bottom: 22px; font-weight: 600; }
.notice--error { background: #FDECEC; color: #9B1C1C; border: 1px solid #F3C4C4; }
.notice--success { background: #E7F5EC; color: #18602F; border: 1px solid #BFE3CB; }
.notice--info { background: var(--tint-blue); color: var(--navy); border: 1px solid #CFDDF1; }
.notice p { margin: 0 0 4px; } .notice p:last-child { margin: 0; }

.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 44px; align-items: start; }
.checkout-step { border: 0; padding: 0; margin: 0 0 32px; }
.checkout-step legend, .checkout-step h2 { font-size: 1.3rem; margin-bottom: 16px; padding: 0; font-family: var(--font-head); font-weight: 800; color: var(--navy); }
.choice {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start;
  border: 1px solid #CDD5DF; border-radius: var(--radius); padding: 16px 18px; margin-bottom: 10px; cursor: pointer; background: #fff;
}
.choice:hover { border-color: var(--blue); }
.choice:has(input:checked) { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); background: #FAFCFF; }
.choice input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); }
.choice__title { font-weight: 800; font-family: var(--font-head); color: var(--navy); }
.choice__note { display: block; font-size: .9rem; color: var(--muted); margin-top: 2px; white-space: pre-line; }
.choice__price { font-weight: 800; white-space: nowrap; }
.order-summary { background: var(--soft); border-radius: var(--radius-lg); padding: 24px; position: sticky; top: calc(var(--header-h) + 20px); }
.summary-lines { list-style: none; margin: 0; padding: 0; }
.summary-line__price { font-weight: 700; white-space: nowrap; }
.summary-edit { margin: 10px 0 0; font-size: .92rem; }
.summary-edit a { font-weight: 700; }
.btn-place-order { margin-top: 18px; min-height: 54px; font-size: 1.05rem; }
.btn.is-busy { opacity: .7; cursor: progress; }
.checkout-fields { min-width: 0; }
.checkout-step[hidden] { display: none; }
.field-error { display: block; margin-top: 6px; color: #9B1C1C; font-weight: 700; font-size: .92rem; }
.field [aria-invalid="true"] { border-color: #C62828; }
.checkout-step > .field-error { margin: -6px 0 12px; }
.notice ul { margin: 6px 0 0; padding-left: 1.2em; }
.notice a { color: inherit; text-decoration: underline; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.choice__price .icon { width: 20px; height: 20px; color: var(--muted); }
.mini-lines { list-style: none; margin: 0; padding: 0; }
.cart-continue { margin: 22px 0 0; }
.detail-box--highlight { background: var(--tint-blue); border: 1px solid #CFDDF1; }
.detail-box__extra { margin-top: 14px; }
.detail-box p:last-child { margin-bottom: 0; }
.address { margin: 0 0 8px; font-weight: 700; }
.items-table tfoot .gst td { font-size: .9rem; padding-top: 2px; }
.order-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.order-summary h2 { font-size: 1.3rem; }
.summary-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary-line .mini-line__img { width: 56px; height: 56px; position: relative; }
.summary-line .qty-badge { position: absolute; top: -6px; right: -6px; background: var(--navy); color: #fff; font-size: .72rem; font-weight: 800; border-radius: 10px; min-width: 20px; height: 20px; line-height: 20px; text-align: center; padding: 0 5px; }
.summary-line__name { font-weight: 700; font-size: .93rem; line-height: 1.35; }
.summary-totals { display: grid; gap: 8px; padding-top: 14px; }
.summary-totals .totals-row { font-weight: 600; }
.summary-totals .totals-row--grand { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.summary-totals .gst { font-size: .88rem; color: var(--muted); font-weight: 600; }

/* ---- Order details (confirmation, account) --------------------------------------------- */
.narrow { max-width: 860px; }
.order-header { display: flex; flex-wrap: wrap; gap: 14px 40px; padding: 18px 22px; border: 1px dashed #B9C5D6; border-radius: var(--radius); margin: 22px 0 28px; }
.order-header div { display: grid; }
.order-header span { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; }
.order-header strong { font-family: var(--font-head); color: var(--navy); font-size: 1.05rem; }
.detail-box { background: var(--soft); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 22px; }
.detail-box h2, .detail-box h3 { font-size: 1.1rem; margin-bottom: 10px; }
.detail-box dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.detail-box dt { color: var(--muted); font-weight: 700; }
.detail-box dd { margin: 0; font-weight: 700; white-space: pre-line; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.items-table { width: 100%; border-collapse: collapse; margin-bottom: 26px; }
.items-table th, .items-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.items-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.items-table .num { text-align: right; white-space: nowrap; }
.items-table tfoot td { border-bottom: 0; padding: 6px 8px; font-weight: 600; }
.items-table tfoot .grand td { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--navy); padding-top: 12px; border-top: 2px solid var(--line); }
.status-pill { display: inline-block; padding: 4px 12px; border-radius: 6px; font-size: .82rem; font-weight: 800; }
.status-pill--pending { background: #FDF1E3; color: #8A4A0F; }
.status-pill--paid { background: var(--tint-blue); color: var(--navy); }
.status-pill--shipped { background: #E8F0FE; color: #1F4479; }
.status-pill--completed { background: #E7F5EC; color: #18602F; }
.status-pill--cancelled, .status-pill--failed { background: #F1F2F4; color: #4B5563; }
.status-pill--refunded { background: #F3EEFB; color: #5B3F8C; }

.auth-wrap { max-width: 460px; margin: 0 auto; padding: 48px 0 80px; }
.auth-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }
.auth-card h1 { font-size: 1.8rem; text-align: center; }
.auth-links { text-align: center; margin: 16px 0 0; font-size: .95rem; color: var(--muted); }
.auth-links a { font-weight: 700; }
.account-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.inline-form { display: inline; margin: 0; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 14px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.data-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* ---- Footer ---------------------------------------------------------------------------- */
.site-footer { background: var(--navy); color: #D5DEEA; margin-top: 0; }
.site-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 36px; padding: 56px 0 40px; }
.site-footer h2 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #fff; font-weight: 600; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__brand img { height: 30px; width: auto; margin-bottom: 14px; }
.site-footer__brand p { max-width: 300px; }
.site-footer .pay-list { display: flex; }
.site-footer .pay-list li { border-color: rgba(255, 255, 255, .3); color: #fff; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .15); padding: 18px 0; font-size: .9rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-footer__bottom p { margin: 0; }
.site-footer .icon { width: 18px; height: 18px; }
.site-footer__brand > a:first-child { display: inline-block; }

/* ---- Toast ------------------------------------------------------------------------------ */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translate(-50%, 20px);
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 8px; font-weight: 700;
  opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s ease; box-shadow: var(--shadow);
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---- Responsive ---------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .main-nav a { padding: 10px 8px; }
  .site-logo__tag { display: none; }
}
@media (max-width: 991px) {
  :root { --header-h: 64px; --gutter: 18px; }
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-lang { display: none; }
  .header-account-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .page-hero__inner { grid-template-columns: 1fr; padding-top: 26px; padding-bottom: 38px; }
  .page-hero__visual { display: none; }
  .shop-layout { grid-template-columns: 1fr; gap: 0; }
  .shop-sidebar { position: static; display: none; margin-bottom: 24px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); }
  .shop-sidebar.is-open { display: grid; }
  .filter-toggle { display: inline-flex; }
  .product-main { grid-template-columns: 1fr; gap: 28px; }
  .gallery { position: static; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .totals-box, .order-summary { position: static; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .section { padding: 44px 0; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
  .product-card__desc { display: none; }
  .product-card__media .badge { top: 8px; left: 8px; font-size: .7rem; padding: 3px 8px; }
  .product-card__title { font-size: 1rem; }
  .product-card__foot { flex-direction: column; align-items: stretch; }
  .product-card__foot .btn { width: 100%; }
  .price__now { font-size: 1.02rem; }
  .form-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr { border-bottom: 1px solid var(--line); padding: 14px 0; position: relative; }
  .cart-table td { border: 0; padding: 4px 0; }
  .cart-table td.num { text-align: left; }
  .cart-table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-weight: 700; }
  .cart-table .cell-remove { position: absolute; top: 10px; right: 0; width: auto; }
  .gallery__thumb { width: 68px; height: 68px; }
  .site-footer__top { grid-template-columns: 1fr; gap: 28px; }
  .auth-card { padding: 24px 20px; }
  .order-header { gap: 12px 24px; }
  .tabs__tab { padding: 12px 12px; font-size: .95rem; }
  .attributes th { width: 38%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
