/* ======================================================
   FotoCineColor — PP2 Product Page styles
   Carga solo en product-11.tpl (product_layout=11)
   ====================================================== */

/* ── Variables ────────────────────────────────────────── */
:root {
  --pp2-yellow:   #FFCF00;
  --pp2-blue:     #2fb5d2;
  --pp2-dark:     #27292e;
  --pp2-gray:     #f7f7f7;
  --pp2-border:   #e4e4e4;
  --pp2-green:    #2e7d32;
  --pp2-red:      #c62828;
  --pp2-radius:   6px;
}

/* ── (b) Trust bar ────────────────────────────────────── */
.pp2-trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: #fff;
  border: 1px solid var(--pp2-border);
  border-radius: var(--pp2-radius);
  margin: 16px 0 0;
  padding: 0;
}
.pp2-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--pp2-dark);
  font-weight: 500;
  border-right: 1px solid var(--pp2-border);
}
.pp2-trust-item:last-child {
  border-right: none;
}
.pp2-trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--pp2-yellow);
  border-radius: 50%;
  flex-shrink: 0;
}
.pp2-trust-icon svg {
  width: 14px;
  height: 14px;
  fill: var(--pp2-dark);
}
@media (max-width: 767px) {
  .pp2-trust-bar { grid-template-columns: 1fr; }
  .pp2-trust-item { border-right: none; border-bottom: 1px solid var(--pp2-border); padding: 10px 14px; }
  .pp2-trust-item:last-child { border-bottom: none; }
}

/* ── (c) Payment box ──────────────────────────────────── */
.pp2-payment-box {
  margin: 24px 0;
  border: 1px solid var(--pp2-border);
  border-radius: var(--pp2-radius);
  padding: 22px 28px;
  background: #fff;
}
.pp2-payment-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--pp2-dark);
  margin: 0 0 6px;
}
.pp2-payment-subtitle {
  font-size: 13px;
  color: #666;
  margin: 0 0 16px;
}
.pp2-payment-logos {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.pp2-logos-main {
  height: 24px;
  width: auto;
}
.pp2-logos-sequra {
  height: 22px;
  width: auto;
}

/* ── (d) FBT block spacing ────────────────────────────── */
#abs_usually_bought_together:not(:empty) {
  margin: 24px 0;
}

/* ── (e) Features ─────────────────────────────────────── */
.pp2-features {
  background: #fff;
  color: var(--pp2-dark);
  padding: 28px;
  margin: 24px 0;
  border: 1px solid var(--pp2-border);
  border-radius: var(--pp2-radius);
}
.pp2-features-inner {
  max-width: none;
  margin: 0;
  padding: 0;
}
.pp2-section-title {
  font-size: 17px;
  font-weight: 600;
  margin-top: 22px;
  margin-bottom: 8px;
  color: var(--pp2-dark);
}
/* Títulos y párrafos en contenido de pestañas PP2 */
.pp2-tabs-wrapper .tab-pane h2,
.pp2-tabs-wrapper .tab-pane h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 22px;
  margin-bottom: 8px;
  color: var(--pp2-dark);
}
.pp2-tabs-wrapper .tab-pane p {
  font-size: 14px;
  line-height: 1.65;
}
.pp2-tabs-wrapper .accordion-title {
  font-size: 17px;
}

.pp2-features-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
}
.pp2-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
}
.pp2-feat-bold {
  font-weight: 600;
}
.pp2-check-icon {
  display: inline-block;
  min-width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  background: var(--pp2-yellow);
  color: var(--pp2-dark);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}
@media (max-width: 767px) {
  .pp2-features { margin: 24px 0; }
  .pp2-features-list { grid-template-columns: 1fr; }
}

/* ── (f) Is-for-you ───────────────────────────────────── */
.pp2-is-for-you {
  margin: 24px 0;
}
.pp2-is-for-you .pp2-section-title {
  color: var(--pp2-dark);
}
.pp2-ify-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.pp2-ify-yes,
.pp2-ify-no {
  border-radius: var(--pp2-radius);
  padding: 20px 22px;
}
.pp2-ify-yes {
  border: 2px solid var(--pp2-yellow);
  background: #fffdf0;
}
.pp2-ify-no {
  border: 1px solid var(--pp2-border);
  background: var(--pp2-gray);
}
.pp2-ify-heading {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 14px;
}
.pp2-ify-heading--yes { color: var(--pp2-dark); }
.pp2-ify-heading--no  { color: #555; }
.pp2-ify-yes ul,
.pp2-ify-no ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.pp2-ify-yes li,
.pp2-ify-no li {
  font-size: 13px;
  line-height: 1.6;
  padding: 4px 0 4px 20px;
  position: relative;
}
.pp2-ify-yes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--pp2-yellow);
  font-weight: 800;
}
.pp2-ify-no li::before {
  content: "✗";
  position: absolute;
  left: 0;
  color: #aaa;
}
@media (max-width: 767px) {
  .pp2-ify-grid { grid-template-columns: 1fr; }
}

