
/* ==========================================================================
   ASTRO VASTU SETU — Product Details Page
   File: assets/css/product-details.css
========================================================================== */

.product-detail-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 38px 5%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  color: var(--text, #29231f);
}

.pd-gallery,
.pd-info {
  min-width: 0;
}

.pd-main-image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 18px;
  background: #f8f5ef;
  border: 1px solid var(--border-light, #e8e1d7);
}

.pd-main-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
}

.pd-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 7px 12px;
  background: #66110b;
  color: #fff;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
}

.pd-gallery-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: #66110b;
  font-size: 27px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
}

.pd-prev { left: 12px; }
.pd-next { right: 12px; }

.pd-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.pd-thumbnail {
  width: 70px;
  height: 70px;
  padding: 3px;
  border: 1px solid var(--border-light, #e8e1d7);
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
}

.pd-thumbnail.active {
  border: 2px solid #00674f;
}

.pd-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pd-trust-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 0;
  color: var(--text-light, #756e66);
  font-size: 12px;
}

.pd-eyebrow,
.pd-section-heading > span {
  color: #00674f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
}

.pd-title {
  margin: 8px 0 12px;
  color: var(--heading, #30231d);
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.pd-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 18px;
  color: var(--text-light, #756e66);
  font-size: 13px;
}

.pd-stars {
  color: #cd9933;
  letter-spacing: 2px;
  font-size: 17px;
}

.pd-price-row,
.pd-related-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.pd-price {
  color: #66110b;
  font-size: 30px;
  font-weight: 750;
}

.pd-mrp,
.pd-related-price del {
  color: #888;
  font-size: 15px;
}

.pd-discount {
  padding: 5px 8px;
  background: #e4f2e9;
  color: #00674f;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
}

.pd-tax-note {
  margin: 4px 0 18px;
  color: var(--text-light, #756e66);
  font-size: 12px;
}

.pd-short-description,
.pd-description p {
  color: var(--text-light, #625b54);
  font-size: 14px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.pd-stock {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 17px 0;
  font-size: 13px;
}

.pd-stock-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #198754;
}

.pd-stock.out-of-stock .pd-stock-dot {
  background: #b42318;
}

.pd-stock.out-of-stock {
  color: #b42318;
}

.pd-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  margin: 22px 0;
}

.pd-quantity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 112px;
  border: 1px solid var(--border-light, #ddd4c8);
  border-radius: 8px;
  overflow: hidden;
}

.pd-quantity button {
  width: 34px;
  align-self: stretch;
  border: 0;
  background: #f7f3ed;
  font-size: 19px;
  cursor: pointer;
}

.pd-quantity output {
  min-width: 28px;
  text-align: center;
  font-weight: 600;
}

.pd-actions .btn-add-cart,
.pd-actions .btn-primary {
  min-height: 44px;
  flex: 1 1 130px;
  border-radius: 8px;
  cursor: pointer;
}

.pd-actions button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.pd-wishlist {
  width: 46px;
  min-height: 44px;
  border: 1px solid var(--border-light, #ddd4c8);
  border-radius: 8px;
  background: #fff;
  font-size: 21px;
  cursor: pointer;
}

.pd-wishlist.active {
  border-color: #66110b;
  background: #fff6f5;
}

.pd-shipping-check {
  margin: 25px 0;
  padding: 17px;
  background: #faf8f4;
  border: 1px solid var(--border-light, #e8e1d7);
  border-radius: 10px;
}

.pd-shipping-check label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
}

.pd-pincode-row {
  display: flex;
  gap: 8px;
}

.pd-pincode-row input {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d8d0c6;
  border-radius: 6px;
  background: #fff;
  font: inherit;
}

.pd-pincode-row button {
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: #00674f;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.pd-pincode-message {
  margin: 9px 0 0;
  font-size: 12px;
  line-height: 1.5;
}

.pd-pincode-message.error { color: #b42318; }
.pd-pincode-message.success { color: #00674f; }

.pd-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}

.pd-highlights > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 13px 10px;
  border: 1px solid var(--border-light, #e8e1d7);
  border-radius: 9px;
}

.pd-highlights span { font-size: 21px; }
.pd-highlights strong { font-size: 12px; }
.pd-highlights small {
  color: var(--text-light, #756e66);
  font-size: 11px;
  line-height: 1.5;
}

.pd-description {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border-light, #e8e1d7);
}

.pd-description h2 {
  margin: 0 0 12px;
  font-size: 21px;
}

.pd-numerology-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 25px;
  padding: 18px;
  border: 1px solid #e5d3a9;
  border-radius: 12px;
  background: #fffaf0;
}

.pd-numerology-callout strong {
  color: #66110b;
  font-size: 16px;
}

.pd-numerology-callout p {
  margin: 5px 0 0;
  color: #71685a;
  font-size: 12px;
  line-height: 1.6;
}

.pd-recommend-link {
  color: #00674f;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.pd-related-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 15px 5% 55px;
}

.pd-section-heading {
  margin-bottom: 22px;
  text-align: center;
}

.pd-section-heading h2 {
  margin: 7px 0 0;
  font-size: clamp(23px, 3vw, 32px);
}

.pd-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.pd-related-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border-light, #e8e1d7);
  border-radius: 12px;
  background: #fff;
}

.pd-related-image {
  display: block;
  aspect-ratio: 1 / 1;
  background: #f8f5ef;
}

.pd-related-image img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 10px;
  object-fit: contain;
}

.pd-related-body { padding: 13px; }

.pd-related-name {
  display: block;
  min-height: 40px;
  color: var(--heading, #30231d);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}

.pd-related-price {
  margin: 10px 0;
}

.pd-related-price strong { color: #66110b; }

.pd-related-link {
  color: #00674f;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.pd-not-found {
  grid-column: 1 / -1;
  padding: 70px 20px;
  text-align: center;
}

.pd-not-found-icon { font-size: 42px; }
.pd-not-found h1 { margin: 12px 0; }
.pd-not-found p { color: var(--text-light, #756e66); }

.pd-shop-link {
  display: inline-flex;
  margin-top: 15px;
  padding: 12px 20px;
  border-radius: 7px;
  color: #fff;
  background: #00674f;
  text-decoration: none;
}

@media (max-width: 900px) {
  .product-detail-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 25px 4%;
  }

  .pd-gallery {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
  }

  .pd-info { width: 100%; }

  .pd-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
  }
}

@media (max-width: 480px) {
  .product-detail-layout {
    padding: 18px 14px;
  }

  .pd-title { font-size: 25px; }
  .pd-price { font-size: 27px; }

  .pd-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .pd-quantity { min-height: 44px; }
  .pd-actions .btn-add-cart,
  .pd-actions .btn-primary { min-width: 0; }

  .pd-wishlist {
    width: 100%;
    grid-column: 1 / -1;
  }

  .pd-highlights { grid-template-columns: 1fr; }

  .pd-highlights > div {
    display: grid;
    grid-template-columns: 32px 1fr;
    align-items: center;
  }

  .pd-highlights small { grid-column: 2; }

  .pd-trust-row {
    justify-content: flex-start;
    font-size: 11px;
  }

  .pd-thumbnail {
    width: 58px;
    height: 58px;
  }

  .pd-related-section { padding: 10px 14px 35px; }
  .pd-related-body { padding: 10px; }
  .pd-related-name { font-size: 13px; }
}

.pd-breadcrumb {
  padding: 12px 5%;
  border-bottom: 1px solid var(--border-light, #e8e1d7);
  background: var(--cream, #faf7f1);
  font-size: 13px;
}

.pd-breadcrumb > div {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.pd-breadcrumb a {
  color: #00674f;
  text-decoration: none;
}

.pd-breadcrumb #breadcrumbName {
  overflow-wrap: anywhere;
}

/* =========================================================
   ASTRO VASTU SETU — PRODUCT SIZE SELECTOR
========================================================= */

.pd-size-section {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid rgba(102, 17, 11, 0.14);
  border-radius: 16px;
  background: #fffdf9;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pd-size-section.pd-size-required {
  border-color: #b42318;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.08);
}

.pd-size-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.pd-size-label {
  display: block;
  color: #321b18;
  font-size: 1rem;
  font-weight: 750;
}

.pd-required-mark {
  color: #b42318;
}

.pd-size-help {
  margin: 6px 0 0;
  color: #716764;
  font-size: 0.84rem;
  line-height: 1.5;
}

.pd-size-count {
  flex-shrink: 0;
  padding: 5px 9px;
  border-radius: 20px;
  background: #f5e8d2;
  color: #66110b;
  font-size: 0.75rem;
  font-weight: 700;
}

.pd-size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pd-size-option {
  position: relative;
  display: inline-flex;
  min-width: 66px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 14px;
  border: 1px solid #ded5cf;
  border-radius: 11px;
  background: #fff;
  color: #352622;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.pd-size-option:hover {
  border-color: #66110b;
  color: #66110b;
  transform: translateY(-1px);
}

.pd-size-option:focus-visible {
  outline: 3px solid rgba(0, 103, 79, 0.25);
  outline-offset: 3px;
}

.pd-size-option.active {
  border-color: #00674f;
  background: #e9f5ef;
  color: #00553f;
  box-shadow: inset 0 0 0 1px #00674f;
}

.pd-size-check {
  display: none;
  font-size: 0.85rem;
  font-weight: 800;
}

.pd-size-option.active .pd-size-check {
  display: inline;
}

.pd-size-message {
  margin: 12px 0 0;
  color: #716764;
  font-size: 0.82rem;
  line-height: 1.5;
}

.pd-size-message.success {
  color: #00674f;
  font-weight: 650;
}

.pd-size-message.error {
  color: #b42318;
  font-weight: 650;
}

.pd-actions button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 600px) {
  .pd-size-section {
    margin: 18px 0;
    padding: 15px;
    border-radius: 13px;
  }

  .pd-size-heading {
    gap: 8px;
  }

  .pd-size-help {
    font-size: 0.8rem;
  }

  .pd-size-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .pd-size-option {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 9px 6px;
    border-radius: 9px;
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pd-size-option,
  .pd-size-section {
    transition: none;
  }
}