/* ============================================================
   RESINFY — Product Detail Page — Luxury Edition
   product.css
   ============================================================ */

/* ── Page wrapper ──────────────────────────────────────────── */
.pdp-main {
  padding-top: 110px;
  min-height: 100vh;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
  padding-bottom: 100px;
}

/* ── Breadcrumb ────────────────────────────────────────────── */
.pdp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--text-muted, #7a6650);
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.pdp-breadcrumb a {
  color: var(--text-muted, #7a6650);
  text-decoration: none;
  transition: color 0.2s;
}
.pdp-breadcrumb a:hover { color: var(--accent, #a07840); }
.pdp-breadcrumb span:last-child { color: var(--text, #1e150a); }

/* ── Main grid ─────────────────────────────────────────────── */
.pdp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
  margin-bottom: 80px;
}

/* ── Visual column ─────────────────────────────────────────── */
.pdp-visual-col {
  position: sticky;
  top: 100px;
}

.pdp-main-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 60px rgba(44,31,15,0.14);
  transition: background 0.5s ease;
}

.pdp-img-blob {
  position: absolute;
  width: 55%;
  height: 55%;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  top: 22%;
  left: 22%;
  filter: blur(36px);
  animation: blobPulse 5s ease-in-out infinite;
}
@keyframes blobPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50%       { transform: scale(1.12); opacity: 0.85; }
}

.pdp-shimmer {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(255,255,255,0.05) 100%);
  pointer-events: none;
}

/* ── Thumbnails ────────────────────────────────────────────── */
.pdp-thumb-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.pdp-thumb {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.pdp-thumb:hover   { transform: translateY(-2px); }
.pdp-thumb.active  { border-color: var(--accent, #a07840); }

/* ── Badge float ───────────────────────────────────────────── */
.pdp-badge-float {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--brown, #2c1f0f);
  color: var(--accent-2, #c9a96e);
  font-family: 'Jost', sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
  z-index: 2;
}

/* ── Info column ───────────────────────────────────────────── */
.pdp-info-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pdp-category {
  font-family: 'Jost', sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent, #a07840);
  margin-bottom: 10px;
  display: block;
}

.pdp-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--text, #1e150a);
  line-height: 1.18;
  margin: 0 0 16px;
}

/* ── Rating ────────────────────────────────────────────────── */
.pdp-rating-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  flex-wrap: wrap;
  font-weight: 300;
}
.pdp-stars         { color: var(--accent, #a07840); font-size: 0.95rem; letter-spacing: 2px; }
.pdp-rating-count  { color: var(--text-muted, #7a6650); }
.pdp-divider-dot   { color: var(--text-muted, #7a6650); opacity: 0.4; }
.pdp-stock         { font-weight: 500; }
.pdp-stock.in-stock { color: #4a7c59; }

/* ── Price block ───────────────────────────────────────────── */
.pdp-price-block {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
  padding: 18px 0;
  border-top: 1px solid rgba(44,31,15,0.08);
  border-bottom: 1px solid rgba(44,31,15,0.08);
  flex-wrap: wrap;
}
.pdp-price {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--accent-3, #8b6a38);
}
.pdp-mrp {
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-muted, #7a6650);
  text-decoration: line-through;
}
.pdp-discount {
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(74,124,89,0.08);
  color: #4a7c59;
  border: 1px solid rgba(74,124,89,0.18);
  padding: 3px 10px;
  border-radius: 2px;
  letter-spacing: 0.05em;
}

/* ── Short desc ────────────────────────────────────────────── */
.pdp-short-desc {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.96rem;
  line-height: 1.8;
  color: var(--text-muted, #7a6650);
  margin-bottom: 24px;
  font-weight: 400;
}

/* ── Qty control ───────────────────────────────────────────── */
.pdp-qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.pdp-qty-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted, #7a6650);
}
.pdp-qty-ctrl {
  display: flex;
  align-items: center;
  border: 1px solid rgba(44,31,15,0.12);
  border-radius: 2px;
  overflow: hidden;
}
.pdp-qty-btn {
  background: var(--bg-2, #ede4d3);
  border: none;
  color: var(--text, #1e150a);
  font-size: 1.1rem;
  width: 38px; height: 38px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.pdp-qty-btn:hover { background: var(--brown, #2c1f0f); color: var(--accent-2, #c9a96e); }
.pdp-qty-val {
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text, #1e150a);
  min-width: 42px;
  text-align: center;
  background: var(--bg-card, #faf6ef);
  height: 38px;
  line-height: 38px;
}

/* ── CTA buttons ───────────────────────────────────────────── */
.pdp-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.pdp-btn-cart {
  padding: 13px 18px;
  border-radius: 2px;
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  border: 1px solid var(--brown, #2c1f0f);
  color: var(--brown, #2c1f0f);
}
.pdp-btn-cart:hover {
  background: var(--brown, #2c1f0f);
  color: var(--accent-2, #c9a96e);
  transform: translateY(-1px);
}
.pdp-btn-buy {
  padding: 13px 18px;
  border-radius: 2px;
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--brown, #2c1f0f);
  border: 1px solid var(--brown, #2c1f0f);
  color: var(--accent-2, #c9a96e);
}
.pdp-btn-buy:hover {
  background: var(--accent, #a07840);
  border-color: var(--accent, #a07840);
  color: var(--bg-card, #faf6ef);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(44,31,15,0.2);
}

/* ── Wishlist ──────────────────────────────────────────────── */
.pdp-wishlist-btn {
  background: none;
  border: 1px solid rgba(44,31,15,0.1);
  border-radius: 2px;
  color: var(--text-muted, #7a6650);
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  padding: 9px 14px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 22px;
  width: 100%;
  text-align: center;
}
.pdp-wishlist-btn:hover,
.pdp-wishlist-btn.wishlisted {
  color: #9b3a3a;
  border-color: rgba(155,58,58,0.25);
  background: rgba(155,58,58,0.04);
}

/* ── Feature pills ─────────────────────────────────────────── */
.pdp-features {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 24px;
}
.pdp-feature-pill {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  padding: 5px 13px;
  border: 1px solid rgba(160,120,64,0.2);
  border-radius: 2px;
  color: var(--text-muted, #7a6650);
  background: transparent;
}

/* ── Guarantee strip ───────────────────────────────────────── */
.pdp-guarantee-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 16px;
  background: var(--bg-2, #ede4d3);
  border: 1px solid rgba(44,31,15,0.07);
  border-radius: 4px;
}
.pdp-guar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--text-muted, #7a6650);
  text-align: center;
}
.pdp-guar-item span:first-child { font-size: 1.1rem; }

/* ── Tabs ──────────────────────────────────────────────────── */
.pdp-tabs-section { margin-bottom: 80px; }

.pdp-tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(44,31,15,0.1);
  margin-bottom: 36px;
}
.pdp-tab {
  background: none;
  border: none;
  border-bottom: 1.5px solid transparent;
  color: var(--text-muted, #7a6650);
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 22px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: -1px;
}
.pdp-tab:hover  { color: var(--text, #1e150a); }
.pdp-tab.active {
  color: var(--accent, #a07840);
  border-bottom-color: var(--accent, #a07840);
}

.pdp-tab-panel { animation: fadeIn 0.25s ease; }
.pdp-tab-panel.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.pdp-long-desc {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.95;
  color: var(--text-muted, #7a6650);
  max-width: 740px;
  font-weight: 400;
}

/* ── Specs table ───────────────────────────────────────────── */
.pdp-specs-table {
  width: 100%;
  max-width: 580px;
  border-collapse: collapse;
}
.pdp-specs-table tr {
  border-bottom: 1px solid rgba(44,31,15,0.07);
}
.pdp-specs-table tr:last-child { border-bottom: none; }
.spec-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--text-muted, #7a6650);
  padding: 12px 14px 12px 0;
  width: 38%;
  vertical-align: top;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.spec-value {
  font-family: 'Jost', sans-serif;
  font-size: 0.84rem;
  font-weight: 300;
  color: var(--text, #1e150a);
  padding: 12px 0;
}

/* ── Shipping tab ──────────────────────────────────────────── */
.pdp-shipping-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 740px;
}
.pdp-ship-card {
  background: var(--bg-2, #ede4d3);
  border: 1px solid rgba(44,31,15,0.07);
  border-radius: 4px;
  padding: 22px;
}
.pdp-ship-icon { font-size: 1.4rem; display: block; margin-bottom: 10px; }
.pdp-ship-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text, #1e150a);
  margin: 0 0 8px;
}
.pdp-ship-card p {
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-muted, #7a6650);
  margin: 0;
}

/* ── Related products ──────────────────────────────────────── */
.pdp-related { margin-top: 20px; }
.pdp-related-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--text, #1e150a);
  margin-bottom: 28px;
}
.pdp-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.pdp-related-card {
  text-decoration: none;
  display: block;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-card, #faf6ef);
  border: 1px solid rgba(44,31,15,0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
}
.pdp-related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 42px rgba(44,31,15,0.1);
  border-color: rgba(160,120,64,0.18);
}
.pdp-related-img {
  width: 100%;
  position: relative;
  padding-bottom: 75%;
  overflow: hidden;
}
.pdp-related-img > * {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.pdp-related-info { padding: 14px 16px; }
.pdp-related-cat {
  font-family: 'Jost', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent, #a07840);
  display: block;
  margin-bottom: 4px;
}
.pdp-related-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text, #1e150a);
  margin: 0 0 8px;
  line-height: 1.35;
}
.pdp-related-price-row {
  display: flex; align-items: baseline; gap: 8px;
}
.pdp-related-price {
  font-family: 'Jost', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent-3, #8b6a38);
}
.pdp-related-mrp {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--text-muted, #7a6650);
  text-decoration: line-through;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .pdp-related-grid { grid-template-columns: repeat(2, 1fr); }
  .pdp-guarantee-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .pdp-main { padding-top: 88px; padding-left: 20px; padding-right: 20px; }
  .pdp-grid { grid-template-columns: 1fr; gap: 32px; }
  .pdp-visual-col { position: static; }
  .pdp-cta-row { grid-template-columns: 1fr; }
  .pdp-related-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pdp-shipping-grid { grid-template-columns: 1fr; }
  .pdp-tab { padding: 10px 12px; font-size: 0.68rem; }
  .pdp-title { font-size: 1.65rem; }
  .pdp-guarantee-strip { grid-template-columns: repeat(2, 1fr); }
  .pdp-thumb { width: 50px; height: 50px; }
}

@media (max-width: 480px) {
  .pdp-related-grid { grid-template-columns: 1fr; }
}
