/* ================================================================
   WELLMATIC HEALTHCARE — Single Product Page CSS v4
   Covers ALL classes used in product.php:
   pd-*, checkout-drawer, product-buy-btn, cat-filter etc.
   ================================================================ */

/* ── Page wrapper ─────────────────────────────────────────────── */
.product-page { padding: 32px 0 64px; }

/* ── Image Gallery — pd-main-wrap / pd-main-slide ─────────────── */
.pd-main-wrap {
  position: relative;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(11,28,63,.08);
  transition: border-color .25s;
}
.pd-main-wrap:hover { border-color: rgba(201,168,76,.4); }

.pd-main-slide {
  display: none;
  width: 100%; height: 100%;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  padding: 16px;
}
.pd-main-slide.active {
  display: flex;
}
.pd-main-slide img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  transition: transform .4s ease;
  cursor: zoom-in;
}
.pd-main-wrap:hover .pd-main-slide.active img {
  transform: scale(1.05);
}
.pd-main-slide--video { padding: 0; }

/* Thumbnails */
.pd-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.pd-thumb {
  width: 68px; height: 68px;
  border-radius: 8px;
  border: 2px solid #e5e7eb;
  overflow: hidden;
  cursor: pointer;
  background: #f2f4f8;
  transition: border-color .2s;
  flex-shrink: 0;
}
.pd-thumb img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 4px;
}
.pd-thumb.active,
.pd-thumb:hover { border-color: #C9A84C; }
.pd-thumb--video {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b1c3f;
}
.pd-thumb-video-icon i {
  font-size: 1.5rem;
  color: #C9A84C;
}

/* Gallery arrows */
.pd-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.92);
  border: 1.5px solid #e5e7eb;
  border-radius: 50%;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(11,28,63,.1);
  transition: all .2s;
  color: #0b1c3f;
}
.pd-arrow:hover { background: #C9A84C; color: #0b1c3f; border-color: #C9A84C; }
.pd-arrow svg   { width: 18px; height: 18px; }
.pd-arrow--prev { left: 10px; }
.pd-arrow--next { right: 10px; }

/* Out of stock overlay */
.out-of-stock-badge {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  border-radius: 16px;
}
.out-of-stock-badge span {
  background: #6b7280;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 999px;
  letter-spacing: .1em;
}

/* No image fallback */
.pd-no-image {
  width: 100%;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2f4f8;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  color: #9ca3af;
  font-size: .9rem;
  font-weight: 600;
}

/* Share button */
.pd-share-btn {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(255,255,255,.92);
  border: 1.5px solid #e5e7eb;
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 6;
  color: #0b1c3f;
  box-shadow: 0 2px 6px rgba(11,28,63,.08);
  font-size: .9rem;
  transition: all .2s;
}
.pd-share-btn:hover { background: #C9A84C; color: #0b1c3f; border-color: #C9A84C; }

.pd-share-menu {
  position: absolute;
  top: 44px; right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(11,28,63,.14);
  padding: 6px;
  min-width: 190px;
  z-index: 20;
  display: none;
  flex-direction: column;
  gap: 2px;
}
.pd-share-menu.open { display: flex; }
.pd-share-menu a,
.pd-share-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  font-size: .84rem;
  font-weight: 600;
  color: #374151;
  border-radius: 7px;
  transition: background .15s;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
}
.pd-share-menu a:hover,
.pd-share-menu button:hover { background: #fdf7e8; color: #0b1c3f; }

/* ── Product Details Right Column ─────────────────────────────── */
.pd-collection-tag {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #C9A84C;
  margin-bottom: 8px;
}
.pd-collection-tag a { color: inherit; text-decoration: none; }
.pd-collection-tag a:hover { color: #0b1c3f; }

.pd-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 700;
  color: #0b1c3f;
  margin-bottom: 10px;
  line-height: 1.2;
}

/* Variant Pills */
.pd-variant-block { margin-bottom: 14px; }
.pd-section-label {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #6b7280;
  margin-bottom: 8px;
}
.pd-variant-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pd-variant-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.5px solid #d1d5db;
  background: #fff;
  color: #374151;
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  font-family: 'DM Sans','Inter',sans-serif;
  gap: 6px;
}
.pd-variant-btn:hover {
  border-color: #C9A84C;
  color: #a8872e;
  background: #fdf7e8;
}
.pd-variant-btn--active {
  background: #0b1c3f;
  border-color: #0b1c3f;
  color: #fff;
  font-weight: 700;
}
.pd-variant-btn--oos { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.pd-variant-oos-tag {
  font-size: .65rem;
  background: rgba(239,68,68,.12);
  color: #dc2626;
  padding: 1px 6px;
  border-radius: 4px;
}

/* Price Row */
.pd-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.pd-price {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: #0b1c3f;
  line-height: 1;
}
.pd-price-orig {
  font-size: 1rem;
  color: #9ca3af;
  text-decoration: line-through;
}
.pd-discount-badge {
  font-size: .78rem;
  font-weight: 800;
  color: #dc2626;
  background: #fee2e2;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
.pd-tax-note {
  font-size: .8rem;
  color: #6b7280;
  margin-bottom: 12px;
}

/* Divider */
.pd-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 16px 0;
}

/* Description */
.pd-desc {
  font-size: .9rem;
  color: #374151;
  line-height: 1.8;
  margin-bottom: 0;
}

/* Meta Grid */
.pd-section { margin: 14px 0; }
.pd-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pd-meta-item {
  background: #f8f9fc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pd-meta-key {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #9ca3af;
}
.pd-meta-val {
  font-size: .88rem;
  font-weight: 600;
  color: #0b1c3f;
}
.pd-meta-val a { color: #a8872e; text-decoration: none; }
.pd-meta-val a:hover { text-decoration: underline; }

/* ── Buy Box & Action Buttons ──────────────────────────────────── */
.product-buy-box {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  border-radius: 10px;
  font-size: .94rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'DM Sans','Inter',sans-serif;
  border: none;
  transition: all .25s;
  text-decoration: none;
}

/* Add to Cart — Navy outline */
.product-add-cart-btn {
  background: transparent;
  color: #0b1c3f;
  border: 2px solid #0b1c3f !important;
}
.product-add-cart-btn:hover {
  background: #fdf7e8;
  border-color: #C9A84C !important;
  color: #a8872e;
  transform: translateY(-1px);
}

/* Buy Now — Navy fill */
.product-buy-now-btn {
  background: #0b1c3f;
  color: #fff;
  border: 2px solid #0b1c3f !important;
  box-shadow: 0 4px 14px rgba(11,28,63,.2);
}
.product-buy-now-btn:hover {
  background: #C9A84C;
  border-color: #C9A84C !important;
  color: #0b1c3f;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,.35);
}

/* Manual Pay link */
.btn-pay-manual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: .84rem;
  font-weight: 600;
  color: #6b7280;
  background: #f8f9fc;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  transition: all .2s;
  /* HIDDEN by default — manual payment removed for Razorpay-only */
  display: none !important;
}

/* Secure note */
.product-secure-note {
  font-size: .78rem;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: center;
  margin-top: 4px;
}

/* ── Checkout Overlay / Drawer ──────────────────────────────────── */
.checkout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,28,63,.65);
  backdrop-filter: blur(6px);
  z-index: 1050;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.checkout-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.checkout-drawer {
  background: #fff;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 -8px 40px rgba(11,28,63,.2);
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.32,.72,0,1);
  display: flex;
  flex-direction: column;
}
.checkout-overlay.active .checkout-drawer {
  transform: translateY(0);
}

