/* Product detail (PDP) — scoped to .oe-product-page */

.oe-product-page{
  --oe-primary:#09aeb8;
  --oe-primary-dark:#078993;
  --oe-secondary:#ff9f1c;
  --oe-dark:#10233f;
  --oe-muted:#6b7890;
  --oe-soft:#f3fbfd;
  --oe-border:#dcecf1;
  --oe-card:#ffffff;
  --oe-green:#22b455;
  --oe-shadow:0 14px 40px rgba(16, 35, 63, 0.08);
  --oe-radius-lg:24px;
  --oe-radius-md:16px;
  background: linear-gradient(180deg, #f7fbfd 0%, #ffffff 55%, #f7fbfd 100%);
  color: var(--oe-dark);
  font-family: Inter, Arial, sans-serif;
  padding: 22px 0 40px;
}

.oe-product-page *{ box-sizing:border-box; }

/* Ensure the theme's global content wrapper never narrows PDP on direct load */
body.single-product .oe-main,
body.woocommerce.single-product .oe-main,
body.woocommerce-page.single-product .oe-main{
  width: 100%;
  max-width: none;
}

body.single-product .oe-product-page,
body.woocommerce.single-product .oe-product-page,
body.woocommerce-page.single-product .oe-product-page{
  width: 100%;
  max-width: none;
  margin: 0;
  overflow-x: hidden;
}

.oe-product-breadcrumb,
.oe-product-hero,
.oe-product-benefits-strip,
.oe-product-tabs,
.oe-related-products{
  width: min(1380px, calc(100% - 48px));
  margin-left:auto;
  margin-right:auto;
}

.oe-product-breadcrumb{
  display:flex;
  align-items:center;
  gap:10px;
  color: var(--oe-muted);
  font-size: 14px;
  padding: 10px 0 18px;
}
.oe-product-breadcrumb a{ color:var(--oe-muted); text-decoration:none; font-weight:700; }
.oe-product-breadcrumb strong{ color:var(--oe-dark); }

.oe-product-hero{
  display:grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(380px, 0.85fr) 280px;
  gap: 28px;
  align-items:start;
}

.oe-product-gallery,
.oe-product-info,
.oe-product-side .oe-side-card,
.oe-product-tabs,
.oe-related-products{
  background: var(--oe-card);
  border: 1px solid var(--oe-border);
  border-radius: var(--oe-radius-lg);
  box-shadow: var(--oe-shadow);
}

.oe-product-gallery{
  position:relative;
  padding: 26px 22px 18px;
  min-height: 520px;
}

.oe-product-discount-badge{
  position:absolute;
  left: 20px;
  top: 18px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--oe-primary);
  color:#fff;
  font-weight:900;
  z-index:2;
}

.oe-product-main-image{
  height: 360px;
  display:grid;
  place-items:center;
}
.oe-product-main-image img{
  max-width: 86%;
  max-height: 340px;
  object-fit: contain;
  filter: drop-shadow(0 22px 30px rgba(16, 35, 63, 0.13));
}

.oe-gallery-count{
  width: fit-content;
  margin: -6px auto 14px;
  padding: 7px 14px;
  background: #eef5f8;
  color: var(--oe-muted);
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
}

.oe-product-thumbs{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  border-top: 1px solid #eaf3f6;
  padding-top: 14px;
}
.oe-product-thumbs a{
  height: 78px;
  border: 1px solid var(--oe-border);
  border-radius: 14px;
  background:#fff;
  overflow:hidden;
  display:grid;
  place-items:center;
}
.oe-product-thumbs img{ width:100%; height:100%; object-fit:contain; }

.oe-product-info{ padding: 22px; }
.oe-product-category-pill{
  display:inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background:#eafcff;
  color: var(--oe-primary-dark);
  text-decoration:none;
  font-weight:800;
  font-size: 13px;
  margin-bottom: 12px;
}
.oe-product-info h1{
  margin:0 0 12px;
  font-size: clamp(26px, 2.1vw, 38px);
  line-height:1.12;
  letter-spacing: -0.03em;
}

.oe-product-rating{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom: 16px;
}
.oe-product-rating .star-rating{ margin:0; }
.oe-product-rating a{ color: var(--oe-muted); text-decoration:none; font-weight:700; font-size:14px; }

