/* odlens standalone theme stylesheet (right-rail-browse) */
:root {
  --odl-bg: #eeeef0;
  --odl-surface: #fff;
  --odl-ink: #252631;
  --odl-muted: #575964;
  --odl-accent: #4b467b;
  --odl-soft: #e2defa;
  --odl-panel: #29263c;
  --odl-panel-ink: #ebe5ff;
  --odl-action-ink: #eeeef0;
  --odl-border: color-mix(in srgb, #252631 16%, #fff);
  --odl-radius: 2px;
  --odl-ratio: 1.16;
  --odl-head-font: "Helvetica Neue", Arial, system-ui, sans-serif;
  --odl-body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sc-primary: #4b467b;
  --sc-accent: #4b467b;
}
*, *::before, *::after { box-sizing: border-box; }
.odl-doc {
  margin: 0;
  background: var(--odl-bg);
  color: var(--odl-ink);
  font: 15px/1.6 var(--odl-body-font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html.odl-lock { overflow: hidden; }
.odl-doc [hidden] { display: none !important; }
.odl-doc :focus-visible { outline: 2px solid var(--odl-accent); outline-offset: 2px; }
.odl-skip {
  position: fixed; left: 12px; top: 12px; z-index: 200;
  background: var(--odl-panel); color: var(--odl-panel-ink);
  padding: 10px 16px; border-radius: var(--odl-radius); text-decoration: none;
  transform: translateY(-200%);
}
.odl-skip:focus { transform: translateY(0); }
.odl-wrap { width: min(100%, 1260px); margin-inline: auto; padding-inline: clamp(16px, 3vw, 32px); }
.odl-bar {
  background: var(--odl-panel); color: var(--odl-panel-ink);
  text-align: center; font-size: 13px; padding: 8px 16px; letter-spacing: .01em;
}
.odl-main { min-height: 62vh; padding-block: clamp(20px, 3vw, 40px) clamp(48px, 6vw, 80px); }

/* Brand & common interactive primitives */
.odl-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: inherit; text-decoration: none; font-family: var(--odl-head-font);
  font-size: clamp(19px, 2.2vw, 24px); font-weight: 700; letter-spacing: -.02em;
}
.odl-brand-logo { height: 30px; width: auto; display: block; }
.odl-mark {
  display: inline-grid; place-items: center; width: 32px; height: 32px;
  border-radius: var(--odl-radius); background: var(--odl-accent); color: var(--odl-action-ink);
  font-size: 12px; font-weight: 800; letter-spacing: .04em; flex-shrink: 0;
}
.odl-btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border: 0; border-radius: var(--odl-radius);
  background: var(--odl-accent); color: var(--odl-action-ink);
  font: 600 14px/1.2 var(--odl-body-font); text-decoration: none; cursor: pointer;
  transition: opacity .15s ease, transform .15s ease;
}
.odl-btn-primary:hover { opacity: .9; }
.odl-btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.odl-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border: 1px solid var(--odl-border); border-radius: var(--odl-radius);
  background: var(--odl-surface); color: var(--odl-ink);
  font: 500 13px/1.2 var(--odl-body-font); text-decoration: none; cursor: pointer;
}
.odl-btn-ghost:hover { border-color: var(--odl-accent); }
.odl-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--odl-accent); color: var(--odl-action-ink);
  font-size: 11px; font-weight: 700;
}
.odl-menu-btn {
  display: none; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 1px solid var(--odl-border);
  border-radius: var(--odl-radius); background: var(--odl-surface); color: var(--odl-ink);
  cursor: pointer; font-size: 18px;
}

/* Search dropdown */
.odl-search-box { position: relative; }
.odl-search-input {
  width: 100%; padding: 9px 14px; border: 1px solid var(--odl-border);
  border-radius: var(--odl-radius); background: var(--odl-surface); color: var(--odl-ink);
  font: 14px/1.3 var(--odl-body-font);
}
.odl-search-list {
  position: absolute; top: calc(100% + 6px); right: 0; left: 0; min-width: 290px;
  max-height: 380px; overflow: auto; z-index: 90;
  background: var(--odl-surface); border: 1px solid var(--odl-border);
  border-radius: var(--odl-radius); box-shadow: 0 18px 40px rgba(0,0,0,.16);
}
.odl-sr-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  color: var(--odl-ink); text-decoration: none; border-bottom: 1px solid var(--odl-border);
}
.odl-sr-row:last-child { border-bottom: 0; }
.odl-sr-row:hover { background: var(--odl-soft); }
.odl-sr-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; flex-shrink: 0; background: var(--odl-soft); }
.odl-sr-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.odl-sr-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.odl-sr-price { font-size: 12px; color: var(--odl-muted); }
.odl-sr-empty { padding: 14px; font-size: 13px; color: var(--odl-muted); }

