/**
 * Single product (PDP) layout — CBD Boxes theme.
 */

.pdp-page {
  background: var(--color-white);
}

/* Breadcrumb */
.pdp-breadcrumb {
  padding: var(--spacing-md) 0 0;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.pdp-breadcrumb .woocommerce-breadcrumb,
.pdp-breadcrumb nav {
  margin: 0;
  font-size: inherit;
}

.pdp-breadcrumb a {
  color: var(--color-text-light);
  text-decoration: none;
}

.pdp-breadcrumb a:hover {
  color: var(--color-primary);
}

/* Product gallery + quote (PDS) */
.product-gallary-section {
  padding: var(--spacing-lg) 0 var(--spacing-xxl);
}

.product-gallary-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 3rem;
  align-items: flex-start;
}

@media (max-width: 1024px) {
  .product-gallary-wrap {
    grid-template-columns: 1fr;
  }
}

.pgs-sku {
  font-size: 0.85rem;
  color: #87cd37;
  font-weight: 600;
}

.pgs-gallery {
  display: flex;
  gap: 1rem;
  position: sticky;
  top: 1rem;
}

@media (max-width: 1024px) {
  .pgs-gallery {
    position: static;
  }
}

.pgs-thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 80px;
  flex-shrink: 0;
}

/* Mobile: thumbnails row at bottom (layout only) */
@media (max-width: 768px) {
  .pgs-gallery {
    flex-direction: column;
    gap: 12px;
  }

  .pgs-thumbs {
    order: 2;
    width: 100%;
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .pgs-main {
    order: 1;
    width: 100%;
  }

  .pgs-thumb {
    flex: 0 0 auto;
  }
}

.pgs-thumb {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  background: #f5f5f5;
  overflow: hidden;
  transition:
    border-color 0.2s,
    opacity 0.2s;
  opacity: 0.85;
}

.pgs-thumb:hover,
.pgs-thumb.active {
  opacity: 1;
  border-color: var(--color-primary);
}

.pgs-thumb-img {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.pgs-main {
  flex: 1;
  position: relative;

  border-radius: 7px;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.pgs-main-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .pgs-main {
    height: 420px;
  }
}

/* Force PDP gallery image to fill container (avoid overrides from main.css) */
.product-gallary-section .pgs-main-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  object-fit: cover;
}

.pgs-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 48px;
  border: none;
  border-radius: 0px;
  background: #738f8b;
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transition:
    background 0.2s,
    transform 0.2s;
}

.pgs-nav:hover {
  background: rgba(19, 75, 63, 0.62);
  transform: translateY(-50%) scale(1.02);
}

.pgs-nav.prev {
  left: 0px;
}

.pgs-nav.next {
  right: 0px;
}

.pgs-help-box {
  background: #dceac9;
  border-radius: 6px;
  padding: 22px 22px;
}

/* Ensure PDP styles win over generic .pgs-* rules */
.product-gallary-section .pgs-help-box {
  border-radius: 6px;
}

.pgs-help-box h3 {
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

.pgs-help-box p {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 8px;
  color: black;
}

.pgs-help-box a:hover {
  text-decoration: underline;
}

.pgs-delivery-strip {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.product-gallary-section .pgs-delivery-strip {
  border-radius: 14px;
}

.pgs-truck {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--color-primary);
  border-radius: 10px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M20 8h-3V4H3c-1.1 0-2 .9-2 2v11h2c0 1.66 1.34 3 3 3s3-1.34 3-3h6c0 1.66 1.34 3 3 3s3-1.34 3-3h2v-5l-3-4zM6 18.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm13.5-9l1.96 2.5H17V9.5h2.5zm-1.5 9c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M20 8h-3V4H3c-1.1 0-2 .9-2 2v11h2c0 1.66 1.34 3 3 3s3-1.34 3-3h6c0 1.66 1.34 3 3 3s3-1.34 3-3h2v-5l-3-4zM6 18.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm13.5-9l1.96 2.5H17V9.5h2.5zm-1.5 9c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.pgs-estimate {
  flex: 1;
  min-width: 200px;
  font-size: 0.9rem;
  color: var(--color-dark);
  line-height: 1.45;
}

.pgs-product-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
  color: var(--color-dark);
  font-family: var(--font-heading);
}

.pgs-lead {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.pgs-form-section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #555;
  margin-bottom: 0.5rem;
}

.pgs-cols-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

@media (max-width: 600px) {
  .pgs-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pgs-cols-4 input,
.pgs-cols-4 select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid #a8a8a8;
  border-radius: 6px;
  font-size: 0.9rem;
}

.pgs-cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 20px;
}

@media (max-width: 600px) {
  .pgs-cols-2 {
   		grid-template-columns: 1fr 1fr;
   		gap: 0.65rem;
  }
}

.pgs-field label {
  font-size: 0.72rem;
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #555;
}

.pgs-field input,
.pgs-field select,
.pgs-field textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid #a8a8a8;
  border-radius: 6px;
  font-size: 0.7rem;
}

