/* ==========================================================================
   OmegAmino replica — P4, single product (PDP).

   Every number below was measured from the harvest:
     · source-cdp/merged.css  -> "Local Template Style 241" (the BeBuilder
       single-product template's own generated CSS) + betheme woocommerce.min.css
     · source-cdp/maps/pdp-*.json
     · pixel measurement of E:\omegamino\_shots\{desktop-1440,tablet-820,
       mobile-390}\pdp-*.png

   Geometry proof at 1440 (container 65 -> 1375):
     gallery plate   x 65.0 -> 651.7   586.7 x 586.7 square
     summary column  x 765.7 -> 1365   599.3 wide
     -> left wrap 50% with padding-right 65px, right wrap 50% with margin-left 50px
     add-to-cart     481.3 wide (80.25%), qty 114.4 (19%), gap 4.5 (0.75%)
     button          h 49.7  (= 15 + 20 + 15), radius 9, #84F2FE on #000
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. SECTIONS
   -------------------------------------------------------------------------- */
.oma-pdp__notices:empty { display: none; }
.oma-pdp__notices .woocommerce-notices-wrapper:empty { display: none; }
.oma-pdp__notices .woocommerce-notices-wrapper { padding-top: 20px; }

/* section.mcb-section-7jg5sso — 100px base, 85px <=1440, 70px <=959 */
.oma-pdp__main { padding: 100px 0; }
@media (max-width: 1440px) { .oma-pdp__main { padding: 85px 0; } }
@media (max-width: 959px)  { .oma-pdp__main { padding: 70px 0; } }

/* section.mcb-section-e6f6b0123 — 0 / 100px base, 0 / 85px <=1440, 0 / 70px <=959 */
.oma-pdp__faq { padding: 0 0 100px; }
@media (max-width: 1440px) { .oma-pdp__faq { padding: 0 0 85px; } }
@media (max-width: 959px)  { .oma-pdp__faq { padding: 0 0 70px; } }

/* --------------------------------------------------------------------------
   2. THE TWO COLUMNS
   -------------------------------------------------------------------------- */
.oma-pdp__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}
.oma-pdp__col { box-sizing: border-box; }

/* .mcb-wrap-bj2amopq .mcb-wrap-inner { padding-right: 65px }  (0 <=959) */
.oma-pdp__col--gallery { width: 50%; padding-right: 65px; }
/* .mcb-wrap-z6kynx0f  .mcb-wrap-inner { margin-left: 50px }   (0 <=959) */
.oma-pdp__col--summary { width: calc(50% - 50px); margin-left: 50px; }

@media (max-width: 959px) {
  .oma-pdp__col--gallery { width: 100%; padding-right: 0; }
  .oma-pdp__col--summary { width: 100%; margin-left: 0; margin-top: 63px; }
}
@media (max-width: 767px) {
  .oma-pdp__col--summary { margin-top: 40px; }
}

/* --------------------------------------------------------------------------
   3. GALLERY
   Source: `.mfn-product-hasnt-gallery .woocommerce-product-gallery__image`
           background #F1F1F1, border-radius 25px.
   Woo ships the gallery at opacity:0 and fades it in from JS; BeTheme forces it
   visible so a JS failure never blanks the column — same here.
   -------------------------------------------------------------------------- */
.oma-pdp .oma-pdp-gallery { opacity: 1 !important; position: relative; float: none; width: 100% !important; margin-bottom: 0; }
.oma-pdp .oma-pdp-gallery .woocommerce-product-gallery__wrapper { margin: 0; }

.oma-pdp .mfn-product-hasnt-gallery .woocommerce-product-gallery__image,
.oma-pdp .mfn-product-has-gallery .flex-viewport {
  background-color: #f1f1f1;
  border-radius: 25px;
  overflow: hidden;
  position: relative;
}
.oma-pdp .oma-pdp-gallery .woocommerce-product-gallery__image a { display: block; }
.oma-pdp .oma-pdp-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 25px;
}

/* thumbnails — only reachable if a product ever gains a gallery */
.oma-pdp .flex-control-thumbs { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 10px 0 0; padding: 0; }
.oma-pdp .flex-control-thumbs li {
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 15px;
  overflow: hidden;
  width: calc(25% - 8px);
}
.oma-pdp .flex-control-thumbs li img { border-radius: 15px; cursor: pointer; }

/* photoswipe trigger — 40x40 white circle, top/right 15px, CSS magnifier.
   Woo injects a 🔍 emoji span inside it; the source draws the glyph instead. */
