/* =====================================================================
   IB PLUS STATIONARY — storefront.css
   Base, layout, components and page styles for the customer-facing site.
   All colours/sizes come from theme.css custom properties.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Reset & base
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sh-font);
  font-size: var(--sh-font-size);
  font-weight: 400;
  line-height: var(--sh-line-height);
  color: var(--sh-text);
  background: var(--sh-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--sh-space-3);
  color: var(--sh-heading);
  font-weight: var(--sh-heading-weight);
  line-height: 1.25;
  letter-spacing: -.01em;
}
h1 { font-size: var(--sh-h1); }
h2 { font-size: var(--sh-h2); }
h3 { font-size: var(--sh-h3); }
h4 { font-size: var(--sh-h4); }
h5 { font-size: var(--sh-h5); }
h6 { font-size: var(--sh-h6); font-weight: 600; }

p { margin: 0 0 var(--sh-space-3); }
p:last-child { margin-bottom: 0; }

a { color: var(--sh-link); text-decoration: none; transition: color var(--sh-speed) var(--sh-ease); }
a:hover { color: var(--sh-link-hover); }

img, svg, video { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 var(--sh-space-3); padding-left: var(--sh-space-5); }
li { margin-bottom: var(--sh-space-1); }

hr { border: 0; border-top: 1px solid var(--sh-border); margin: var(--sh-space-5) 0; }

small { font-size: var(--sh-font-size-xs); }

strong, b { font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--sh-accent);
  outline-offset: 2px;
  border-radius: var(--sh-radius-xs);
}

.sr-only {
  position: absolute; 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: -9999px; top: 0; z-index: var(--sh-z-toast);
  background: var(--sh-primary); color: #fff; padding: 10px 18px; border-radius: 0 0 var(--sh-radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------------------------------------------------------------------
   2. Layout
   --------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--sh-container);
  margin: 0 auto;
  padding-left: var(--sh-gutter);
  padding-right: var(--sh-gutter);
}
.container-narrow { max-width: var(--sh-container-narrow); }

.section { padding: var(--sh-space-7) 0; }
.section-tight { padding: var(--sh-space-5) 0; }
.section-lg { padding: var(--sh-space-8) 0; }
.section-grey { background: var(--sh-bg-alt); }
.section-muted { background: var(--sh-bg-muted); }
.section-dark { background: var(--sh-bg-dark); color: #fff; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--sh-space-4); margin-bottom: var(--sh-space-5);
  flex-wrap: wrap;
}
.section-head h2 {
  margin: 0;
  font-size: var(--sh-h2);
  font-weight: var(--sh-heading-weight);
  text-transform: none;
  letter-spacing: -.015em;
}
.section-head .section-sub { color: var(--sh-muted); font-size: var(--sh-font-size); margin: 4px 0 0; }
.section-head .view-all {
  font-size: var(--sh-font-size-sm); font-weight: 600; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.section-head .view-all::after { content: "\203A"; font-size: 1.2em; line-height: 1; }

.row { display: flex; flex-wrap: wrap; gap: var(--sh-space-4); }
.grid { display: grid; gap: var(--sh-space-4); }
.grid-products { grid-template-columns: var(--sh-grid-products); }
.grid-categories { grid-template-columns: var(--sh-grid-categories); }
.grid-brands { grid-template-columns: var(--sh-grid-brands); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--sh-muted); }
.text-success { color: var(--sh-success); }
.text-danger { color: var(--sh-danger); }
.text-accent { color: var(--sh-accent); }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: var(--sh-space-2); }
.mt-3 { margin-top: var(--sh-space-3); } .mt-4 { margin-top: var(--sh-space-4); }
.mt-5 { margin-top: var(--sh-space-5); } .mt-6 { margin-top: var(--sh-space-6); }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: var(--sh-space-2); }
.mb-3 { margin-bottom: var(--sh-space-3); } .mb-4 { margin-bottom: var(--sh-space-4); }
.mb-5 { margin-bottom: var(--sh-space-5); } .mb-6 { margin-bottom: var(--sh-space-6); }
.hidden { display: none !important; }

/* ---------------------------------------------------------------------
   3. Buttons
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--sh-radius);
  font-family: inherit; font-size: var(--sh-font-size-sm); font-weight: 600;
  line-height: 1.2; text-align: center; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color var(--sh-speed) var(--sh-ease),
              color var(--sh-speed) var(--sh-ease),
              border-color var(--sh-speed) var(--sh-ease),
              transform var(--sh-speed) var(--sh-ease),
              box-shadow var(--sh-speed) var(--sh-ease);
  text-decoration: none; user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn svg { width: 16px; height: 16px; flex: none; }

.btn-primary { background: var(--sh-primary); color: var(--sh-on-primary); }
.btn-primary:hover { background: var(--sh-primary-hover); color: var(--sh-on-primary); }

.btn-accent { background: var(--sh-accent); color: var(--sh-on-accent); }
.btn-accent:hover { background: var(--sh-accent-hover); color: var(--sh-on-accent); }

.btn-outline {
  background: var(--sh-bg); color: var(--sh-primary);
  border-color: var(--sh-border-strong);
}
.btn-outline:hover { border-color: var(--sh-primary); background: var(--sh-primary); color: #fff; }

.btn-ghost { background: transparent; color: var(--sh-primary); }
.btn-ghost:hover { background: var(--sh-primary-soft); color: var(--sh-primary); }

.btn-danger { background: var(--sh-danger); color: #fff; }
.btn-danger:hover { background: #c22f39; color: #fff; }

.btn-success { background: var(--sh-success); color: #fff; }
.btn-success:hover { background: #2e6419; color: #fff; }

.btn-sm { padding: 7px 14px; font-size: var(--sh-font-size-xs); border-radius: var(--sh-radius-sm); }
.btn-lg { padding: 14px 30px; font-size: var(--sh-font-size); }
.btn-block { display: flex; width: 100%; }
.btn-icon { padding: 8px; border-radius: var(--sh-radius); }

/* ---------------------------------------------------------------------
   4. Forms
   --------------------------------------------------------------------- */
.form-group { margin-bottom: var(--sh-space-4); }.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sh-space-4); }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.opt { color: var(--sh-muted); font-weight: 400; font-size: var(--sh-font-size-xs); }
.form-actions { display: flex; align-items: center; gap: var(--sh-space-4); flex-wrap: wrap; margin-top: var(--sh-space-5); }
.form-note { margin: 0; font-size: var(--sh-font-size-xs); color: var(--sh-muted); }

/* ---------------------------------------------------------------------
   6b. Contact page
   --------------------------------------------------------------------- */
.contact-layout {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: var(--sh-space-6); align-items: start;
}
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-form-card {
  background: #fff; border: 1px solid var(--sh-border-soft);
  border-radius: var(--sh-radius-lg); padding: var(--sh-space-6);
  box-shadow: var(--sh-shadow-sm);
}
.contact-aside { display: grid; gap: var(--sh-space-4); }
.contact-card {
  background: #fff; border: 1px solid var(--sh-border-soft);
  border-radius: var(--sh-radius-lg); padding: var(--sh-space-5);
}
.contact-card h2 { margin: 0 0 var(--sh-space-3); font-size: var(--sh-font-size-lg); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sh-space-3); }
.contact-list li { display: flex; gap: var(--sh-space-3); align-items: flex-start; font-size: var(--sh-font-size-sm); line-height: 1.5; }
.contact-list .ci {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--sh-accent-soft, #fff3e0); color: var(--sh-accent);
  display: flex; align-items: center; justify-content: center;
}
.contact-list .ci svg { width: 17px; height: 17px; }
.contact-list a { color: var(--sh-primary); }
.contact-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.contact-links a {
  display: block; padding: 9px 12px; border: 1px solid var(--sh-border-soft);
  border-radius: var(--sh-radius); color: var(--sh-text);
  transition: all var(--sh-speed) var(--sh-ease);
}
.contact-links a:hover { border-color: var(--sh-primary); color: var(--sh-primary); }
.wishlist-note { margin-top: var(--sh-space-5); color: var(--sh-muted); font-size: var(--sh-font-size-sm); }
.cms-content { max-width: 860px; }

label, .form-label {
  display: block; margin-bottom: 6px;
  font-size: var(--sh-font-size-sm); font-weight: 600; color: var(--sh-text-strong);
}
label .req, .req { color: var(--sh-danger); }
.label-hint { display: block; font-weight: 400; color: var(--sh-muted); font-size: var(--sh-font-size-xs); margin-top: 2px; }

input[type="text"], input[type="email"], input[type="password"], input[type="search"],
input[type="tel"], input[type="number"], input[type="url"], input[type="date"],
input[type="datetime-local"], select, textarea {
  width: 100%; padding: 10px 14px;
  font-family: inherit; font-size: var(--sh-font-size); color: var(--sh-text);
  background: var(--sh-bg);
  border: 1px solid var(--sh-border-strong); border-radius: var(--sh-radius);
  transition: border-color var(--sh-speed) var(--sh-ease), box-shadow var(--sh-speed) var(--sh-ease);
  appearance: none;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--sh-primary);
  box-shadow: 0 0 0 3px rgba(255, 156, 5, .25);
}
input::placeholder, textarea::placeholder { color: var(--sh-muted-light); }
input:disabled, select:disabled, textarea:disabled { background: var(--sh-bg-alt); cursor: not-allowed; }

select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%236b7280' d='M1.6 4.6 8 11l6.4-6.4-1.1-1.1L8 8.9 2.7 3.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px;
}

input[type="checkbox"], input[type="radio"] {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px; margin: 0; flex: none; cursor: pointer;
  border: 1.5px solid var(--sh-border-strong); background: #fff;
  border-radius: var(--sh-radius-xs); position: relative; vertical-align: middle;
  transition: all var(--sh-speed) var(--sh-ease);
}
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]:checked, input[type="radio"]:checked {
  background: var(--sh-primary); border-color: var(--sh-primary);
}
input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
input[type="radio"]:checked::after {
  content: ""; position: absolute; inset: 3px; background: #fff; border-radius: 50%;
}

.check-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; cursor: pointer; }
.check-row label { margin: 0; font-weight: 400; cursor: pointer; }
.check-row .check-body { flex: 1; }
.check-row .check-title { font-weight: 600; font-size: var(--sh-font-size-sm); }
.check-row .check-desc { color: var(--sh-muted); font-size: var(--sh-font-size-xs); margin-top: 2px; }

.field-error { display: block; color: var(--sh-danger); font-size: var(--sh-font-size-xs); margin-top: 5px; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--sh-danger); }
.form-help { color: var(--sh-muted); font-size: var(--sh-font-size-xs); margin-top: 5px; }

/* ---------------------------------------------------------------------
   5. Alerts, badges, pills
   --------------------------------------------------------------------- */
