/* Pakka24 Zepto Clone PDP */
:root{
  --p24-bg:#f6f7f9;
  --p24-card:#fff;
  --p24-text:#111827;
  --p24-muted:#6b7280;
  --p24-border:#e5e7eb;
  --p24-pill:#16a34a;
  --p24-pink:#ff2e63; /* change to your brand */
}

body.single-product{ background:var(--p24-bg); }
.woocommerce div.product{ margin-top:0 !important; }

/* Hide theme/page title (prevents duplicate title above our custom title) */
body.single-product .entry-header .entry-title,
body.single-product .ast-woo-product-header,
body.single-product header.woocommerce-products-header{ display:none !important; }

/* Wrap */
.p24zPdp{
  max-width: 720px;
  margin: 0 auto;
  padding: 10px 6px; /* remove huge bottom padding */
}

/* Appbar */
.p24zAppbar{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 8px 2px 10px;
}

.p24zIconBtn{
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid var(--p24-border);
  background:#fff;
  font-size:18px;
  font-weight:900;
  display:grid;
  place-items:center;
}

.p24zLocBtn{
  flex:1;
  height:42px;
  border-radius:999px;
  border:1px solid var(--p24-border);
  background:#fff;
  padding: 0 12px;
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  color:var(--p24-text);
}
.p24zLocText{
  flex:1;
  text-align:left;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.p24zAppbarRight{ display:flex; gap:10px; }

/* Media */
.p24zMedia{
  background:#fff;
  border:1px solid var(--p24-border);
  border-radius:18px;
  padding:6px;
  overflow:hidden;
}
.woocommerce-product-gallery{ margin:0 !important; }
.woocommerce-product-gallery__wrapper{ margin:0 !important; }

/* Prevent huge gallery images */
.woocommerce-product-gallery__image{ margin:0 !important; }
.woocommerce-product-gallery__image a{ display:block; }
.woocommerce-product-gallery__image img{
  width:100% !important;
  height:auto !important;
  max-height:340px;
  display:block;
  margin:0 auto;
  border-radius:14px;
  object-fit:contain;
}
@media (min-width: 768px){
  .woocommerce-product-gallery__image img{ max-height:420px; }
}

/* Remove thumbnail strip completely (avoids duplicated mini-images) */
.woocommerce-product-gallery .flex-control-thumbs{ display:none !important; }

/* Gallery dots */
.p24zDots{
  display:flex;
  justify-content:center;
  gap:8px;
  padding:10px 0 2px;
}
.p24zDot{
  width:8px; height:8px;
  border-radius:999px;
  background:#d1d5db;
}
.p24zDot.active{ background:#111827; }

/* Card */
.p24zCard{
  margin-top:10px;
  background:var(--p24-card);
  border:1px solid var(--p24-border);
  border-radius:18px;
  padding:12px;
}
.p24zMetaRow{ display:flex; justify-content:flex-start; }

.p24zRatingPill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:#e8f7ee;
  color:#0f5132;
  border:1px solid #bfe8cf;
  border-radius:999px;
  padding:6px 10px;
  font-weight:1000;
  font-size:14px;
}
.p24zCount{ opacity:.75; font-weight:900; }

.p24zTitle{
  margin:10px 0 4px;
  font-size:20px;
  line-height:1.2;
  font-weight:1000;
  color:var(--p24-text);
}
.p24zSub{
  color:var(--p24-muted);
  font-size:14px;
  font-weight:800;
}

.p24zPriceRow{
  margin-top:12px;
  display:flex;
  align-items:flex-end;
  gap:12px;
  flex-wrap:wrap;
}
.p24zPricePill{
  background:var(--p24-pill);
  color:#fff;
  font-weight:1000;
  font-size:18px;
  padding:8px 12px;
  border-radius:10px;
  line-height:1;
}
.p24zMrpLine{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.p24zMrpLabel{ color:var(--p24-muted); font-weight:900; }
.p24zMrpStrike{ color:var(--p24-muted); text-decoration:line-through; font-weight:1000; }
.p24zOff{ color:#15803d; font-weight:1000; }

/* Options section (variations form) */
.p24zOptions{
  margin-top:10px;
  background:#fff;
  border:1px solid var(--p24-border);
  border-radius:18px;
  padding:10px;
}
.p24zOptions .single_add_to_cart_button{
  width:100%;
  border-radius:14px !important;
  padding:16px 14px !important;
  font-weight:1000 !important;
}

/* Sticky bottom bar (Zepto logic controlled by JS) */
.p24zSticky{
  position:fixed;
  left:0; right:0; bottom:0;
  z-index:9999;
  background:#fff;
  border-top:1px solid var(--p24-border);
  /* ✅ Mobile: tighter padding */
  padding:10px 6px;
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
}

.p24zStickyCart{
  flex:1;
  min-width:44%;
  height:54px;
  border-radius:14px;
  border:1px solid var(--p24-border);
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-weight:1000;
  color:var(--p24-text);
  position:relative;
}
.p24zCartBadge{
  position:absolute;
  top:-6px;
  left:22px;
  background:var(--p24-pink);
  color:#fff;
  min-width:18px;
  height:18px;
  border-radius:999px;
  padding:0 6px;
  font-size:12px;
  font-weight:1000;
  display:grid;
  place-items:center;
}

.p24zStickyAdd{
  flex:1;
  height:54px;
  border-radius:14px;
  border:none;
  background:var(--p24-pink);
  color:#fff;
  font-weight:1000;
  font-size:16px;
}
.p24zStickyAdd.full{
  flex: 1 1 100%;
  width: 100%;
}

.p24zStickyQty{
  flex:1;
  height:54px;
  border-radius:14px;
  background:var(--p24-pink);
  display:flex;
  align-items:center;
  justify-content:space-between;
  overflow:hidden;
}
.p24zQtyBtn{
  width:64px;
  height:54px;
  border:none;
  background:transparent;
  color:#fff;
  font-size:24px;
  font-weight:1000;
}
.p24zQtyNum{
  color:#fff;
  font-weight:1000;
  font-size:18px;
}

/* Desktop center sticky */
@media (min-width: 768px){
  .p24zSticky{
    max-width:720px;
    margin:0 auto;
    left:50%;
    transform:translateX(-50%);
    border:1px solid var(--p24-border);
    border-bottom:none;
    border-radius:18px 18px 0 0;
  }
}

/* ===============================
   Desktop UX (Zepto-like)
   - 2 column layout
   - Remove big bottom sticky bar
=============================== */
@media (min-width: 1024px){
  .single-product .ast-container,
  .single-product .ast-container-fluid{
    max-width: 1200px !important;
    margin: 0 auto !important;
  }

  .p24zPdp{
    max-width: 1100px;
    margin: 20px auto 40px;
    padding: 10px 0 40px; /* ✅ no extra left/right padding on desktop */
    display: grid;
    grid-template-columns: 520px 1fr;
    gap: 32px;
    align-items: start;
  }

  .p24zMedia{ grid-column: 1; position: sticky; top: 16px; }
  .p24zCard,
  .p24zOptions,
  .p24zRel{ grid-column: 2; }

  .p24zMedia img{
    max-height: 520px;
  }

  /* ✅ Desktop should not show the huge mobile sticky */
  .p24zSticky{ display:none !important; }
}

/* Drawer overlay */
.p24zDrawerOverlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.35);
  z-index:10000;
  display:none;
}
.p24zDrawerOverlay.open{ display:block; }

/* Drawer default = mobile bottom sheet */
.p24zDrawer{
  position:fixed;
  left:0; right:0; bottom:-100%;
  height:78vh;
  background:#fff;
  z-index:10001;
  border-radius:18px 18px 0 0;
  border-top:1px solid var(--p24-border);
  box-shadow:0 -20px 60px rgba(0,0,0,.25);
  display:flex;
  flex-direction:column;
  transition:bottom .25s ease, right .25s ease;
}
.p24zDrawer.open{ bottom:0; }

.p24zDrawerHeader{
  padding:12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--p24-border);
}
.p24zDrawerTitle{ font-weight:1000; font-size:16px; color:var(--p24-text); }
.p24zDrawerClose {
  box-sizing: border-box;   /* ensures border is included */
  width: 40px;
  height: 40px;
  border-radius: 50%;       /* cleaner than 999px */
  border: 1px solid var(--p24-border);
  background: #000;
  font-size: 16px;
  font-weight: 700;         /* 1000 not widely supported */
  display: flex;            /* center content */
  align-items: center;
  justify-content: center;
  padding: 0;               /* remove default button padding */
}