/* Mobile nav drawer */
.odl-nav-backdrop {
  position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.5);
  display: flex; justify-content: flex-start;
}
.odl-nav-sheet {
  width: min(320px, 86vw); height: 100%; background: var(--odl-surface); color: var(--odl-ink);
  padding: 20px; display: flex; flex-direction: column; gap: 4px; overflow: auto;
}
.odl-nav-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--odl-border); }
.odl-nav-sheet a { padding: 10px 4px; color: inherit; text-decoration: none; border-bottom: 1px solid var(--odl-border); font-size: 15px; }
.odl-nav-sheet-sub { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.odl-nav-sheet-sub a { font-size: 13px; color: var(--odl-muted); border-bottom: 0; padding: 6px 4px; }

/* Cart drawer / sheet */
.odl-bag-layer {
  position: fixed; inset: 0; z-index: 130; background: rgba(0,0,0,.48);
  display: flex; justify-content: flex-end;
}
.odl-bag-panel {
  width: min(420px, 100vw); height: 100%; background: var(--odl-surface); color: var(--odl-ink);
  display: flex; flex-direction: column; box-shadow: -12px 0 36px rgba(0,0,0,.18);
}
.odl-bag-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--odl-border);
}
.odl-bag-head h2 { margin: 0; font-family: var(--odl-head-font); font-size: 18px; }
.odl-bag-ship { padding: 12px 20px; background: var(--odl-soft); border-bottom: 1px solid var(--odl-border); font-size: 12px; }
.odl-ship-msg { margin-bottom: 6px; font-weight: 500; }
.odl-ship-bar { height: 5px; background: var(--odl-border); border-radius: 99px; overflow: hidden; }
.odl-ship-bar span { display: block; height: 100%; background: var(--odl-accent); }
.odl-bag-notice { margin: 12px 20px 0; padding: 10px 12px; border-radius: var(--odl-radius); background: var(--odl-soft); font-size: 12px; }
.odl-bag-body { flex: 1; overflow: auto; padding: 16px 20px; }
.odl-bag-empty, .odl-bag-loading, .odl-bag-err { padding: 32px 10px; text-align: center; color: var(--odl-muted); font-size: 14px; }
.odl-bag-retry { margin-top: 10px; padding: 6px 14px; border: 1px solid var(--odl-border); border-radius: var(--odl-radius); background: var(--odl-surface); color: var(--odl-ink); cursor: pointer; }
.odl-bag-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--odl-border); align-items: flex-start; }
.odl-bag-img { width: 58px; height: 58px; object-fit: cover; border-radius: 6px; background: var(--odl-soft); flex-shrink: 0; }
.odl-bag-info { flex: 1; min-width: 0; }
.odl-bag-name { display: block; font-size: 13px; font-weight: 600; color: inherit; text-decoration: none; line-height: 1.35; }
.odl-bag-opts { font-size: 12px; color: var(--odl-muted); margin-top: 2px; }
.odl-bag-controls { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.odl-bag-qty { display: inline-flex; align-items: center; border: 1px solid var(--odl-border); border-radius: 6px; }
.odl-bag-qty button { width: 26px; height: 26px; border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 14px; }
.odl-bag-qty span { min-width: 24px; text-align: center; font-size: 12px; font-weight: 600; }
.odl-bag-rm { border: 0; background: transparent; color: var(--odl-muted); font-size: 12px; cursor: pointer; text-decoration: underline; }
.odl-bag-line-price { font-size: 13px; font-weight: 700; white-space: nowrap; }
.odl-bag-foot { padding: 16px 20px; border-top: 1px solid var(--odl-border); display: flex; flex-direction: column; gap: 8px; }
.odl-bag-sum { display: flex; justify-content: space-between; font-size: 13px; color: var(--odl-muted); }
.odl-bag-sum-total { display: flex; justify-content: space-between; font-size: 16px; font-weight: 700; padding-top: 6px; border-top: 1px solid var(--odl-border); }
.odl-bag-go { width: 100%; margin-top: 6px; }
.odl-bag-go.is-disabled { opacity: .45; pointer-events: none; }

/* Product options & buybox primitives */
.odl-opt-group { margin-bottom: 14px; }
.odl-opt-label { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--odl-muted); margin-bottom: 7px; }
.odl-opt-label strong { color: var(--odl-ink); text-transform: none; letter-spacing: 0; }
.odl-opt-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.odl-opt-btn {
  padding: 8px 14px; border: 1px solid var(--odl-border); border-radius: var(--odl-radius);
  background: var(--odl-surface); color: var(--odl-ink); font: 500 13px/1.2 var(--odl-body-font); cursor: pointer;
}
.odl-opt-btn.is-selected { background: var(--odl-accent); border-color: var(--odl-accent); color: var(--odl-action-ink); }
.odl-opt-select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--odl-border); border-radius: var(--odl-radius);
  background: var(--odl-surface); color: var(--odl-ink); font: 14px/1.3 var(--odl-body-font);
}
.odl-stock { font-size: 12px; font-weight: 600; margin: 6px 0 14px; }
.odl-stock.is-in { color: #15803d; }
.odl-stock.is-out { color: #b91c1c; }
.odl-buy-row { display: flex; gap: 10px; align-items: stretch; margin-top: 10px; }
.odl-qty-in {
  width: 72px; padding: 10px; border: 1px solid var(--odl-border); border-radius: var(--odl-radius);
  background: var(--odl-surface); color: var(--odl-ink); font: 600 14px/1 var(--odl-body-font); text-align: center;
}
.odl-stepper {
  display: inline-flex; align-items: center; border: 1px solid var(--odl-border);
  border-radius: var(--odl-radius); background: var(--odl-surface); overflow: hidden;
}
.odl-stepper button { width: 34px; height: 42px; border: 0; background: transparent; color: var(--odl-ink); cursor: pointer; font-size: 16px; }
.odl-stepper input { width: 46px; border: 0; text-align: center; background: transparent; color: var(--odl-ink); font: 600 14px/1 var(--odl-body-font); }
.odl-add-cta { flex: 1; }
.odl-buy-msg { min-height: 20px; font-size: 13px; color: var(--odl-accent); margin-top: 8px; font-weight: 500; }

/* Shared prose, reviews, policy, order & checkout shell */
.odl-crumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--odl-muted); margin-bottom: 18px; }
.odl-crumb a { color: inherit; text-decoration: none; }
.odl-crumb a:hover { color: var(--odl-ink); text-decoration: underline; }
.odl-prose { line-height: 1.75; color: var(--odl-ink); }
.odl-prose img { max-width: 100%; height: auto; border-radius: var(--odl-radius); }
.odl-policy { max-width: 820px; margin-inline: auto; background: var(--odl-surface); border: 1px solid var(--odl-border); border-radius: var(--odl-radius); padding: clamp(22px, 4vw, 44px); }
.odl-policy-title { margin: 0 0 18px; font-family: var(--odl-head-font); font-size: clamp(24px, 3vw, 34px); line-height: 1.2; }
.odl-reviews { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--odl-border); }
.odl-reviews-title { margin: 0 0 6px; font-family: var(--odl-head-font); font-size: 22px; }
.odl-reviews-avg { margin: 0 0 18px; font-size: 13px; color: var(--odl-muted); }
.odl-reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.odl-review-card { background: var(--odl-surface); border: 1px solid var(--odl-border); border-radius: var(--odl-radius); padding: 16px; }
.odl-review-card h3 { margin: 0 0 4px; font-size: 14px; }
.odl-review-meta { margin: 0 0 8px; font-size: 12px; color: var(--odl-muted); }
.odl-review-body { margin: 0; font-size: 14px; white-space: pre-wrap; }
.odl-checkout-shell {
  max-width: 1080px; margin-inline: auto;
  
}
.odl-checkout-title { margin: 0 0 18px; font-family: var(--odl-head-font); font-size: clamp(24px, 3vw, 30px); }
.odl-order-card { max-width: 780px; margin-inline: auto; background: var(--odl-surface); border: 1px solid var(--odl-border); border-radius: var(--odl-radius); padding: clamp(20px, 3vw, 34px); }
.odl-order-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--odl-border); }
.odl-order-no { margin: 4px 0 0; font-family: ui-monospace, Consolas, monospace; font-size: 21px; }
.odl-order-status { padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.odl-order-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-top: 20px; font-size: 14px; }
.odl-order-items { margin-top: 22px; border-top: 1px solid var(--odl-border); }
.odl-order-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--odl-border); font-size: 14px; }
.odl-order-total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; padding-top: 16px; }
.odl-order-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* Footer social & shared links */
.odl-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.odl-social-item {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid currentColor;
  color: inherit; text-decoration: none; opacity: .82;
}
.odl-social-item:hover { opacity: 1; }
.odl-social-static { opacity: .55; }
.odl-empty { padding: 36px 0; color: var(--odl-muted); }

