/* ══════════════════════════════════════════════════════════
   PRODUCT PAGE — IMPROVED CSS
   Refined layout · Better containment · Premium aesthetics
══════════════════════════════════════════════════════════ */

/* ─── IMAGE RULE ─── */
.ph-page img:not(.ph-thumb):not(.ph-main-image img):not(.ph-sticky-product-thumb):not(.ph-bnpl-logo):not(.ph-related-img) {
  max-width: 100%;
}

/* ─── CURRENCY / PRICE ICONS ─── */
.ph-currency-icon,
.ph-buybox-total img,
.ph-sticky-price img {
  height: 18px !important;
  width: auto !important;
  max-height: 18px !important;
  max-width: 30px !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

/* ══════════════════════════════════════════════════════════
   DESIGN TOKENS
══════════════════════════════════════════════════════════ */
:root {
  --ink:           #0C0C0A;
  --ink-soft:      #38342F;
  --stone:         #7D7770;
  --mist:          #BEB9B2;
  --border:        #E8E3DC;
  --border-focus:  #C96B0A;
  --paper:         #F9F7F4;
  --white:         #FFFFFF;

  --amber:         #C96B0A;
  --amber-glow:    #E07A0D;
  --amber-pale:    #FEF3E2;
  --amber-deep:    #A35508;

  --green:         #1A6B3C;
  --green-pale:    #E6F4EE;
  --red:           #B91C1C;

  --radius-xs:  4px;
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  22px;
  --radius-xl:  32px;

  --shadow-xs:  0 1px 2px  rgba(14,14,12,.05);
  --shadow-sm:  0 2px 6px  rgba(14,14,12,.07);
  --shadow-md:  0 6px 20px rgba(14,14,12,.09);
  --shadow-lg:  0 16px 48px rgba(14,14,12,.13);
  --shadow-xl:  0 32px 80px rgba(14,14,12,.16);

  --ease-out:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-display: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ══════════════════════════════════════════════════════════
   PAGE SHELL
══════════════════════════════════════════════════════════ */
.ph-page { max-width: 1600px; margin: 0 auto; padding: 0 32px; }

.ph-breadcrumb {
  padding: 20px 0 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--stone);
  letter-spacing: 0.025em;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ph-breadcrumb a { color: var(--stone); text-decoration: none; transition: color 0.18s; }
.ph-breadcrumb a:hover { color: var(--amber); }

/* ══════════════════════════════════════════════════════════
   PRODUCT GRID
══════════════════════════════════════════════════════════ */
.ph-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 360px;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  margin-bottom: 40px;
  border: 1px solid var(--border);
}

/* ══════════════════════════════════════════════════════════
   TOP NAV BAR
══════════════════════════════════════════════════════════ */
.ph-top-nav-bar {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 80px; left: 0; right: 0;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transform: translateY(-100%);
  transition: transform 0.35s var(--ease-out);
  display: none;
}
.ph-top-nav-bar.visible { transform: translateY(0); display: block; }

.ph-top-nav-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 10px 32px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  align-items: center;
}
.ph-top-nav-inner::-webkit-scrollbar { display: none; }

.ph-top-nav-link {
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  border-radius: 50px;
  background: transparent;
  border: 1.5px solid var(--border);
  display: inline-block;
  line-height: 1.5;
}
.ph-top-nav-link:hover { color: var(--ink); border-color: var(--mist); background: var(--paper); }
.ph-top-nav-link.active {
  color: var(--white);
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: 0 4px 12px rgba(201,107,10,0.3);
}

/* ══════════════════════════════════════════════════════════
   GALLERY COLUMN
══════════════════════════════════════════════════════════ */
.ph-gallery {
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 130px;
  align-self: start;
}

/* ─── MAIN IMAGE — FIXED ─── */
.ph-main-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  min-height: 480px;
  max-height: 560px;
  overflow: visible;
  background: var(--white);
  cursor: zoom-in;
}

.ph-main-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.025) 100%);
  pointer-events: none;
}

.ph-main-image img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.4s var(--ease-out);
  will-change: transform;
}
.ph-main-image:hover img { transform: scale(1.04); }

/* ─── BADGES ─── */
.ph-badge-featured {
  position: absolute;
  top: 18px; left: 18px;
  background: var(--ink);
  color: var(--white);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  z-index: 10;
}

