/* =====================================================
   EP Creations 365 - Product details page layout fixes
   Load AFTER all other css on product-details-premium.html
   ===================================================== */

/* ---- Brand pill: no clipping ---- */
body.product-page .product-buy-panel .product-brand{
  display:inline-flex !important; width:auto !important; max-width:none !important;
  overflow:visible !important; white-space:nowrap !important;
  padding:8px 16px !important; letter-spacing:.14em !important; line-height:1.1 !important;
}

/* ---- Buy panel: one consistent inner padding (28px) ---- */
body.product-page .product-buy-panel .product-info-header{ padding:28px 28px 0 !important; gap:10px !important; }

/* price strip: clean, full width, less empty space */
body.product-page .product-buy-panel .product-info-price{
  margin:18px 0 0 !important; padding:16px 28px !important;
  background:#faf7f0 !important;
  border-top:1px solid rgba(0,0,0,.07) !important; border-bottom:1px solid rgba(0,0,0,.07) !important;
}

/* trust cards: inside the panel, aligned with price and sizes, readable text */
body.product-page .product-buy-panel .product-perks{
  box-sizing:border-box !important; width:100% !important; max-width:100% !important;
  margin:0 !important; padding:16px 28px !important; gap:10px !important;
  display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  border-bottom:1px solid rgba(0,0,0,.07) !important;
}
body.product-page .product-buy-panel .product-perks li{
  box-sizing:border-box !important; min-width:0 !important; margin:0 !important;
  padding:12px 6px !important; font-size:.76rem !important; line-height:1.3 !important;
}
body.product-page .product-buy-panel .product-perks li i{ font-size:1.1rem !important; }

/* sizes + quantity */
body.product-page .product-buy-panel .product-info-form{ padding:20px 28px 4px !important; gap:18px !important; }
body.product-page .product-buy-panel .size-options{ display:flex !important; flex-wrap:wrap !important; gap:10px !important; }
body.product-page .product-buy-panel .size-btn{
  flex:0 0 auto !important; min-width:64px !important; width:auto !important;
  padding:10px 18px !important; border-radius:8px !important;
}

/* purchase block aligned with the rest */
body.product-page .product-buy-panel .product-purchase-block{ padding-left:28px !important; padding-right:28px !important; }

/* ---- About This Piece: full width, two columns, real paragraphs + bullet list ---- */
body.product-page .product-description-section{ padding:36px 40px !important; }
body.product-page .product-description-section__text{
  max-width:none !important; white-space:normal !important;
  display:grid; grid-template-columns:1fr; gap:24px;
}
body.product-page .product-description-section__text.has-features{
  grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:36px; align-items:start;
}
.pd-desc__main p{ margin:0 0 16px; font-size:1rem; line-height:1.85; color:#4b4b4b; }
.pd-desc__main p:last-child{ margin-bottom:0; }
.pd-desc__main h4{
  margin:26px 0 6px; font-family:'Playfair Display',serif; font-size:1.08rem; font-weight:600; color:#0a1f17;
}
.pd-desc__main h4:first-child{ margin-top:0; }

.pd-desc__features{
  background:#fff; border:1px solid rgba(201,162,39,.35); border-radius:14px;
  padding:22px 24px; box-shadow:0 4px 16px rgba(0,0,0,.05);
}
.pd-desc__features h3{
  margin:0 0 14px; font-family:'Playfair Display',serif; font-size:1.15rem; font-weight:600; color:#0a1f17;
}
.pd-desc__features h3:not(:first-child){ margin-top:22px; }
.pd-desc__features ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.pd-desc__features li{
  position:relative; padding-left:26px; font-size:.95rem; line-height:1.5; color:#333;
}
.pd-desc__features li::before{
  content:"\2713"; position:absolute; left:0; top:1px; width:18px; height:18px; border-radius:50%;
  background:#e8f5f0; color:#2d6a5a; font-size:.72rem; font-weight:700;
  display:flex; align-items:center; justify-content:center;
}

/* ---- Return & Exchange highlight cards: readable text on every card ---- */
body.product-page .policy-highlight__value{ color:#fff !important; text-shadow:0 1px 3px rgba(0,0,0,.25); }
body.product-page .policy-highlight__label{ color:rgba(255,255,255,.9) !important; }
body.product-page .policy-highlight:nth-child(2) .policy-highlight__value,
body.product-page .policy-highlight:nth-child(2) .policy-highlight__label{ color:#1a1200 !important; text-shadow:none; }
body.product-page .policy-highlights{ max-width:900px; margin-left:auto; margin-right:auto; }

/* ---- Tablet / mobile ---- */
@media (max-width:991px){
  body.product-page .product-description-section__text.has-features{ grid-template-columns:1fr; gap:22px; }
}
@media (max-width:576px){
  body.product-page .product-buy-panel .product-info-header,
  body.product-page .product-buy-panel .product-info-price,
  body.product-page .product-buy-panel .product-perks,
  body.product-page .product-buy-panel .product-info-form,
  body.product-page .product-buy-panel .product-purchase-block{ padding-left:18px !important; padding-right:18px !important; }
  body.product-page .product-buy-panel .product-perks li{ font-size:.7rem !important; padding:10px 4px !important; }
  body.product-page .product-buy-panel .size-btn{ min-width:56px !important; padding:9px 12px !important; }
  body.product-page .product-description-section{ padding:26px 20px !important; }
  body.product-page .policy-highlights{ grid-template-columns:1fr !important; gap:12px !important; }
}