.woocommerce div.product div.images.oma-pdp-gallery .woocommerce-product-gallery__trigger,
.oma-pdp .woocommerce-product-gallery__trigger {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 100%;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0;
  line-height: 0;
}
.oma-pdp .woocommerce-product-gallery__trigger > span { display: none; }
.oma-pdp .woocommerce-product-gallery__trigger:before {
  content: "";
  display: block;
  width: 10px; height: 10px;
  border: 2px solid #000;
  border-radius: 100%;
  position: absolute;
  top: 11px; left: 10px;
  box-sizing: content-box;
}
.oma-pdp .woocommerce-product-gallery__trigger:after {
  content: "";
  display: block;
  width: 2px; height: 8px;
  background: #000;
  border-radius: 6px;
  position: absolute;
  top: 21px; left: 23px;
  transform: rotate(-45deg);
  box-sizing: content-box;
}

/* --------------------------------------------------------------------------
   4. SUMMARY TYPE + RHYTHM
   Derived from the measured glyph bands at 1440 (section content starts y 249):
     title 249..314 (+40) meta 354..377 (+40) short 417..488 (+40)
     price 528..562 (+40) stock 602..623      table 623..801 (+15)
     button 815..865 (+40, +23, rule, +51)    notice 979..1129
   i.e. every block is separated by BeTheme's 40px column gap.
   -------------------------------------------------------------------------- */
.oma-pdp__title {
  margin: 0 0 40px;
  color: var(--oma-black);
  font-family: var(--oma-font);
  font-size: var(--oma-h2);
  line-height: var(--oma-h2-lh);
  font-weight: var(--oma-h2-fw);
  letter-spacing: var(--oma-ls-head);
}
/* "Local Template Style 241": .mcb-item-0zhpjsv .title { 32px / 42px } @<=767 */
@media (max-width: 767px) { .oma-pdp__title { font-size: 32px; line-height: 42px; } }

.oma-pdp__meta {
  margin: 0 0 40px;
  color: #808080;                 /* --mfn-woo-body-color */
  font-family: var(--oma-font);
  font-size: var(--oma-fs-body);
  line-height: var(--oma-lh-body);
}
.oma-pdp__meta .posted_in,
.oma-pdp__meta .tagged_as,
.oma-pdp__meta .sku_wrapper { display: block; margin: 0 5px 15px 0; }
.oma-pdp__meta > span:last-child { margin-bottom: 0; }
.oma-pdp__meta a { color: var(--oma-blue); text-decoration: none; }
.oma-pdp__meta a:hover { text-decoration: underline; }
/* .sku_wrapper — inline-block chip, 1px rgba(0,0,0,.1), radius 5, 13px, uppercase */
.oma-pdp__meta .sku_wrapper {
  display: inline-block;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 5px;
  padding: 0 10px;
  font-size: 13px;
  text-transform: uppercase;
}
@media (max-width: 767px) {
  .oma-pdp__meta .posted_in,
  .oma-pdp__meta .tagged_as { font-size: 16px; }
}

.oma-pdp__short {
  margin: 0 0 40px;
  color: var(--oma-black);
  font-family: var(--oma-font);
  font-size: var(--oma-fs-body);
  line-height: var(--oma-lh-body);
}
.oma-pdp__short p { margin: 0; }
.oma-pdp__short a { color: var(--oma-blue); text-decoration: none; }
.oma-pdp__short a:hover { text-decoration: underline; }
@media (max-width: 767px) { .oma-pdp__short { font-size: 16px; } }

/* .mcb-item-4ik66e2e .price { 24px / 34px / 600 } */
.oma-pdp__price {
  margin: 0 0 40px;
  color: var(--oma-black);
  font-family: var(--oma-font);
  font-size: 24px;
  line-height: 34px;
  font-weight: 600;
}
.oma-pdp__price del { font-size: 80%; margin-right: 5px; opacity: .7; }
.oma-pdp__price ins { text-decoration: none; font-weight: 700; }
.oma-pdp__price .screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   5. STOCK LINE + BULK TABLE
   -------------------------------------------------------------------------- */
.oma-pdp-cart { margin: 0; }

/* `.woocommerce` prefix is load-bearing: Woo's own `.woocommerce div.product
   .stock { color:#958e09 }` is (0,2,2) and would otherwise win. Same reason for
   the add-to-cart button and the gallery trigger below. */