/* ── (g) Tabs PP2 ─────────────────────────────────────── */
.pp2-tabs-wrapper {
  margin: 24px 0 0;
}

/* Specs table */
.pp2-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.pp2-specs-table th {
  width: 45%;
  font-weight: 600;
  color: var(--pp2-dark);
  text-align: left;
  padding: 9px 14px;
  background: var(--pp2-gray);
  border-bottom: 1px solid var(--pp2-border);
}
.pp2-specs-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--pp2-border);
  color: #444;
}
.pp2-specs-table tr:last-child th,
.pp2-specs-table tr:last-child td {
  border-bottom: none;
}
.pp2-specs-footer {
  font-size: 11px;
  color: #999;
  margin: 8px 0 0;
}

/* In-the-box list */
.pp2-inbox-list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  gap: 16px;
}
.pp2-inbox-list li {
  font-size: 13px;
  padding: 5px 0 5px 18px;
  position: relative;
  break-inside: avoid;
  color: #444;
}
.pp2-inbox-list li::before {
  content: "·";
  position: absolute;
  left: 5px;
  color: var(--pp2-yellow);
  font-size: 18px;
  line-height: 1;
}
@media (max-width: 600px) {
  .pp2-inbox-list { columns: 1; }
}

/* ── (h) FAQ accordion ────────────────────────────────── */
.pp2-faq {
  margin: 32px 0;
}
.pp2-faq-item {
  border-bottom: 1px solid var(--pp2-border);
}
.pp2-faq-item:first-of-type {
  border-top: 1px solid var(--pp2-border);
}
.pp2-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 40px 16px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--pp2-dark);
  position: relative;
  user-select: none;
}
.pp2-faq-item summary::-webkit-details-marker { display: none; }
.pp2-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--pp2-blue);
  transition: transform 0.2s;
}
.pp2-faq-item[open] summary::after {
  content: "−";
}
.pp2-faq-answer {
  font-size: 13px;
  line-height: 1.7;
  color: #555;
  padding: 0 40px 16px 0;
}