.alert {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 12px 16px; margin-bottom: var(--sh-space-3);
  border: 1px solid transparent; border-left-width: 3px; border-radius: var(--sh-radius);
  font-size: var(--sh-font-size-sm); line-height: 1.5;
}
.alert-success { background: var(--sh-success-soft); border-color: #cfe3c6; border-left-color: var(--sh-success); color: #26531a; }
.alert-error   { background: var(--sh-danger-soft);  border-color: #f6cfD2; border-left-color: var(--sh-danger);  color: #8f1d24; }
.alert-warning { background: var(--sh-warning-soft); border-color: #f0e0bd; border-left-color: var(--sh-warning); color: #7a5210; }
.alert-info    { background: var(--sh-info-soft);    border-color: #cdddfa; border-left-color: var(--sh-info);    color: #1e40af; }
.alert-close {
  background: none; border: 0; cursor: pointer; font-size: 20px; line-height: 1;
  color: inherit; opacity: .6; padding: 0 2px;
}
.alert-close:hover { opacity: 1; }

.badge {
  display: inline-flex; align-items: center;
  padding: var(--sh-badge-pad); border-radius: var(--sh-radius-xs);
  font-size: var(--sh-badge-size); font-weight: var(--sh-badge-weight);
  line-height: 1.35; letter-spacing: .02em; text-transform: uppercase;
}
.badge-discount { background: var(--sh-badge); color: var(--sh-on-badge); }
.badge-new      { background: var(--sh-success); color: #fff; }
.badge-sale     { background: var(--sh-danger); color: #fff; }
.badge-out      { background: var(--sh-muted); color: #fff; }
.badge-low      { background: var(--sh-warning); color: #fff; }
.badge-in       { background: var(--sh-success-soft); color: var(--sh-success); }
.badge-grey     { background: var(--sh-primary-soft); color: var(--sh-muted); text-transform: none; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--sh-radius-pill);
  font-size: var(--sh-font-size-xs); font-weight: 500;
  background: var(--sh-primary-soft); color: var(--sh-text);
  border: 1px solid var(--sh-border);
}
.pill-active { background: var(--sh-primary); color: #fff; border-color: var(--sh-primary); }

.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--sh-radius-pill); font-size: var(--sh-font-size-xs); font-weight: 600; text-transform: capitalize; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pending    { background: #fff7e6; color: #92610a; }
.status-processing { background: var(--sh-info-soft); color: #1e40af; }
.status-on_hold    { background: #f3f4f6; color: #4b5563; }
.status-shipped    { background: #ede9fe; color: #5b21b6; }
.status-delivered  { background: var(--sh-success-soft); color: var(--sh-success); }
.status-cancelled  { background: var(--sh-danger-soft); color: #8f1d24; }
.status-refunded   { background: #fdf2f8; color: #9d174d; }
.status-paid       { background: var(--sh-success-soft); color: var(--sh-success); }

.stock-note { font-size: var(--sh-font-size-xs); font-weight: 600; }
.stock-note.in  { color: var(--sh-success); }
.stock-note.low { color: var(--sh-warning); }
.stock-note.out { color: var(--sh-danger); }

/* ---------------------------------------------------------------------
   6. Announcement bar (marquee, as in the reference)
   --------------------------------------------------------------------- */
.announce {
  background: var(--sh-bg-dark); color: #fff;
  height: var(--sh-announce-height); display: flex; align-items: center;
  overflow: hidden; font-size: var(--sh-font-size-xs); position: relative;
}
.announce .marquee { display: flex; width: 100%; overflow: hidden; }
.announce .marquee-track {
  display: flex; flex: none; align-items: center; gap: 48px;
  white-space: nowrap; padding-left: 100%;
  animation: sh-marquee 32s linear infinite;
}
.announce:hover .marquee-track { animation-play-state: paused; }
.announce .marquee-track span { display: inline-flex; align-items: center; gap: 8px; }
.announce a { color: var(--sh-accent); font-weight: 600; }
.announce a:hover { color: #fff; }
@keyframes sh-marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .announce .marquee-track { animation: none; padding-left: 0; justify-content: center; width: 100%; }
}

/* ---------------------------------------------------------------------
   7. Header
   --------------------------------------------------------------------- */
.site-header { background: var(--sh-bg); border-bottom: 1px solid var(--sh-border); position: relative; z-index: var(--sh-z-sticky); }

.header-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: var(--sh-space-5);
  min-height: var(--sh-header-height);
  padding: 12px 0;
}

.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo img { height: 38px; width: auto; }
.logo-text { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; color: var(--sh-primary); line-height: 1.05; }
.logo-text small { display: block; font-size: 9.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--sh-muted); }
.logo:hover { color: var(--sh-primary); }

/* Search */
.header-search { position: relative; max-width: 620px; width: 100%; justify-self: center; }
.header-search form { display: flex; }
.header-search input {
  border-radius: var(--sh-radius) 0 0 var(--sh-radius);
  border-right: 0; padding-left: 16px; height: 44px;
}
.header-search input:focus { box-shadow: none; border-color: var(--sh-primary); position: relative; z-index: 2; }
.header-search button {
  flex: none; width: 52px; height: 44px; border: 1px solid var(--sh-primary);
  background: var(--sh-primary); color: #fff; cursor: pointer;
  border-radius: 0 var(--sh-radius) var(--sh-radius) 0;
  display: flex; align-items: center; justify-content: center;
  transition: background-color var(--sh-speed) var(--sh-ease);
}
.header-search button:hover { background: var(--sh-accent); border-color: var(--sh-accent); color: var(--sh-on-accent); }
.header-search button svg { width: 18px; height: 18px; }

.search-suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: var(--sh-z-dropdown);
  background: #fff; border: 1px solid var(--sh-border); border-radius: var(--sh-radius);
  box-shadow: var(--sh-shadow-lg); max-height: 420px; overflow-y: auto; display: none;
}
.search-suggest.open { display: block; }
.search-suggest .sg-group { padding: 10px 14px 4px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sh-muted); }
.search-suggest a.sg-item { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-bottom: 1px solid var(--sh-divider); }
.search-suggest a.sg-item:last-child { border-bottom: 0; }
.search-suggest a.sg-item:hover, .search-suggest a.sg-item.active { background: var(--sh-bg-alt); }
.search-suggest .sg-thumb { width: 42px; height: 42px; flex: none; border-radius: var(--sh-radius-sm); background: #fff; border: 1px solid var(--sh-border-soft); object-fit: contain; padding: 3px; }
.search-suggest .sg-name { font-size: var(--sh-font-size-sm); font-weight: 500; line-height: 1.35; color: var(--sh-text); }
.search-suggest .sg-price { font-size: var(--sh-font-size-xs); color: var(--sh-muted); margin-top: 2px; }
.search-suggest .sg-empty { padding: 18px 14px; color: var(--sh-muted); font-size: var(--sh-font-size-sm); text-align: center; }

/* Icon cluster */
.header-actions { display: flex; align-items: center; gap: 15px; justify-content: flex-end; flex: none; }
.header-action {
  display: flex; align-items: center; gap: 8px; color: var(--sh-text);
  font-size: var(--sh-font-size-xs); font-weight: 500; position: relative;
  padding: 6px; border-radius: var(--sh-radius); background: none; border: 0; cursor: pointer;
  font-family: inherit; transition: color var(--sh-speed) var(--sh-ease);
}
.header-action:hover { color: var(--sh-accent-dark); }
.header-action .ha-icon { position: relative; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }
.header-action svg { width: 22px; height: 22px; stroke-width: 1.6; }
.header-action .ha-label { line-height: 1.2; text-align: left; }
.header-action .ha-label small { display: block; font-size: 10px; color: var(--sh-muted); font-weight: 400; }
.count-badge {
  position: absolute; top: -6px; right: -8px; min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--sh-accent); color: var(--sh-on-accent);
  border-radius: var(--sh-radius-pill); font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; line-height: 1;
  border: 2px solid #fff;
}
@media (max-width: 1024px) { .header-action .ha-label { display: none; } }

/* ---------------------------------------------------------------------
   8. Navigation + mega menu
   --------------------------------------------------------------------- */
.nav-bar { background: var(--sh-primary); color: #fff; position: sticky; top: 0; z-index: var(--sh-z-sticky); }
.nav-bar .container { display: flex; align-items: stretch; gap: 4px; min-height: var(--sh-nav-height); }

.main-nav { display: flex; align-items: stretch; flex: 1; min-width: 0; overflow: visible; }
.main-nav > li { list-style: none; position: relative; display: flex; align-items: stretch; }
.main-nav > li > a, .main-nav > li > button {
  display: flex; align-items: center; gap: 6px;
  padding: 0 14px; min-height: var(--sh-nav-height);
  color: #fff; font-size: var(--sh-font-size-sm); font-weight: 500; white-space: nowrap;
  background: none; border: 0; cursor: pointer; font-family: inherit;
  transition: background-color var(--sh-speed) var(--sh-ease), color var(--sh-speed) var(--sh-ease);
}
.main-nav > li > a:hover, .main-nav > li > button:hover,
.main-nav > li.open > a, .main-nav > li.open > button,
.main-nav > li > a.active { background: rgba(255, 255, 255, .12); color: var(--sh-accent); }
.main-nav .nav-caret { width: 10px; height: 10px; opacity: .7; }
.main-nav .nav-pill {
  background: var(--sh-badge); color: #fff; border-radius: 3px;
  padding: 2px 5px; font-size: 9px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; margin-left: 2px;
}

.nav-shop-all { background: var(--sh-accent); color: var(--sh-on-accent); }
.nav-shop-all > a, .nav-shop-all > button { color: var(--sh-on-accent) !important; font-weight: 700; }
.nav-shop-all:hover > a { background: rgba(0,0,0,.1) !important; color: var(--sh-on-accent) !important; }

.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: #fff; color: var(--sh-text);
  border: 1px solid var(--sh-border); border-radius: 0 0 var(--sh-radius) var(--sh-radius);
  box-shadow: var(--sh-shadow-lg); padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--sh-speed) var(--sh-ease), transform var(--sh-speed) var(--sh-ease), visibility var(--sh-speed);
  z-index: var(--sh-z-dropdown); max-height: 70vh; overflow-y: auto;
}
.main-nav > li:hover > .dropdown,
.main-nav > li.open > .dropdown,
.main-nav > li:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a, .dropdown button {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 18px; font-size: var(--sh-font-size-sm); color: var(--sh-text); width: 100%;
  background: none; border: 0; cursor: pointer; font-family: inherit; text-align: left;
}
.dropdown a:hover, .dropdown button:hover { background: var(--sh-bg-alt); color: var(--sh-primary); }
.dropdown .dd-head { padding: 8px 18px 4px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sh-muted); }
.dropdown .dd-divider { height: 1px; background: var(--sh-divider); margin: 6px 0; }

/* Mega menu — full width panel, as in the reference */
.mega-menu {
  position: absolute; top: 100%; left: 0; right: 0; width: 100%;
  background: #fff; color: var(--sh-text); border-top: 1px solid var(--sh-border);
  box-shadow: var(--sh-shadow-lg); padding: 28px 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--sh-speed) var(--sh-ease), transform var(--sh-speed) var(--sh-ease), visibility var(--sh-speed);
}
.nav-bar > .container > .has-mega { position: static; }
.main-nav > li.has-mega:hover > .mega-menu,
.main-nav > li.has-mega.open > .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 260px; gap: 28px; }
.mega-col h4 {
  font-size: var(--sh-font-size-sm); font-weight: 700; margin: 0 0 10px;
  padding-bottom: 8px; border-bottom: 2px solid var(--sh-primary);
  text-transform: none; letter-spacing: 0;
}
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col li { margin: 0; }
.mega-col a { display: block; padding: 5px 0; font-size: var(--sh-font-size-sm); color: var(--sh-muted); }
.mega-col a:hover { color: var(--sh-primary); padding-left: 4px; }
.mega-promo img { border-radius: var(--sh-radius); width: 100%; height: 100%; object-fit: cover; }

/* Hamburger + mobile drawer */
.nav-toggle {
  display: none; align-items: center; justify-content: center; gap: 8px;
  background: none; border: 0; color: #fff; cursor: pointer;
  padding: 0 14px; min-height: var(--sh-nav-height); font-family: inherit;
  font-size: var(--sh-font-size-sm); font-weight: 600;
}
.nav-toggle svg { width: 22px; height: 22px; }

.mobile-drawer {
  position: fixed; inset: 0; z-index: var(--sh-z-modal);
  background: rgba(0,0,0,.5); opacity: 0; visibility: hidden;
  transition: opacity var(--sh-speed) var(--sh-ease), visibility var(--sh-speed);
}
.mobile-drawer.open { opacity: 1; visibility: visible; }
.mobile-drawer-panel {
  position: absolute; top: 0; left: 0; bottom: 0; width: min(320px, 88vw);
  background: #fff; overflow-y: auto; transform: translateX(-100%);
  transition: transform .28s var(--sh-ease); display: flex; flex-direction: column;
}
.mobile-drawer.open .mobile-drawer-panel { transform: translateX(0); }
.md-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--sh-border); background: var(--sh-primary); color: #fff; }
.md-close { background: none; border: 0; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.md-nav { list-style: none; margin: 0; padding: 0; }
.md-nav > li { margin: 0; border-bottom: 1px solid var(--sh-divider); }
.md-nav > li > a, .md-nav > li > button {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 13px 16px; font-size: var(--sh-font-size); font-weight: 500; color: var(--sh-text);
  background: none; border: 0; cursor: pointer; font-family: inherit; text-align: left;
}
.md-nav .md-sub { list-style: none; margin: 0; padding: 0 16px 10px 16px; display: none; background: var(--sh-bg-alt); }
.md-nav li.open > .md-sub { display: block; }
.md-sub a { display: block; padding: 7px 0; font-size: var(--sh-font-size-sm); color: var(--sh-muted); }
.md-sub .md-sub { padding: 0 0 0 14px; background: none; display: block; }
.md-foot { margin-top: auto; padding: 16px; border-top: 1px solid var(--sh-border); display: grid; gap: 8px; }
.md-caret { width: 12px; height: 12px; transition: transform var(--sh-speed) var(--sh-ease); flex: none; }
.md-nav li.open > button .md-caret { transform: rotate(180deg); }

@media (max-width: 1024px) {
  .main-nav, .mega-menu, .dropdown { display: none !important; }
  .nav-toggle { display: flex; }
  .nav-bar .container { justify-content: space-between; }
  .nav-quick { display: flex; align-items: center; gap: 2px; overflow-x: auto; flex: 1; min-width: 0; scrollbar-width: none; }
  .nav-quick::-webkit-scrollbar { display: none; }
}
.nav-quick { display: none; }
.nav-quick a { padding: 0 12px; min-height: var(--sh-nav-height); display: flex; align-items: center; color: #fff; font-size: var(--sh-font-size-sm); white-space: nowrap; }
.nav-quick a:hover { color: var(--sh-accent); }

/* Mobile header stacking */
@media (max-width: 768px) {
  .header-main { grid-template-columns: auto 1fr auto; gap: 10px; }
  .header-search { grid-column: 1 / -1; grid-row: 2; max-width: none; justify-self: stretch; }
  .header-main { padding: 10px 0; }
  .logo img { height: 32px; }
  .logo-text { font-size: 1.1rem; }
}

/* ---------------------------------------------------------------------
   9. Hero slider
   --------------------------------------------------------------------- */
.hero { position: relative; padding: var(--sh-space-5) 0; }
.hero-track { position: relative; border-radius: var(--sh-radius-xl); overflow: hidden; background: var(--sh-bg-alt); }
.hero-slide { display: none; position: relative; }
.hero-slide.active { display: block; animation: sh-fade .6s var(--sh-ease); }
@keyframes sh-fade { from { opacity: 0; } to { opacity: 1; } }
.hero-slide img { width: 100%; height: 420px; object-fit: cover; display: block; }
.hero-slide picture { display: block; }
/* A photo is not a flat panel: the copy sits on a directional wash so the
   headline stays readable whatever the picture is doing behind it. */
.hero-slide::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
}
.hero-slide.scrim-dark::after {
  background: linear-gradient(90deg, rgba(8, 12, 20, .74) 0%, rgba(8, 12, 20, .52) 44%, rgba(8, 12, 20, .10) 80%);
}
.hero-slide.scrim-light::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, .86) 0%, rgba(255, 255, 255, .62) 46%, rgba(255, 255, 255, .12) 82%);
}
.hero-content {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column;
  justify-content: center; gap: 14px; padding: 0 6%; max-width: 620px;
  color: var(--hero-fg, #fff);
}
.hero-content.right { margin-left: auto; align-items: flex-end; text-align: right; max-width: 620px; }
.hero-eyebrow {
  display: inline-block; align-self: flex-start; padding: 5px 12px; border-radius: var(--sh-radius-pill);
  background: var(--sh-accent); color: var(--sh-on-accent);
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.hero-content.right .hero-eyebrow { align-self: flex-end; }
.hero-title { font-size: 44px; font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -.02em; }
.hero-text { font-size: var(--sh-font-size-lg); margin: 0; opacity: .92; max-width: 480px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.hero-cta .btn-light { background: #fff; color: var(--sh-primary); }
.hero-cta .btn-light:hover { background: var(--sh-accent); color: var(--sh-on-accent); }
.hero-cta .btn-clear { background: transparent; color: inherit; border-color: currentColor; }
.hero-cta .btn-clear:hover { background: rgba(255,255,255,.15); color: inherit; }

.hero-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.hero-dots button {
  width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.55); transition: all var(--sh-speed) var(--sh-ease);
}
.hero-dots button.active { background: #fff; width: 26px; border-radius: var(--sh-radius-pill); }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.85); color: var(--sh-primary);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--sh-speed) var(--sh-ease); backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: #fff; box-shadow: var(--sh-shadow-md); }
.hero-arrow svg { width: 18px; height: 18px; }
.hero-arrow.prev { left: 14px; }
.hero-arrow.next { right: 14px; }

@media (max-width: 1024px) {
  .hero-slide img { height: 320px; }
  .hero-title { font-size: 34px; }
  .hero-text { font-size: var(--sh-font-size); }
}
@media (max-width: 768px) {
  .hero { padding: var(--sh-space-3) 0; }
  .hero-track { border-radius: var(--sh-radius-lg); }
  .hero-slide img { height: 300px; }
  /* On a phone the copy spans the whole tile, so a side-to-side wash is not
     enough — use an even tint instead. */
  .hero-slide.scrim-dark::after { background: rgba(8, 12, 20, .5); }
  .hero-slide.scrim-light::after { background: rgba(255, 255, 255, .68); }
  .hero-content { padding: 0 20px; max-width: none; gap: 8px; }
  .hero-title { font-size: 24px; }
  .hero-text { font-size: var(--sh-font-size-sm); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-arrow { width: 32px; height: 32px; }
  .hero-cta .btn { padding: 9px 18px; font-size: var(--sh-font-size-xs); }
}

/* ---------------------------------------------------------------------
   10. Product card (reference: product-card-2)
   --------------------------------------------------------------------- */
.product-card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--sh-card-bg); border: 1px solid var(--sh-border-soft);
  border-radius: var(--sh-radius); overflow: hidden;
  transition: border-color var(--sh-speed) var(--sh-ease), box-shadow var(--sh-speed) var(--sh-ease), transform var(--sh-speed) var(--sh-ease);
}
.product-card:hover { border-color: var(--sh-border-strong); box-shadow: var(--sh-shadow-md); transform: translateY(-2px); }

.pc-media {
  position: relative; aspect-ratio: var(--sh-card-image-ratio);
  background: #fff; overflow: hidden; display: block;
}
.pc-media img {
  width: 100%; height: 100%; object-fit: var(--sh-card-image-fit);
  padding: 10px; transition: transform var(--sh-speed-slow) var(--sh-ease);
}
.product-card:hover .pc-media img { transform: scale(1.05); }

.pc-badges {
  position: absolute; top: 7px; left: 7px; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
}
/* Honest label for AI-made stand-in art (see is_representative_image()). */
.pc-rep {
  position: absolute; left: 7px; bottom: 7px; z-index: 2;
  padding: 3px 7px; border-radius: var(--sh-radius-sm);
  background: rgba(255, 255, 255, .86); color: var(--sh-muted);
  font-size: 9.5px; font-weight: 600; letter-spacing: .02em;
  backdrop-filter: blur(3px); pointer-events: none;
}
.product-card:hover .pc-rep { opacity: 0; transition: opacity var(--sh-speed) var(--sh-ease); }
.pc-wish {
  position: absolute; top: 7px; right: 7px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--sh-border);
  background: rgba(255,255,255,.92); color: var(--sh-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
  transition: all var(--sh-speed) var(--sh-ease);
}
.pc-wish svg { width: 16px; height: 16px; }
.pc-wish:hover { color: var(--sh-danger); border-color: var(--sh-danger); transform: scale(1.08); }
.pc-wish.active { color: var(--sh-danger); border-color: var(--sh-danger); background: var(--sh-danger-soft); }
.pc-wish.active svg { fill: currentColor; }

.pc-actions {
  position: absolute; left: 7px; right: 7px; bottom: 7px; z-index: 2;
  display: flex; gap: 6px; opacity: 0; transform: translateY(8px);
  transition: all var(--sh-speed) var(--sh-ease);
}
.product-card:hover .pc-actions, .product-card:focus-within .pc-actions { opacity: 1; transform: translateY(0); }
.pc-actions .btn { flex: 1; padding: 9px 8px; font-size: var(--sh-font-size-xs); }
.pc-actions .pc-add-form { flex: 1; display: flex; margin: 0; }
.pc-actions .pc-add-form .btn { width: 100%; }
.pc-quick {
  flex: none !important; width: 36px; padding: 0 !important; height: 34px;
  background: #fff; color: var(--sh-primary); border-color: var(--sh-border-strong);
}
.pc-quick:hover { background: var(--sh-primary); color: #fff; }

.pc-body {
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px; flex: 1;
  padding: var(--sh-card-padding-v) var(--sh-card-padding-h);
}
.pc-brand { font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--sh-muted-light); }
.pc-title {
  font-size: var(--sh-card-title-size); font-weight: var(--sh-card-title-weight);
  line-height: 1.4; margin: 0; color: var(--sh-text); text-transform: capitalize;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.8em; width: 100%;
}
.pc-title a { color: inherit; }
.pc-title a:hover { color: var(--sh-accent-dark); }
.pc-rating { display: flex; align-items: center; gap: 5px; width: 100%; }
.pc-rating .stars { display: inline-flex; gap: 1px; color: var(--sh-accent); }
.pc-rating .stars-count { font-size: 10.5px; color: var(--sh-muted-light); }
.pc-sku { font-size: 10.5px; color: var(--sh-muted-light); width: 100%; }
.pc-price { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; margin-top: auto; width: 100%; padding-top: 4px; }
.pc-price .now { font-size: var(--sh-font-size-lg); font-weight: 700; color: var(--sh-text-strong); }
.pc-price .was { font-size: var(--sh-font-size-xs); color: var(--sh-muted-light); text-decoration: line-through; }
.pc-price .off { font-size: 10.5px; font-weight: 700; color: var(--sh-danger); }
.pc-stock { width: 100%; }

/* Compact card used inside sliders */
.product-card.compact .pc-title { -webkit-line-clamp: 2; font-size: 12.5px; }

/* ---------------------------------------------------------------------
   11. Stars
   --------------------------------------------------------------------- */
.stars { display: inline-flex; gap: 1px; color: var(--sh-accent); line-height: 1; }
.stars svg { width: 13px; height: 13px; }
.stars-lg svg { width: 18px; height: 18px; }
.stars-count { font-size: var(--sh-font-size-xs); color: var(--sh-muted); margin-left: 4px; }

/* Interactive rating input */
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rating-input input { position: absolute; opacity: 0; width: 0; height: 0; }
.rating-input label { cursor: pointer; color: var(--sh-border-strong); font-size: 26px; line-height: 1; margin: 0; padding: 0 2px; transition: color var(--sh-speed); }
.rating-input label::before { content: "\2605"; }
.rating-input input:checked ~ label,
.rating-input label:hover, .rating-input label:hover ~ label { color: var(--sh-accent); }

/* ---------------------------------------------------------------------
   12. Product slider (swiper replacement — no dependencies)
   --------------------------------------------------------------------- */
.pslider { position: relative; }
.pslider-viewport { overflow: hidden; }
.pslider-track {
  display: flex; gap: var(--sh-space-4);
  transition: transform .45s var(--sh-ease);
  will-change: transform;
}
.pslider-track > * { flex: 0 0 auto; }
.pslider[data-per-view="5"] > .pslider-viewport > .pslider-track > * { width: calc((100% - 4 * var(--sh-space-4)) / 5); }
.pslider[data-per-view="4"] > .pslider-viewport > .pslider-track > * { width: calc((100% - 3 * var(--sh-space-4)) / 4); }
.pslider[data-per-view="3"] > .pslider-viewport > .pslider-track > * { width: calc((100% - 2 * var(--sh-space-4)) / 3); }
.pslider[data-per-view="2"] > .pslider-viewport > .pslider-track > * { width: calc((100% - 1 * var(--sh-space-4)) / 2); }
.pslider[data-per-view="6"] > .pslider-viewport > .pslider-track > * { width: calc((100% - 5 * var(--sh-space-4)) / 6); }

/* Card widths must follow the same per-view caps main.js applies at each
   breakpoint (min(data-per-view, 4 / 3 / 2)), otherwise the track overflows
   or slides leave gaps on smaller screens. */
@media (max-width: 1200px) {
  .pslider[data-per-view="5"] > .pslider-viewport > .pslider-track > *,
  .pslider[data-per-view="6"] > .pslider-viewport > .pslider-track > * { width: calc((100% - 3 * var(--sh-space-4)) / 4); }
}
@media (max-width: 900px) {
  .pslider[data-per-view="4"] > .pslider-viewport > .pslider-track > *,
  .pslider[data-per-view="5"] > .pslider-viewport > .pslider-track > *,
  .pslider[data-per-view="6"] > .pslider-viewport > .pslider-track > * { width: calc((100% - 2 * var(--sh-space-4)) / 3); }
}
@media (max-width: 560px) {
  .pslider[data-per-view="2"] > .pslider-viewport > .pslider-track > *,
  .pslider[data-per-view="3"] > .pslider-viewport > .pslider-track > *,
  .pslider[data-per-view="4"] > .pslider-viewport > .pslider-track > *,
  .pslider[data-per-view="5"] > .pslider-viewport > .pslider-track > *,
  .pslider[data-per-view="6"] > .pslider-viewport > .pslider-track > * { width: calc((100% - 1 * var(--sh-space-4)) / 2); }
}

.pslider-controls { display: flex; gap: 8px; }
.pslider-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--sh-border-strong);
  background: #fff; color: var(--sh-primary); cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
  transition: all var(--sh-speed) var(--sh-ease);
}
.pslider-btn:hover:not(:disabled) { background: var(--sh-primary); color: #fff; border-color: var(--sh-primary); }
.pslider-btn:disabled { opacity: .3; cursor: not-allowed; }
.pslider-btn svg { width: 15px; height: 15px; }

/* ---------------------------------------------------------------------
   13. Category tiles & brand logos
   --------------------------------------------------------------------- */
.cat-tile {
  display: block; text-align: center; padding: 14px 8px;
  background: #fff; border: 1px solid var(--sh-border-soft); border-radius: var(--sh-radius);
  transition: all var(--sh-speed) var(--sh-ease);
}
.cat-tile:hover { border-color: var(--sh-primary); box-shadow: var(--sh-shadow); transform: translateY(-3px); color: var(--sh-primary); }
.cat-tile-img {
  width: 100%; aspect-ratio: 1/1; border-radius: var(--sh-radius);
  background: #fff; overflow: hidden; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center;
}
.cat-tile-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; transition: transform var(--sh-speed-slow) var(--sh-ease); }
.cat-tile:hover .cat-tile-img img { transform: scale(1.07); }
.cat-tile-name { font-size: var(--sh-font-size-sm); font-weight: 600; line-height: 1.35; color: var(--sh-text); display: block; }
.cat-tile:hover .cat-tile-name { color: var(--sh-primary); }
.cat-tile-count { font-size: 10.5px; color: var(--sh-muted-light); display: block; margin-top: 2px; }

.brand-tile {
  display: flex; align-items: center; justify-content: center;
  padding: 16px; background: #fff; border: 1px solid var(--sh-border-soft);
  border-radius: var(--sh-radius); transition: all var(--sh-speed) var(--sh-ease);
  min-height: 84px;
}
.brand-tile:hover { border-color: var(--sh-primary); box-shadow: var(--sh-shadow); transform: translateY(-2px); }
.brand-tile img { max-height: 44px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .72; transition: all var(--sh-speed) var(--sh-ease); }
.brand-tile:hover img { filter: none; opacity: 1; }

/* ---------------------------------------------------------------------
   14. Promo banners, USP, testimonials, newsletter
   --------------------------------------------------------------------- */
.promo-banner {
  position: relative; border-radius: var(--sh-radius-xl); overflow: hidden;
  background: var(--sh-bg-dark); color: #fff; min-height: 220px;
  display: flex; align-items: center;
}
.promo-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.promo-banner picture { position: absolute; inset: 0; }
.promo-banner.has-photo { min-height: 260px; }
.promo-banner.has-photo img { opacity: 1; }
.promo-banner.has-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8, 12, 20, .88) 0%, rgba(8, 12, 20, .66) 46%, rgba(8, 12, 20, .12) 82%);
}
.promo-inner { position: relative; z-index: 2; padding: 34px 40px; max-width: 640px; display: flex; flex-direction: column; gap: 12px; }
.promo-inner h2 { color: #fff; margin: 0; font-size: var(--sh-h2); }
.promo-inner p { margin: 0; opacity: .9; }
.promo-banner.center { justify-content: center; text-align: center; }
.promo-banner.center .promo-inner { align-items: center; max-width: 720px; }
@media (max-width: 768px) {
  .promo-inner { padding: 26px 22px; }
  .promo-banner.has-photo::after { background: rgba(8, 12, 20, .74); }
}

.usp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sh-space-4); }
@media (max-width: 900px) { .usp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .usp-grid { grid-template-columns: 1fr; } }
.usp {
  display: flex; gap: 14px; align-items: flex-start; padding: 20px;
  background: #fff; border: 1px solid var(--sh-border-soft); border-radius: var(--sh-radius);
}
.usp-icon {
  flex: none; width: 44px; height: 44px; border-radius: var(--sh-radius);
  background: var(--sh-primary-soft); color: var(--sh-primary);
  display: flex; align-items: center; justify-content: center;
}
.usp-icon svg { width: 22px; height: 22px; }
.usp h4 { margin: 0 0 4px; font-size: var(--sh-font-size); font-weight: 700; }
.usp p { margin: 0; font-size: var(--sh-font-size-xs); color: var(--sh-muted); line-height: 1.55; }