.product-gallary-section .pgs-field input,
.product-gallary-section .pgs-field select,
.product-gallary-section .pgs-field textarea {
  border-radius: 6px;
}

.pgs-field textarea {
  min-height: 88px;
  resize: vertical;
}

.pgs-field--full {
  grid-column: 1 / -1;
}

.pgs-upload {
  border: 2px dashed var(--color-border);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  background: #fafafa;
  cursor: pointer;
  position: relative;
}
.pgs-upload input {
    display: none;
}
.pgs-upload-icon {
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 auto 0.5rem;
  background: var(--color-text-light);
  opacity: 0.35;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.pgs-upload p {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.pgs-browse {
  color: var(--color-primary);
  font-weight: 600;
  cursor: pointer;
}

.pgs-upload small {
  color: var(--color-text-light);
  font-size: 0.8rem;
}

.pgs-submit {
  width: 100%;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  font-size: 1.05rem;
  justify-content: center;
  border-radius: 6px;
}
	.pgs-submit-wrapper button.btn-primary.cf7-prev-step {
    padding: 20px;
    width: 100%;
    margin-top: 20px;
}
/* Match gallery/button radii on PDP */
.pgs-delivery-strip .btn-primary,
.pgs-dieline-btn {
  border-radius: 6px;
}

.product-gallary-section .pgs-submit {
  border-radius: 6px;
}

/* Premium finishes: tab filter visibility (styles from main.css — sprite + tabs) */
.finish-item {
  transition: opacity 0.2s;
}

.finish-item.is-hidden {
  display: none;
}

/* Feature splits */
.pdp-split {
  padding: 3.5rem 0;
}

.pdp-split--reverse .pdp-split__inner {
  flex-direction: row-reverse;
}

.pdp-split__inner {
  display: flex;
  align-items: center;
  gap: 3rem;
}

@media (max-width: 900px) {
  .pdp-split__inner {
    flex-direction: column !important;
  }
}

.pdp-split__image {
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
}

.pdp-split__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

.pdp-split__content {
  flex: 1;
}

.pdp-split__tag {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.5rem;
  background-color: #87cd3726;
  width: fit-content;
  padding: 5px;
  border-radius: 28px;
  padding-left: 15px;
  padding-right: 15px;
}

.pdp-split__tag:empty {
  display: none;
}

.pdp-split__content .pdp-split__heading {
  font-size: 36px;
  margin: 0 0 1rem;
  line-height: 1.2;
  font-weight: 800;
  color: var(--color-dark);
}

.pdp-split__content .pdp-split__heading .text-primary {
  color: var(--color-primary);
}

.pdp-split__content h2.pdp-split__heading {
  font-size: 2rem;
}

@media (max-width: 768px) {
  .pdp-split__content .pdp-split__heading,
  .pdp-split__content h2.pdp-split__heading {
    font-size: 28px;
  }
}

.pdp-split__content p {
  color: var(--color-text-light);
  line-height: 1.65;
  margin: 0;
}

/* How it works */
.pdp-process {
  background: linear-gradient(160deg, #1a4d36 0%, #0f3024 55%, #0d2a1f 100%);
  color: #fff;
  padding: 4.5rem 0 4.75rem;
  text-align: center;
}

.pdp-process__badge {
  display: inline-block;
  margin: 0 auto 1.25rem;
  padding: 0.45rem 1.15rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.pdp-process__title {
  color: #fff;
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  font-weight: 800;
  max-width: 920px;
  margin: 0 auto 1rem;
  line-height: 1.3;
}

.pdp-process__title .text-primary {
  color: var(--color-primary);
  font-weight: 800;
}

.pdp-process__intro {
  max-width: 640px;
  margin: 0 auto 2.75rem;
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.92;
  color: rgba(255, 255, 255, 0.92);
}

.pdp-process__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem 2rem;
  max-width: 1040px;
  margin: 0 auto;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .pdp-process__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.pdp-process__item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pdp-process__icon-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1.35rem;
}

.pdp-process__step-num {
  position: absolute;
  top: -4px;
  right: -4px;
  z-index: 2;
  min-width: 2.1rem;
  height: 2.1rem;
  padding: 0 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pdp-process__icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.pdp-process__icon svg {
  display: block;
}

.pdp-process__icon img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}

.pdp-process__item-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 0.65rem;
  color: #fff;
}

.pdp-process__item p {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.6;
  margin: 0;
  max-width: 320px;
  color: rgba(255, 255, 255, 0.92);
}

/* FAQ + CTA — comp: white strip, #f9f9f9 rows, lime #76c833, CTA title black + white lines */
.pdp-bottom {
  --pdp-faq-lime: #76c833;
  --pdp-faq-cbd-highlight: #b3e5fc;
  --pdp-faq-panel: #f9f9f9;
  --pdp-faq-border: #ededed;
  --pdp-cta-forest: #1b4332;
  padding: 4rem 0 4.5rem;
  background: #fff;
}

.pdp-bottom__grid {
  display: grid;
  grid-template-columns: 600px minmax(0, 1fr);
  gap: 2.5rem 3rem;
  align-items: stretch;
  justify-content: space-between;
}

@media (max-width: 900px) {
  .pdp-bottom__grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
}

/* FAQ column */
.pdp-bottom .faq-content {
  text-align: left;
  width: 100%;
  max-width: 600px;
}

.pdp-faq__badge {
  display: inline-block;
  margin: 0 0 1.1rem;
  padding: 0.4rem 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1b4332;
  background: rgba(118, 200, 51, 0.22);
  border-radius: 999px;
}

.pdp-faq__heading {
  text-align: left;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  color: #1a1a1a;
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
}

.pdp-faq__heading .text-primary {
  color: var(--pdp-faq-lime);
  font-weight: 800;
}

/* Optional: wrap “CBD” in <span class="pdp-cbd-highlight"> in ACF headingfaq */
.pdp-faq__heading .pdp-cbd-highlight {
  display: inline;
  padding: 0.08em 0.28em;
  margin: 0 0.05em;
  background: var(--pdp-faq-cbd-highlight);
  border-radius: 4px;
  font-weight: 800;
  color: #1a1a1a;
}

.pdp-bottom .pdp-faq__accordion {
  margin-top: 0;
  gap: 14px;
}

.pdp-bottom .pdp-faq__item {
  background: var(--pdp-faq-panel);
  border: 1px solid var(--pdp-faq-border);
  border-radius: 10px;
  overflow: hidden;
}

/* Hard-hide FAQ answers until the item becomes active */
.pdp-bottom .pdp-faq__item .faq-answer {
  display: none;
}

.pdp-bottom .pdp-faq__item.active .faq-answer {
  display: block;
}

.pdp-bottom .pdp-faq__question {
  width: 100%;
  text-align: left;
  padding: 17px 20px;
  background: var(--pdp-faq-panel);
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  color: #1a1a1a;
}

.pdp-bottom .pdp-faq__question .faq-icon {
  flex-shrink: 0;
  color: #888;
}

.pdp-bottom .pdp-faq__item .faq-answer-inner {
  background: var(--pdp-faq-panel);
  border-top: 1px solid var(--pdp-faq-border);
  padding: 14px 20px 18px;
  overflow: hidden;
}

.pdp-bottom .pdp-faq__item .faq-answer-inner p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #666;
}

/* CTA card */
.pdp-cta-card {
  background: var(--pdp-faq-lime);
  border-radius: 44px;
  padding: 2.85rem 2.5rem 3rem;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pdp-cta-card__title {
  font-size: clamp(1.45rem, 2.7vw, 1.9rem);
  font-weight: 800;
  line-height: 1.22;
  margin: 0 0 1.05rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.pdp-cta-card__title-line {
  display: block;
}

.pdp-cta-card__title-line--dark {
  color: #0d0d0d;
}

.pdp-cta-card__title-line--light {
  color: #fff;
}

.pdp-cta-card__text {
  margin: 0 auto 1.85rem;
  max-width: 28rem;
  font-size: 0.98rem;
  line-height: 1.62;
  color: rgba(13, 13, 13, 0.78);
}

.pdp-cta-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
}

.pdp-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  min-height: 48px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
  border: none;
  cursor: pointer;
}

.pdp-cta-btn--primary {
  background: var(--pdp-cta-forest);
  color: #fff;
}

.pdp-cta-btn--primary:hover {
  opacity: 0.92;
  color: #fff;
}

.pdp-cta-btn__arrow {
  flex-shrink: 0;
}

.pdp-cta-btn--secondary {
  background: #fff;
  color: #1a1a1a;
}

.pdp-cta-btn--secondary:hover {
  opacity: 0.95;
  color: #1a1a1a;
}

.pdp-cta-btn__phone {
  flex-shrink: 0;
  margin-right: 0.05rem;
}

/* Related */
.pdp-related {
  padding: 0 0 var(--spacing-xxl);
  background: #fff;
}

.pdp-related h2 {
  font-size: clamp(1.95rem, 3vw, 2.2rem);
  line-height: 1.15;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.pdp-related__intro {
  margin: 0 0 2rem;
  color: #6d6d6d;
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 760px;
}

.pdp-related__grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(215px, 215px);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

@media (max-width: 1024px) {
  .pdp-related__grid {
    grid-auto-columns: minmax(210px, 210px);
  }
}

.pdp-related-card {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  border: none;
  transition: transform 0.2s ease;
}

.pdp-related-card:hover {
  transform: translateY(-2px);
}

.pdp-related-card__img {
  aspect-ratio: 1 / 1;
  background: #f6f7f2;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pdp-related-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp-related-card__body {
  padding: 0.9rem 0 0;
}

.pdp-related-card__meta {
  margin: 0 0 0.55rem;
  color: #6f6f6f;
  font-size: 0.74rem;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdp-related-card__body h3 {
  font-size: 0.98rem;
  line-height: 1.3;
  margin: 0 0 0.45rem;
  color: #151515;
}

.pdp-related-card__body a {
  font-size: 0.92rem;
  font-weight: 500;
  color: #6d6d6d;
  text-decoration: none;
}

.pdp-related-card__body a:hover {
  color: #151515;
}