/* Drawer Scrollbar */
.checkout-drawer::-webkit-scrollbar { width: 4px; }
.checkout-drawer::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; }

/* Drawer Head */
.checkout-drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 22px 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #0b1c3f;
  border-radius: 20px 20px 0 0;
  position: sticky;
  top: 0;
  z-index: 2;
}
.checkout-drawer__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}
.checkout-drawer__sub { font-size: .82rem; color: rgba(255,255,255,.65); margin: 0; }
.checkout-drawer__close {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  border-radius: 50%;
  width: 34px; height: 34px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .2s;
  line-height: 1;
  padding: 0;
}
.checkout-drawer__close:hover { background: rgba(255,255,255,.2); }

/* Drawer Body */
.checkout-drawer__body { padding: 18px 22px; flex: 1; }

/* Saved address notice */
.co-saved-addr-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fdf7e8;
  border: 1px solid rgba(201,168,76,.3);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: .82rem;
  color: #a8872e;
  font-weight: 600;
  margin-bottom: 14px;
}
.co-saved-addr-notice i { font-size: .9rem; }
.co-saved-addr-notice button {
  background: none; border: none;
  color: #9ca3af; cursor: pointer;
  padding: 0; font-size: .8rem;
  margin-left: auto;
  transition: color .15s;
}
.co-saved-addr-notice button:hover { color: #dc2626; }

/* Form Fields */
.checkout-field { margin-bottom: 12px; }
.checkout-label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: #0b1c3f;
  margin-bottom: 5px;
}
.checkout-label span { color: #dc2626; }
.checkout-input {
  width: 100%;
  background: #fff;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 13px;
  font-size: .88rem;
  color: #374151;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  font-family: 'DM Sans','Inter',sans-serif;
}
.checkout-input:focus {
  border-color: #C9A84C;
  box-shadow: 0 0 0 3px rgba(201,168,76,.15);
}
.checkout-textarea { resize: vertical; min-height: 80px; }
.checkout-error {
  background: #fee2e2;
  color: #991b1b;
  border-radius: 7px;
  padding: 8px 12px;
  font-size: .82rem;
  font-weight: 600;
}

/* Drawer Footer */
.checkout-drawer__foot {
  padding: 16px 22px 22px;
  border-top: 1px solid #e5e7eb;
  background: #f8f9fc;
  position: sticky;
  bottom: 0;
}
.checkout-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: .9rem;
  color: #374151;
}
.checkout-total strong {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #0b1c3f;
}
.checkout-pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #0b1c3f;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 20px;
  font-size: .96rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  font-family: 'DM Sans','Inter',sans-serif;
  margin-bottom: 8px;
  box-shadow: 0 4px 14px rgba(11,28,63,.18);
}
.checkout-pay-btn:hover {
  background: #C9A84C;
  color: #0b1c3f;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,.35);
}
.checkout-secure {
  font-size: .76rem;
  color: #9ca3af;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0;
}

/* ── Extra Details (below product) ─────────────────────────────── */
.pd-extra-details {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(11,28,63,.06);
}
.pd-extra-details h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  color: #0b1c3f;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #C9A84C;
  display: inline-block;
}
.pd-extra-content {
  font-size: .9rem;
  color: #374151;
  line-height: 1.85;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .pd-meta-grid { grid-template-columns: 1fr; }
  .checkout-drawer { max-width: 100%; border-radius: 18px 18px 0 0; }
  .pd-price { font-size: 1.6rem; }
  .product-buy-btn { font-size: .88rem; padding: 12px 16px; }
}