.testimonial {
  background: #fff; border: 1px solid var(--sh-border-soft); border-radius: var(--sh-radius);
  padding: 24px; display: flex; flex-direction: column; gap: 12px; height: 100%;
}
.testimonial blockquote { margin: 0; font-size: var(--sh-font-size-sm); line-height: 1.65; color: var(--sh-text); }
.testimonial .t-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial .t-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--sh-primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--sh-font-size-sm); flex: none;
}
.testimonial .t-name { font-weight: 600; font-size: var(--sh-font-size-sm); }
.testimonial .t-meta { font-size: var(--sh-font-size-xs); color: var(--sh-muted); }
.sample-flag {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: var(--sh-radius-pill);
  background: var(--sh-warning-soft); color: var(--sh-warning);
  font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}

.newsletter { background: var(--sh-primary); color: #fff; border-radius: var(--sh-radius-xl); padding: 40px; }
.newsletter-inner { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.newsletter h2 { color: #fff; margin: 0 0 6px; font-size: var(--sh-h3); }
.newsletter p { margin: 0; opacity: .78; font-size: var(--sh-font-size-sm); }
.newsletter form { display: flex; gap: 10px; min-width: min(420px, 100%); }
.newsletter input { background: #fff; border-color: #fff; height: 46px; }
.newsletter .btn { height: 46px; flex: none; }
.newsletter .nl-note { font-size: 11px; opacity: .6; margin-top: 8px; }
@media (max-width: 860px) {
  .newsletter { padding: 28px 20px; }
  .newsletter-inner { grid-template-columns: 1fr; }
  .newsletter form { flex-direction: column; width: 100%; }
  .newsletter .btn { width: 100%; }
}

.social-strip { display: flex; gap: 10px; flex-wrap: wrap; }
.social-link {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--sh-border-strong);
  display: flex; align-items: center; justify-content: center; color: var(--sh-muted);
  transition: all var(--sh-speed) var(--sh-ease);
}
.social-link:hover { background: var(--sh-primary); border-color: var(--sh-primary); color: #fff; }
.social-link svg { width: 17px; height: 17px; }

/* ---------------------------------------------------------------------
   15. Breadcrumbs
   --------------------------------------------------------------------- */
.breadcrumbs { padding: 14px 0; font-size: var(--sh-font-size-xs); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--sh-muted); }
.breadcrumbs li + li::before { content: "/"; color: var(--sh-border-strong); }
.breadcrumbs a { color: var(--sh-muted); }
.breadcrumbs a:hover { color: var(--sh-primary); }
.breadcrumbs [aria-current="page"] { color: var(--sh-text-strong); font-weight: 500; }

/* ---------------------------------------------------------------------
   16. Page headers
   --------------------------------------------------------------------- */
.page-head { background: var(--sh-bg-alt); padding: var(--sh-space-6) 0; border-bottom: 1px solid var(--sh-border); }
.page-head h1 { margin: 0; font-size: var(--sh-h1); }
.page-head p { margin: 8px 0 0; color: var(--sh-muted); max-width: 720px; }
.page-head .breadcrumbs { padding: 0 0 10px; }
.category-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.category-strip a {
  padding: 7px 14px; border-radius: var(--sh-radius-pill); text-decoration: none;
  background: #fff; border: 1px solid var(--sh-border); color: var(--sh-text);
  font-size: var(--sh-font-size-sm); transition: all var(--sh-speed) var(--sh-ease);
}
.category-strip a:hover { background: var(--sh-primary); border-color: var(--sh-primary); color: #fff; }

/* ---------------------------------------------------------------------
   17. Shop listing: sidebar filters + grid
   --------------------------------------------------------------------- */
.shop-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--sh-space-6); align-items: start; padding: var(--sh-space-6) 0; }
@media (max-width: 1024px) { .shop-layout { grid-template-columns: 1fr; } }

.filters { position: sticky; top: calc(var(--sh-nav-height) + 12px); }
@media (max-width: 1024px) {
  .filters { position: static; display: none; }
  .filters.open { display: block; }
}
.filter-block { border: 1px solid var(--sh-border); border-radius: var(--sh-radius); margin-bottom: var(--sh-space-3); background: #fff; overflow: hidden; }
.filter-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 14px; cursor: pointer; background: none; border: 0; width: 100%;
  font-family: inherit; font-size: var(--sh-font-size-sm); font-weight: 700; color: var(--sh-text-strong); text-align: left;
}
.filter-head .fh-caret { width: 11px; height: 11px; transition: transform var(--sh-speed); flex: none; color: var(--sh-muted); }
.filter-block.collapsed .fh-caret { transform: rotate(-90deg); }
.filter-body { padding: 0 14px 14px; max-height: 300px; overflow-y: auto; }
.filter-block.collapsed .filter-body { display: none; }
.filter-list { list-style: none; margin: 0; padding: 0; }
.filter-list li { margin: 0; }
.filter-list label {
  display: flex; align-items: center; gap: 9px; padding: 5px 0; margin: 0;
  font-weight: 400; font-size: var(--sh-font-size-sm); color: var(--sh-text); cursor: pointer;
}
.filter-list label:hover { color: var(--sh-primary); }
.filter-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 0;
  font-size: var(--sh-font-size-sm); color: var(--sh-text); text-decoration: none;
}
.filter-list a:hover { color: var(--sh-primary); }
.filter-list .f-count { margin-left: auto; font-size: 11px; color: var(--sh-muted-light); }
.filter-note { margin: 2px 0 10px; font-size: 11px; color: var(--sh-muted-light); }
.filter-price { display: flex; gap: 8px; align-items: center; }
.filter-price input { padding: 7px 9px; font-size: var(--sh-font-size-xs); }
.filter-actions { display: flex; gap: 8px; margin-top: 10px; }
.filter-actions .btn { flex: 1; }

.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sh-space-4);
  flex-wrap: wrap; padding: 12px 16px; margin-bottom: var(--sh-space-4);
  border: 1px solid var(--sh-border); border-radius: var(--sh-radius); background: #fff;
}
.shop-toolbar .result-count { font-size: var(--sh-font-size-sm); color: var(--sh-muted); }
.shop-toolbar .result-count strong { color: var(--sh-text-strong); font-weight: 600; }
.toolbar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.toolbar-right label { margin: 0; font-size: var(--sh-font-size-xs); color: var(--sh-muted); font-weight: 500; }
.toolbar-right select { width: auto; min-width: 160px; padding: 7px 32px 7px 12px; font-size: var(--sh-font-size-xs); }
.view-toggles { display: flex; gap: 4px; }
.view-toggles button {
  width: 34px; height: 34px; border: 1px solid var(--sh-border); background: #fff;
  border-radius: var(--sh-radius-sm); cursor: pointer; color: var(--sh-muted);
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.view-toggles button.active { background: var(--sh-primary); color: #fff; border-color: var(--sh-primary); }
.view-toggles svg { width: 15px; height: 15px; }
.btn-filters-mobile { display: none; }
@media (max-width: 1024px) { .btn-filters-mobile { display: inline-flex; } }

.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--sh-space-4); }
.active-filters .pill { background: var(--sh-primary-soft); }
.active-filters .pill button, .active-filters .pill a {
  background: none; border: 0; cursor: pointer; color: inherit; padding: 0 0 0 4px;
  font-size: 15px; line-height: 1; text-decoration: none;
}