.ph-badge-sale {
  position: absolute;
  top: 18px; right: 18px;
  background: var(--amber);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(201,107,10,0.4);
  animation: badgePop 0.4s var(--ease-spring) both;
}

@keyframes badgePop {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* ─── THUMBNAILS ─── */
.ph-thumbs {
  display: flex;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  overflow-x: auto;
  background: var(--paper);
}
.ph-thumbs::-webkit-scrollbar       { height: 3px; }
.ph-thumbs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.ph-thumb {
  width: 68px; height: 68px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  object-fit: contain;
  background: var(--white);
  padding: 6px;
  transition: all 0.2s;
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}
.ph-thumb:hover  { border-color: var(--mist); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.ph-thumb.active { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(201,107,10,0.15); }

/* ─── ZOOM ─── */
.ph-zoom-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.94);
  z-index: 2147483647 !important;
  cursor: zoom-out;
  animation: fadeIn 0.2s ease;
}
.ph-zoom-overlay.active { display: flex; align-items: center; justify-content: center; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.ph-zoom-container {
  position: relative;
  max-width: 90%; max-height: 90%;
  overflow: hidden;
  z-index: 2147483647 !important;
}

.ph-zoom-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.3s ease-out;
}

.ph-zoom-close {
  position: fixed !important;
  top: 20px !important; right: 28px !important;
  font-size: 32px;
  color: white;
  cursor: pointer;
  z-index: 2147483647 !important;
  background: rgba(255,255,255,0.12);
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s;
  user-select: none;
  backdrop-filter: blur(4px);
}
.ph-zoom-close:hover { background: rgba(255,255,255,0.22); }

.ph-zoom-hint {
  position: fixed !important;
  bottom: 28px !important;
  left: 50% !important;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  font-weight: 600;
  background: rgba(255,255,255,0.1);
  padding: 8px 20px;
  border-radius: 30px;
  letter-spacing: 0.4px;
  z-index: 2147483647 !important;
  backdrop-filter: blur(4px);
}

/* ══════════════════════════════════════════════════════════
   INFO COLUMN
══════════════════════════════════════════════════════════ */
.ph-info {
  padding: 36px 32px;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  max-height: 700px;
  min-width: 0;
  scroll-behavior: smooth;
}

.ph-brand {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
  display: inline-block;
  text-decoration: none;
  transition: color 0.15s;
}
.ph-brand:hover { color: var(--amber-deep); }

.ph-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.28;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.ph-sku { font-size: 11px; font-weight: 500; color: var(--stone); margin-bottom: 16px; letter-spacing: 0.05em; }

.ph-rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.ph-stars        { color: #F59E0B; font-size: 12px; letter-spacing: 1.5px; }
.ph-rating-num   { font-size: 13px; font-weight: 700; color: var(--ink); }
.ph-rating-count { font-size: 12px; color: var(--stone); }

.ph-price-block { margin-bottom: 24px; }

.ph-price-main {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  margin-bottom: 4px;
}

.ph-currency-icon {
  height: 18px !important;
  width: auto !important;
  max-height: 18px !important;
  max-width: 28px !important;
  opacity: 0.75;
  margin-bottom: -2px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: baseline;
}

.ph-price-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.ph-vat-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--stone);
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 20px;
  margin-left: auto;
}

.ph-price-compare { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.ph-price-old     { font-size: 14px; font-weight: 500; color: var(--mist); text-decoration: line-through; }
.ph-discount-pill { background: #FEE2E2; color: var(--red); font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 20px; }

.ph-options-block { margin-bottom: 22px; }

.ph-options-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ph-options-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.ph-var-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }

.ph-var-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  min-width: 68px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ph-select {
  flex: 1;
  appearance: none;
  -webkit-appearance: none;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23857F78' d='M6 8L2 4h8z'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 36px 10px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ph-select:hover { border-color: var(--mist); }
.ph-select:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(201,107,10,0.12); }

.ph-qty-cart-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.ph-qty-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
  height: 46px;
  transition: border-color 0.2s;
}
.ph-qty-wrap:focus-within { border-color: var(--amber); }