/* Archetype: Overlaid Hero + Right Rail Browse */
.odl-hdr { background: var(--odl-surface); border-bottom: 1px solid var(--odl-border); }
.odl-hdr-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.odl-hdr-r { display: flex; align-items: center; gap: 12px; }
.odl-hdr-search { width: 250px; }
.odl-cover { position: relative; border-radius: var(--odl-radius); overflow: hidden; margin-bottom: 30px; min-height: 290px; display: flex; align-items: flex-end; background: var(--odl-panel); }
.odl-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.odl-cover-card { position: relative; z-index: 2; max-width: 560px; margin: clamp(16px, 3vw, 28px); padding: 24px; background: var(--odl-surface); color: var(--odl-ink); border-radius: var(--odl-radius); box-shadow: 0 14px 36px rgba(0,0,0,.22); }
.odl-cover-card h1 { margin: 0 0 8px; font-family: var(--odl-head-font); font-size: clamp(24px, 3vw, 34px); line-height: 1.15; }
.odl-cover-card p { margin: 0 0 16px; color: var(--odl-muted); font-size: 14px; }
.odl-split { display: grid; grid-template-columns: minmax(0, 1fr) 268px; gap: 28px; align-items: start; }
.odl-rail { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 16px; }
.odl-rail-box { background: var(--odl-surface); border: 1px solid var(--odl-border); border-radius: var(--odl-radius); padding: 18px; }
.odl-rail-box h2 { margin: 0 0 12px; font-family: var(--odl-head-font); font-size: 16px; }
.odl-rail-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.odl-rail-links a { display: flex; justify-content: space-between; padding: 7px 6px; border-bottom: 1px solid var(--odl-border); color: inherit; text-decoration: none; font-size: 13px; }
.odl-rail-links li:last-child a { border-bottom: 0; }
.odl-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.odl-toolbar h1, .odl-toolbar h2 { margin: 0; font-family: var(--odl-head-font); font-size: 22px; }
.odl-sort select { padding: 7px 12px; border: 1px solid var(--odl-border); border-radius: var(--odl-radius); background: var(--odl-surface); color: var(--odl-ink); font-size: 13px; }
.odl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.odl-card { display: flex; flex-direction: column; background: var(--odl-surface); border: 1px solid var(--odl-border); border-radius: var(--odl-radius); overflow: hidden; color: inherit; text-decoration: none; }
.odl-card-media { position: relative; aspect-ratio: 1; background: var(--odl-soft); }
.odl-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.odl-tag { position: absolute; top: 8px; left: 8px; background: var(--odl-accent); color: var(--odl-action-ink); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.odl-card-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.odl-card-title { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.38; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.odl-card-price { margin-top: auto; font-weight: 700; color: var(--odl-accent); font-size: 15px; display: flex; gap: 8px; }
.odl-card-price del { color: var(--odl-muted); font-size: 12px; font-weight: 400; }
.odl-pager { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.odl-pdp { display: grid; grid-template-columns: 1.3fr .85fr; gap: 36px; align-items: start; }
.odl-pdp-main img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--odl-radius); border: 1px solid var(--odl-border); background: var(--odl-surface); display: block; }
.odl-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.odl-thumbs button { padding: 0; border: 2px solid var(--odl-border); border-radius: 6px; overflow: hidden; background: var(--odl-surface); cursor: pointer; }
.odl-thumbs button[aria-pressed="true"] { border-color: var(--odl-accent); }
.odl-thumbs img { width: 64px; height: 64px; object-fit: cover; display: block; }
.odl-pdp-desc { margin-top: 26px; background: var(--odl-surface); border: 1px solid var(--odl-border); border-radius: var(--odl-radius); padding: 22px; }
.odl-pdp-buy { position: sticky; top: 20px; background: var(--odl-surface); border: 1px solid var(--odl-border); border-radius: var(--odl-radius); padding: 24px; }
.odl-pdp-buy h1 { margin: 0 0 10px; font-family: var(--odl-head-font); font-size: clamp(22px, 2.5vw, 28px); line-height: 1.2; }
.odl-pdp-price { font-size: 24px; font-weight: 800; color: var(--odl-accent); margin-bottom: 14px; display: flex; gap: 10px; align-items: baseline; }
.odl-pdp-price del { font-size: 14px; color: var(--odl-muted); font-weight: 400; }
.odl-spec-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--odl-border); font-size: 13px; }
.odl-spec-dl dt { color: var(--odl-muted); font-weight: 600; }
.odl-spec-dl dd { margin: 0; }
.odl-related { margin-top: 44px; }
.odl-ftr { border-top: 1px solid var(--odl-border); background: var(--odl-surface); padding: 38px 0 26px; font-size: 13px; color: var(--odl-muted); }
.odl-ftr-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 26px; margin-bottom: 20px; }
.odl-ftr a { display: block; color: inherit; text-decoration: none; padding: 3px 0; }
@media (max-width: 960px) {
  .odl-menu-btn { display: inline-flex; }
  .odl-split, .odl-pdp, .odl-ftr-grid { grid-template-columns: 1fr; }
  .odl-rail, .odl-pdp-buy { position: static; }
  .odl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .odl-hdr-search { width: 150px; }
}