.products-grid { display: grid; grid-template-columns: var(--sh-grid-products); gap: var(--sh-space-4); }
.products-grid.list-view { grid-template-columns: 1fr; }
.products-grid.list-view .product-card { flex-direction: row; }
.products-grid.list-view .pc-media { width: 220px; flex: none; aspect-ratio: 1/1; }
.products-grid.list-view .pc-body { padding: 20px; }
.products-grid.list-view .pc-title { font-size: var(--sh-font-size-lg); -webkit-line-clamp: 3; min-height: 0; }
.products-grid.list-view .pc-desc { display: block; font-size: var(--sh-font-size-sm); color: var(--sh-muted); line-height: 1.6; }
.pc-desc { display: none; }
@media (max-width: 640px) {
  .products-grid.list-view .product-card { flex-direction: column; }
  .products-grid.list-view .pc-media { width: 100%; }
}

.empty-state { text-align: center; padding: var(--sh-space-8) var(--sh-space-4); }
.empty-state .es-icon { width: 72px; height: 72px; margin: 0 auto var(--sh-space-4); color: var(--sh-border-strong); }
.empty-state .es-icon svg { width: 100%; height: 100%; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--sh-muted); max-width: 460px; margin: 0 auto var(--sh-space-5); }

/* Full-page error hero (404 / 410 / 500) */
.error-hero { text-align: center; padding: var(--sh-space-5) 0 var(--sh-space-3); }
.error-code {
  font-size: 88px; font-weight: 800; line-height: 1; margin: 0;
  color: var(--sh-border); letter-spacing: -.04em; user-select: none;
}
.error-hero h1 { font-size: var(--sh-h2); margin: 6px 0 10px; }
.error-text { color: var(--sh-muted); max-width: 520px; margin: 0 auto var(--sh-space-5); }
.error-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: var(--sh-space-7); }
.error-suggestions { text-align: left; }
.error-suggestions h2 { font-size: var(--sh-h3); margin-bottom: var(--sh-space-4); text-align: center; }