.ph-qty-btn {
  width: 42px; height: 100%;
  border: none;
  background: var(--paper);
  font-size: 18px;
  font-weight: 300;
  color: var(--stone);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ph-qty-btn:hover { background: var(--border); color: var(--ink); }

.ph-qty-input {
  width: 52px; height: 100%;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  background: var(--white);
  outline: none;
}
.ph-qty-input::-webkit-inner-spin-button,
.ph-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

.ph-atc-btn {
  flex: 1;
  height: 46px;
  border: none;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.ph-atc-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--amber);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
.ph-atc-btn span { position: relative; z-index: 1; }
.ph-atc-btn:not(:disabled):hover::before { transform: translateX(0); }
.ph-atc-btn:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(14,14,12,0.22); }
.ph-atc-btn:disabled  { background: var(--mist); cursor: not-allowed; }
.ph-atc-btn.success   { background: var(--green) !important; }
.ph-atc-btn.success::before { display: none; }

/* ══════════════════════════════════════════════════════════
   GET PRICE (dark widget)
══════════════════════════════════════════════════════════ */
.ph-get-price-section {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1a1814;
  border: 1.5px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 10px 10px 10px 18px;
  box-shadow: 0 0 0 1px rgba(232,201,122,.07), 0 8px 32px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
  width: fit-content;
  margin-top: 0;
  border-top: none;
}
.ph-qty-wrap-price { display: flex; align-items: center; gap: 2px; }
.ph-qty-label { font-family: 'Syne', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #7a7268; white-space: nowrap; margin-right: 4px; }
.ph-qty-btn-price { width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(255,255,255,.07); background: #272420; color: #e8c97a; font-size: 18px; font-weight: 300; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s, border-color .15s, transform .1s; flex-shrink: 0; }
.ph-qty-btn-price:hover  { background: #302c28; border-color: rgba(232,201,122,.2); }
.ph-qty-btn-price:active { transform: scale(.92); background: #3a3530; }
.ph-qty-input-price { width: 44px; height: 34px; text-align: center; border: none; outline: none; background: transparent; font-family: 'Syne', sans-serif; font-size: 17px; font-weight: 700; color: #f2ede6; border-radius: 10px; -moz-appearance: textfield; }
.ph-qty-input-price::-webkit-inner-spin-button,
.ph-qty-input-price::-webkit-outer-spin-button { -webkit-appearance: none; }
.ph-divider { width: 1.5px; height: 28px; background: rgba(255,255,255,.1); border-radius: 2px; flex-shrink: 0; margin: 0 4px; }

.ph-price-whatsapp-btn { display: flex; align-items: center; gap: 9px; padding: 0 22px; height: 46px; border-radius: 13px; border: none; cursor: pointer; font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: .03em; color: #fff; background: linear-gradient(135deg, #25D366 0%, #1aaa52 100%); box-shadow: 0 4px 20px rgba(37,211,102,.4), 0 0 0 1px rgba(37,211,102,.2), inset 0 1px 0 rgba(255,255,255,.15); transition: box-shadow .2s, transform .15s; white-space: nowrap; }
.ph-price-whatsapp-btn:hover { box-shadow: 0 6px 28px rgba(37,211,102,.55), 0 0 0 1px rgba(37,211,102,.35), inset 0 1px 0 rgba(255,255,255,.2); transform: translateY(-1px); }
.ph-price-whatsapp-btn:active { transform: translateY(0) scale(.97); }
.ph-price-whatsapp-btn:hover svg { animation: waPulse .4s ease; }
.ph-price-whatsapp-btn svg { flex-shrink: 0; }

@keyframes waPulse { 0% { transform: scale(1); } 40% { transform: scale(1.2); } 100% { transform: scale(1); } }

/* ══════════════════════════════════════════════════════════
   GET PRICE (buybox / light)
══════════════════════════════════════════════════════════ */
.ph-get-price-section-buybox { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid #e4ddf2; border-radius: 13px; padding: 6px 6px 6px 13px; box-shadow: 0 2px 14px rgba(100,70,180,.09), 0 1px 3px rgba(100,70,180,.05); width: fit-content; }
.ph-qty-wrap-price-buybox { display: flex; align-items: center; gap: 1px; }
.ph-qty-label-buybox { font-family: 'Syne', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #a89fc2; white-space: nowrap; margin-right: 2px; }
.ph-qty-btn-price-buybox { width: 28px; height: 28px; border-radius: 8px; border: none; background: #f4f1fb; color: #7c5cbf; font-size: 17px; font-weight: 400; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s, transform .1s; flex-shrink: 0; }
.ph-qty-btn-price-buybox:hover  { background: #ece7f7; }
.ph-qty-btn-price-buybox:active { transform: scale(.91); }
.ph-qty-input-price-buybox { width: 36px; height: 28px; text-align: center; border: none; outline: none; background: transparent; font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 700; color: #2d2540; -moz-appearance: textfield; }
.ph-qty-input-price-buybox::-webkit-outer-spin-button,
.ph-qty-input-price-buybox::-webkit-inner-spin-button { -webkit-appearance: none; }
.ph-divider-buybox { width: 1px; height: 22px; background: #ede8f5; border-radius: 2px; flex-shrink: 0; margin: 0 2px; }
.ph-price-whatsapp-btn-buybox { display: flex; align-items: center; gap: 7px; padding: 0 15px; height: 38px; border-radius: 9px; border: none; cursor: pointer; font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: #fff; background: linear-gradient(135deg, #25D366 0%, #1aaa52 100%); box-shadow: 0 3px 12px rgba(37,211,102,.28); transition: box-shadow .2s, transform .15s; white-space: nowrap; }
.ph-price-whatsapp-btn-buybox:hover  { box-shadow: 0 5px 16px rgba(37,211,102,.38); transform: translateY(-1px); }
.ph-price-whatsapp-btn-buybox:active { transform: scale(.96); box-shadow: 0 2px 8px rgba(37,211,102,.2); }
.ph-price-whatsapp-btn-buybox:hover svg { animation: waPulse .4s ease; }
.ph-price-whatsapp-btn-buybox svg { flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════
   DELIVERY OPTIONS
══════════════════════════════════════════════════════════ */
.ph-delivery-options { margin: 22px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.ph-delivery-card { border: 1.5px solid var(--border); border-radius: var(--radius-md); overflow: hidden; cursor: pointer; transition: all 0.22s; position: relative; background: var(--white); }
.ph-delivery-card:hover,
.ph-delivery-card.selected { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(201,107,10,0.1), var(--shadow-sm); }
.ph-delivery-card.selected::after { content: '✓'; position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; background: var(--amber); color: white; font-size: 10px; font-weight: 800; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

.ph-delivery-header { padding: 10px 14px; display: flex; align-items: center; justify-content: center; background: var(--white); }
.ph-delivery-header img { height: 28px; }
.ph-delivery-body { padding: 8px 14px; display: flex; justify-content: space-between; align-items: center; background: var(--paper); border-top: 1px solid var(--border); }
.ph-delivery-label { font-size: 11px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.ph-delivery-sub   { font-size: 10px; color: var(--stone); }
.ph-delivery-price { font-size: 14px; font-weight: 800; color: var(--ink); text-align: right; }

.ph-free-contact { display: flex; align-items: center; justify-content: space-between; background: var(--green-pale); border: 1px solid #A7D9BB; border-radius: var(--radius-md); padding: 14px 18px; margin: 18px 0; gap: 12px; }
.ph-free-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ph-free-icon { width: 38px; height: 38px; background: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); flex-shrink: 0; }
.ph-free-icon svg { width: 18px; height: 18px; color: var(--green); }
.ph-free-text { min-width: 0; }
.ph-free-text strong { font-size: 13px; font-weight: 700; color: var(--green); display: block; }
.ph-free-text span   { font-size: 11px; color: #3A8C5C; }
.ph-contact-btns { display: flex; gap: 6px; }
.ph-contact-btn { width: 38px; height: 38px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; text-decoration: none; }
.ph-contact-btn:hover { border-color: var(--amber); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ph-contact-btn svg { width: 18px; height: 18px; }

.ph-highlights { font-size: 13px; color: var(--ink-soft); line-height: 1.75; padding-top: 18px; border-top: 1px solid var(--border); margin-top: 6px; }
.ph-highlights-label { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone); margin-bottom: 10px; }

/* ══════════════════════════════════════════════════════════
   TRUST BADGES — SINGLE HORIZONTAL LINE
══════════════════════════════════════════════════════════ */
.ph-trust {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0 !important;
  padding: 14px 0 !important;
  margin-top: 8px !important;
  background: transparent !important;
  border-radius: 0 !important;
  border: none !important;
  border-top: 1px solid var(--border) !important;
  grid-template-columns: unset !important;
}

.ph-trust-item {
  flex: 1 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 7px !important;
  padding: 8px 6px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: var(--stone) !important;
  background: transparent !important;
  border-radius: 0 !important;
  width: auto !important;
  border-right: 1px solid var(--border) !important;
}

.ph-trust-item:last-child { border-right: none !important; }

.ph-trust-item svg {
  width: 15px !important;
  height: 15px !important;
  flex-shrink: 0 !important;
  color: var(--amber) !important;
  opacity: 1 !important;
  margin-bottom: 0 !important;
}

/* Enforce single-line on ALL screen sizes */
@media (max-width: 1200px) {
  .ph-trust {
    flex-direction: row !important;
    background: transparent !important;
    border-radius: 0 !important;
    border-top: 1px solid var(--border) !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    padding: 14px 0 !important;
  }
  .ph-trust-item {
    flex-direction: row !important;
    justify-content: center !important;
    text-align: center !important;
    color: var(--stone) !important;
    width: auto !important;
    font-size: 11px !important;
    gap: 7px !important;
  }
  .ph-trust-item svg { width: 15px !important; height: 15px !important; margin-bottom: 0 !important; }
}

/* Desktop: hide in info column — show only in buybox */
@media (min-width: 1201px) {
  .ph-info .ph-trust { display: none !important; }
}

/* ══════════════════════════════════════════════════════════
   DOCUMENTS (COMPACT)
══════════════════════════════════════════════════════════ */
.ph-docs-compact { margin: 28px 0 0; padding: 24px 0 0; border-top: 1px solid var(--border); }
.ph-docs-compact-title { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.ph-docs-compact-list  { display: flex; flex-direction: column; gap: 8px; }
.ph-doc-pill { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--white); font-size: 13px; font-weight: 600; color: var(--ink-soft); cursor: pointer; transition: all 0.22s ease; width: 100%; }
.ph-doc-pill:hover { border-color: var(--amber); background: var(--amber-pale); color: var(--ink); box-shadow: 0 6px 18px rgba(14,14,12,0.07); transform: translateY(-2px); }
.ph-doc-pill:active { transform: translateY(0); }
.ph-doc-pill svg { width: 18px; height: 18px; flex-shrink: 0; }
.ph-doc-pill.datasheet svg { color: #3B82F6; }
.ph-doc-pill.safety svg    { color: #F59E0B; }
.ph-doc-pill.method svg    { color: #10B981; }

/* ══════════════════════════════════════════════════════════
   BUY BOX
══════════════════════════════════════════════════════════ */
.ph-buybox { padding: 36px 26px; display: flex; flex-direction: column; gap: 18px; background: var(--paper); border-left: 1px solid var(--border); position: sticky; top: 0; align-self: start; }
.ph-buybox-price-label { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); margin-bottom: 2px; }
.ph-buybox-total { font-family: var(--font-display); font-size: 34px; font-weight: 800; color: var(--ink); letter-spacing: -0.04em; display: flex; align-items: center; gap: 6px; line-height: 1; }
.ph-buybox-total img { height: 18px !important; width: auto !important; max-height: 18px !important; max-width: 24px !important; flex-shrink: 0; }
.ph-buybox-divider { height: 1px; background: var(--border); }

.ph-sidebar-qty { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--white); height: 48px; transition: border-color 0.2s; }
.ph-sidebar-qty:focus-within { border-color: var(--amber); }
.ph-sidebar-qty-btn { width: 46px; height: 100%; border: none; background: var(--paper); font-size: 20px; font-weight: 300; color: var(--stone); cursor: pointer; transition: all 0.2s; }
.ph-sidebar-qty-btn:hover { background: var(--border); color: var(--ink); }
.ph-sidebar-qty-input { flex: 1; height: 100%; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); text-align: center; font-family: var(--font-body); font-size: 16px; font-weight: 700; color: var(--ink); background: var(--white); outline: none; }
.ph-sidebar-qty-input::-webkit-inner-spin-button,
.ph-sidebar-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

.ph-sidebar-atc { width: 100%; padding: 15px; background: var(--amber); color: var(--white); border: none; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: all 0.25s; }
.ph-sidebar-atc:hover:not(:disabled) { background: var(--amber-glow); transform: translateY(-1px); box-shadow: 0 10px 28px rgba(201,107,10,0.32); }
.ph-sidebar-atc:disabled { background: var(--mist); cursor: not-allowed; }

.ph-sidebar-buy { width: 100%; padding: 15px; background: var(--ink); color: var(--white); border: none; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: all 0.25s; }
.ph-sidebar-buy:hover { background: var(--ink-soft); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.ph-seller { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--white); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.ph-seller-icon { width: 38px; height: 38px; background: var(--border); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ph-seller-icon svg { width: 18px; height: 18px; color: var(--stone); }
.ph-seller-sub  { font-size: 10px; color: var(--stone); }
.ph-seller-name { font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; display: block; }

.ph-bnpl-title { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); margin-bottom: 8px; }
.ph-bnpl-cards { display: flex; flex-direction: column; gap: 8px; }
.ph-bnpl-card  { border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; cursor: pointer; transition: all 0.2s; background: var(--white); }
.ph-bnpl-card:hover { border-color: var(--mist); box-shadow: var(--shadow-sm); }
.ph-bnpl-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; gap: 8px; min-width: 0; }
.ph-bnpl-logo   { height: 20px; width: auto; max-width: 65px; max-height: 20px !important; object-fit: contain; flex-shrink: 0; }
.ph-bnpl-amount { font-size: 12px; font-weight: 800; color: var(--ink); line-height: 1; white-space: nowrap; }
.ph-bnpl-per    { font-size: 9px; color: var(--stone); font-weight: 500; }
.ph-bnpl-dots   { display: flex; align-items: center; gap: 3px; margin-bottom: 4px; }
.ph-dot         { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.ph-dot-line    { flex: 1; height: 2px; background: var(--border); border-radius: 2px; }
.ph-bnpl-timeline { display: flex; justify-content: space-between; font-size: 9px; font-weight: 700; color: var(--ink-soft); }

/* ══════════════════════════════════════════════════════════
   SEO HIDDEN
══════════════════════════════════════════════════════════ */
.ph-seo-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; pointer-events: none; }

/* ══════════════════════════════════════════════════════════
   TABS SECTION
══════════════════════════════════════════════════════════ */
.ph-tabs-section { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--border); overflow: hidden; margin: 0 auto 40px; scroll-margin-top: 160px; max-width: 1600px; width: 100%; }
.ph-tabs-nav { display: flex; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; background: var(--paper); }
.ph-tabs-nav::-webkit-scrollbar { display: none; }
.ph-tab-link { padding: 16px 28px; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); cursor: pointer; border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: all 0.2s; user-select: none; }
.ph-tab-link:hover  { color: var(--ink); background: rgba(201,107,10,0.03); }
.ph-tab-link.active { color: var(--amber); border-bottom-color: var(--amber); background: var(--white); }
.ph-tab-pane { display: none; padding: 36px 40px; font-size: 14px; line-height: 1.8; color: var(--ink-soft); }
.ph-tab-pane.active { display: block; }
.ph-tab-pane > h2:first-child { display: none; }

.ph-specs-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ph-specs-table tr { border-bottom: 1px solid var(--border); }
.ph-specs-table tr:last-child { border-bottom: none; }
.ph-specs-table tr:hover td,
.ph-specs-table tr:hover th { background: var(--amber-pale); }
.ph-specs-table th { text-align: left; padding: 13px 18px; background: var(--paper); font-weight: 700; color: var(--ink); width: 40%; font-size: 12px; }
.ph-specs-table td { padding: 13px 18px; color: var(--ink-soft); }

.ph-feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-top: 10px; }
.ph-feature-block { display: flex; align-items: flex-start; gap: 12px; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; transition: all 0.2s; }
.ph-feature-block:hover { border-color: var(--amber); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.ph-feature-block-icon { font-size: 22px; flex-shrink: 0; line-height: 1; }
.ph-feature-block-text { font-size: 13px; font-weight: 500; color: var(--ink-soft); line-height: 1.5; }

/* ══════════════════════════════════════════════════════════
   RELATED PRODUCTS CAROUSEL
══════════════════════════════════════════════════════════ */
.ph-related-section { margin: 0 auto 40px; padding: 28px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--border); overflow: hidden; max-width: 1600px; width: 100%; }
.ph-related-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.ph-related-header h2 { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -0.015em; margin: 0; }
.ph-related-nav { display: flex; align-items: center; gap: 8px; }
.ph-related-nav-btn { width: 36px; height: 36px; border: 1.5px solid var(--border); border-radius: 50%; background: var(--white); color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; flex-shrink: 0; }
.ph-related-nav-btn:hover:not(:disabled) { border-color: var(--amber); background: var(--amber-pale); color: var(--amber); transform: scale(1.05); }
.ph-related-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.ph-related-nav-btn svg { width: 16px; height: 16px; }
.ph-related-counter { font-size: 12px; font-weight: 600; color: var(--stone); white-space: nowrap; }
.ph-related-carousel-wrap { overflow: hidden; position: relative; padding: 4px 2px; }
.ph-related-track { display: flex; gap: 14px; transition: transform 0.4s var(--ease-out); will-change: transform; }
.ph-related-card { flex: 0 0 calc((100% - 70px) / 6); min-width: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; transition: all 0.22s; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.ph-related-card:hover { box-shadow: var(--shadow-md); border-color: var(--amber); transform: translateY(-3px); }
.ph-related-img-wrap { aspect-ratio: 1; overflow: hidden; background: var(--paper); display: flex; align-items: center; justify-content: center; padding: 14px; }
.ph-related-img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s ease; }
.ph-related-card:hover .ph-related-img { transform: scale(1.04); }
.ph-related-card-body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.ph-related-card-brand { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); }
.ph-related-card-title { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ph-related-card-price { margin-top: auto; font-family: var(--font-display); font-size: 15px; font-weight: 800; color: var(--amber); }
.ph-related-card-atc { display: block; width: 100%; margin-top: 8px; padding: 8px; background: var(--ink); color: var(--white); border: none; border-radius: var(--radius-xs); font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: background 0.2s; text-align: center; text-decoration: none; }
.ph-related-card-atc:hover { background: var(--amber); }

/* ══════════════════════════════════════════════════════════
   STICKY BOTTOM BAR
══════════════════════════════════════════════════════════ */
.ph-sticky-bottom { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(255,255,255,0.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--border); box-shadow: 0 -6px 24px rgba(14,14,12,0.1); z-index: 1000; display: none; transform: translateY(100%); transition: transform 0.3s var(--ease-out); }
.ph-sticky-bottom.visible { transform: translateY(0); }
.ph-sticky-bottom-inner { max-width: 1600px; margin: 0 auto; padding: 12px 32px; padding-bottom: max(12px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 16px; }
.ph-sticky-product-thumb { width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--border); object-fit: contain; background: var(--paper); padding: 3px; flex-shrink: 0; }
.ph-sticky-name  { font-size: 12px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 300px; }
.ph-sticky-price { font-size: 16px; font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: 3px; }
.ph-sticky-price img { height: 12px; }
.ph-sticky-atc { margin-left: auto; padding: 12px 24px; background: var(--amber); color: var(--white); border: none; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; white-space: nowrap; transition: all 0.25s; }
.ph-sticky-atc:hover { background: var(--amber-glow); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(201,107,10,0.35); }

/* ══════════════════════════════════════════════════════════
   DELIVERY MODAL
══════════════════════════════════════════════════════════ */
.ph-delivery-info-btn { all: unset; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink-soft); transition: color 0.2s; }
.ph-delivery-info-btn:hover { color: var(--amber); }
.ph-delivery-info-btn svg { width: 16px; height: 16px; stroke: currentColor; }

.ph-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.48); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 9999; padding: 20px; transition: opacity 0.2s ease; }
.ph-modal-overlay.hidden { display: none; opacity: 0; pointer-events: none; }
.ph-modal-box { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); max-width: 500px; width: 100%; overflow: hidden; display: flex; flex-direction: column; max-height: 90vh; overflow-y: auto; animation: modalSlideUp 0.25s var(--ease-out) both; }
@keyframes modalSlideUp { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.ph-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 24px 28px; border-bottom: 1px solid var(--border); }
.ph-modal-header h3 { margin: 0; font-size: 18px; font-weight: 700; color: var(--ink); }
.ph-modal-close { all: unset; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 24px; color: var(--stone); transition: color 0.2s; border-radius: 50%; }
.ph-modal-close:hover { color: var(--ink); background: var(--paper); }
.ph-modal-content { padding: 24px 28px; flex: 1; overflow-y: auto; }
.ph-modal-content p  { margin: 0 0 12px 0; font-size: 14px; line-height: 1.65; color: var(--ink); }
.ph-modal-content ul { margin: 12px 0 0 20px; padding: 0; list-style: disc; }
.ph-modal-content li { margin: 8px 0; font-size: 14px; line-height: 1.65; color: var(--ink); }
.ph-modal-footer { padding: 20px 28px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 12px; background: var(--paper); }
.ph-modal-btn { padding: 10px 26px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; border: none; border-radius: var(--radius-sm); cursor: pointer; background: var(--amber); color: var(--white); transition: background 0.2s, transform 0.15s; }
.ph-modal-btn:hover { background: var(--amber-glow); transform: translateY(-1px); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .ph-product-grid { grid-template-columns: 1fr 1fr; }
  .ph-buybox { display: none; }
  .ph-related-card { flex: 0 0 calc((100% - 42px) / 4); }
}

@media (max-width: 1024px) {
  .ph-related-card { flex: 0 0 calc((100% - 28px) / 3); }
}

@media (max-width: 768px) {
  .ph-page { padding: 0 16px; }

  .ph-product-grid { display: flex !important; flex-direction: column !important; box-shadow: none !important; border-radius: 0 !important; border: none !important; }

  .ph-gallery { border-right: none; border-bottom: 1px solid var(--border); position: static; }

  /* ─── IMAGE FIX MOBILE ─── */
  .ph-main-image {
    min-height: 300px !important;
    max-height: 360px !important;
    padding: 28px !important;
    overflow: visible !important;
  }

  .ph-main-image img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
  }

  .ph-info { padding: 24px 18px; max-height: none; border-right: none; }

  .ph-title     { font-size: 20px !important; }
  .ph-price-num { font-size: 30px !important; }

  .ph-qty-cart-row { flex-direction: column !important; gap: 10px !important; }
  .ph-qty-wrap, .ph-atc-btn, .ph-sidebar-atc, .ph-sidebar-buy { width: 100% !important; height: 52px !important; font-size: 13px !important; }
  .ph-delivery-options { grid-template-columns: 1fr !important; gap: 10px !important; }

  .ph-specs-table { display: block; overflow-x: auto; white-space: nowrap; }
  .ph-specs-table th { width: 35% !important; min-width: 100px; font-size: 12px; }

  .ph-sticky-bottom { display: block !important; }
  .ph-sticky-bottom-inner { padding: 12px 16px; }
  .ph-sticky-name { max-width: 150px; }

  .ph-tab-pane { padding: 20px 18px; }
  .ph-related-card { flex: 0 0 calc((100% - 14px) / 2); }

  .ph-zoom-close { top: 10px !important; right: 12px !important; width: 44px; height: 44px; font-size: 28px; }
  .ph-zoom-hint  { font-size: 11px; padding: 6px 16px; bottom: 18px !important; }

  .ph-top-nav-bar   { top: 56px; }
  .ph-top-nav-inner { padding: 10px 16px; gap: 6px; }
  .ph-top-nav-link  { padding: 7px 16px; font-size: 11px; }
}

@media (max-width: 480px) {
  .ph-related-card { flex: 0 0 100%; }
  .ph-tab-pane     { padding: 16px; }
  .ph-tabs-section, .ph-related-section { border-radius: var(--radius-md); }
  .ph-thumbs { gap: 6px; padding: 12px 14px; }
  .ph-thumb  { width: 58px; height: 58px; }
  .ph-modal-box { border-radius: var(--radius-md); }
  .ph-modal-header, .ph-modal-content, .ph-modal-footer { padding: 16px; }
}

@media (max-width: 640px) {
  .ph-modal-overlay   { padding: 14px; }
  .ph-modal-box       { max-height: 88vh; }
  .ph-modal-header h3 { font-size: 16px; }
}