.p24zDrawerBody{
  padding:12px;
  overflow:auto;
  flex:1;
}
.p24zDrawerLoading{ color:var(--p24-muted); font-weight:900; padding:12px; }

.p24zEmpty{
  padding:18px;
  border:1px dashed var(--p24-border);
  border-radius:14px;
  color:var(--p24-muted);
  font-weight:1000;
  text-align:center;
}

/* Items */
.p24zItem{
  display:flex;
  gap:10px;
  padding:10px;
  border:1px solid var(--p24-border);
  border-radius:14px;
  margin-bottom:10px;
}
.p24zThumb{
  width:72px; height:72px;
  border-radius:12px;
  border:1px solid var(--p24-border);
  overflow:hidden;
  background:#fff;
  display:grid;
  place-items:center;
}
.p24zThumbImg{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
}
.p24zMid{ flex:1; min-width:0; }
.p24zItemName{
  font-weight:1000;
  color:var(--p24-text);
  font-size:14px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.p24zItemPrice{ margin-top:6px; font-weight:1000; color:var(--p24-text); }

.p24zRight{ display:flex; flex-direction:column; gap:8px; align-items:flex-end; }
.p24zMiniQty{
  display:flex;
  align-items:center;
  overflow:hidden;
  border-radius:12px;
  background:var(--p24-pink);
  height:36px;
}
.p24zMiniBtn{
  width:42px; height:36px;
  border:none;
  background:transparent;
  color:#fff;
  font-size:18px;
  font-weight:1000;
}
.p24zMiniNum{
  min-width:26px;
  text-align:center;
  color:#fff;
  font-weight:1000;
}

.p24zRemoveBtn{
  border:none;
  background:transparent;
  color:#ef4444;
  font-weight:1000;
  font-size:12px;
}

/* Drawer footer */
.p24zDrawerFooter{
  padding:12px 14px;
  border-top:1px solid var(--p24-border);
  background:#fff;
}
.p24zSubtotalRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:10px;
}
.p24zSubtotalLbl{ color:var(--p24-muted); font-weight:1000; }
.p24zSubtotalVal{ color:var(--p24-text); font-weight:1000; }

.p24zCheckoutBtn{
  display:block;
  width:100%;
  height:54px;
  border-radius:14px;
  background:var(--p24-pink);
  color:#fff;
  text-decoration:none;
  font-weight:1000;
  display:grid;
  place-items:center;
}

/* Desktop: right drawer */
@media (min-width: 992px){
  .p24zDrawerOverlay{ background: rgba(0,0,0,.30); }

  .p24zDrawer{
    top:0;
    bottom:0;
    left:auto;
    right:-420px;
    width:420px;
    height:100vh;
    border-radius:18px 0 0 18px;
    border-top:none;
    border-left:1px solid var(--p24-border);
  }

  .p24zDrawer.open{
    bottom:auto;
    right:0;
  }
}


/* Safe-area for iPhone bottom */
.p24zSticky{
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
}


/* ===== Zepto-style related products ===== */
.p24zRel{
  margin-top: 12px;
  background:#fff;
  border:1px solid var(--p24-border);
  border-radius:18px;
  padding:12px 12px 14px;
}
.p24zRelHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:10px;
}
.p24zRelTitle{
  font-weight:1000;
  font-size:16px;
  color:var(--p24-text);
}
.p24zRelHint{
  font-weight:900;
  font-size:12px;
  color:var(--p24-muted);
}

.p24zRelScroll{
  display:flex;
  gap:10px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  padding-bottom: 2px;
}
.p24zRelScroll::-webkit-scrollbar{ display:none; }