.oe-product-price-row{
  display:flex;
  align-items:center;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap:wrap;
}
.oe-product-price-row .price{ margin:0; font-size: 34px; font-weight: 900; color: var(--oe-dark); }
.oe-product-price-row .price del{ color:#9aa8b8; font-weight:700; }
.oe-product-price-row .oe-product-sale-pill{
  background:#def8e8;
  color:#14954a;
  border-radius:999px;
  padding: 7px 11px;
  font-weight: 900;
  font-size: 13px;
}

.oe-product-stock-row{
  display:flex;
  align-items:center;
  gap: 10px;
  color: var(--oe-muted);
  margin-bottom: 16px;
  font-weight:700;
}
.oe-stock-dot{
  width:10px;
  height:10px;
  background: var(--oe-green);
  border-radius:50%;
}
.oe-product-short-desc{
  color:#546176;
  line-height:1.75;
  font-size: 15px;
  margin:0 0 18px;
}

.oe-product-actions{
  margin-top: 14px;
}
.oe-product-actions form.cart{
  display:grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items:center;
}
.oe-product-actions .quantity input.qty{
  width: 90px;
  height: 54px;
  border-radius: 14px;
  border: 1px solid var(--oe-border);
  text-align:center;
  font-weight:900;
}
.oe-product-actions button.single_add_to_cart_button{
  height: 54px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--oe-primary), #04c3ca);
  color:#fff;
  font-size: 16px;
  font-weight: 900;
  cursor:pointer;
  padding: 0 18px;
  box-shadow: 0 16px 35px rgba(9, 174, 184, 0.25);
}
.oe-product-actions button.single_add_to_cart_button[disabled]{
  opacity:.55;
  cursor:not-allowed;
}

.oe-product-side{ display:grid; gap: 16px; }
.oe-side-card{ padding: 18px; border-radius: var(--oe-radius-lg); }
.oe-side-card h3{ margin:0 0 12px; font-size: 17px; }
.oe-side-card ul{ margin:0; padding:0; list-style:none; display:grid; gap:10px; }
.oe-side-card li, .oe-side-card p, .oe-side-card small{ color: var(--oe-muted); line-height: 1.6; font-size: 14px; }

.oe-product-benefits-strip{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 22px;
  background:#fff;
  border: 1px solid var(--oe-border);
  border-radius: var(--oe-radius-lg);
  box-shadow: var(--oe-shadow);
  overflow:hidden;
}
.oe-product-benefits-strip > div{
  display:grid;
  grid-template-columns: 46px 1fr;
  gap: 2px 12px;
  align-items:center;
  padding: 18px;
  border-right: 1px solid #eaf3f6;
}
.oe-product-benefits-strip > div:last-child{ border-right:0; }
.oe-product-benefits-strip span{
  grid-row: span 2;
  width: 44px;
  height: 44px;
  display:grid;
  place-items:center;
  border-radius: 50%;
  background: var(--oe-soft);
  color: var(--oe-primary);
}
.oe-product-benefits-strip strong{ font-size: 15px; }
.oe-product-benefits-strip small{ color: var(--oe-muted); }

.oe-product-tabs{
  margin-top: 22px;
  overflow:hidden;
}
.oe-product-tab-nav{
  display:flex;
  gap:0;
  border-bottom: 1px solid #eaf3f6;
  padding: 0 18px;
}
.oe-product-tab-nav button{
  border:0;
  background:transparent;
  padding: 16px 18px;
  color: var(--oe-muted);
  font-weight: 900;
  cursor:pointer;
}
.oe-product-tab-nav button.is-active{ color: var(--oe-primary-dark); }
.oe-product-tab-panels{ padding: 18px; }
.oe-product-tab-panel{ display:none; }
.oe-product-tab-panel.is-active{ display:block; }

.oe-related-products{
  margin-top: 22px;
  padding: 18px;
}
.oe-related-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 1180px){
  .oe-product-hero{ grid-template-columns: 1fr 1fr; }
  .oe-product-side{ grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
  .oe-related-grid{ grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px){
  .oe-product-breadcrumb,
  .oe-product-hero,
  .oe-product-benefits-strip,
  .oe-product-tabs,
  .oe-related-products{
    width: min(100% - 28px, 100%);
  }
  .oe-product-hero,
  .oe-product-benefits-strip,
  .oe-product-side{
    grid-template-columns: 1fr;
  }
  .oe-related-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px){
  .oe-product-actions form.cart{ grid-template-columns: 1fr; }
  .oe-related-grid{ grid-template-columns: 1fr; }
  .oe-product-thumbs{ grid-template-columns: repeat(5, 90px); overflow-x:auto; }
}