/* ---------------------------------------------------------------------
   18. Pagination
   --------------------------------------------------------------------- */
.pagination { margin: var(--sh-space-6) 0 0; }
.pagination ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; justify-content: center; }
.pagination li { margin: 0; }
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 12px;
  border: 1px solid var(--sh-border); border-radius: var(--sh-radius-sm);
  font-size: var(--sh-font-size-sm); color: var(--sh-text); background: #fff;
  transition: all var(--sh-speed) var(--sh-ease);
}
.pagination a:hover { background: var(--sh-primary); border-color: var(--sh-primary); color: #fff; }
.pagination .current { background: var(--sh-primary); border-color: var(--sh-primary); color: #fff; font-weight: 600; }
.pagination .disabled, .pagination .gap { border-color: transparent; background: none; color: var(--sh-muted-light); cursor: default; }

.result-range { text-align: center; color: var(--sh-muted); font-size: var(--sh-font-size-xs); margin-top: var(--sh-space-3); }

/* ---------------------------------------------------------------------
   19. Product detail page
   --------------------------------------------------------------------- */
.pd-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sh-space-7); padding: var(--sh-space-6) 0; align-items: start; }
@media (max-width: 1024px) { .pd-layout { grid-template-columns: 1fr; gap: var(--sh-space-5); } }