.p24zRelCard{
  scroll-snap-align:start;
  min-width: 160px;
  max-width: 160px;
  border:1px solid var(--p24-border);
  border-radius:16px;
  background:#fff;
  overflow:hidden;
  padding:10px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.p24zRelMedia{
  width:100%;
  height:140px;
  border-radius:14px;
  border:1px solid var(--p24-border);
  background:#fff;
  display:grid;
  place-items:center;
  overflow:hidden;
}
.p24zRelImg{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
}

.p24zRelName{
  font-weight:900;
  font-size:13px;
  color:var(--p24-text);
  text-decoration:none;
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:hidden;
  min-height: 34px;
}

.p24zRelBottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.p24zRelPrice{
  font-weight:1000;
  color:var(--p24-text);
  font-size:14px;
}
.p24zRelAdd, .p24zRelSelect{
  height:34px;
  padding:0 10px;
  border-radius:12px;
  font-weight:1000;
  font-size:13px;
  white-space:nowrap;
}
.p24zRelAdd{
  border:1px solid var(--p24-pink);
  background:#fff;
  color:var(--p24-pink);
}
.p24zRelSelect{
  border:1px solid var(--p24-border);
  background:#fff;
  color:var(--p24-text);
  text-decoration:none;
  display:grid;
  place-items:center;
}


/* ===== Zepto-like Product Gallery fixes ===== */
/* Kill thumbnails and zoom triggers */
.woocommerce-product-gallery__trigger,
.flex-control-thumbs,
.woocommerce-product-gallery .flex-control-nav,
.woocommerce-product-gallery .flex-direction-nav{
  display:none !important;
}

/* Make gallery look like app card */
.p24zMedia .woocommerce-product-gallery{
  width:100% !important;
  float:none !important;
}

.p24zMedia{
  padding: 10px !important;
}

/* Fixed height for consistent look */
.p24zMedia .woocommerce-product-gallery__wrapper{
  min-height: 320px;
}

@media (min-width: 768px){
  .p24zMedia .woocommerce-product-gallery__wrapper{
    min-height: 380px;
  }
}

/* Center image nicely */
.p24zMedia .woocommerce-product-gallery__image{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

.p24zMedia .woocommerce-product-gallery__image a{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
}

.p24zMedia .woocommerce-product-gallery__image img{
  width:auto !important;
  max-width:100% !important;
  max-height: 360px !important;
  object-fit:contain !important;
}

/* Stop theme/woo weird margins */
.p24zMedia .woocommerce-product-gallery,
.p24zMedia .woocommerce-product-gallery__wrapper,
.p24zMedia .woocommerce-product-gallery__image{
  margin:0 !important;
}

/* Zepto dots (simple) */
.p24zDots{
  display:flex;
  justify-content:center;
  gap:6px;
  padding: 10px 0 2px;
}
.p24zDot{
  width:6px; height:6px;
  border-radius:999px;
  background:#d1d5db;
}
.p24zDot.active{ background:#111827; }


/* ===== Responsive + duplication safety ===== */
.p24zNoScroll{ overflow:hidden !important; height:100% !important; }

/* Tablet refinement */
@media (min-width: 600px) and (max-width: 991px){
  .p24zPdp{ max-width: 820px; padding-left: 16px; padding-right: 16px; }
  .p24zRelCard{ min-width: 190px; max-width: 190px; }
  .p24zRelMedia{ height: 160px; }
}

/* Large desktop refinement */
@media (min-width: 1200px){
  .p24zPdp{ max-width: 860px; }
  .p24zSticky{ max-width: 860px; }
}


/* ===== FINAL Gallery: consistent size + perfect placement =====
   Goals:
   - Same height for all products (no jump)
   - Image centered, no stretch
   - Works with 1 image or many images
   - No zoom/lightbox, no thumbnails
*/

/* Ensure our gallery card has predictable inner spacing */
.p24zMedia{
  padding: 10px !important;
}

/* Create a fixed "stage" like Zepto */
.p24zMedia .woocommerce-product-gallery{
  width:100% !important;
  float:none !important;
  display:block !important;
}

.p24zMedia .woocommerce-product-gallery__wrapper{
  width:100% !important;
  margin:0 !important;
  padding:0 !important;
  border-radius:14px;
  overflow:hidden;
  background:#fff;
  /* Zepto-like stage height */
  height: 320px;
  display:block !important;
}

@media (min-width: 600px){
  .p24zMedia .woocommerce-product-gallery__wrapper{ height: 380px; }
}
@media (min-width: 992px){
  .p24zMedia .woocommerce-product-gallery__wrapper{ height: 420px; }
}

/* Every slide is a centered stage */
.p24zMedia .woocommerce-product-gallery__image{
  height:100% !important;
  width:100% !important;
  margin:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:#fff;
}

.p24zMedia .woocommerce-product-gallery__image a{
  height:100% !important;
  width:100% !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding: 12px !important; /* inner breathing space like app */
  box-sizing:border-box !important;
}

/* The image itself: never stretch, always contain */
.p24zMedia .woocommerce-product-gallery__image img{
  width:auto !important;
  height:auto !important;
  max-width:100% !important;
  max-height:100% !important;
  object-fit:contain !important;
  border-radius:12px;
}

/* Remove any remaining nav/controls from themes/plugins */
.woocommerce-product-gallery__trigger,
.flex-control-thumbs,
.woocommerce-product-gallery .flex-control-nav,
.woocommerce-product-gallery .flex-direction-nav{
  display:none !important;
}

/* But keep swipe working: sometimes flex-viewport is required.
   If slider breaks, remove the line above for .flex-viewport. */

/* Safety hide: if theme outputs default summary elements, hide them (avoid duplicates) */
body.single-product .summary.entry-summary > .woocommerce-breadcrumb,
body.single-product .summary.entry-summary > .product_title,
body.single-product .summary.entry-summary > .price,
body.single-product .summary.entry-summary > form.cart,
body.single-product .summary.entry-summary > .product_meta,
body.single-product .summary.entry-summary > .ast-stock-detail,
body.single-product .summary.entry-summary > .stock,
body.single-product .summary.entry-summary > .product-distance{
  display:none !important;
}































/* =====================================
   PDP DESKTOP + RESPONSIVE NORMALIZATION
   Final professional layout system
===================================== */

/* Neutralize Astra + Woo containers */
body.single-product .ast-container,
body.single-product .ast-woocommerce-container,
body.single-product .content-area,
body.single-product .site-main,
body.single-product .woocommerce div.product,
body.single-product .summary.entry-summary{
  width:100% !important;
  max-width:100% !important;
  margin:0 !important;
  padding:0 !important;
  float:none !important;
}

/* ===============================
   DESKTOP MASTER LAYOUT
=============================== */

@media (min-width:1024px){

  .p24zPdp{
    max-width:1080px !important;
    margin:20px auto 44px !important;
    padding:0 16px !important;

    display:grid !important;
    grid-template-columns: minmax(480px,40%) 1fr !important;
    gap:24px !important;

    overflow-x:hidden !important;
  }

  /* Product hero */
  .p24zMedia{
    grid-column:1 !important;
    position:sticky !important;
    top:18px !important;
    align-self:start !important;
  }

  /* Content stack */
  .p24zCard{
    grid-column:2 !important;
    margin-top:0 !important;
    margin-bottom:6px !important;
  }

  .p24zOptions{
    grid-column:2 !important;
    margin-top:6px !important;
  }

  .p24zRel{
    grid-column:2 !important;
    margin-top:28px !important;
  }

  /* Slightly shorter hero for balance */
  .p24zMedia .woocommerce-product-gallery__wrapper{
    height:460px !important;
  }
}

/* ===============================
   TABLET LAYOUT
=============================== */

@media (min-width:768px) and (max-width:1023px){

  .p24zPdp{
    max-width:900px !important;
    margin:18px auto !important;
    padding:0 14px !important;

    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:20px !important;
  }

  .p24zMedia{
    position:relative !important;
    top:auto !important;
  }

  .p24zRel{
    margin-top:24px !important;
  }
}

/* ===============================
   MOBILE — default stack
=============================== */


/* ===============================
   STABILITY & OVERFLOW GUARD
=============================== */

html,body{
  overflow-x:hidden !important;
}

.p24zPdp,
.p24zMedia,
.p24zCard,
.p24zOptions,
.p24zRel{
  max-width:100% !important;
}

/* Protect against plugin overflow */
.p24zCard *,
.p24zOptions *,
.p24zRel *{
  max-width:100% !important;
  box-sizing:border-box;
  word-wrap:break-word;
}













/* =======================================================
   P24Z FINAL DESKTOP MASTER OVERRIDE (HARD LOCK VERSION)
   Paste at bottom of CSS
======================================================= */

/* ----- Global safety ----- */
html,body{
  overflow-x:hidden !important;
}

/* Neutralize Astra/Woo width conflicts */
body.single-product .ast-container,
body.single-product .ast-container-fluid,
body.single-product .ast-woocommerce-container,
body.single-product .content-area,
body.single-product .site-main,
body.single-product .woocommerce,
body.single-product .woocommerce div.product,
body.single-product .summary.entry-summary{
  width:100% !important;
  max-width:100% !important;
  margin:0 !important;
  padding:0 !important;
  float:none !important;
  display:block !important;
}

/* =======================================================
   DESKTOP LAYOUT SYSTEM
======================================================= */

@media(min-width:1024px){

  .p24zPdp{
    max-width:1100px !important;
    margin:24px auto 48px !important;
    padding:0 16px !important;

    display:grid !important;
    grid-template-columns:520px 1fr !important;
    gap:28px !important;

    align-items:start !important;
  }

  /* Sticky hero column */
  .p24zMedia{
    grid-column:1 !important;
    position:sticky !important;
    top:20px !important;
    align-self:start !important;
    background:#fff !important;
    border-radius:18px !important;
  }

  /* Right content column */
  .p24zCard,
  .p24zOptions,
  .p24zRel{
    grid-column:2 !important;
    margin-top:0 !important;
  }

  .p24zCard{ margin-bottom:10px !important; }
  .p24zOptions{ margin-bottom:24px !important; }

  /* Remove mobile sticky bar */
  .p24zSticky{
    display:none !important;
  }

}

/* =======================================================
   GALLERY — SINGLE STABLE STAGE SYSTEM
======================================================= */

.p24zMedia .woocommerce-product-gallery{
  width:100% !important;
  float:none !important;
}

.p24zMedia .woocommerce-product-gallery__wrapper{
  height:460px !important;
  width:100% !important;
  margin:0 !important;
  padding:0 !important;
  overflow:hidden !important;
  display:flex !important;
  border-radius:14px !important;
  background:#fff !important;
}

/* Each slide centered */
.p24zMedia .woocommerce-product-gallery__image{
  height:100% !important;
  width:100% !important;
  margin:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

.p24zMedia .woocommerce-product-gallery__image a{
  height:100% !important;
  width:100% !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:12px !important;
  box-sizing:border-box !important;
}

/* Image containment */
.p24zMedia .woocommerce-product-gallery__image img{
  max-width:100% !important;
  max-height:100% !important;
  width:auto !important;
  height:auto !important;
  object-fit:contain !important;
  border-radius:12px !important;
}

/* Kill Woo controls */
.woocommerce-product-gallery__trigger,
.flex-control-thumbs,
.woocommerce-product-gallery .flex-control-nav,
.woocommerce-product-gallery .flex-direction-nav{
  display:none !important;
}

/* =======================================================
   OVERFLOW + PLUGIN SAFETY GUARD
======================================================= */

.p24zPdp,
.p24zMedia,
.p24zCard,
.p24zOptions,
.p24zRel{
  max-width:100% !important;
  box-sizing:border-box !important;
}

.p24zCard *,
.p24zOptions *,
.p24zRel *{
  max-width:100% !important;
  box-sizing:border-box !important;
  word-wrap:break-word !important;
}









/* =======================================================
   P24Z ELITE DESKTOP UX LAYOUT SYSTEM
   Optimized for conversion + stability
======================================================= */

@media(min-width:1024px){

  /* Master grid */
  .p24zPdp{
    max-width:1120px !important;
    margin:28px auto 60px !important;
    padding:0 20px !important;

    display:grid !important;
    grid-template-columns:560px 1fr !important;
    gap:36px !important;

    align-items:start !important;
  }

  /* ================= LEFT — PRODUCT HERO ================= */

  .p24zMedia{
    position:sticky !important;
    top:24px !important;
    background:#fff !important;
    border-radius:20px !important;
    padding:12px !important;
    box-shadow:0 14px 38px rgba(0,0,0,.06) !important;
  }

  .p24zMedia .woocommerce-product-gallery__wrapper{
    height:480px !important;
    border-radius:16px !important;
    overflow:hidden !important;
    display:flex !important;
  }

  .p24zMedia .woocommerce-product-gallery__image,
  .p24zMedia .woocommerce-product-gallery__image a{
    height:100% !important;
    width:100% !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:14px !important;
  }

  .p24zMedia img{
    max-width:100% !important;
    max-height:100% !important;
    object-fit:contain !important;
    border-radius:12px !important;
  }

  /* ================= RIGHT — DECISION COLUMN ================= */

  .p24zCard{
    margin-top:0 !important;
    padding:18px !important;
  }

  .p24zTitle{
    font-size:26px !important;
    line-height:1.2 !important;
  }

  .p24zPriceRow{
    margin-top:16px !important;
    gap:14px !important;
  }

  .p24zPricePill{
    font-size:22px !important;
    padding:10px 16px !important;
  }

  /* ================= STICKY BUY ZONE ================= */

  .p24zOptions{
    position:sticky !important;
    top:540px !important;
    margin-top:16px !important;

    background:#fff !important;
    padding:16px !important;
    border-radius:18px !important;
    box-shadow:0 10px 28px rgba(0,0,0,.06) !important;
  }

  .p24zOptions .single_add_to_cart_button{
    height:58px !important;
    font-size:18px !important;
    border-radius:16px !important;
  }

  /* ================= RELATED ================= */

  .p24zRel{
    margin-top:40px !important;
  }

  /* ================= REMOVE MOBILE UI ================= */

  .p24zSticky{
    display:none !important;
  }

  /* ================= CLEAN WOO ================= */

  .woocommerce-product-gallery__trigger,
  .flex-control-thumbs,
  .woocommerce-product-gallery .flex-control-nav,
  .woocommerce-product-gallery .flex-direction-nav{
    display:none !important;
  }
}









/* ======================================
   DESKTOP PDP UX FIX — NO EMPTY SPACE
====================================== */

@media (min-width:1024px){

  /* Force Woo product into grid */
  body.single-product .woocommerce div.product{
    display:grid !important;
    grid-template-columns: 520px 1fr !important;
    gap:36px !important;
    align-items:start !important;
  }

  /* Left hero */
  .p24zMedia{
    grid-column:1 !important;
    position:sticky !important;
    top:24px !important;
  }

  /* Right content becomes tight stack */
  .p24zCard,
  .p24zOptions,
  .p24zRel{
    grid-column:2 !important;
    width:100% !important;
  }

  /* Remove Woo weird spacing */
  .summary.entry-summary{
    display:flex !important;
    flex-direction:column !important;
    gap:14px !important;
  }

  /* Pull add to cart up near price */
  .p24zOptions{
    margin-top:6px !important;
  }

  /* Kill huge default Woo margins */
  .woocommerce div.product form.cart{
    margin:0 !important;
  }

  .woocommerce div.product .price{
    margin-bottom:6px !important;
  }

  /* Related comes after decision */
  .p24zRel{
    margin-top:40px !important;
  }

  /* Remove mobile sticky */
  .p24zSticky{
    display:none !important;
  }
}

/* ===============================
   GALLERY HEIGHT FIX (NO GAP)
=============================== */

.p24zMedia .woocommerce-product-gallery__wrapper{
  height:460px !important;
  display:flex !important;
  overflow:hidden !important;
}

.p24zMedia .woocommerce-product-gallery__image,
.p24zMedia .woocommerce-product-gallery__image a{
  height:100% !important;
  width:100% !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:12px !important;
}

.p24zMedia img{
  max-width:100% !important;
  max-height:100% !important;
  object-fit:contain !important;
}




/* =========================================
   FINAL DESKTOP STRUCTURE LOCK (Woo Fix)
========================================= */

@media (min-width:1024px){

  /* Make Woo product container a grid */
  body.single-product .woocommerce div.product{
    display:grid !important;
    grid-template-columns: 560px 1fr !important;
    gap:40px !important;
    align-items:start !important;
  }

  /* Force gallery left */
  body.single-product .woocommerce div.product .woocommerce-product-gallery{
    grid-column:1 !important;
    width:100% !important;
    float:none !important;
  }

  /* Force summary right */
  body.single-product .woocommerce div.product .summary{
    grid-column:2 !important;
    width:100% !important;
    float:none !important;

    display:flex !important;
    flex-direction:column !important;
    gap:14px !important;
  }

  /* Remove Woo default spacing */
  body.single-product .woocommerce div.product .summary > *{
    margin:0 !important;
  }

  /* Pull cart directly under price */
  body.single-product .woocommerce div.product form.cart{
    margin-top:6px !important;
  }

  /* Make cart look aligned */
  body.single-product .woocommerce div.product form.cart .single_add_to_cart_button{
    height:54px !important;
    border-radius:14px !important;
  }

  /* Related products full width under grid */
  body.single-product .related,
  body.single-product .p24zRel{
    grid-column:1 / -1 !important;
    margin-top:180px !important;
  }

  /* Remove mobile sticky */
  .p24zSticky{
    display:none !important;
  }
}

/* =========================================
   GALLERY HEIGHT STABILITY
========================================= */

@media (min-width:1024px){
  .woocommerce-product-gallery__wrapper{
    height:480px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    overflow:hidden !important;
  }









/* ======================================
   DESKTOP — STICKY RIGHT COLUMN FIX
====================================== */

@media (min-width:1024px){

  /* Make summary column sticky */
  body.single-product .woocommerce div.product .summary{
    position:sticky !important;
    top:120px !important;
    align-self:start !important;
  }

  /* Tighten spacing */
  body.single-product .woocommerce div.product .summary{
    display:flex !important;
    flex-direction:column !important;
    gap:10px !important;
  }

  /* Clean cart block */
  body.single-product .woocommerce div.product form.cart{
    margin-top:8px !important;
    padding:14px 16px !important;
    border-radius:16px !important;
    box-shadow:0 8px 20px rgba(0,0,0,.06) !important;
    background:#fff !important;

    display:flex !important;
    gap:12px !important;
    align-items:center !important;
  }

  /* Better button size */
  body.single-product .woocommerce div.product .single_add_to_cart_button{
    height:52px !important;
    border-radius:14px !important;
  }
}







/* ===== FINAL Mobile Product Image (Jewelry Optimized) ===== */
@media (max-width: 767px){

  /* Outer card */
  .p24zMedia{
    padding:5px !important;
    border-radius:18px !important;
  }

  /* Image stage – shorter, stronger visual weight */
  .p24zMedia .woocommerce-product-gallery__wrapper{
    height: min(70vw, 420px) !important;
    border-radius:16px !important;
    overflow:hidden !important;
    display:flex !important;
  }

  /* Center slide perfectly */
  .p24zMedia .woocommerce-product-gallery__image,
  .p24zMedia .woocommerce-product-gallery__image a{
    width:100% !important;
    height:100% !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:2px !important;   /* tighter breathing space */
  }

  /* Image scaling */
  .p24zMedia .woocommerce-product-gallery__image img{
    max-width:100% !important;
    max-height:100% !important;
    width:auto !important;
    height:auto !important;
    object-fit:contain !important;
    display:block !important;
    border-radius:12px !important;
  }

}





@media (max-width: 767px){

  /* Outer card */
  .p24zMedia{
    padding:6px !important;
    border-radius:18px !important;
  }

  /* Force gallery height (85% of screen width, capped) */
  .p24zMedia .woocommerce-product-gallery,
  .p24zMedia .flexslider,
  .p24zMedia .flex-viewport,
  .p24zMedia .woocommerce-product-gallery__wrapper{
    height: min(85vw, 460px) !important;
    max-height: min(85vw, 460px) !important;
    border-radius:16px !important;
    overflow:hidden !important;
    display:flex !important;
    align-items:center !important;
  }

  /* Center slides */
  .p24zMedia .woocommerce-product-gallery__image,
  .p24zMedia .woocommerce-product-gallery__image a{
    width:100% !important;
    height:100% !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:4px !important;
  }

  /* Make image feel big & sharp */
  .p24zMedia .woocommerce-product-gallery__image img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;   /* makes product look big */
    border-radius:12px !important;
  }

}
















/* =====================================
   P24Z DESKTOP GRID ALIGNMENT FIX
===================================== */

@media (min-width:1024px){

  /* Define strict grid rows */
  .p24zPdp{
    display:grid !important;
    grid-template-columns: 560px 1fr !important;
    grid-template-rows: auto auto 1fr !important;
    column-gap:36px !important;
    row-gap:14px !important;
    align-items:start !important;
  }

  /* Left image spans full height */
  .p24zMedia{
    grid-row: 1 / span 3 !important;
    align-self:start !important;
  }

  /* Stack content tightly */
  .p24zCard{
    grid-column:2 !important;
    grid-row:1 !important;
  }

  .p24zOptions{
    grid-column:2 !important;
    grid-row:2 !important;
    margin-top:0 !important;
  }

  /* Related below everything */
  .p24zRel{
    grid-column:1 / -1 !important;
    grid-row:3 !important;
    margin-top:48px !important;
  }
}






/* =====================================
   P24Z DESKTOP GRID — PERFECT LAYOUT
===================================== */

@media (min-width:1024px){

  .p24zPdp{
    display:grid !important;
    grid-template-columns:560px 1fr !important;
    grid-template-rows:auto auto auto !important;
    column-gap:36px !important;
    row-gap:14px !important;
    align-items:start !important;
  }

  /* Image left */
  .p24zMedia{
    grid-column:1 !important;
    grid-row:1 / span 3 !important;
  }

  /* Title + price */
  .p24zCard{
    grid-column:2 !important;
    grid-row:1 !important;
  }

  /* Add to cart just under price */
  .p24zOptions{
    grid-column:2 !important;
    grid-row:2 !important;
    margin-top:0 !important;
  }

  /* Related below both */
  .p24zRel{
    grid-column:1 / -1 !important;
    grid-row:3 !important;
    margin-top:48px !important;
  }
}



/* =====================================
   DESKTOP — STOP FLOATING CART BLOCK
===================================== */

@media (min-width:1024px){

  .p24zOptions{
    position:relative !important;
    inset:auto !important;
    transform:none !important;
    z-index:auto !important;
  }

}



/* =====================================
   DESKTOP — LOCATION BAR BACK TO TOP
===================================== */

@media (min-width:1024px){

  .p24zAppbar{
    position:relative !important;
    bottom:auto !important;
    top:0 !important;
    box-shadow:none !important;
    margin-bottom:18px !important;
  }

}

@media (min-width:1024px){
  .p24zOptions{ margin-top:6px !important; }
}
  .woocommerce-product-gallery__image,
  .woocommerce-product-gallery__image a{
    height:100% !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
  }

  .woocommerce-product-gallery__image img{
    max-width:100% !important;
    max-height:100% !important;
    object-fit:contain !important;
  }
}





/* ====================================
   DESKTOP CTA UX ALIGNMENT FIX
==================================== */

@media (min-width:1024px){

  /* Tighten summary column */
  body.single-product .woocommerce div.product .summary{
    gap:10px !important;
  }

  /* Kill all auto margins inside summary */
  body.single-product .woocommerce div.product .summary > *{
    margin:0 !important;
    padding:0 !important;
  }

  /* Price block breathing but not gap */
  body.single-product .woocommerce div.product .price{
    margin-bottom:8px !important;
  }

  /* Pull cart up */
  body.single-product .woocommerce div.product form.cart{
    margin-top:6px !important;
  }

  /* Make cart look premium */
  body.single-product .woocommerce div.product form.cart{
    background:#fff !important;
    padding:14px !important;
    border-radius:16px !important;
    box-shadow:0 10px 26px rgba(0,0,0,.06) !important;
    width:fit-content !important;
  }

  /* Align qty + button nicely */
  body.single-product .woocommerce div.product form.cart{
    display:flex !important;
    align-items:center !important;
    gap:12px !important;
  }
}






/* ==========================================
   DESKTOP PDP FLOW LOCK — FINAL
========================================== */

@media (min-width:1024px){

  /* Force product area into two columns */
  body.single-product .woocommerce div.product{
    display:grid !important;
    grid-template-columns:560px 1fr !important;
    gap:36px !important;
    align-items:start !important;
  }

  /* Left image */
  body.single-product .woocommerce div.product .woocommerce-product-gallery{
    grid-column:1 !important;
  }

  /* Right decision stack */
  body.single-product .woocommerce div.product .summary{
    grid-column:2 !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    gap:10px !important;
  }

  /* Remove ALL Astra spacing wrappers */
  body.single-product .woocommerce div.product .summary *{
    margin:0 !important;
  }

  /* Price breathing only */
  body.single-product .woocommerce div.product .price{
    margin-bottom:6px !important;
  }

  /* Cart stays directly under price */
  body.single-product .woocommerce div.product form.cart{
    margin-top:0 !important;
    padding:12px 14px !important;
    background:#fff !important;
    border-radius:16px !important;
    box-shadow:0 10px 26px rgba(0,0,0,.06) !important;

    display:flex !important;
    align-items:center !important;
    gap:12px !important;
  }

  /* Make CTA premium */
  body.single-product .woocommerce div.product .single_add_to_cart_button{
    height:54px !important;
    padding:0 26px !important;
    font-size:16px !important;
    border-radius:14px !important;
  }

  /* Related full width */
  body.single-product .related,
  .p24zRel{
    grid-column:1 / -1 !important;
    margin-top:60px !important;
  }

  /* Kill mobile bar */
  .p24zSticky{
    display:none !important;
  }
}





/* ==========================================
   DESKTOP PRO UX — STICKY BUY ZONE
========================================== */

@media (min-width:1024px){

  /* Right column becomes reference */
  body.single-product .woocommerce div.product .summary{
    position:relative !important;
  }

  /* Sticky cart under price */
  body.single-product .woocommerce div.product form.cart{
    position:sticky !important;
    top:220px !important; /* sits right below title + price */

    margin-top:12px !important;

    background:#fff !important;
    padding:14px 16px !important;
    border-radius:16px !important;
    box-shadow:0 10px 26px rgba(0,0,0,.06) !important;

    display:flex !important;
    align-items:center !important;
    gap:12px !important;
  }

  /* Tight summary spacing */
  body.single-product .woocommerce div.product .summary{
    gap:12px !important;
  }
}








/* ====================================
   DESKTOP PDP — FINAL UX POLISH
==================================== */

@media (min-width:1024px){

  /* Reduce dead space between title block and cart */
  body.single-product .woocommerce div.product .summary{
    gap:8px !important;
  }

  /* Visually attach cart to price block */
  body.single-product .woocommerce div.product .price{
    margin-bottom:4px !important;
  }

  /* Cart card styling */
  body.single-product .woocommerce div.product form.cart{
    margin-top:4px !important;
    box-shadow:0 8px 22px rgba(0,0,0,.05) !important;
  }

  /* Make column feel intentional */
  body.single-product .woocommerce div.product .summary{
    padding-bottom:40px !important;
  }

  /* Align cart to left of column (not floating center) */
  body.single-product .woocommerce div.product form.cart{
    align-self:flex-start !important;
  }
}








/* =====================================================
   P24Z CLEAN DESKTOP PDP — FINAL UI/UX SYSTEM
   Paste at very bottom
===================================================== */

@media (min-width:1024px){

  /* ==============================
     1. MASTER PRODUCT GRID
  ============================== */

  body.single-product .woocommerce div.product{
    display:grid !important;
    grid-template-columns: 560px 1fr !important;
    gap:48px !important;
    align-items:start !important;
  }

  /* Kill Astra float nonsense */
  body.single-product .woocommerce div.product > *{
    float:none !important;
    width:100% !important;
  }

  /* ==============================
     2. LEFT — PRODUCT IMAGE CARD
  ============================== */

  .woocommerce-product-gallery{
    grid-column:1 !important;
    background:#fff !important;
    padding:18px !important;
    border-radius:20px !important;
    box-shadow:0 20px 50px rgba(0,0,0,.06) !important;
  }

  .woocommerce-product-gallery__wrapper{
    height:520px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    overflow:hidden !important;
  }

  .woocommerce-product-gallery__image,
  .woocommerce-product-gallery__image a{
    height:100% !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
  }

  .woocommerce-product-gallery__image img{
    max-width:100% !important;
    max-height:100% !important;
    object-fit:contain !important;
  }

  /* Remove gallery junk */
  .flex-control-thumbs,
  .woocommerce-product-gallery__trigger,
  .flex-direction-nav{
    display:none !important;
  }

  /* ==============================
     3. RIGHT — DECISION COLUMN
  ============================== */

  body.single-product .woocommerce div.product .summary{
    grid-column:2 !important;

    display:flex !important;
    flex-direction:column !important;
    gap:14px !important;

    padding-top:10px !important;
  }

  /* Remove random Woo spacing */
  body.single-product .woocommerce div.product .summary *{
    margin:0 !important;
  }

  /* ==============================
     4. TITLE
  ============================== */

  body.single-product .product_title{
    font-size:28px !important;
    font-weight:700 !important;
    line-height:1.25 !important;
    letter-spacing:-0.3px !important;
  }

  /* ==============================
     5. PRICE BLOCK
  ============================== */

  body.single-product .price{
    font-size:26px !important;
    font-weight:700 !important;
    color:#15803d !important;
    margin-top:6px !important;
  }

  /* ==============================
     6. PREMIUM BUY CARD
  ============================== */

  body.single-product .woocommerce div.product form.cart{
    margin-top:8px !important;

    background:#ffffff !important;
    padding:18px !important;
    border-radius:18px !important;

    box-shadow:0 16px 40px rgba(0,0,0,.07) !important;

    display:flex !important;
    align-items:center !important;
    gap:14px !important;
  }

  /* Quantity */
  body.single-product .qty{
    height:52px !important;
    border-radius:12px !important;
    font-size:16px !important;
  }

  /* Add to cart button */
  body.single-product .single_add_to_cart_button{
    height:56px !important;
    padding:0 28px !important;
    font-size:17px !important;
    font-weight:600 !important;
    border-radius:14px !important;
    transition:all .2s ease !important;
  }

  body.single-product .single_add_to_cart_button:hover{
    transform:translateY(-2px) !important;
    box-shadow:0 12px 26px rgba(0,0,0,.12) !important;
  }

  /* ==============================
     7. RELATED PRODUCTS
  ============================== */

  body.single-product .related{
    grid-column:1 / -1 !important;
    margin-top:80px !important;
  }

  /* ==============================
     8. REMOVE MOBILE STICKY BAR
  ============================== */

  .p24zSticky{
    display:none !important;
  }

}




/* =====================================
   P24Z DESKTOP UI POLISH — FINAL
===================================== */

@media (min-width:1024px){

  /* Make layout feel tighter + premium */
  body.single-product .woocommerce div.product{
    grid-template-columns: 520px 1fr !important;
    gap:40px !important;
  }

  /* ===== IMAGE CARD REFINEMENT ===== */

  .woocommerce-product-gallery{
    padding:14px !important;
    border-radius:18px !important;
    box-shadow:0 12px 32px rgba(0,0,0,.05) !important;
  }

  .woocommerce-product-gallery__wrapper{
    height:480px !important;
  }

  /* ===== RIGHT COLUMN WIDTH CONTROL ===== */

  body.single-product .woocommerce div.product .summary{
    max-width:520px !important;   /* prevents huge airy feel */
  }

  /* ===== TITLE LOOK ===== */

  body.single-product .product_title{
    font-size:26px !important;
    line-height:1.3 !important;
  }

  /* ===== PRICE EMPHASIS ===== */

  body.single-product .price{
    font-size:24px !important;
    margin-top:4px !important;
  }

  /* ===== CTA CARD — CLEAN & ATTACHED ===== */

  body.single-product .woocommerce div.product form.cart{
    margin-top:6px !important;
    padding:16px !important;
    border-radius:16px !important;
    box-shadow:0 12px 28px rgba(0,0,0,.06) !important;
  }

  /* Button balance */
  body.single-product .single_add_to_cart_button{
    height:54px !important;
    font-size:16px !important;
  }

  /* Quantity box cleaner */
  body.single-product .qty{
    height:50px !important;
  }

  /* ===== RELATED SECTION BREATHING ===== */

  body.single-product .related{
    margin-top:70px !important;
  }
}




/* ==========================================
   P24Z DESKTOP — PREMIUM CLEAN LAYOUT
   FINAL VISUAL REFINEMENT
========================================== */

@media (min-width:1024px){

  /* === Background cleaner === */
  body.single-product{
    background:#f7f8fa !important;
  }

  /* === Master grid balance === */
  body.single-product .woocommerce div.product{
    grid-template-columns: 500px 1fr !important;
    gap:56px !important;
  }

  /* =====================================
     LEFT — PRODUCT IMAGE
  ====================================== */

  .woocommerce-product-gallery{
    background:#ffffff !important;
    padding:12px !important;
    border-radius:16px !important;
    box-shadow:0 8px 24px rgba(0,0,0,.05) !important;
  }

  .woocommerce-product-gallery__wrapper{
    height:460px !important;
  }

  /* =====================================
     RIGHT — DECISION COLUMN
  ====================================== */

  body.single-product .woocommerce div.product .summary{
    max-width:520px !important;
    gap:10px !important;
  }

  /* Title cleaner */
  body.single-product .product_title{
    font-size:24px !important;
    line-height:1.35 !important;
    font-weight:600 !important;
  }

  /* Subtitle small */
  body.single-product .summary p{
    font-size:14px !important;
    color:#6b7280 !important;
  }

  /* Price emphasis */
  body.single-product .price{
    font-size:26px !important;
    font-weight:700 !important;
    color:#16a34a !important;
  }

  /* Remove grey card feeling */
  body.single-product .woocommerce div.product form.cart{
    background:transparent !important;
    box-shadow:none !important;
    padding:0 !important;
    margin-top:8px !important;

    display:flex !important;
    align-items:center !important;
    gap:12px !important;
  }

  /* Quantity refined */
  body.single-product .qty{
    height:48px !important;
    border-radius:12px !important;
    border:1px solid #e5e7eb !important;
  }

  /* Premium CTA button */
  body.single-product .single_add_to_cart_button{
    height:52px !important;
    padding:0 28px !important;
    font-size:16px !important;
    font-weight:600 !important;
    border-radius:12px !important;
    background:#2563eb !important;
    transition:all .2s ease !important;
  }

  body.single-product .single_add_to_cart_button:hover{
    background:#1d4ed8 !important;
    transform:translateY(-1px) !important;
    box-shadow:0 8px 18px rgba(0,0,0,.12) !important;
  }

  /* =====================================
     RELATED SECTION
  ====================================== */

  body.single-product .related{
    margin-top:90px !important;
  }

}






/* ======================================
   P24Z DESKTOP MICRO UX — FINAL TOUCH
====================================== */

@media (min-width:1024px){

  /* Soften the whole page feel */
  body.single-product{
    background:#f8fafc !important;
  }

  /* Slightly lighter image card */
  .woocommerce-product-gallery{
    box-shadow:0 6px 18px rgba(0,0,0,.04) !important;
    padding:10px !important;
  }

  .woocommerce-product-gallery__wrapper{
    height:440px !important;
  }

  /* Improve text rhythm */
  body.single-product .summary{
    gap:12px !important;
  }

  body.single-product .product_title{
    font-size:25px !important;
    letter-spacing:-0.2px !important;
  }

  /* Make price pop cleanly */
  body.single-product .price{
    font-size:27px !important;
  }

  /* CTA dominance */
  body.single-product .single_add_to_cart_button{
    min-width:180px !important;
    box-shadow:0 10px 22px rgba(37,99,235,.25) !important;
  }

  body.single-product .single_add_to_cart_button:hover{
    transform:translateY(-2px) !important;
  }

  /* Give related products more space */
  body.single-product .related{
    padding-top:20px !important;
  }

}







/* ======================================
   P24Z DESKTOP — CONVERSION UI FINAL
====================================== */

@media (min-width:1024px){

  /* Subtle soft background */
  body.single-product{
    background:#f6f7fb !important;
  }

  /* Reduce hero dominance slightly */
  .woocommerce-product-gallery{
    max-width:480px !important;
    margin:auto !important;
    padding:10px !important;
    border-radius:14px !important;
  }

  .woocommerce-product-gallery__wrapper{
    height:420px !important;
  }

  /* Pull content closer visually */
  body.single-product .woocommerce div.product{
    gap:44px !important;
  }

  /* Title nicer balance */
  body.single-product .product_title{
    font-size:24px !important;
  }

  /* Price highlight */
  body.single-product .price{
    font-size:28px !important;
  }

  /* Attach CTA to price visually */
  body.single-product .woocommerce div.product form.cart{
    margin-top:4px !important;
  }

  /* Stronger CTA presence */
  body.single-product .single_add_to_cart_button{
    min-width:200px !important;
    font-size:17px !important;
  }

  /* Related area separation */
  body.single-product .related{
    margin-top:100px !important;
  }

}










/* =========================================
   P24Z UNIVERSAL DESKTOP PDP — PRO FINISH
========================================= */

@media (min-width:1024px){

  /* Soft marketplace background */
  body.single-product{
    background:#f5f7fb !important;
  }

  /* Perfect product grid */
  body.single-product .woocommerce div.product{
    grid-template-columns: 480px 1fr !important;
    gap:52px !important;
  }

  /* Product image frame — works for tall & wide */
  .woocommerce-product-gallery{
    background:#ffffff !important;
    padding:10px !important;
    border-radius:14px !important;
    box-shadow:0 6px 20px rgba(0,0,0,.05) !important;
  }

  .woocommerce-product-gallery__wrapper{
    height:440px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
  }

  .woocommerce-product-gallery__image img{
    max-height:100% !important;
    width:auto !important;
  }

  /* Right column rhythm */
  body.single-product .summary{
    max-width:540px !important;
    gap:12px !important;
  }

  /* Title hierarchy */
  body.single-product .product_title{
    font-size:24px !important;
    line-height:1.35 !important;
  }

  /* Price focus */
  body.single-product .price{
    font-size:28px !important;
    font-weight:700 !important;
  }

  /* CTA clean integration */
  body.single-product .woocommerce div.product form.cart{
    margin-top:6px !important;
    background:transparent !important;
    padding:0 !important;
    box-shadow:none !important;

    display:flex !important;
    align-items:center !important;
    gap:12px !important;
  }

  /* CTA dominance */
  body.single-product .single_add_to_cart_button{
    height:54px !important;
    min-width:190px !important;
    border-radius:12px !important;
    font-size:16px !important;
    font-weight:600 !important;
  }

  /* Related spacing */
  body.single-product .related{
    margin-top:90px !important;
  }

}





/* ======================================
   P24Z FINAL PREMIUM MICRO ENHANCEMENTS
====================================== */

@media (min-width:1024px){

  /* Softer page feel */
  body.single-product{
    background:linear-gradient(#f6f7fb,#f9fafb) !important;
  }

  /* Better focus on product card */
  .woocommerce-product-gallery{
    transition:all .25s ease !important;
  }

  .woocommerce-product-gallery:hover{
    box-shadow:0 10px 28px rgba(0,0,0,.07) !important;
  }

  /* CTA hover feel */
  body.single-product .single_add_to_cart_button{
    transition:all .2s ease !important;
  }

  body.single-product .single_add_to_cart_button:hover{
    transform:translateY(-2px) !important;
  }

  /* Cleaner related cards hover */
  body.single-product .related li.product{
    transition:all .2s ease !important;
  }

  body.single-product .related li.product:hover{
    transform:translateY(-4px) !important;
    box-shadow:0 10px 24px rgba(0,0,0,.08) !important;
  }

}




/* =====================================
   FIX TOP GAP — MOVE RIGHT SIDE UP
===================================== */

@media (min-width:1024px){

  /* Remove extra top spacing from summary */
  body.single-product .woocommerce div.product .summary{
    padding-top:0 !important;
    margin-top:-12px !important;   /* adjust between -6 to -12 if needed */
  }

  /* Remove Astra spacing above product */
  body.single-product .woocommerce{
    margin-top:0 !important;
  }

  body.single-product .ast-container{
    padding-top:0 !important;
  }

}

/* =====================================
   STOP PDP UP-DOWN JUMP (FINAL FIX)
===================================== */

@media (min-width:1024px){

  /* Force both columns to start at top */
  body.single-product .woocommerce div.product{
    align-items:flex-start !important;
  }

  /* Lock gallery and summary to top */
  .woocommerce-product-gallery,
  body.single-product .woocommerce div.product .summary{
    align-self:flex-start !important;
    margin-top:0 !important;
    padding-top:0 !important;
  }

  /* Kill Astra vertical centering wrappers */
  body.single-product .ast-container,
  body.single-product .woocommerce{
    display:block !important;
  }

  /* Remove any invisible spacing nodes */
  body.single-product .woocommerce div.product::before,
  body.single-product .woocommerce div.product::after{
    display:none !important;
    content:none !important;
  }

}


/* =====================================
   PDP TOP ALIGN — REAL FIX (NO JUMP)
===================================== */

@media (min-width:1024px){

  /* Stop Astra from equal-height stretching */
  body.single-product .woocommerce div.product{
    align-items:flex-start !important;
  }

  /* Normalize both card containers */
  .woocommerce-product-gallery,
  body.single-product .woocommerce div.product .summary{
    margin:0 !important;
    padding-top:0 !important;
    align-self:flex-start !important;
  }

  /* Remove visual offset inside summary card */
  body.single-product .woocommerce div.product .summary{
    padding:16px !important;   /* consistent with image card feel */
    box-sizing:border-box !important;
  }

  /* Match image card padding visually */
  .woocommerce-product-gallery{
    padding:16px !important;
  }

  /* Kill Astra spacing wrappers above */
  body.single-product .ast-container,
  body.single-product .woocommerce{
    padding-top:0 !important;
    margin-top:0 !important;
  }

}

/* =========================================
   P24Z PDP — PERMANENT UP/DOWN FIX
========================================= */

@media (min-width:1024px){

  /* Lock master grid */
  .p24zPdp{
    display:grid !important;
    grid-template-columns:560px 1fr !important;
    grid-auto-rows:min-content !important;
    align-items:start !important;
  }

  /* Force all blocks to top */
  .p24zMedia,
  .p24zCard,
  .p24zOptions{
    align-self:start !important;
    margin-top:0 !important;
  }

  /* Prevent image load shift */
  .p24zMedia .woocommerce-product-gallery__wrapper{
    height:460px !important;   /* fixed stage = no reflow */
  }

  /* Kill any hidden spacing from Woo */
  .p24zCard,
  .p24zOptions{
    padding-top:0 !important;
  }

  /* Safety against flex centering */
  .p24zMedia,
  .p24zCard,
  .p24zOptions{
    position:relative !important;
    top:0 !important;
  }

}

/* =========================================
   P24Z HARD LOCK — NO UP / DOWN MOVEMENT
========================================= */

@media (min-width:1024px){

  /* 1. Lock main PDP grid */
  .p24zPdp{
    display:grid !important;
    grid-template-columns:560px 1fr !important;
    column-gap:40px !important;   /* 👈 Add this */
    align-items:start !important;
  }

  /* 2. Force both columns to top */
  .p24zMedia,
  .p24zCard,
  .p24zOptions{
    align-self:start !important;
    margin:0 !important;
    padding-top:0 !important;
  }

  /* 3. HARD LOCK image stage (prevents reflow) */
  .p24zMedia .woocommerce-product-gallery__wrapper{
    height:460px !important;
    min-height:460px !important;
    max-height:460px !important;
  }

  /* 4. Remove Woo flex behavior */
  body.single-product .woocommerce div.product{
    display:block !important;
  }

  /* 5. Remove Astra spacing */
  body.single-product .ast-container{
    padding-top:0 !important;
    margin-top:0 !important;
  }

}
















/* ===== FINAL Mobile Product Image (FORCE) ===== */
@media (max-width: 767px){

  .p24zMedia{
    padding:5px !important;
    border-radius:18px !important;
  }

  .p24zMedia .woocommerce-product-gallery__wrapper{
    height: min(52vw, 320px) !important;
    min-height: unset !important;
    max-height: unset !important;
    border-radius:16px !important;
    overflow:hidden !important;
    display:flex !important;
  }

  .p24zMedia .woocommerce-product-gallery__image,
  .p24zMedia .woocommerce-product-gallery__image a{
    width:100% !important;
    height:100% !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:2px !important;
  }

  .p24zMedia .woocommerce-product-gallery__image img{
    max-width:100% !important;
    max-height:100% !important;
    width:auto !important;
    height:auto !important;
    object-fit:contain !important;
    border-radius:12px !important;
  }

}







@media (max-width: 767px){

  /* Outer card */
  .p24zMedia{
    padding:6px !important;
    border-radius:18px !important;
  }

  /* Force gallery height (85% of screen width, capped) */
  .p24zMedia .woocommerce-product-gallery,
  .p24zMedia .flexslider,
  .p24zMedia .flex-viewport,
  .p24zMedia .woocommerce-product-gallery__wrapper{
    height: min(85vw, 460px) !important;
    max-height: min(85vw, 460px) !important;
    border-radius:16px !important;
    overflow:hidden !important;
    display:flex !important;
    align-items:center !important;
  }

  /* Center slides */
  .p24zMedia .woocommerce-product-gallery__image,
  .p24zMedia .woocommerce-product-gallery__image a{
    width:100% !important;
    height:100% !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:4px !important;
  }

  /* Make image feel big & sharp */
  .p24zMedia .woocommerce-product-gallery__image img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;   /* makes product look big */
    border-radius:12px !important;
  }

}
@media (max-width: 767px){

  /* Force responsive hero height */
  .woocommerce div.product div.images,
  .woocommerce div.product div.images .flexslider,
  .woocommerce div.product div.images .flex-viewport,
  .woocommerce div.product div.images .woocommerce-product-gallery__wrapper{
    height: min(85vw, 460px) !important;
    max-height: min(85vw, 460px) !important;
    min-height: min(85vw, 460px) !important;
    overflow:hidden !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
  }

  /* Slide wrapper */
  .woocommerce div.product div.images .woocommerce-product-gallery__image,
  .woocommerce div.product div.images .woocommerce-product-gallery__image a{
    width:100% !important;
    height:100% !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
  }

  /* Image scaling — big but fully visible */
  .woocommerce div.product div.images img{
    width:100% !important;
    height:100% !important;
    max-width:100% !important;
    max-height:100% !important;
    object-fit:contain !important;
    object-position:center !important;
    display:block !important;
  }

}