/* CBD Gondomar — Página de Producto */

/* ============================================================ MIGAS DE PAN */
.pbreadcrumb{
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  margin: 16px 12px 0;
  font-family: var(--f-body);
  font-size: 13px;
  color: var(--b-mute);
}
.pbreadcrumb a{ color: var(--b-mute); text-decoration: none; transition: color .15s var(--ease, ease); }
.pbreadcrumb a:hover{ color: var(--b-orange); }
.pbreadcrumb-sep{ opacity: .5; }
.pbreadcrumb-current{
  color: var(--b-ink); font-weight: 600;
  max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media(max-width:600px){ .pbreadcrumb-current{ max-width: 150px; } }

/* ============================================================ HERO PRODUCTO */
.phero{
  background: var(--b-yellow);
  margin: 16px 12px;
  border-radius: 24px;
  overflow: hidden;
  padding: clamp(40px, 6vw, 80px);
}
.phero-inner{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}
.phero-image{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 16px;
}
.phero-image img{
  max-width: 100%;
  height: auto;
  max-height: 500px;
}
.pgallery-main{ width: 100%; display: flex; align-items: center; justify-content: center; }
.pgallery-main img{ max-width: 100%; height: auto; max-height: 500px; border-radius: 16px; }
.pgallery-thumbs{ display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.pgallery-thumb{
  width: 64px; height: 64px; border-radius: 10px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; padding: 0; background: none; opacity: .55;
  transition: opacity .2s var(--ease, ease), border-color .2s var(--ease, ease);
}
.pgallery-thumb img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.pgallery-thumb:hover{ opacity: .85; }
.pgallery-thumb.is-active{ opacity: 1; border-color: var(--b-ink); }
.phero-content{
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.phero-title{
  font-family: var(--f-chunk);
  font-size: clamp(48px, 8vw, 96px);
  line-height: .9;
  letter-spacing: -.02em;
  color: var(--b-orange);
  text-transform: uppercase;
  margin: 0;
}
.phero-meta{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.phero-cbd, .phero-type{
  font-family: var(--f-cond);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--b-ink);
  color: var(--b-cream);
  padding: 6px 12px;
  border-radius: 999px;
}
.phero-desc{
  font-size: 15px;
  line-height: 1.6;
  color: var(--b-ink-soft);
  margin: 0;
}
.phero-specs{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-top: 2px solid var(--b-ink);
  border-bottom: 2px solid var(--b-ink);
}
.pspec{
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}
.pspec-label{
  font-family: var(--f-cond);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--b-mute);
}
.pspec-value{
  font-family: var(--f-chunk);
  font-size: 24px;
  color: var(--b-ink);
}
.phero-actions{
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.phero-price{
  font-family: var(--f-chunk);
  font-size: 32px;
  color: var(--b-orange);
  white-space: nowrap;
}
.phero-price-unit{
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--b-ink-soft);
  white-space: nowrap;
  margin-left: -8px;
}

/* ============================================================ FEATURES */
.pfeatures{
  padding: clamp(60px, 8vw, 100px) clamp(20px, 4vw, 40px);
  max-width: 1200px;
  margin: 0 auto;
}
.pfeatures-title{
  font-family: var(--f-cond);
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 40px;
  color: var(--b-mute);
}
.pfeatures-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pfeat{
  text-align: center;
}
.pfeat-icon{
  display: inline-block;
  width: 60px;
  height: 60px;
  margin-bottom: 16px;
  color: var(--b-orange);
  stroke: var(--b-orange);
}
.pfeat h3{
  font-family: var(--f-chunk);
  font-size: 16px;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin: 8px 0;
}
.pfeat p{
  font-size: 13px;
  color: var(--b-mute);
  margin: 0;
  line-height: 1.5;
}

/* ============================================================ INFORMACIÓN */
.pinfo{
  padding: clamp(40px, 6vw, 60px) clamp(20px, 4vw, 40px);
  max-width: 1200px;
  margin: 0 auto;
}
.pinfo-block{
  border-radius: var(--b-radius-sm);
  background: rgba(0,0,0,.04);
  overflow: hidden;
  margin-bottom: 12px;
}
.pinfo-h{
  appearance: none;
  border: 0;
  cursor: pointer;
  width: 100%;
  background: transparent;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 700;
  padding: 16px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--t-fast) var(--ease);
}
.pinfo-h:hover{
  background: rgba(0,0,0,.08);
}
.pinfo-body{
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-med) var(--ease);
  padding: 0 16px;
}
.pinfo-block.is-open .pinfo-body{
  max-height: 1000px;
  padding: 0 16px 16px;
}
.pinfo-body p{
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.6;
}
.pinfo-body p:last-child{
  margin-bottom: 0;
}
.pinfo-table{
  width: 100%;
  margin: 12px 0;
  font-size: 14px;
  border-collapse: collapse;
}
.pinfo-table tr{
  border-bottom: 1px solid rgba(0,0,0,.1);
}
.pinfo-table td{
  padding: 10px 0;
}
.pinfo-value{
  text-align: right;
  font-weight: 600;
  color: var(--b-orange);
}
.pinfo-note{
  font-size: 12px;
  color: var(--b-mute);
  margin-top: 12px;
  font-style: italic;
}