.pd-gallery { position: sticky; top: calc(var(--sh-nav-height) + 16px); }
@media (max-width: 1024px) { .pd-gallery { position: static; } }
.pd-main-image {
  border: 1px solid var(--sh-border-soft); border-radius: var(--sh-radius);
  background: #fff; aspect-ratio: 1/1; overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.pd-main-image img { width: 100%; height: 100%; object-fit: contain; padding: 20px; cursor: zoom-in; }
.pd-main-image .pc-badges { top: 12px; left: 12px; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pd-thumbs button {
  width: 72px; height: 72px; padding: 5px; border: 1px solid var(--sh-border);
  border-radius: var(--sh-radius-sm); background: #fff; cursor: pointer; overflow: hidden;
  transition: border-color var(--sh-speed) var(--sh-ease);
}
.pd-thumbs button.active, .pd-thumbs button:hover { border-color: var(--sh-primary); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pd-img-note {
  display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0;
  padding: 10px 12px; border-radius: var(--sh-radius-sm);
  background: var(--sh-bg-alt); color: var(--sh-muted);
  font-size: var(--sh-font-size-xs); line-height: 1.5;
}
.pd-img-note svg { flex: none; width: 15px; height: 15px; margin-top: 1px; }

.pd-info .pd-brand { font-size: var(--sh-font-size-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sh-muted); margin-bottom: 8px; }
.pd-info .pd-brand a { color: var(--sh-accent-dark); }
.pd-info h1 { font-size: var(--sh-h2); margin: 0 0 10px; line-height: 1.25; text-transform: capitalize; }
.pd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--sh-border); font-size: var(--sh-font-size-xs); color: var(--sh-muted); }
.pd-meta .m-item { display: flex; align-items: center; gap: 5px; }
.pd-meta a { color: var(--sh-accent-dark); font-weight: 600; }
.pd-price-box { padding: 20px 0; border-bottom: 1px solid var(--sh-border); }
.pd-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pd-price .now { font-size: 32px; font-weight: 700; color: var(--sh-text-strong); line-height: 1; }
.pd-price .was { font-size: var(--sh-font-size-lg); color: var(--sh-muted-light); text-decoration: line-through; }
.pd-price .off { background: var(--sh-badge); color: #fff; padding: 3px 9px; border-radius: var(--sh-radius-xs); font-size: 11px; font-weight: 700; }
.pd-tax-note { font-size: var(--sh-font-size-xs); color: var(--sh-muted); margin-top: 6px; }
.pd-short { padding: 18px 0; color: var(--sh-muted); font-size: var(--sh-font-size); line-height: 1.7; border-bottom: 1px solid var(--sh-border); }

.pd-buy { padding: 20px 0; display: flex; flex-direction: column; gap: 14px; }
.qty-selector { display: inline-flex; align-items: stretch; border: 1px solid var(--sh-border-strong); border-radius: var(--sh-radius); overflow: hidden; height: 46px; }
.qty-selector button {
  width: 42px; border: 0; background: var(--sh-bg-alt); cursor: pointer;
  font-size: 18px; color: var(--sh-primary); font-family: inherit; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background-color var(--sh-speed);
}
.qty-selector button:hover { background: var(--sh-border); }
.qty-selector input {
  width: 58px; border: 0; border-radius: 0; text-align: center; font-weight: 600;
  font-size: var(--sh-font-size); padding: 0; height: 100%;
  -moz-appearance: textfield;
}
.qty-selector input::-webkit-outer-spin-button, .qty-selector input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-selector input:focus { box-shadow: none; }

.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.pd-actions .btn { height: 46px; padding: 0 26px; }
.pd-actions .btn-cart { flex: 1; min-width: 180px; }
.pd-wish-btn {
  width: 46px; height: 46px; flex: none; border: 1px solid var(--sh-border-strong);
  border-radius: var(--sh-radius); background: #fff; cursor: pointer; color: var(--sh-muted);
  display: flex; align-items: center; justify-content: center; padding: 0;
  transition: all var(--sh-speed) var(--sh-ease);
}
.pd-wish-btn:hover, .pd-wish-btn.active { color: var(--sh-danger); border-color: var(--sh-danger); }
.pd-wish-btn.active { background: var(--sh-danger-soft); }
.pd-wish-btn svg { width: 20px; height: 20px; }

.pd-delivery { border: 1px solid var(--sh-border); border-radius: var(--sh-radius); padding: 16px; background: var(--sh-bg-alt); }
.pd-delivery h4 { margin: 0 0 10px; font-size: var(--sh-font-size-sm); font-weight: 700; }
.pd-delivery ul { list-style: none; margin: 0; padding: 0; }
.pd-delivery li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; font-size: var(--sh-font-size-xs); color: var(--sh-muted); line-height: 1.5; }
.pd-delivery li svg { width: 15px; height: 15px; flex: none; color: var(--sh-success); margin-top: 2px; }

.pd-share { display: flex; align-items: center; gap: 10px; font-size: var(--sh-font-size-xs); color: var(--sh-muted); }

/* Tabs */
.pd-tabs { padding: var(--sh-space-6) 0; }
.tab-list { display: flex; gap: 4px; border-bottom: 1px solid var(--sh-border); overflow-x: auto; scrollbar-width: none; }
.tab-list::-webkit-scrollbar { display: none; }
.tab-list button {
  padding: 12px 20px; background: none; border: 0; border-bottom: 2px solid transparent;
  cursor: pointer; font-family: inherit; font-size: var(--sh-font-size-sm); font-weight: 600;
  color: var(--sh-muted); white-space: nowrap; margin-bottom: -1px;
  transition: all var(--sh-speed) var(--sh-ease);
}
.tab-list button:hover { color: var(--sh-primary); }
.tab-list button.active { color: var(--sh-primary); border-bottom-color: var(--sh-primary); }
.tab-panel { display: none; padding: var(--sh-space-5) 0; }
.tab-panel.active { display: block; animation: sh-fade .3s var(--sh-ease); }
.tab-panel h3 { font-size: var(--sh-h4); }

.spec-table { width: 100%; border-collapse: collapse; font-size: var(--sh-font-size-sm); }
.spec-table th, .spec-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--sh-border); }
.spec-table th { width: 34%; background: var(--sh-bg-alt); font-weight: 600; color: var(--sh-text-strong); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table { border: 1px solid var(--sh-border); border-radius: var(--sh-radius); overflow: hidden; }

.rich-content { font-size: var(--sh-font-size); line-height: 1.75; color: var(--sh-text); }
.rich-content h2, .rich-content h3 { margin-top: 24px; }
.rich-content ul, .rich-content ol { padding-left: 22px; }
.rich-content li { margin-bottom: 6px; }
.rich-content img { border-radius: var(--sh-radius); }
.rich-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.rich-content th, .rich-content td { border: 1px solid var(--sh-border); padding: 9px 12px; text-align: left; }
.rich-content th { background: var(--sh-bg-alt); font-weight: 600; }
.rich-content blockquote { margin: 16px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--sh-accent); color: var(--sh-muted); }

/* Reviews */
.reviews-summary { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: var(--sh-space-6); align-items: center; padding: 24px; background: var(--sh-bg-alt); border-radius: var(--sh-radius); margin-bottom: var(--sh-space-5); }
@media (max-width: 640px) { .reviews-summary { grid-template-columns: 1fr; text-align: center; } }
.rs-big { font-size: 48px; font-weight: 700; line-height: 1; color: var(--sh-text-strong); }
.rs-bars { display: grid; gap: 5px; }
.rs-bar { display: grid; grid-template-columns: 46px minmax(0, 1fr) 34px; gap: 10px; align-items: center; font-size: var(--sh-font-size-xs); color: var(--sh-muted); }
.rs-bar .track { height: 7px; background: var(--sh-border); border-radius: var(--sh-radius-pill); overflow: hidden; }
.rs-bar .fill { height: 100%; background: var(--sh-accent); border-radius: var(--sh-radius-pill); }

.review { padding: 18px 0; border-bottom: 1px solid var(--sh-border); }
.review:last-child { border-bottom: 0; }
.review-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.review-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--sh-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--sh-font-size-sm); flex: none; }
.review-author { font-weight: 600; font-size: var(--sh-font-size-sm); }
.review-date { font-size: var(--sh-font-size-xs); color: var(--sh-muted-light); }
.review-title { font-weight: 600; margin: 6px 0 4px; }
.review-body { font-size: var(--sh-font-size-sm); color: var(--sh-muted); line-height: 1.65; margin: 0; }
.verified-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; color: var(--sh-success); text-transform: uppercase; letter-spacing: .05em; }
.verified-tag svg { width: 12px; height: 12px; }

/* Review form */
.review-form { display: flex; flex-direction: column; gap: 6px; max-width: 640px; }
.review-form label { margin-top: 10px; font-size: var(--sh-font-size-sm); font-weight: 600; }
.review-form .btn { margin-top: 16px; align-self: flex-start; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------------------------------------------------------------------
   20. Cart, checkout, confirmation
   --------------------------------------------------------------------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--sh-space-6); align-items: start; padding: var(--sh-space-6) 0; }
@media (max-width: 1024px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  text-align: left; padding: 12px; font-size: var(--sh-font-size-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--sh-muted);
  border-bottom: 1px solid var(--sh-border);
}
.cart-table td { padding: 16px 12px; border-bottom: 1px solid var(--sh-border); vertical-align: middle; }
.cart-table .ct-product { display: flex; gap: 14px; align-items: center; }
.cart-table .ct-img { width: 78px; height: 78px; flex: none; border: 1px solid var(--sh-border-soft); border-radius: var(--sh-radius-sm); background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cart-table .ct-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.cart-table .ct-name { font-size: var(--sh-font-size-sm); font-weight: 600; line-height: 1.4; text-transform: capitalize; }
.cart-table .ct-meta { font-size: var(--sh-font-size-xs); color: var(--sh-muted); margin-top: 3px; }
.cart-table .ct-price { font-weight: 600; white-space: nowrap; }
.cart-table .ct-line { font-weight: 700; white-space: nowrap; }
.cart-table .ct-remove { background: none; border: 0; cursor: pointer; color: var(--sh-muted-light); padding: 6px; border-radius: var(--sh-radius-sm); transition: all var(--sh-speed); }
.cart-table .ct-remove:hover { color: var(--sh-danger); background: var(--sh-danger-soft); }
.cart-table .ct-remove svg { width: 18px; height: 18px; }
.cart-table .qty-selector { height: 40px; }
.cart-table .qty-selector button { width: 34px; font-size: 16px; }
.cart-table .qty-selector input { width: 46px; }
@media (max-width: 768px) {
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr { border: 1px solid var(--sh-border); border-radius: var(--sh-radius); margin-bottom: 12px; padding: 8px; }
  .cart-table td { border: 0; padding: 8px 4px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .cart-table td::before { content: attr(data-label); font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--sh-muted); }
  .cart-table td.ct-cell-product { display: block; }
  .cart-table td.ct-cell-product::before { display: none; }
}

.summary-card { border: 1px solid var(--sh-border); border-radius: var(--sh-radius); background: #fff; position: sticky; top: calc(var(--sh-nav-height) + 16px); overflow: hidden; }
@media (max-width: 1024px) { .summary-card { position: static; } }
.summary-card h3 { margin: 0; padding: 16px 20px; border-bottom: 1px solid var(--sh-border); font-size: var(--sh-font-size-lg); font-weight: 700; background: var(--sh-bg-alt); }
.summary-body { padding: 20px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: var(--sh-font-size-sm); }
.summary-row.total { border-top: 1px solid var(--sh-border); margin-top: 10px; padding-top: 16px; font-size: var(--sh-font-size-lg); font-weight: 700; }
.summary-row .label { color: var(--sh-muted); }
.summary-row.total .label { color: var(--sh-text-strong); }
.summary-row.discount { color: var(--sh-success); font-weight: 600; }
.coupon-form { display: flex; gap: 8px; margin: 14px 0; }
.coupon-form input { flex: 1; text-transform: uppercase; }
.applied-coupon { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--sh-success-soft); border: 1px dashed var(--sh-success); border-radius: var(--sh-radius); font-size: var(--sh-font-size-sm); margin: 14px 0; }
.applied-coupon code { font-weight: 700; color: var(--sh-success); letter-spacing: .04em; }
.free-ship-note { font-size: var(--sh-font-size-xs); color: var(--sh-success); background: var(--sh-success-soft); padding: 9px 12px; border-radius: var(--sh-radius-sm); margin-bottom: 12px; }
.free-ship-bar { height: 5px; background: var(--sh-border); border-radius: var(--sh-radius-pill); overflow: hidden; margin-top: 7px; }
.free-ship-bar span { display: block; height: 100%; background: var(--sh-success); }

.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--sh-space-6); align-items: start; padding: var(--sh-space-6) 0; }
@media (max-width: 1024px) { .checkout-layout { grid-template-columns: 1fr; } }
.checkout-panel { border: 1px solid var(--sh-border); border-radius: var(--sh-radius); background: #fff; margin-bottom: var(--sh-space-4); overflow: hidden; }
.checkout-panel > h3 {
  margin: 0; padding: 16px 20px; font-size: var(--sh-font-size); font-weight: 700;
  background: var(--sh-bg-alt); border-bottom: 1px solid var(--sh-border);
  display: flex; align-items: center; gap: 10px;
}
.step-num {
  width: 24px; height: 24px; border-radius: 50%; background: var(--sh-primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none;
}
.checkout-panel .panel-body { padding: 20px; }

.payment-option { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--sh-border); border-radius: var(--sh-radius); margin-bottom: 10px; cursor: pointer; transition: all var(--sh-speed) var(--sh-ease); }
.payment-option:hover { border-color: var(--sh-border-strong); }
.payment-option.selected { border-color: var(--sh-primary); background: var(--sh-primary-soft); }
.payment-option .po-icon { width: 40px; height: 40px; flex: none; border-radius: var(--sh-radius-sm); background: #fff; border: 1px solid var(--sh-border); display: flex; align-items: center; justify-content: center; color: var(--sh-primary); }
.payment-option .po-icon svg { width: 20px; height: 20px; }
.bank-details { background: var(--sh-bg-alt); border: 1px solid var(--sh-border); border-radius: var(--sh-radius); padding: 16px; font-size: var(--sh-font-size-sm); line-height: 1.7; margin-top: 12px; }
.bank-details dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.bank-details dt { color: var(--sh-muted); font-weight: 500; }
.bank-details dd { margin: 0; font-weight: 600; }

.order-items-mini { list-style: none; margin: 0 0 14px; padding: 0; max-height: 280px; overflow-y: auto; }
.order-items-mini li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--sh-divider); }
.order-items-mini li:last-child { border-bottom: 0; }
.order-items-mini .oi-img { width: 48px; height: 48px; flex: none; border: 1px solid var(--sh-border-soft); border-radius: var(--sh-radius-xs); background: #fff; overflow: hidden; }
.order-items-mini .oi-img img { width: 100%; height: 100%; object-fit: contain; padding: 2px; }
.order-items-mini .oi-name { flex: 1; font-size: var(--sh-font-size-xs); line-height: 1.4; }
.order-items-mini .oi-qty { color: var(--sh-muted); font-size: 11px; }
.order-items-mini .oi-price { font-size: var(--sh-font-size-xs); font-weight: 600; white-space: nowrap; }

.confirm-hero { text-align: center; padding: var(--sh-space-7) var(--sh-space-4); }
.confirm-check { width: 84px; height: 84px; margin: 0 auto var(--sh-space-5); border-radius: 50%; background: var(--sh-success-soft); color: var(--sh-success); display: flex; align-items: center; justify-content: center; }
.confirm-check svg { width: 42px; height: 42px; }
.order-number-box { display: inline-flex; flex-direction: column; gap: 4px; padding: 16px 32px; background: var(--sh-bg-alt); border-radius: var(--sh-radius); border: 1px dashed var(--sh-border-strong); margin: var(--sh-space-4) 0; }
.order-number-box small { font-size: var(--sh-font-size-xs); color: var(--sh-muted); text-transform: uppercase; letter-spacing: .08em; }
.order-number-box strong { font-size: 22px; letter-spacing: .04em; color: var(--sh-text-strong); }

/* ---------------------------------------------------------------------
   21. Account area
   --------------------------------------------------------------------- */
.account-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--sh-space-6); align-items: start; padding: var(--sh-space-6) 0; }
@media (max-width: 900px) { .account-layout { grid-template-columns: 1fr; } }

