/* Product detail modal: keep the entire purchase flow within Origyn's dark store palette. */
body.store-page.origyn-brand .modal-card {
  grid-template-rows:auto auto auto !important;
  background:#191916 !important;
  color:#f7f1e8 !important;
  border:1px solid #51483d !important;
}
body.store-page.origyn-brand .modal-info {
  grid-column:1 !important;
  grid-row:1 !important;
  background:#191916 !important;
  color:#f7f1e8 !important;
}
body.store-page.origyn-brand .modal-info h2 { color:#fff8ee !important; }
body.store-page.origyn-brand .modal-info>p:not(.eyebrow),
body.store-page.origyn-brand .modal-seller,
body.store-page.origyn-brand .modal-purchase-details { color:#c9c0b4 !important; }
body.store-page.origyn-brand .modal-seller strong,
body.store-page.origyn-brand .modal-price { color:#fff8ee !important; }
body.store-page.origyn-brand .modal-image {
  grid-column:2 !important;
  grid-row:1 !important;
  display:flex !important;
  flex-direction:column !important;
  gap:10px !important;
  padding:14px !important;
  height:auto !important;
  min-height:560px !important;
  background:#11110f !important;
}
body.store-page.origyn-brand .modal-gallery-main {
  display:block;
  width:100%;
  min-height:0;
  flex:1 1 auto;
  object-fit:contain;
  border-radius:9px;
  background:#11110f;
}
body.store-page.origyn-brand .modal-gallery-main[hidden] { display:none !important; }
body.store-page.origyn-brand .modal-gallery-fallback { display:grid; flex:1; place-items:center; color:#ff875d; font-size:42px; font-weight:900; }
body.store-page.origyn-brand .modal-gallery-thumbnails { display:flex; gap:8px; overflow-x:auto; padding:2px 2px 6px; }
body.store-page.origyn-brand .modal-gallery-thumb {
  flex:0 0 64px;
  width:64px;
  height:64px;
  padding:3px;
  border:1px solid #51483d;
  border-radius:8px;
  background:#211f1b;
  cursor:pointer;
}
body.store-page.origyn-brand .modal-gallery-thumb[aria-pressed="true"] { border-color:#ff7645; box-shadow:0 0 0 1px #ff7645; }
body.store-page.origyn-brand .modal-gallery-thumb img { display:block; width:100%; height:100%; object-fit:cover; border-radius:5px; }
body.store-page.origyn-brand .modal-purchase-actions { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-top:12px; }
body.store-page.origyn-brand .modal-purchase-actions :is(button,a) { min-height:48px; }
body.store-page.origyn-brand #modal-add { background:#28251f !important; color:#fff8ee !important; border:1px solid #65594a !important; }
body.store-page.origyn-brand .buy-now-btn {
  border:1px solid #ff7645;
  border-radius:8px;
  background:#ff7645;
  color:#171512;
  font:inherit;
  font-weight:800;
  cursor:pointer;
}
body.store-page.origyn-brand .buy-now-btn:hover { filter:brightness(1.08); }
body.store-page.origyn-brand .modal-product-about { margin-top:20px; padding-top:16px; border-top:1px solid #51483d; }
body.store-page.origyn-brand .modal-product-about h3 { margin:0 0 10px; color:#fff8ee; font-size:17px; }
body.store-page.origyn-brand .modal-product-spec { display:flex; justify-content:space-between; gap:14px; padding:8px 0; border-bottom:1px solid #38332d; font-size:13px; }
body.store-page.origyn-brand .modal-product-spec span { color:#bdb2a4; }
body.store-page.origyn-brand .modal-product-spec strong { color:#f7f1e8; text-align:right; }
body.store-page.origyn-brand .modal-reviews {
  grid-column:1 / -1 !important;
  grid-row:2 !important;
  margin:0 !important;
  padding:24px 34px !important;
  border-top:1px solid #51483d !important;
  background:#191916 !important;
  color:#f7f1e8 !important;
}
body.store-page.origyn-brand .modal-reviews h3 { color:#fff8ee; }
body.store-page.origyn-brand .modal-review-summary,
body.store-page.origyn-brand .modal-review-verified,
body.store-page.origyn-brand .modal-review-form small { color:#c9c0b4 !important; }
body.store-page.origyn-brand .modal-review-list li {
  background:#211f1b !important;
  color:#f7f1e8 !important;
  border-color:#51483d !important;
}
body.store-page.origyn-brand .modal-review-list li p { color:#ded5ca !important; }
body.store-page.origyn-brand .modal-review-form :is(select,textarea) {
  min-height:46px !important;
  border:1px solid #62564a !important;
  border-radius:8px !important;
  background:#211f1b !important;
  color:#fff8ee !important;
  color-scheme:dark;
}
body.store-page.origyn-brand .modal-review-form :is(select,textarea)::placeholder { color:#b7ac9e !important; }
body.store-page.origyn-brand .modal-review-form label { color:#f2e9dd !important; }
body.store-page.origyn-brand .modal-review-form button,
body.store-page.origyn-brand .modal-review-signin { background:#29251f !important; color:#fff8ee !important; border:1px solid #62564a !important; }
body.store-page.origyn-brand .modal-recommendations {
  grid-column:1 / -1 !important;
  grid-row:3 !important;
  padding:24px 34px 30px !important;
  border-top:1px solid #51483d !important;
  background:#191916 !important;
  color:#f7f1e8 !important;
}
body.store-page.origyn-brand .modal-recommend-head { display:flex; align-items:center; justify-content:space-between; gap:16px; }
body.store-page.origyn-brand .modal-recommend-head,
body.store-page.origyn-brand .modal-recommend-head a { color:#fff8ee !important; }
body.store-page.origyn-brand .modal-recommend-head a { min-height:44px; display:inline-flex; align-items:center; gap:8px; padding:0 12px; border:1px solid #62564a; border-radius:8px; text-decoration:none; font-weight:750; }
body.store-page.origyn-brand .modal-recommend-head a:hover { border-color:#ff875d; color:#ff875d !important; }
body.store-page.origyn-brand .modal-recommend-grid { display:block !important; width:100% !important; overflow-x:auto !important; overscroll-behavior-inline:contain; scrollbar-width:thin; scrollbar-color:#766450 transparent; }
body.store-page.origyn-brand .modal-recommend-track { display:flex; gap:12px; width:max-content; min-width:100%; padding:2px 2px 10px; }
body.store-page.origyn-brand .modal-recommend {
  display:grid !important;
  flex:0 0 min(270px,78vw);
  grid-template-columns:76px minmax(0,1fr);
  grid-template-rows:auto auto auto;
  align-items:center;
  column-gap:12px;
  min-height:94px;
  padding:9px;
  background:#211f1b !important;
  color:#f7f1e8 !important;
  border:1px solid #51483d !important;
  border-radius:9px;
  text-align:left;
  text-decoration:none;
  scroll-snap-align:start;
}
body.store-page.origyn-brand .modal-recommend-grid:focus-visible { outline:3px solid #ff875d; outline-offset:3px; }
body.store-page.origyn-brand .modal-recommend>span { grid-row:1 / 4; display:grid; width:76px; height:76px; place-items:center; overflow:hidden; border-radius:6px; background:transparent; color:#ff875d; font-weight:900; }
body.store-page.origyn-brand .modal-recommend>span img { width:100%; height:100%; object-fit:cover; border-radius:5px; }
body.store-page.origyn-brand .modal-recommend strong { color:#fff8ee !important; }
body.store-page.origyn-brand .modal-recommend small { color:#c9c0b4 !important; }
body.store-page.origyn-brand .modal-recommend i { color:#ff875d; font-size:11px; font-style:normal; font-weight:750; }
body.store-page.origyn-brand .modal-close { background:#28251f !important; color:#fff8ee !important; border-color:#62564a !important; }
@media(max-width:1050px) {
  body.store-page.origyn-brand .modal-card { grid-template-columns:minmax(0,1fr) !important; grid-template-rows:auto auto auto auto !important; }
  body.store-page.origyn-brand .modal-image { grid-column:1 !important; grid-row:1 !important; min-height:300px !important; height:300px !important; }
  body.store-page.origyn-brand .modal-info { grid-column:1 !important; grid-row:2 !important; }
  body.store-page.origyn-brand .modal-reviews { grid-column:1 !important; grid-row:3 !important; }
  body.store-page.origyn-brand .modal-recommendations { grid-column:1 !important; grid-row:4 !important; }
}
@media(max-width:650px) {
  body.store-page.origyn-brand .modal-purchase-actions { grid-template-columns:1fr; }
  body.store-page.origyn-brand .modal-reviews,
  body.store-page.origyn-brand .modal-recommendations { padding:20px !important; }
  body.store-page.origyn-brand .modal-recommend-grid { grid-template-columns:none !important; }
  body.store-page.origyn-brand .modal-recommend { flex-basis:min(260px,82vw); }
  body.store-page.origyn-brand .modal-recommend:nth-child(n+3) { display:grid !important; }
}
