/* Template additions on top of the base stylesheet: text logo, expedited-shipping order bump,
   discount messages, disabled pay button, thank-you order table. Theme colors come from theme.css. */
.foot-grid .card-logos { margin-top: 12px; }

.discount-msg { font-size: 13px; margin: 6px 0 0; min-height: 1em; }
.discount-msg.ok { color: #2a7a3f; }
.discount-msg.err { color: #b3261e; }
.remove-discount { font-size: 12px; text-decoration: underline; color: var(--ink-soft); margin-top: 4px; }

.order-bump { display: flex; gap: 12px; align-items: flex-start; border: 2px dashed var(--bump-border); background: var(--bump-bg); border-radius: 10px; padding: 14px 16px; margin: 18px 0 14px; cursor: pointer; }
.order-bump input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--bump-border); cursor: pointer; }
.order-bump .bump-text { font-size: 15px; line-height: 1.45; }
.order-bump .bump-text strong { display: block; }

.pay-button[disabled] { opacity: 0.45; cursor: not-allowed; }
.summary-billed { margin-top: 12px; }

.order-table { width: 100%; border-collapse: collapse; margin: 16px 0; text-align: left; }
.order-table th, .order-table td { border-bottom: 1px solid var(--border); padding: 10px 8px; font-size: 14px; }
.order-table .num { text-align: right; white-space: nowrap; }
.order-table tfoot tr.total td { font-weight: 800; font-size: 16px; border-bottom: 0; }
.ship-methods.is-replaced .ck-opt { opacity: 0.5; }
.ship-methods.is-replaced .ck-opt-price { text-decoration: line-through; }
.ck-opt[hidden] { display: none !important; }

/* ---- Long brand names ----
   Text logo: size class from the name length (logo-len-s/m/l/xl), up to two lines, then an ellipsis.
   Header: the logo gets a capped width so search, nav and cart keep their room; nav links never wrap. */
