/* =========================
   One Mac - Single Product (Part 1: Main/Hero)
   ========================= */

.om-product-page{
  background:#F7F7F7;
}

.om-product-page__inner{
  max-width:1440px;
  margin:-90px auto 0;
  padding:100px 24px 90px;
}

/* --- Grid --- */
.om-pmain{
  padding:32px 0 28px;
}

.om-pmain__grid{
  display:grid;
  grid-template-columns: 600px 1fr;
  gap:40px;
  align-items:start;
}

@media (max-width: 1100px){
  .om-pmain__grid{
    grid-template-columns: 1fr;
    gap:24px;
  }
}

/* --- Gallery card --- */
.om-gallery-card{
  position:relative;
  width:600px;
  height:612px;
  background:#fff;
  border-radius:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

@media (max-width: 1100px){
  .om-gallery-card{
    width:100%;
    height:auto;
    aspect-ratio: 600 / 612;
  }
}

/* Ensure WC gallery centers nicely in the white card */
.om-pmain__gallery .woocommerce-product-gallery{
  width:100%;
  max-width:400px;
  margin:0 auto;
}

.om-pmain__gallery .woocommerce-product-gallery__wrapper,
.om-pmain__gallery .woocommerce-product-gallery__image,
.om-pmain__gallery .woocommerce-product-gallery__image a{
  display:block;
}

.om-pmain__gallery .woocommerce-product-gallery__image img{
  width:100%;
  height:auto;
  display:block;
}

/* Display pill (13 in) */
.om-gallery-card__badge{
  position:absolute;
  top:111px;
  left:56%;
  transform:translateX(88px); /* positions near screen top-right */
  z-index:3;
}

.om-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 16px;
  gap:10px;
  border-radius:8px 8px 2px 2px;
  background:#69B2FF;
  color:#fff;
  font:400 14px/21px Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Dots */
.om-gallery-card__dots{
  position:absolute;
  left:0;
  right:0;
  bottom:34px;
  height:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  z-index:6;
}

.om-gallery-card__dots .om-dot{
  width:10px;
  height:10px;
  border-radius:999px;
  border:0;
  padding:0;
  cursor:pointer;
  background:rgba(0,0,0,.22);
  transition:transform .2s ease, background .2s ease;
}

.om-gallery-card__dots .om-dot:hover{
  transform:scale(1.15);
}

.om-gallery-card__dots .om-dot.is-active{
  background:rgba(0,0,0,.60);
}

/* Smooth slide switch + fade */
.om-gallery-card__stage{
  position:relative;
  width:100%;
  height:100%;
}

.om-gallery-card__slide{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  transform:translateY(6px);
  transition:opacity .28s ease, transform .28s ease;
}

.om-gallery-card__slide.is-active{
  opacity:1;
  transform:translateY(0);
}

/* Keep transition working even when [hidden] used */
.om-gallery-card__slide[hidden]{
  display:flex !important;
  pointer-events:none;
}

/* Variation image swap fade */
.om-gallery-card__slide.is-fading{
  opacity:.25;
}

/* --- Right column --- */
.om-pmain__data{
  padding-top:6px;
  font-family:Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Title + meta (display | chip) */
.om-pmain__title-row{
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:18px;
}

.om-pmain__title{
  margin:0;
  font-size:32px;
  line-height:48px;
  font-weight:500;
  color:#000;
}

.om-pmain__meta{
  display:flex;
  align-items:center;
  gap:16px;
  font-size:20px;
  line-height:30px;
  font-weight:400;
  color:#575656;
}

.om-pmain__meta-sep{
  width:1px;
  height:18px;
  background:rgba(87,86,86,.40);
  display:inline-block;
}

.om-pmain__meta-suffix{
  margin-left:6px;
}

/* --- Variations row (Storage/SSD | RAM) --- */
.om-pmain__variants{
  display:flex;
  align-items:flex-start;
  gap:24px;
  margin:10px 0 14px;
}

.om-variant{
  min-width:220px;
}

.om-variant__label{
  font-size:14px;
  line-height:24px;
  font-weight:400;
  color:#979797;
  margin-bottom:8px;
}

.om-variant__options{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.om-variant__mid-sep{
  width:1px;
  height:52px;
  background:rgba(151,151,151,.20);
  margin-top:22px;
}

.om-offer-pill{
  position:absolute;
  top:20px;
  left:20px;
  background:#E60000;
  color:#fff;
  font: 500 14px/1 Poppins, sans-serif;
  padding:10px 14px;
  border-radius:999px;
  z-index:7;
}

.om-variation-native{ display:none; }

@media (max-width: 1100px){
  .om-pmain__variants{
    flex-direction:column;
    gap:14px;
  }
  .om-variant__mid-sep{
    display:none;
  }
  .om-variant{
    min-width:0;
  }
}

/* Pills (storage/ram) */
.om-chip-btn{
  border:0;
  cursor:pointer;
  border-radius:100px;
  padding:8px 24px;
  font-size:16px;
  line-height:24px;
  font-weight:400;
  color:#575656;
  background:rgba(87,86,86,.10);
  transition:background .2s ease, color .2s ease, transform .15s ease;
}

.om-chip-btn:hover{
  transform:translateY(-1px);
}

.om-chip-btn.is-active,
.om-chip-btn[aria-pressed="true"]{
  background:#000;
  color:#fff;
}

/* --- Colours --- */
.om-pmain__colours{
  margin:10px 0 18px;
}

.om-pmain__colours-label{
  font-size:14px;
  line-height:24px;
  font-weight:400;
  color:#979797;
  margin-bottom:10px;
}

.om-pmain__colours-swatches{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.om-swatch{
  width:32px;
  height:32px;
  border-radius:50%;
  border:1px solid transparent;
  background:#ddd;
  cursor:pointer;
  transition:border-color .2s ease, transform .15s ease;
}

.om-swatch:hover{
  transform:scale(1.05);
}

.om-swatch:hover,
.om-swatch.is-active,
.om-swatch[aria-pressed="true"]{
  border-color:#69B2FF;
}

/* --- Price --- */
.om-pmain__price{
  margin:10px 0 10px;
  font-size:40px;
  line-height:50px;
}

/* If WC price html used */
.om-pmain__price .price{
  margin:0;
  display:flex;
  align-items:baseline;
  gap:10px;
  flex-wrap:wrap;
  color:#000;
}

.om-pmain__price .price bdi{
  font-size:40px;
  line-height:56px;
  font-weight:300;
}

.om-pmain__price .price del{
  opacity:.45;
}

.om-pmain__price .price del bdi{
  font-size:22px;
  line-height:30px;
  font-weight:300;
  text-decoration:line-through;
}

.om-pmain__price .price ins{
  text-decoration:none;
}

.om-pmain__price .price ins bdi{
  font-size:40px;
  line-height:56px;
  font-weight:300;
}

/* --- Installments row --- */
.om-pmain__installments{
  display:flex;
  align-items:center;
  gap:10px;
  margin:6px 0 38px;
}

.om-pmain__installments-text{
  font-size:14px;
  line-height:24px;
  font-weight:400;
  color:#979797;
}

.om-pmain__installments-img{
  width:140px;
  height:21px;
  display:block;
}

/* --- Out of stock checkbox line --- */
.om-helpcheck{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin:6px 0 14px;
  user-select:none;
}

.om-helpcheck__input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.om-helpcheck__box{
  width:20px;
  height:20px;
  border:1px solid rgba(105,178,255,.50);
  background:#fff;
  border-radius:2px;
  flex:0 0 auto;
  margin-top:2px;
}

.om-helpcheck__text{
  font-size:16px;
  line-height:26px;
  font-weight:400;
  color:#575656;
}

/* --- CTA button --- */
.om-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 24px;
  border-radius:100px;
  text-decoration:none;
  border:0;
  cursor:pointer;
  font-size:16px;
  line-height:26px;
  font-weight:400;
  color:#fff;
  background:linear-gradient(90deg,#575656 0%, #1E1E1E 100%);
}

/* --- Chip highlight block --- */
.om-chip-highlight{
  display:flex;
  gap:16px;
  align-items:center;
  margin-top:52px;
}

.om-chip-highlight__logo img,
.om-chip-highlight__img{
  width:80px;
  height:80px;
  border-radius:4px;
  display:block;
}

.om-chip-highlight__title{
  margin:0 0 2px;
  font-size:24px;
  line-height:34px;
  font-weight:500;
  color:#000;
}

.om-chip-highlight__desc{
  margin:0;
  font-size:14px;
  line-height:24px;
  font-weight:400;
  color:#979797;
}

/* Ensure UI is always clickable (avoid overlays blocking clicks) */
.om-pmain__data,
.om-pmain__gallery{
  position:relative;
  z-index:1;
}

.om-chip-btn,
.om-swatch,
.om-gallery-card__dots .om-dot{
  pointer-events:auto;
}

/* =========================
   One Mac - Single Product (Laptop Optimisation)
   1101px–1399px
   ========================= */
@media (min-width: 1101px) and (max-width: 1399px){

  .om-product-page__inner{
    max-width: 1240px;
    padding: 90px 20px 90px;
  }

  .om-pmain__grid{
    grid-template-columns: 520px 1fr;
    gap: 32px;
  }

  .om-gallery-card{
    width: 520px;
    height: 540px;
    border-radius: 18px;
  }

  .om-pmain__gallery .woocommerce-product-gallery{
    max-width: 360px;
  }

  .om-pmain__title-row{
    margin-bottom: 14px;
    gap: 12px;
  }

  .om-pmain__title{
    font-size: 28px;
    line-height: 40px;
  }

  .om-pmain__meta{
    font-size: 18px;
    line-height: 26px;
    gap: 12px;
  }

  .om-pmain__variants{
    gap: 18px;
    margin: 8px 0 12px;
  }

  .om-variant__label{
    font-size: 13px;
    line-height: 22px;
    margin-bottom: 6px;
  }

  .om-chip-btn{
    padding: 8px 20px;
    font-size: 15px;
    line-height: 22px;
  }

  .om-swatch{
    width: 30px;
    height: 30px;
  }

  .om-pmain__price{
    font-size: 34px;
    line-height: 44px;
  }

  .om-pmain__price .price bdi,
  .om-pmain__price .price ins bdi{
    font-size: 34px;
    line-height: 46px;
  }

  .om-pmain__price .price del bdi{
    font-size: 20px;
    line-height: 28px;
  }

  .om-pmain__installments{
    margin: 6px 0 28px;
  }

  .om-pmain__installments-text{
    font-size: 13px;
    line-height: 22px;
  }

  .om-pmain__installments-img{
    width: 130px;
    height: auto;
  }

  .om-helpcheck__text{
    font-size: 15px;
    line-height: 24px;
  }

  .om-btn{
    font-size: 15px;
    line-height: 24px;
    padding: 12px 22px;
  }

  .om-chip-highlight{
    margin-top: 40px;
    gap: 14px;
  }

  .om-chip-highlight__logo img,
  .om-chip-highlight__img{
    width: 72px;
    height: 72px;
  }

  .om-chip-highlight__title{
    font-size: 22px;
    line-height: 32px;
  }

  .om-chip-highlight__desc{
    font-size: 13px;
    line-height: 22px;
  }
}


/* =========================
   One Mac - Single Product (Tablet Optimisation)
   768px–1100px
   ========================= */
@media (min-width: 768px) and (max-width: 1100px){

  .om-product-page__inner{
    padding: 90px 20px 90px;
  }

  .om-pmain{
    padding: 24px 0 24px;
  }

  .om-pmain__grid{
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .om-gallery-card{
    width: 100%;
    height: auto;
    aspect-ratio: 600 / 612;
    border-radius: 18px;
  }

  .om-pmain__gallery .woocommerce-product-gallery{
    max-width: 360px;
  }

  .om-gallery-card__badge{
    top: 70px;
    left: 46%;
    transform: translateX(60px);
  }

  .om-pmain__title{
    font-size: 22px;
    line-height: 32px;
  }

  .om-pmain__meta{
    font-size: 15px;
    line-height: 24px;
    gap: 12px;
  }

  .om-pmain__variants{
    flex-direction: column;
    gap: 12px;
    margin: 8px 0 12px;
  }

  .om-variant__mid-sep{
    display: none;
  }

  .om-variant__label{
    font-size: 13px;
    line-height: 22px;
  }

  .om-chip-btn{
    padding: 8px 18px;
    font-size: 14px;
    line-height: 22px;
  }

  .om-pmain__colours{
    margin: 8px 0 16px;
  }

  .om-pmain__colours-label{
    font-size: 13px;
    line-height: 22px;
  }

  .om-swatch{
    width: 30px;
    height: 30px;
  }

  .om-pmain__price{
    font-size: 30px;
    line-height: 40px;
  }

  .om-pmain__price .price bdi,
  .om-pmain__price .price ins bdi{
    font-size: 30px;
    line-height: 42px;
  }

  .om-pmain__price .price del bdi{
    font-size: 18px;
    line-height: 26px;
  }

  .om-pmain__installments{
    margin: 6px 0 24px;
  }

  .om-pmain__installments-text{
    font-size: 13px;
    line-height: 22px;
  }

  .om-pmain__installments-img{
    width: 120px;
    height: auto;
  }

  .om-helpcheck{
    align-items: center;
  }

  .om-helpcheck__text{
    font-size: 13px;
    line-height: 22px;
  }

  .om-btn{
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    line-height: 24px;
  }

  .om-chip-highlight{
    margin-top: 34px;
    gap: 12px;
  }

  .om-chip-highlight__logo img,
  .om-chip-highlight__img{
    width: 64px;
    height: 64px;
  }

  .om-chip-highlight__title{
    font-size: 20px;
    line-height: 30px;
  }

  .om-chip-highlight__desc{
    font-size: 12px;
    line-height: 22px;
  }
}


/* =========================
   One Mac - Single Product (Mobile Optimisation)
   ========================= */
@media (max-width: 767px){

  .om-product-page__inner{
    padding: 80px 20px 0;
  }

  .om-pmain__title{
    font-size: 20px;
    line-height: 30px;
  }

  .om-pmain__meta{
    font-size: 14px;
    line-height: 24px;
  }

  .om-helpcheck__text{
    font-size: 12px;
    line-height: 22px;
  }

  .om-chip-highlight{
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-top: 52px;
    flex-direction: column;
  }

  .om-chip-highlight__title{
    font-size: 20px;
    line-height: 30px;
  }

  .om-chip-highlight__desc{
    font-size: 12px;
    line-height: 22px;
  }

  .om-chip-highlight__logo img,
  .om-chip-highlight__img{
    width: 60px;
    height: 60px;
  }

  .om-gallery-card__badge {
    top: 57px;
    left: 39%;
	}
	
	.om-pmain__price {
    font-size: 33px;
    line-height: 43px;
    }
	
	.om-helpcheck {
    display: flex;
		align-items: center;
	}
}

/* =========================
   One Mac - Single Product (Smaller screens)
   480px–767px
   (keeps your mobile block but improves scaling)
   ========================= */
@media (min-width: 480px) and (max-width: 767px){

  .om-pmain__price{
    font-size: 32px;
    line-height: 42px;
  }

  .om-pmain__price .price bdi,
  .om-pmain__price .price ins bdi{
    font-size: 32px;
    line-height: 44px;
  }

  .om-chip-btn{
    padding: 8px 18px;
    font-size: 14px;
    line-height: 22px;
  }

  .om-swatch{
    width: 30px;
    height: 30px;
  }
}


/* =========================
   Tiny screens (≤479px)
   ========================= */
@media (max-width: 479px){

  .om-product-page__inner{
    padding: 76px 16px 0;
  }

  .om-pmain__title{
    font-size: 18px;
    line-height: 28px;
  }

  .om-pmain__meta{
    font-size: 13px;
    line-height: 22px;
    gap: 10px;
  }

  .om-chip-btn{
    padding: 8px 16px;
    font-size: 13px;
    line-height: 20px;
  }

  .om-swatch{
    width: 28px;
    height: 28px;
  }

  .om-pmain__price{
    font-size: 30px;
    line-height: 40px;
  }

  .om-pmain__price .price bdi,
  .om-pmain__price .price ins bdi{
    font-size: 30px;
    line-height: 42px;
  }

  .om-helpcheck__text{
    font-size: 12px;
    line-height: 20px;
  }

  .om-chip-highlight__logo img,
  .om-chip-highlight__img{
    width: 56px;
    height: 56px;
  }

  .om-chip-highlight__title{
    font-size: 18px;
    line-height: 28px;
  }

  .om-chip-highlight__desc{
    font-size: 12px;
    line-height: 20px;
  }
}

/* =========================
   One Mac - Single Product END
   ========================= */

/* =========================================================
   One Mac - Product Specifications Card (UPDATED)
   Structure:
   .om-specs__grid -> 2 rows (specs + warranty)
   Divider = border-bottom on specs row
   Eclipse = ONLY inside .om-specs__specs via ::before
   ========================================================= */

.om-specs{
  max-width:1440px;
  margin:40px auto 0;
  padding:0;
}

/* Force Poppins inside specs block */
.om-specs,
.om-specs *{
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
}

.om-specs__card{
  position:relative;
  border-radius:20px;
  padding:0px;
  overflow:hidden;
  isolation:isolate;
}

/* background + border for the CARD only */
.om-specs__card::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  z-index:0;
  border:1px solid transparent;
  background:
    linear-gradient(#0B0C10,#0B0C10) padding-box,
    linear-gradient(90deg,
      rgba(255,255,255,.40) 0%,
      rgba(255,255,255,.05) 100%
    ) border-box;
}

/* Content layer sits above card bg */
.om-specs__grid{
  position:relative;
  z-index:1;
}

/* =========================
   SPECS ROW + ECLIPSE LAYER
   ========================= */

.om-specs__specs{
  position:relative;
  padding-bottom:22px;

  border-bottom:1px solid transparent;
  border-image: linear-gradient(90deg,
    rgba(255,255,255,.40) 0%,
    rgba(255,255,255,.05) 100%
  ) 1;

  /* ensures pseudo-element is clipped to specs area */
  overflow:hidden;
}

/* ✅ Eclipse ONLY for the specs area */
.om-specs__specs::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;

  background-image: var(--om-eclipse);
  background-repeat:no-repeat;
  background-size:1420px auto;
  background-position:right -40px bottom -140px;

  opacity:1;
}

/* Make sure specs content is above eclipse */
.om-specs__cols,
.om-spec-item{
  position:relative;
  z-index:1;
}

/* Warranty row */
.om-specs__warranty{
  padding:30px;
}

/* -------------------------
   TOP SPEC GRID (2 columns)
   ------------------------- */
.om-specs__cols{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:20px;
	padding:30px;
}

.om-specs__col{
  display:flex;
  flex-direction:column;
  gap:20px;
}

.om-spec-item{
  display:grid;
  grid-template-columns:32px 1fr;
  gap:20px;
  align-items:start;
}

.om-spec-item__icon img{
  width:32px;
  height:32px;
  display:block;
  object-fit:contain;
  opacity:.95;
}

.om-spec-item__title{
  color:#ffffff;
  font-size:16px;
  line-height:26px;
  font-weight:500;
  margin:0;
}

.om-spec-item__desc{
  color:#979797;
  font-size:14px;
  line-height:24px;
  font-weight:400;
  margin:0;
}

/* -------------------------
   WARRANTY GRID (3 columns)
   ------------------------- */
.om-warranty-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:20px;
}

.om-warranty-item{
  display:grid;
  grid-template-columns:32px 1fr;
  gap:20px;
  align-items:start;
}

.om-warranty-item__icon img{
  width:32px;
  height:32px;
  display:block;
  object-fit:contain;
}

.om-warranty-item__title{
  color:#ffffff;
  font-size:16px;
  line-height:26px;
  font-weight:400;
  margin:0;
}

.om-warranty-item__desc{
  color:#ffffff;
  font-size:16px;
  line-height:26px;
  font-weight:400;
  margin:0;
}

.om-warranty-item__text{
  display:flex;
  flex-direction:column;
  gap:6px;
}

/* -------------------------
   RESPONSIVE
   ------------------------- */
@media (max-width: 1024px){
  .om-specs{ padding:0 24px; }
}

@media (min-width: 1101px) and (max-width: 1399px){
  .om-specs__specs::before{
    background-size:1517px auto;
    background-position:right -40px bottom -140px;
  }
}

@media (max-width: 860px){
  .om-specs__card{ padding:22px; }

  .om-specs__cols{
    grid-template-columns:1fr;
    gap:20px;
  }

  .om-warranty-grid{
    grid-template-columns:1fr;
    gap:35px;
    margin-bottom:20px;
  }

  .om-specs__specs::before{
    background-size:420px auto;
    background-position:right 0 bottom -60px;
    opacity:.9;
  }
}

@media (max-width: 480px){
  .om-specs{ padding:0 0 90px 0; }

  .om-specs__card{
    border-radius:20px;
    padding:0px;
  }

  .om-spec-item,
  .om-warranty-item{
    gap:16px;
  }
	
	.om-specs__specs{
		padding:0px;
	}
}