.woocommerce .oma-pdp-cart p.stock,
.woocommerce .oma-pdp-cart p.stock.out-of-stock {
  margin: 0;
  font-family: var(--oma-font);
  font-size: .92em;               /* betheme woocommerce.min.css */
  line-height: 1.3;
  color: #939393;                 /* the site's own override of Woo's #958e09 */
}

/* The bulk table itself is P5's component (`.oma-qty-tiers` in oma-woo.css) —
 * reused, not restyled. Only its placement inside the summary column is ours. */
.oma-pdp-cart .oma-qty-tiers { margin: 0 0 15px; }
.oma-pdp-cart .oma-qty-tiers table { margin-bottom: 0; }
/* --------------------------------------------------------------------------
   6. ADD TO CART
   Measured: qty 19%, gap 0.75%, button 80.25% — reproduces 1440 (115/4.5/481)
   AND 390 (65/2.6/275) from the same two numbers. At <=767 the source stacks
   them, the button keeping its 80.25% width rather than going full-bleed.
   -------------------------------------------------------------------------- */
.oma-pdp-cart form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  margin: 0 !important;
}
.oma-pdp-cart form.cart::before,
.oma-pdp-cart form.cart::after { content: none; }

.oma-pdp-cart .quantity {
  position: relative;
  flex: 0 0 19%;
  width: 19%;
  margin-right: .75%;
}
/* `sold-individually` lands on the PRODUCT element, which IS `.oma-pdp` — so this
   has to be a compound selector, not a descendant one. Woo renders the qty input
   as type="hidden" for these, exactly as the source does on Research Case, and
   the source hides the stepper shell and left-aligns the button. */
.oma-pdp.sold-individually .quantity,
.oma-pdp.quantity-one .quantity { display: none !important; }

.oma-pdp-cart .quantity .qty {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--oma-r-9);
  background: #fff;
  color: var(--oma-black);
  font-family: var(--oma-font);
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  text-align: center;
  padding: 15px 30px;
  -webkit-appearance: none;
  -moz-appearance: textfield;
  appearance: textfield;
}
.oma-pdp-cart .quantity .qty::-webkit-inner-spin-button,
.oma-pdp-cart .quantity .qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.oma-pdp-cart .quantity a.quantity-change {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 5px;
  width: 35px;
  height: calc(100% - 10px);
  border-radius: 3px;
  background-color: var(--oma-tint-f3f3f3);   /* measured #F3F3F3 */
  color: rgba(0,0,0,.8);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
}
.oma-pdp-cart .quantity a.quantity-change:hover { background-color: var(--oma-tint-ecf6ff); }
.oma-pdp-cart .quantity a.quantity-change.minus { left: 5px; }
.oma-pdp-cart .quantity a.quantity-change.plus { right: 5px; }
.oma-pdp-cart .quantity a.quantity-change i { display: block; width: 11px; height: 11px; position: relative; }
.oma-pdp-cart .quantity a.quantity-change i:before,
.oma-pdp-cart .quantity a.quantity-change i:after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 1px;
}
.oma-pdp-cart .quantity a.quantity-change i:before { left: 0; right: 0; top: 5px; height: 1.6px; }
.oma-pdp-cart .quantity a.quantity-change.plus i:after { top: 0; bottom: 0; left: 5px; width: 1.6px; }

.woocommerce .oma-pdp-cart .single_add_to_cart_button,
.woocommerce .oma-pdp-cart button.single_add_to_cart_button,
.woocommerce .oma-pdp-cart button.single_add_to_cart_button.alt {
  box-sizing: border-box;
  width: 80.25%;
  flex: 0 0 80.25%;
  border: 0;
  border-radius: var(--oma-r-9);
  background-color: var(--oma-cyan);
  color: var(--oma-black);
  font-family: var(--oma-font);
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  letter-spacing: normal;
  padding: 15px 20px;
  text-align: center;
  cursor: pointer;
  transition: .2s;
}
.woocommerce .oma-pdp-cart .single_add_to_cart_button:hover,
.woocommerce .oma-pdp-cart button.single_add_to_cart_button.alt:hover {
  background-color: var(--oma-blue);
  color: #fff;
}
.woocommerce .oma-pdp-cart .single_add_to_cart_button.disabled,
.woocommerce .oma-pdp-cart .single_add_to_cart_button:disabled,
.woocommerce .oma-pdp-cart .single_add_to_cart_button.wc-variation-selection-needed {
  opacity: .3;                       /* measured: #84F2FE reads (218,251,255) over white */
  cursor: not-allowed;
}
.woocommerce .oma-pdp-cart .single_add_to_cart_button.disabled:hover,
.woocommerce .oma-pdp-cart .single_add_to_cart_button.wc-variation-selection-needed:hover {
  background-color: var(--oma-cyan);
  color: var(--oma-black);
}
.oma-pdp-cart .single_add_to_cart_button.loading { opacity: .6; }