.account-nav { border: 1px solid var(--sh-border); border-radius: var(--sh-radius); background: #fff; overflow: hidden; position: sticky; top: calc(var(--sh-nav-height) + 16px); }
@media (max-width: 900px) { .account-nav { position: static; } }
.account-nav .an-head { padding: 16px; background: var(--sh-primary); color: #fff; display: flex; align-items: center; gap: 12px; }
.account-nav .an-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.account-nav .an-name { font-weight: 600; font-size: var(--sh-font-size-sm); line-height: 1.3; }
.account-nav .an-email { font-size: 11px; opacity: .7; overflow: hidden; text-overflow: ellipsis; }
.account-nav ul { list-style: none; margin: 0; padding: 8px 0; }
.account-nav li { margin: 0; }
.account-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: var(--sh-font-size-sm); color: var(--sh-text); border-left: 3px solid transparent; }
.account-nav a svg { width: 16px; height: 16px; color: var(--sh-muted); flex: none; }
.account-nav a:hover { background: var(--sh-bg-alt); color: var(--sh-primary); }
.account-nav a.active { background: var(--sh-bg-alt); color: var(--sh-primary); border-left-color: var(--sh-accent); font-weight: 600; }
.account-nav a.active svg { color: var(--sh-accent); }

.panel { border: 1px solid var(--sh-border); border-radius: var(--sh-radius); background: #fff; overflow: hidden; }
.panel-head { padding: 16px 20px; border-bottom: 1px solid var(--sh-border); background: var(--sh-bg-alt); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel-head h1, .panel-head h2, .panel-head h3 { margin: 0; font-size: var(--sh-h4); }
.panel-body { padding: 20px; }
.panel-body.tight { padding: 0; }
.panel-foot { padding: 16px 20px; border-top: 1px solid var(--sh-border); background: var(--sh-bg-alt); display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

.auth-card { max-width: 460px; margin: var(--sh-space-7) auto; padding: 32px; border: 1px solid var(--sh-border); border-radius: var(--sh-radius-lg); background: #fff; box-shadow: var(--sh-shadow); }
.auth-card.wide { max-width: 620px; }
.auth-card h1 { font-size: var(--sh-h3); text-align: center; margin-bottom: 6px; }
.auth-card .auth-sub { text-align: center; color: var(--sh-muted); font-size: var(--sh-font-size-sm); margin-bottom: var(--sh-space-5); }
.auth-foot { text-align: center; margin-top: var(--sh-space-5); padding-top: var(--sh-space-4); border-top: 1px solid var(--sh-border); font-size: var(--sh-font-size-sm); color: var(--sh-muted); }
.auth-links { display: flex; justify-content: space-between; gap: 10px; font-size: var(--sh-font-size-xs); margin: -6px 0 var(--sh-space-4); flex-wrap: wrap; }

.data-table { width: 100%; border-collapse: collapse; font-size: var(--sh-font-size-sm); }
.data-table th {
  text-align: left; padding: 11px 16px; background: var(--sh-bg-alt);
  font-size: var(--sh-font-size-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--sh-muted); border-bottom: 1px solid var(--sh-border);
  white-space: nowrap;
}
.data-table td { padding: 13px 16px; border-bottom: 1px solid var(--sh-divider); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--sh-bg-alt); }
.data-table .num { text-align: right; white-space: nowrap; }
.data-table .actions { display: flex; gap: 6px; justify-content: flex-end; }
@media (max-width: 768px) {
  .data-table.responsive thead { display: none; }
  .data-table.responsive, .data-table.responsive tbody, .data-table.responsive tr, .data-table.responsive td { display: block; width: 100%; }
  .data-table.responsive tr { border: 1px solid var(--sh-border); border-radius: var(--sh-radius); margin-bottom: 10px; padding: 6px 0; }
  .data-table.responsive td { border: 0; padding: 7px 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left !important; }
  .data-table.responsive td::before { content: attr(data-label); font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--sh-muted); flex: none; }
}

.address-card { border: 1px solid var(--sh-border); border-radius: var(--sh-radius); padding: 18px; background: #fff; position: relative; height: 100%; display: flex; flex-direction: column; gap: 8px; }
.address-card.is-default { border-color: var(--sh-primary); }
.address-card h4 { margin: 0; font-size: var(--sh-font-size); }
.address-card address { font-style: normal; font-size: var(--sh-font-size-sm); color: var(--sh-muted); line-height: 1.65; flex: 1; }
.address-card .ac-actions { display: flex; gap: 8px; padding-top: 10px; border-top: 1px solid var(--sh-divider); }
.default-tag { position: absolute; top: -1px; right: 12px; background: var(--sh-primary); color: #fff; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 0 0 var(--sh-radius-xs) var(--sh-radius-xs); }

.wishlist-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sh-space-4); }
@media (max-width: 900px) { .wishlist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------------
   22. Static/content pages
   --------------------------------------------------------------------- */
.content-page { padding: var(--sh-space-7) 0; }
.content-page .container { max-width: var(--sh-container-narrow); }
.content-page h1 { font-size: var(--sh-h1); margin-bottom: var(--sh-space-5); }
.content-page h2 { font-size: var(--sh-h3); margin-top: var(--sh-space-6); }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--sh-space-6); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-card { border: 1px solid var(--sh-border); border-radius: var(--sh-radius); padding: 20px; background: var(--sh-bg-alt); margin-bottom: var(--sh-space-3); display: flex; gap: 14px; }
.contact-info-card .ci-icon { width: 42px; height: 42px; flex: none; border-radius: var(--sh-radius); background: var(--sh-primary); color: #fff; display: flex; align-items: center; justify-content: center; }
.contact-info-card .ci-icon svg { width: 20px; height: 20px; }
.contact-info-card h4 { margin: 0 0 4px; font-size: var(--sh-font-size-sm); }
.contact-info-card p { margin: 0; font-size: var(--sh-font-size-sm); color: var(--sh-muted); line-height: 1.6; }

/* ---------------------------------------------------------------------
   23. Footer
   --------------------------------------------------------------------- */
.site-footer { background: var(--sh-bg-dark); color: #d4d4d8; margin-top: var(--sh-space-8); font-size: var(--sh-font-size-sm); }
.site-footer a { color: #d4d4d8; }
.site-footer a:hover { color: var(--sh-accent); }
.footer-main { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: var(--sh-space-6); padding: var(--sh-space-8) 0 var(--sh-space-6); }
@media (max-width: 1024px) { .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .footer-main { grid-template-columns: 1fr; gap: var(--sh-space-5); } }

.footer-about .logo-text { color: #fff; }
.footer-about .logo-text small { color: #a1a1aa; }
.footer-about p { color: #a1a1aa; line-height: 1.7; margin: 14px 0; font-size: var(--sh-font-size-sm); }
.footer-heading { font-size: var(--sh-font-size-sm); font-weight: 700; color: #fff; margin: 0 0 16px; text-transform: uppercase; letter-spacing: .09em; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 0; }
.footer-links a { display: block; padding: 5px 0; color: #a1a1aa; font-size: var(--sh-font-size-sm); }
.footer-links a:hover { color: var(--sh-accent); padding-left: 4px; }
.footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-contact li { display: flex; gap: 11px; padding: 6px 0; color: #a1a1aa; font-size: var(--sh-font-size-sm); line-height: 1.55; }
.footer-contact svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--sh-accent); }
.site-footer .social-link { border-color: rgba(255,255,255,.2); color: #a1a1aa; }
.site-footer .social-link:hover { background: var(--sh-accent); border-color: var(--sh-accent); color: var(--sh-on-accent); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: var(--sh-font-size-xs); color: #a1a1aa; }
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
.payment-icons { display: flex; gap: 8px; align-items: center; }
.payment-icons span { padding: 4px 9px; border: 1px solid rgba(255,255,255,.2); border-radius: var(--sh-radius-xs); font-size: 10px; font-weight: 700; letter-spacing: .04em; }

/* ---------------------------------------------------------------------
   24. Quick view modal
   --------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: var(--sh-z-modal);
  background: rgba(0,0,0,.6); display: none; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; transition: opacity var(--sh-speed) var(--sh-ease);
}
.modal-backdrop.open { display: flex; opacity: 1; }
.modal {
  background: #fff; border-radius: var(--sh-radius-lg); max-width: 860px; width: 100%;
  max-height: 88vh; overflow-y: auto; position: relative; box-shadow: var(--sh-shadow-lg);
  transform: scale(.96); transition: transform var(--sh-speed) var(--sh-ease);
}
.modal-backdrop.open .modal { transform: scale(1); }
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--sh-border);
  background: #fff; cursor: pointer; font-size: 20px; line-height: 1; color: var(--sh-muted);
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.modal-close:hover { background: var(--sh-primary); color: #fff; border-color: var(--sh-primary); }
.modal-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); }
@media (max-width: 720px) { .modal-grid { grid-template-columns: 1fr; } }
.modal-media { background: var(--sh-bg-alt); display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal-media img { max-height: 320px; object-fit: contain; }
.modal-info { padding: 28px; }
.modal-info h2 { font-size: var(--sh-h4); margin-bottom: 8px; text-transform: capitalize; }

/* ---------------------------------------------------------------------
   25. Toast notifications
   --------------------------------------------------------------------- */
.toast-stack { position: fixed; bottom: 20px; right: 20px; z-index: var(--sh-z-toast); display: flex; flex-direction: column; gap: 10px; max-width: min(360px, calc(100vw - 40px)); }
.toast {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--sh-primary); color: #fff; padding: 13px 16px;
  border-radius: var(--sh-radius); box-shadow: var(--sh-shadow-lg);
  font-size: var(--sh-font-size-sm); line-height: 1.45;
  animation: sh-toast-in .3s var(--sh-ease);
}
.toast.success { background: var(--sh-success); }
.toast.error   { background: var(--sh-danger); }
.toast.warning { background: var(--sh-warning); }
.toast svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.toast.leaving { animation: sh-toast-out .25s var(--sh-ease) forwards; }
@keyframes sh-toast-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes sh-toast-out { to { opacity: 0; transform: translateX(24px); } }
@media (max-width: 620px) { .toast-stack { left: 12px; right: 12px; bottom: 12px; max-width: none; } }

/* ---------------------------------------------------------------------
   26. Mobile sticky cart bar
   --------------------------------------------------------------------- */
.mobile-bar { display: none; }
@media (max-width: 768px) {
  .mobile-bar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: var(--sh-z-sticky);
    background: #fff; border-top: 1px solid var(--sh-border); box-shadow: 0 -2px 12px rgba(0,0,0,.08);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
  }
  .mobile-bar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 2px; font-size: 10px; color: var(--sh-muted); position: relative; }
  .mobile-bar a.active, .mobile-bar a:hover { color: var(--sh-primary); }
  .mobile-bar svg { width: 21px; height: 21px; }
  .mobile-bar .count-badge { top: -2px; right: calc(50% - 20px); border-color: #fff; }
  body { padding-bottom: 62px; }
}

/* ---------------------------------------------------------------------
   27. Misc: loader, back-to-top, no-JS notice
   --------------------------------------------------------------------- */
.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: sh-spin .7s linear infinite; display: inline-block; }
@keyframes sh-spin { to { transform: rotate(360deg); } }

.to-top {
  position: fixed; bottom: 24px; left: 24px; z-index: var(--sh-z-sticky);
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--sh-primary); color: #fff; display: none;
  align-items: center; justify-content: center; box-shadow: var(--sh-shadow-md);
  transition: all var(--sh-speed) var(--sh-ease);
}
.to-top.show { display: flex; }
.to-top:hover { background: var(--sh-accent); color: var(--sh-on-accent); transform: translateY(-3px); }
.to-top svg { width: 18px; height: 18px; }
@media (max-width: 768px) { .to-top { bottom: 76px; left: 14px; width: 38px; height: 38px; } }

.deal-timer { display: flex; gap: 6px; }
.deal-timer .dt-unit { background: var(--sh-primary); color: #fff; border-radius: var(--sh-radius-xs); padding: 5px 8px; text-align: center; min-width: 44px; }
.deal-timer .dt-num { font-size: var(--sh-font-size); font-weight: 700; line-height: 1; }
.deal-timer .dt-lbl { font-size: 8.5px; text-transform: uppercase; letter-spacing: .06em; opacity: .75; }

table.compare { width: 100%; border-collapse: collapse; font-size: var(--sh-font-size-sm); }
table.compare th, table.compare td { border: 1px solid var(--sh-border); padding: 10px 14px; text-align: left; }
table.compare th { background: var(--sh-bg-alt); }

/* Print (invoices) */
@media print {
  .site-header, .nav-bar, .site-footer, .mobile-bar, .to-top, .no-print, .announce { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .container { max-width: none; padding: 0; }
  a { color: #000; text-decoration: none; }
  .panel { border-color: #ccc; box-shadow: none; }
}

/* =====================================================================
   IB PLUS STATIONARY — brand mark and WhatsApp ordering
   Appended after the base rules so the logo lockup and the order button
   win without editing the original declarations above.
   ===================================================================== */
.logo img.logo-mark { height: 52px; width: 52px; border-radius: 50%; }
.site-header .logo .logo-text { color: var(--ib-navy, #003078); }
.site-header .logo .logo-text small {
  color: var(--sh-muted); font-size: 10px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
}
.footer-about .logo img { height: 48px; width: 48px; border-radius: 50%; }

.btn-whatsapp { background: #1faa53; color: #fff; border-color: #1faa53; }
.btn-whatsapp:hover { background: #178c43; color: #fff; }
.btn-whatsapp svg { width: 18px; height: 18px; }
.pd-wa-order { margin-top: 10px; width: 100%; justify-content: center; }
.pd-wa-note { font-size: var(--sh-font-size-xs); color: var(--sh-muted); margin: 8px 0 0; }

/* WhatsApp-only ordering: the cart summary card turns into the order panel. */
.wa-order-panel {
  margin-top: 16px; padding: 14px; border-radius: var(--sh-radius-lg);
  border: 1px solid rgba(31, 170, 83, .35); background: rgba(31, 170, 83, .07);
}
.wa-order-title { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: var(--sh-font-size-lg); }
.wa-order-title svg { width: 20px; height: 20px; color: #1faa53; }
.wa-order-lead { font-size: var(--sh-font-size-xs); color: var(--sh-muted); margin: 0 0 12px; line-height: 1.5; }
.wa-order-cta { justify-content: center; }
.wa-order-preview { margin-top: 12px; }
.wa-order-preview summary { cursor: pointer; font-size: var(--sh-font-size-xs); font-weight: 600; color: var(--sh-muted); }
.wa-order-preview pre {
  margin: 10px 0; padding: 10px 12px; border-radius: var(--sh-radius-sm, 8px);
  background: var(--sh-bg-alt, #f5f6f8); font-size: 12px; line-height: 1.55;
  white-space: pre-wrap; word-break: break-word; max-height: 260px; overflow: auto;
}
.wa-order-preview .btn { margin-top: 4px; }
.wa-order-warn { color: #a15c00; }
.cart-summary .wa-order-panel + .form-note,
.cart-summary .wa-order-panel .form-note { margin: 8px 0 0; }

/* ------------------------------------------------------------------
   Order details form (/order) — WhatsApp fast path
   ------------------------------------------------------------------ */
.of-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--sh-space-6); align-items: start; }
@media (max-width: 1024px) { .of-layout { grid-template-columns: 1fr; } }
.of-main, .of-aside { display: grid; gap: var(--sh-space-5); }

.of-items { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.of-items li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: baseline;
  padding-bottom: 10px; border-bottom: 1px dashed var(--sh-border-soft); }
.of-items li:last-child { border-bottom: 0; padding-bottom: 0; }
.ofi-qty { font-weight: 700; color: var(--sh-muted); font-variant-numeric: tabular-nums; }
.ofi-name { font-weight: 600; }
.ofi-name small { display: block; font-weight: 400; font-size: var(--sh-font-size-xs); color: var(--sh-muted); }
.ofi-line { font-weight: 700; font-variant-numeric: tabular-nums; }
.of-total { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 4px;
  padding-top: 12px; border-top: 1px solid var(--sh-border); font-size: var(--sh-font-size-lg); }
.of-total strong { font-size: var(--sh-font-size-lg); }
.of-total svg { width: 20px; height: 20px; color: var(--sh-primary); }
.of-total small { color: var(--sh-muted); font-weight: 400; }

.wa-order-alt { margin: 10px 0 0; font-size: var(--sh-font-size-xs); color: var(--sh-muted); line-height: 1.5; }
.wa-order-alt a { font-weight: 600; }
.of-privacy { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; }
.of-privacy svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--sh-success, #178c43); }

/* The reference the customer quotes if they ring or message the shop. */
.of-ref { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px;
  font-size: var(--sh-font-size-xs); color: var(--sh-muted); }
.of-ref svg { width: 16px; height: 16px; color: var(--sh-primary); }
.of-ref strong { color: var(--sh-text-strong); letter-spacing: .04em; }

/* ------------------------------------------------------------------
   Order confirmation (/order/confirmed) — the shop's copy of the order
   ------------------------------------------------------------------ */
.oc-done .order-number-box { align-items: flex-start; }
.oc-sent-at { font-size: var(--sh-font-size-xs); color: var(--sh-muted); }
.oc-steps { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 10px;
  font-size: var(--sh-font-size-sm); line-height: 1.6; }
.oc-steps li::marker { font-weight: 700; color: var(--sh-primary); }
.oc-details { margin: 12px 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 14px; font-size: var(--sh-font-size-sm); }
.oc-details dt { color: var(--sh-muted); }
.oc-details dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.oc-done-form { margin-top: 14px; }

.wa-order-live {
  margin: 12px 0; padding: 12px 14px; border-radius: var(--sh-radius-lg);
  border: 1px solid var(--sh-border-soft); background: var(--sh-bg-alt, #f5f6f8);
  font: 400 12px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap; word-break: break-word; max-height: 320px; overflow: auto;
}

.wa-float {
  position: fixed; right: 16px; bottom: 84px; z-index: 70;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 12px; border-radius: 999px;
  background: #1faa53; color: #fff; font-weight: 700; font-size: 13px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28); text-decoration: none;
}
.wa-float:hover { background: #178c43; color: #fff; }
.wa-float .wa-ico { display: inline-flex; }
.wa-float .wa-ico svg { width: 22px; height: 22px; }
.wa-float .wa-label { display: flex; flex-direction: column; line-height: 1.15; }
.wa-float .wa-label small { font-weight: 500; font-size: 10.5px; opacity: .85; }
@media (min-width: 900px) {
  .wa-float { right: 22px; bottom: 26px; }
  .wa-float:hover .wa-label { text-decoration: none; }
}
@media (max-width: 640px) {
  .wa-float { padding: 9px 13px; bottom: 78px; }
  .wa-float .wa-label small { display: none; }
}
/* Keep the back-to-top button clear of the WhatsApp pill. */
.to-top { bottom: 148px; }
@media (min-width: 900px) { .to-top { bottom: 96px; } }

/* Google Maps embed on the contact page. */
.contact-map iframe { width: 100%; height: 250px; border: 0; border-radius: var(--sh-radius-sm, 8px); background: var(--sh-bg-alt); }
.contact-map .form-note { margin: 10px 0 0; }