/* ============================================================ FAQs */
.pfaqs{
  padding: clamp(60px, 8vw, 100px) clamp(20px, 4vw, 40px);
  background: var(--b-sand);
  max-width: 100%;
}
.pfaqs-title{
  font-family: var(--f-chunk);
  font-size: clamp(40px, 8vw, 72px);
  text-align: center;
  letter-spacing: -.02em;
  margin-bottom: 40px;
  color: var(--b-ink);
}
.pfaq-list{
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pfaq{
  background: rgba(255,255,255,.6);
  border-radius: var(--b-radius-sm);
  overflow: hidden;
}
.pfaq-q{
  appearance: none;
  border: 0;
  cursor: pointer;
  width: 100%;
  background: var(--b-cream);
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 600;
  padding: 16px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--t-fast) var(--ease);
}
.pfaq-q:hover{
  background: rgba(0,0,0,.05);
}
.pfaq-pl{
  font-size: 20px;
  font-weight: 300;
  transition: transform var(--t-fast) var(--ease);
}
.pfaq.is-open .pfaq-pl{
  transform: rotate(45deg);
}
.pfaq-a{
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-med) var(--ease);
  padding: 0 16px;
}
.pfaq.is-open .pfaq-a{
  max-height: 500px;
  padding: 0 16px 16px;
}
.pfaq-a{
  font-size: 14px;
  line-height: 1.6;
  color: var(--b-ink-soft);
}

/* ============================================================ PRODUCTOS RELACIONADOS */
.prelacionados{
  padding: clamp(60px, 8vw, 100px) clamp(20px, 4vw, 40px);
  max-width: 1400px;
  margin: 0 auto;
}
.prelacionados-title{
  font-family: var(--f-chunk);
  font-size: clamp(36px, 6vw, 60px);
  text-align: center;
  letter-spacing: -.02em;
  margin-bottom: 40px;
  color: var(--b-ink);
}
.prelacionados-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.prelacionado-card{
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform var(--t-fast) var(--ease);
}
.prelacionado-card:hover{
  transform: translateY(-4px);
}
.prelacionado-img{
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15,15,14,.07);
  border-radius: 12px;
}
.prelacionado-img img{
  position: absolute;
  top: 7%; left: 7%;
  width: 86%; height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(15,15,14,.12));
}
.prelacionado-card h3{
  font-family: var(--f-chunk);
  font-size: 16px;
  line-height: 1.15;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  min-height: calc(16px * 1.15 * 3);
}
.prelacionado-tags{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ptag{
  font-family: var(--f-cond);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(0,0,0,.08);
  color: var(--b-ink);
  padding: 4px 10px;
  border-radius: 999px;
}
.prelacionado-price{
  font-family: var(--f-chunk);
  font-size: 18px;
  color: var(--b-orange);
  font-weight: 700;
  margin-top: auto;
}

/* ============================================================ RESPONSIVE */
@media (max-width: 1000px){
  .phero-inner{
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .phero-image{
    min-height: 300px;
  }
  .pfeatures-grid{
    grid-template-columns: repeat(2, 1fr);
  }
  .prelacionados-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px){
  .phero-title{
    font-size: 34px;
  }
  .phero-specs{
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 12px 0;
  }
  .pspec-label{
    font-size: 9px;
  }
  .pspec-value{
    font-size: 15px;
  }
  .phero-actions{
    flex-direction: column;
  }
  .phero-actions .bbtn{
    width: 100%;
  }
  .pfeatures-grid{
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }
  .pfeat-icon{
    width: 36px;
    height: 36px;
    margin-bottom: 6px;
  }
  .pfeat h3{
    font-size: 12px;
    margin: 0;
  }
  .pfeat p{
    display: none;
  }
  .prelacionados-grid{
    grid-template-columns: 1fr;
  }
  .pfaq-q{
    font-size: 13px;
  }
}