/* ══ Mobile PP2 (max-width: 767px) ══════════════════════════════════════════ */
@media (max-width: 767px) {

  /* ── Migas de pan: 11px, no grow ─────────────────────────────────────── */
  .product-layout-11 .single-breadcrumbs,
  .product-layout-11 .single-breadcrumbs a,
  .product-layout-11 .single-breadcrumbs span {
    font-size: 11px;
    letter-spacing: normal;
  }
  .product-layout-11 .breadcrumb {
    flex-wrap: wrap;
    gap: 0;
  }
  .product-layout-11 .breadcrumb li {
    white-space: nowrap;
  }

  /* ── Logo marca: 28px, margen inferior 8px ───────────────────────────── */
  .product-layout-11 .product-brands {
    margin-bottom: 8px;
  }
  .product-layout-11 .product-brands .product-brand img {
    height: 28px;
    width: auto;
    max-width: 140px;
  }

  /* ── Botones carrito + comprar: misma fila ───────────────────────────── */
  .product-layout-11 .product-quantity .add {
    display: flex;
    flex-direction: row;
    gap: 8px;
  }
  .product-layout-11 .product-quantity .add .btn {
    flex: 1;
    min-width: 0;
    padding: 10px 8px;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* ── seQura widget: contenedor acotado (shadow DOM: fuente interna no editable) */
  .product-layout-11 .sequra-promotion-widget {
    font-size: 12px;
    max-width: 100%;
    margin: 4px 0;
  }

}

/* ══ Mobile PP2 v20261020g — overrides + nuevas reglas ═══════════════════════ */
@media (max-width: 767px) {

  /* ── (4) Restaurar font-size:0 en axps-products-nav (el tema lo requiere) ── */
  /* Nuestra regla anterior .single-breadcrumbs a/span con 11px lo rompía      */
  .product-layout-11 .single-breadcrumbs .axps-products-nav,
  .product-layout-11 .single-breadcrumbs .axps-products-nav a,
  .product-layout-11 .single-breadcrumbs .axps-products-nav span {
    font-size: 0 !important;
    letter-spacing: 0;
    white-space: nowrap;
  }
  /* Mantener visibles los iconos (::after en back-btn y ::before en product-btn-icon) */
  .product-layout-11 .single-breadcrumbs .axps-products-nav .axps-back-btn::after,
  .product-layout-11 .single-breadcrumbs .axps-products-nav .product-btn-icon::before {
    font-size: 20px !important;
  }
  /* Nav en una sola línea */
  .product-layout-11 .axps-products-nav {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
  }

  /* ── (5) Breadcrumbs: 9.5px, flex, iconos a la derecha ─────────────────── */
  .product-layout-11 .single-breadcrumbs {
    display: flex;
    align-items: flex-start;
    gap: 4px;
  }
  .product-layout-11 .single-breadcrumbs .axps-breadcrumb {
    flex: 1;
    min-width: 0;
    font-size: 9.5px;
  }
  .product-layout-11 .single-breadcrumbs .axps-breadcrumb a,
  .product-layout-11 .single-breadcrumbs .axps-breadcrumb span:not(.breadcrumb-separator) {
    font-size: 9.5px;
  }
  .product-layout-11 .single-breadcrumbs .axps-breadcrumb .breadcrumb-separator {
    margin: 0 2px;
  }
  .product-layout-11 .single-breadcrumbs .axps-products-nav {
    flex: none;
  }

  /* ── (2) Logos pago en móvil: más pequeños, centrados ───────────────────── */
  .product-layout-11 .pp2-logos-main   { height: 18px !important; }
  .product-layout-11 .pp2-logos-sequra { height: 16px !important; }
  .product-layout-11 .pp2-payment-logos { justify-content: center; }

  /* ── (3) Logo Nikon: contenedor 32px + object-fit:cover ─────────────────── */
  .product-layout-11 .product-brands .product-brand {
    height: 32px;
    overflow: hidden;
    margin: 4px 0 6px;
  }
  .product-layout-11 .product-brands .product-brand img,
  .product-layout-11 .summary-container .product-brands img {
    width: 120px !important;
    height: 32px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover;
    object-position: center;
  }

  /* ── (6) Título producto: 20px / 1.2 ────────────────────────────────────── */
  .product-layout-11 h1.product_title {
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 8px;
  }
  .product-layout-11 .product-prices {
    margin-top: 6px;
  }

  /* ── (7) seQura widget: zoom 0.85 ───────────────────────────────────────── */
  .product-layout-11 .sequra-promotion-widget {
    zoom: 0.85;
  }

}


/* ── PP2 Sticky bar (Bloque B) ─────────────────────────────────────────────
   Variable: :root { --pp2-sticky-pos: bottom; }
   Para mover a top: cambiar el valor a top (JS lo lee y ajusta bottom/top)
   ─────────────────────────────────────────────────────────────────────────── */
:root { --pp2-sticky-pos: bottom; }

.product-layout-11 .pp2-sticky-bar {
  display: block;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  background: #fff;
  border-top: 1px solid #dee2e6;
  box-shadow: 0 -2px 8px rgba(0,0,0,.10);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}
.product-layout-11 .pp2-sticky-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}
.product-layout-11 .pp2-sticky-pc { display: flex; }
.product-layout-11 .pp2-sticky-mob { display: none; }

@media (max-width: 767px) {
  .product-layout-11 .pp2-sticky-pc { display: none; }
  .product-layout-11 .pp2-sticky-mob { display: flex; }
  .product-layout-11 .pp2-sticky-bar { padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
}

.product-layout-11 .pp2-sticky-thumb {
  width: 44px; height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
}
.product-layout-11 .pp2-sticky-name {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 13px; color: inherit;
}
.product-layout-11 .pp2-sticky-price {
  font-size: 16px; font-weight: 700; white-space: nowrap; flex-shrink: 0;
}
.product-layout-11 .pp2-sticky-actions {
  display: flex; gap: 8px; flex-shrink: 0;
}
.product-layout-11 .pp2-sticky-btn {
  font-size: 13px; padding: 8px 14px; white-space: nowrap;
  background-color: #000 !important;
  color: #fff !important;
  border-color: #000 !important;
}
.product-layout-11 .pp2-sticky-btn:hover:not(:disabled) {
  background-color: #333 !important;
  border-color: #333 !important;
  color: #fff !important;
}
@media (max-width: 767px) {
  .product-layout-11 .pp2-sticky-btn { font-size: 12px; padding: 8px 10px; }
  .product-layout-11 .pp2-sticky-price { font-size: 15px; }
}
.product-layout-11 .pp2-sticky-btn:disabled,
.product-layout-11 .pp2-sticky-btn[disabled] {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #000 !important;
  opacity: .85;
  cursor: not-allowed;
}
/* Subir el botón scroll-to-top cuando la barra está visible */
body.pp2-sticky-on #back-top { bottom: 72px; }
/* PC: desplazar miniatura+nombre a la derecha del chat flotante (~255px) */
@media (min-width: 768px) {
  .product-layout-11 .pp2-sticky-pc .pp2-sticky-thumb {
    margin-left: 290px;
  }
}

/* Oculta FBT duplicado en pie de pagina */
#product-footer #abs_usually_bought_together { display: none; }