.site-header .logo { min-width: 0; max-width: 250px; display: block; }
.logo-text { font-weight: 900; letter-spacing: -0.02em; line-height: 1.08; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; word-break: normal; }
.logo-len-s { font-size: 26px; line-height: 38px; -webkit-line-clamp: 1; white-space: nowrap; display: block; }
.logo-len-m { font-size: 22px; }
.logo-len-l { font-size: 20px; }
.logo-len-xl { font-size: 18px; }
.primary-nav a { white-space: nowrap; }
.site-header { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.search { min-width: 0; }
.search input { min-width: 0; flex: 1 1 auto; width: 100%; }
.site-header .cart { justify-self: start; }   /* keep the count badge on the icon */
@media (max-width: 1200px) { .primary-nav { gap: 16px; } .site-header { gap: 18px; } }
@media (max-width: 900px) {
  .site-header { grid-template-columns: auto minmax(0, 1fr) auto; }
  .site-header .logo { max-width: calc(100vw - 100px); }
  .logo-len-s { font-size: 24px; }
  .logo-len-m { font-size: 20px; }
  .logo-len-l { font-size: 18px; }
  .logo-len-xl { font-size: 17px; }
}
/* Headings and body copy wrap inside their box, even long single words (placeholders, URLs, emails). */
h1, h2, h3, h4, .cms-content, .site-footer, .contact-info, .order-help-sub, .hero-copy { overflow-wrap: anywhere; }
.contact-grid > *, .foot-grid > * { min-width: 0; }
.page-header h1.h-long { font-size: clamp(28px, 4vw, 44px); }
.page-header h1.h-xlong { font-size: clamp(24px, 3.4vw, 38px); }
/* Digital-only carts: shipping rows are hidden (the [hidden] attribute must win over display rules). */
.row[hidden], .summary-row[hidden], [data-ship-heading][hidden] { display: none !important; }
.digital-note { margin: 12px 0; }

/* ---- Header: menu button + menu panel ----
   Up to 1100px, or whenever the full header does not fit (cart.js adds .is-collapsed: long brand names, many
   collections), search and nav move into a menu panel opened by the button at the left of the header. */
.menu-toggle { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0 -4px 0 -8px; color: var(--ink); border-radius: 8px; }
.menu-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.mobile-menu { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg); padding: 12px 16px 8px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu .search { display: flex; min-width: 0; max-width: none; width: 100%; margin: 4px 0 6px; }
.mobile-menu .search input { font-size: 16px; }   /* 16px: no zoom-in on iPhone */
.mobile-nav a { display: block; padding: 13px 2px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.mobile-nav a:last-child { border-bottom: 0; }
@media (max-width: 1100px) {
  .site-header { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; }
  .site-header > .search, .site-header > .primary-nav { display: none; }
  .site-header .cart { justify-self: end; }
  .menu-toggle { display: inline-flex; }
}
.site-header.is-collapsed { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; }
.site-header.is-collapsed > .search, .site-header.is-collapsed > .primary-nav { display: none; }
.site-header.is-collapsed .cart { justify-self: end; }
.site-header.is-collapsed .menu-toggle { display: inline-flex; }
@media (min-width: 1101px) { .site-header:not(.is-collapsed) + .mobile-menu { display: none; } }

/* ---- Hero (overlay layout) ----
   1280px and up: text over the full-width picture; the headline scales with the width so it keeps
   clear of the products in the picture. Below 1280px: text first on the hero color, the picture underneath.
   Brands with their own hero layout (theme.css) override these rules. */
.hero h1 { font-size: clamp(36px, 5vw, 72px); }
@media (max-width: 1279px) {
  .hero { display: flex; flex-direction: column; min-height: 0; height: auto; background: var(--hero-bg, var(--ink)); }
  .hero-image { position: relative; inset: auto; order: 2; height: auto; aspect-ratio: 8 / 3; }
  .hero-overlay { order: 1; padding: 48px 24px 40px; }
  .hero-overlay::before { display: none; }
  .hero h1 { font-size: clamp(34px, 6vw, 60px); }
}
@media (max-width: 600px) { .hero-image { aspect-ratio: 16 / 9; } .hero-overlay { padding: 36px 16px 32px; } }

/* cart lines on small screens: the image box matches its 70px column */
@media (max-width: 900px) { .cart-line .line-img { width: 70px; height: 70px; } }

/* checkout field errors */
.field-error { color: #b3261e; font-size: 13px; line-height: 1.35; margin: -4px 0 10px; }
.checkout-form [aria-invalid="true"] { border-color: #b3261e !important; box-shadow: 0 0 0 1px #b3261e; }

/* message boxes: character counter + note */
.char-count { display: block; text-align: right; font-size: 12px; font-weight: 400; color: var(--ink-muted); margin-top: 4px; }
.char-count.is-near { color: #b3261e; }
.form-note { font-size: 13px; color: var(--ink-soft); margin: 0; min-height: 1em; }

/* policy pages */
.policy-updated { color: var(--ink-muted); font-size: 14px; margin: 8px 0 0; }

/* 404 */
.not-found { text-align: center; }
.not-found-search { margin: 20px auto; max-width: 420px; min-width: 0; }
.not-found-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* checkout on narrow screens (Firefox counts its scrollbar in the width): the one-column grid may shrink */
.checkout-grid > * { min-width: 0; }
.discount-row input { min-width: 0; }
.discount-row button { flex: none; }

/* keyboard focus: a clear ring on every control when reached with the keyboard (mouse clicks show nothing) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #2563eb !important; outline-offset: 2px;
}
.mobile-menu:focus, .mobile-menu:focus-visible { outline: none !important; }
/* text for screen readers only */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* closed cart panel: hidden once it has slid out, so nothing inside it can be reached */
.cart-drawer[inert] { visibility: hidden; transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0s linear 0.3s; }
.empty-state .empty-note { color: var(--ink-soft, #444); margin-top: -4px; }

/* CMS pages: lenvoshop's inline spacing, which our cleaned page texts no longer carry.
   The page's second h1 is an h2 here (one h1 per page) but keeps the h1 look.
   cms-doc (policies, About, Brand Story): h2 15pt/6pt, p 0/6pt. cms-static (Track Order, Why Choose, contact info): p 0/20px, lists 20/30px. */
.cms-content h2.cms-h1 { font-size: 32px; margin: 16px 0; }
.cms-doc h2 { margin: 20px 0 8px; }
.cms-doc p { margin: 0 0 8px; }
.cms-doc li > p { margin: 0 0 4px; }
.cms-doc ul { margin: 0; }
.cms-static p { margin: 0 0 20px; }
.cms-static ul { margin: 20px 0 30px 30px; padding: 0; list-style: outside disc; }
.cms-static li { margin-bottom: 4px; }
.cms-static li:last-child { margin-bottom: 0; }
.cms-static li > p { margin: 0; }