/* WP-Armour's honeypot is NOT replicated (RECON §13.11) — but if any plugin ever
   injects one, keep it out of the layout rather than letting it paint. */
.oma-pdp-cart .altEmail_container,
.oma-pdp-cart .wpa_hidden_field { position: absolute !important; left: -9999px; height: 0; overflow: hidden; }

@media (max-width: 767px) {
  .oma-pdp-cart form.cart { display: block; }
  .oma-pdp-cart .quantity { width: 19%; margin: 0 0 3px; }
  .oma-pdp-cart .single_add_to_cart_button { display: block; width: 80.25%; }
  .oma-pdp-cart .quantity .qty { padding: 12px 22px; }
  .oma-pdp-cart .quantity a.quantity-change { width: 28px; }
}

/* --------------------------------------------------------------------------
   7. VARIATION SWATCHES  (betheme .mfn-variations-wrapper, measured)
   -------------------------------------------------------------------------- */
.oma-pdp .mfn-variations-wrapper { margin-bottom: 15px; clear: both; text-align: left; }
.oma-pdp .mfn-variations-wrapper .mfn-vr {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.oma-pdp .mfn-variations-wrapper .mfn-vr:last-of-type { border-bottom: 0; }
.oma-pdp .mfn-variations-wrapper .mfn-vr label {
  flex-shrink: 0;
  margin: 0 10px 0 0;
  min-width: 18%;
  font-family: var(--oma-font);
  font-size: var(--oma-fs-body);
  font-weight: 500;
  color: var(--oma-black);
}
.oma-pdp .mfn-variations-wrapper ul.mfn-vr-options {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.oma-pdp .mfn-variations-wrapper ul.mfn-vr-options li { display: block; cursor: pointer; border: 0; margin: 0; }
.oma-pdp .mfn-variations-wrapper ul.mfn-vr-options li a {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 3px;
  font-family: var(--oma-font);
  font-size: 14px;
  line-height: 30px;
  padding: 0 10px;
  margin: 0;
}
.oma-pdp .mfn-variations-wrapper ul.mfn-vr-options li a:hover { border-color: rgba(0,0,0,.2); }
.oma-pdp .mfn-variations-wrapper ul.mfn-vr-options li.active a { border-color: rgba(0,0,0,.8); }
.oma-pdp .mfn-variations-wrapper ul.mfn-vr-options li.disabled a { opacity: .3; }
.oma-pdp .mfn-reset-variations {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--oma-blue);
  text-decoration: none;
}

/* body.mfn-variable-swatches hides Woo's native select behind the swatch list —
   exactly the rule the source ships. */
.mfn-variable-swatches .oma-pdp .variations_form .variations { display: none; }

.oma-pdp .single_variation_wrap { width: 100%; }
.oma-pdp .woocommerce-variation.single_variation { margin-bottom: 12px; }
.oma-pdp .woocommerce-variation .price { font-size: 25px; line-height: 34px; font-weight: 600; margin-right: 10px; }
.oma-pdp .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; align-items: flex-start; width: 100%; }
.oma-pdp .woocommerce-variation-description p { margin: 0 0 10px; }
.oma-pdp .wc-no-matching-variations { display: none; }
@media (max-width: 767px) { .oma-pdp .woocommerce-variation-add-to-cart { display: block; } }

/* --------------------------------------------------------------------------
   8. IMPORTANT NOTICE  (wrap 5ecy0ety + item ir6jjoc8)
   -------------------------------------------------------------------------- */
/* Source: the notice sits in its own BeBuilder wrap, so the cart column's 40px
   bottom column-gap and the wrap's own 23px margin-top ADD (they are in different
   containers and cannot collapse). 40 + 23 = 63; 40 + 39 = 79 at <=767.
   The trailing 40px is that same column gap before the section's bottom padding —
   without it the FAQ section starts 40px too high. Verified: the rule lands at
   y 928 and the copy at y 979, matching the source glyph bands exactly. */
.oma-pdp__notice {
  margin-top: 63px;
  margin-bottom: 40px;
  padding-top: 51px;
  border-top: 1px solid rgba(0,0,0,.2);
}
.oma-pdp__notice-inner {
  font-family: var(--oma-font);
  font-size: var(--oma-fs-body);
  line-height: 25px;
  color: rgba(0,0,0,.7);
}
.oma-pdp__notice-inner p { margin: 0; }
@media (max-width: 767px) {
  .oma-pdp__notice { margin-top: 79px; }
  .oma-pdp__notice-inner { font-size: 16px; line-height: 24px; }
}

/* --------------------------------------------------------------------------
   9. RETURNS AND REFUNDS
   The rows themselves are P8's shared `.oma-acc` (oma-pages.css) — only the
   heading spacing measured on the PDP is set here.
   -------------------------------------------------------------------------- */
.oma-pdp__faq-heading { margin: 0 0 40px; }
@media (max-width: 767px) { .oma-pdp__faq-heading { margin-bottom: 25px; } }

/* Row metrics measured on THIS module (the PDP's BeBuilder faq item, which is a
   different generated class from /faq/'s, so tuning it here does not contradict
   P8's page):
     accordion block   y 1343.5 -> 1704.5   = 361px total
     closed row        57.7px   (padding 17px 30px around a ~24px title line)
     row gap            5px
     open row         113.5px
   P8's shared defaults (18px/22px padding, 8px gap) render 393px — +32px.
   Only spacing is overridden; colours, radius and type stay P8's. */
.oma-pdp__acc .oma-acc__item { margin-bottom: 5px; }
.oma-pdp__acc .oma-acc__item:last-child { margin-bottom: 0; }
.oma-pdp__acc .oma-acc__q { padding: 17px 30px; line-height: 1.2; }
.oma-pdp__acc .oma-acc__a { padding: 8px 30px 17px; }
@media (max-width: 767px) {
  .oma-pdp__acc .oma-acc__q { padding: 20px 20px; }
  .oma-pdp__acc .oma-acc__a { padding: 8px 20px 20px; }
}

/* --------------------------------------------------------------------------
   10. BACK IN STOCK
   -------------------------------------------------------------------------- */
.oma-bis { margin: 0; }
.oma-bis__panel {
  border: 1px solid #337ab7;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}
.oma-bis__heading { background: #337ab7; padding: 10px 15px; }
.oma-bis__title {
  margin: 0 0 15px;
  color: #fff;
  text-align: center;
  font-family: var(--oma-font);
  font-size: var(--oma-h4);
  line-height: var(--oma-h4-lh);
  font-weight: var(--oma-h4-fw);
  letter-spacing: var(--oma-ls-head);
}
.oma-bis__body { padding: 57px 40px 60px; }
.oma-bis__field { margin: 0 0 18px; }
.oma-bis__field input {
  box-sizing: border-box;
  width: 100%;
  height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: var(--oma-r-9);
  background: #fff;
  color: var(--oma-grey-62);
  font-family: var(--oma-font);
  font-size: 16px;
  line-height: 22px;
  text-align: center;
}
.oma-bis__field input:focus { outline: none; border-color: var(--oma-blue); }
.oma-bis__submit { margin-top: 20px; }
.oma-bis__button {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 11px 20px;
  border: 0;
  border-radius: var(--oma-r-9);
  background: #0095eb;               /* measured rgb(0,149,235) */
  color: #fff;
  font-family: var(--oma-font);
  font-size: 16px;
  line-height: 22px;
  font-weight: 400;
  cursor: pointer;
  transition: .2s;
}
.oma-bis__button:hover { background: #007cc3; }
.oma-bis__hp { position: absolute !important; left: -9999px; height: 0; overflow: hidden; }
.oma-bis__notice {
  margin: 0 0 18px;
  font-family: var(--oma-font);
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
}
.oma-bis__notice--ok  { color: #1c6bba; }
.oma-bis__notice--err { color: #a00; }
@media (max-width: 767px) {
  .oma-bis__body { padding: 30px 20px 34px; }
  .oma-bis__title { font-size: 30px; line-height: 38px; }
}

/* --------------------------------------------------------------------------
   11. PHOTOSWIPE — Woo ships its own skin; only the z-index needs to clear the
   theme's fixed header/off-canvas layers.
   -------------------------------------------------------------------------- */
.pswp { z-index: 100000; }
