/* ============================================================
   P&D REPRESENTACIONES — SINGLE PRODUCT CSS
   Navbar, variables, reset → handled by global.css
   ============================================================ */

/* ── BREADCRUMB ── */
.breadcrumb {
    max-width: 1280px; margin: 0 auto;
    padding: 88px 24px 16px;
    font-size: 13px;
    color: var(--pyd-text-light);
}
.breadcrumb a { color: var(--pyd-text-light); text-decoration: none; }
.breadcrumb a:hover { color: var(--pyd-primary); }
.breadcrumb .breadcrumb__sep { margin: 0 6px; opacity: 0.4; }

/* Back link — hidden on desktop */
.breadcrumb-back { display: none; }

/* ── PRODUCT HERO ── */
.product-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 24px 24px;
    display: grid;
    grid-template-columns: 100px 1fr 400px;
    gap: 16px;
    align-items: start;
}

/* Thumbnails — vertical strip */
.product-hero__thumbs {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 8px;
    align-self: start;
    max-height: 560px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--pyd-border) transparent;
}
.product-hero__thumb {
    width: 100px; height: 100px;
    background: var(--pyd-bg-alt);
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: border-color 0.2s;
    overflow: hidden;
}
.product-hero__thumb--active {
    border: 4px solid var(--pyd-primary);
}
.product-hero__thumb:not(.product-hero__thumb--active):hover {
    border-color: var(--pyd-text-light);
}
.product-hero__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-hero__thumb-placeholder { font-size: 11px; color: var(--pyd-text-light); opacity: 0.5; }

/* Video thumbnail — inherits .product-hero__thumb size (100×100) */
.product-hero__thumb--video {
    position: relative;
    background: var(--pyd-bg-alt);
}
.product-hero__thumb-preview {
    pointer-events: none;
}
.product-hero__thumb-sprite {
    width: 100%;
    aspect-ratio: 1/1;
    display: block;
}
.product-hero__thumb--video img,
.product-hero__thumb--video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
    outline: none;
}
.product-hero__thumb-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}

/* Video player in main area */
.product-hero__image--video {
    background: black;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Constrain video player to fill hero */
.product-hero__image--video .pyd-vp {
    width: 100%;
    height: 100%;
}
.product-hero__image--video .pyd-vp__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-hero__video {
    width: 100%;
    max-height: 560px;
    object-fit: contain;
    border: none;
    display: block;
    margin: auto;
}

.product-hero__image--video .product-hero__image-hitarea,
.product-hero__image--video .product-hero__image-cursor {
    display: none;
}

/* Fixed nav chevrons (video mode only) */
.product-hero__nav-fixed {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: none;
}
.product-hero__nav-fixed--prev { left: 10px; }
.product-hero__nav-fixed--next { right: 10px; }
.product-hero__image--video .product-hero__nav-fixed {
    display: flex;
    transition: opacity 0.3s ease;
}
.product-hero__image--video .product-hero__nav-fixed--hidden {
    opacity: 0;
    pointer-events: none;
}

/* Play/pause overlay */
.product-hero__play-overlay {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}
.product-hero__play-overlay.is-visible {
    display: flex;
}
.product-hero__play-overlay svg {
    width: 52px;
    height: 52px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
    opacity: 0;
    transform: scale(0.8);
    animation: playPulse 0.6s ease forwards;
}
@keyframes playPulse {
    0% { opacity: 0.9; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0; transform: scale(1.2); }
}
/* Play/pause pulse inside video player (desktop, works in hero + lightbox) */
.pyd-vp__pulse {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9;
    pointer-events: none;
}
.pyd-vp__pulse--show { display: flex; }
.pyd-vp__pulse svg {
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
    opacity: 0;
    transform: scale(0.8);
    animation: playPulse 0.6s ease forwards;
}

/* Main image */
.product-hero__image {
    background: var(--pyd-bg-alt);
    border-radius: 12px;
    width: 100%;
    height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-hero__image img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    display: block;
    margin: auto;
    transition: transform 0.5s ease;
}
.product-hero__image:hover img { transform: scale(1.05); }

/* Image nav — cursor-following chevron */
.product-hero__image { position: relative; }

/* Expand button — pill in top-right corner */
.product-hero__expand {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    border: none;
    background: rgba(255,255,255,0.9);
    color: var(--pyd-primary, #0070C0);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: background 0.2s ease, transform 0.2s ease;
}
.product-hero__expand:hover {
    background: white;
    transform: scale(1.08);
}
.product-hero__image--video .product-hero__expand { display: none; }

.product-hero__image-hitarea {
    position: absolute;
    inset: 0;
    z-index: 3;
    cursor: none;
}

.product-hero__image-cursor {
    position: absolute;
    z-index: 4;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}

/* Info panel */
.product-hero__info {
    padding: 0 0 0 8px;
    display: flex;
    flex-direction: column;
}

.product-hero__cat {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--pyd-primary);
    margin-bottom: 10px;
    text-align: center;
}

.product-hero__title {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--pyd-heading);
    line-height: 1.15;
    margin-bottom: 20px;
    text-align: center;
}

.product-hero__excerpt {
    font-size: 15px;
    line-height: 1.7;
    color: var(--pyd-text);
    margin-bottom: 20px;
}

/* Divider */
.product-hero__divider {
    height: 1px;
    background: var(--pyd-border);
    margin-bottom: 12px;
}

/* Variation selector */
.product-hero__var-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--pyd-text-light);
    margin-bottom: 6px;
}

/* Custom dropdown — variation selector */
.pyd-dropdown {
    position: relative;
    margin-bottom: 6px;
}
.pyd-dropdown__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--pyd-bg-alt);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Archivo', sans-serif;
    transition: background 0.2s;
}
.pyd-dropdown__trigger:hover {
    background: var(--pyd-border);
}
.pyd-dropdown__trigger--placeholder .pyd-dropdown__name {
    color: var(--pyd-text-light);
    font-weight: 400;
}
.pyd-dropdown--open .pyd-dropdown__trigger {
    border-radius: 10px 10px 0 0;
}
.pyd-dropdown__selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 12px;
}
.pyd-dropdown__name {
    font-size: 14px;
    font-weight: 500;
    color: var(--pyd-heading);
}
.pyd-dropdown__price {
    font-size: 17px;
    font-weight: 700;
    color: var(--pyd-heading);
}
.pyd-dropdown__chevron {
    color: var(--pyd-text-light);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    margin-left: 10px;
}
.pyd-dropdown--open .pyd-dropdown__chevron {
    transform: rotate(180deg);
}

/* Dropdown list — slide down */
.pyd-dropdown__list {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: white;
    border-radius: 0 0 10px 10px;
    list-style: none;
    max-height: 0;
    overflow: hidden;
    z-index: 50;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.pyd-dropdown--open .pyd-dropdown__list {
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--pyd-border) transparent;
}
.pyd-dropdown__option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    cursor: pointer;
    transition: background 0.12s;
}
.pyd-dropdown__option:hover {
    background: var(--pyd-bg-alt);
}
.pyd-dropdown__option + .pyd-dropdown__option {
    border-top: 1px solid var(--pyd-bg-alt);
}

/* Check indicator */
.pyd-dropdown__option::before {
    content: '';
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid var(--pyd-border);
    flex-shrink: 0;
    transition: border-color 0.15s, background 0.15s;
}
.pyd-dropdown__option--active::before {
    border-color: var(--pyd-primary);
    background: var(--pyd-primary);
    box-shadow: inset 0 0 0 3px white;
}
.pyd-dropdown__option-name {
    font-family: 'Archivo', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--pyd-text);
    flex: 1;
}
.pyd-dropdown__option--active .pyd-dropdown__option-name {
    color: var(--pyd-heading);
    font-weight: 600;
}
.pyd-dropdown__option-price {
    font-family: 'Archivo', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--pyd-heading);
}

.product-hero__var-sku {
    font-size: 11px;
    color: var(--pyd-text-light);
    margin-bottom: 12px;
}

/* Price */
.product-hero__price {
    font-size: 24px;
    font-weight: 700;
    color: var(--pyd-heading);
    margin-bottom: 2px;
}
.product-hero__price-note {
    font-size: 11px;
    color: var(--pyd-text-light);
    margin-bottom: 10px;
}

/* Add to cart */
.product-hero__actions {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}
/* Qty counter */
.pyd-qty {
    display: flex;
    align-items: center;
    gap: 2px;
}
.pyd-qty__btn {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--pyd-bg-alt);
    border-radius: 50%;
    font-size: 14px;
    color: var(--pyd-text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background 0.15s;
    font-family: 'Archivo', sans-serif;
    line-height: 1;
}
.pyd-qty__btn:hover {
    color: var(--pyd-heading);
    background: var(--pyd-border);
}
.pyd-qty__input {
    width: 32px;
    text-align: center;
    font-family: 'Archivo', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--pyd-heading);
    border: none;
    background: none;
    padding: 0;
    outline: none;
}
.product-hero__btn {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s;
    background: var(--pyd-heading);
    color: white;
}
.product-hero__btn:hover { background: var(--pyd-dark-soft); }

/* Payment methods */
.product-hero__payment {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
}
.product-hero__lock {
    color: var(--pyd-text-light);
    flex-shrink: 0;
}
.product-hero__payment-label {
    font-size: 11px;
    color: var(--pyd-text-light);
    white-space: nowrap;
}
.product-hero__cards {
    display: flex;
    align-items: center;
    gap: 6px;
}
.product-hero__card-icon {
    height: 30px;
    width: auto;
    border-radius: 3px;
}
.product-hero__card-icon[alt="Diners Club"] {
    height: 24px;
}
.product-hero__card-icon[alt="Discover"] {
    height: 34px;
}

/* Meta pills */
.product-hero__meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 24px;
    border-top: 1px solid var(--pyd-border);
}
.product-hero__meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--pyd-text-light);
}
.product-hero__meta-icon {
    width: 32px; height: 32px;
    background: var(--pyd-bg-alt);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.product-hero__meta-item--stock { color: var(--pyd-success); font-weight: 500; }

/* ════════════════════════════════════════
   PRODUCT TABS
   ════════════════════════════════════════ */

/* Tokens — un solo lugar para ajustar */
.product-tabs-section {
    --tab-bg: var(--pyd-bg-alt);
    --tab-heading: var(--pyd-heading);
    --tab-text: var(--pyd-text);
    --tab-text-light: var(--pyd-text-light);
    --tab-border: var(--pyd-border);
    --tab-strong: var(--pyd-heading);

    background: var(--tab-bg);
    padding: 80px 64px;
}

.product-tabs-section__inner {
    max-width: 900px;
    margin: 0 auto;
}

/* Tab buttons */
.product-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    border-bottom: 1px solid var(--tab-border);
    margin-bottom: 48px;
}

.product-tab {
    font-family: 'Archivo', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 16px 28px;
    border: none;
    background: none;
    color: var(--tab-text-light);
    cursor: pointer;
    position: relative;
    transition: color 0.25s;
}
.product-tab:hover { color: var(--tab-text); }
.product-tab--active { color: var(--tab-heading); }
.product-tab--active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 28px; right: 28px;
    height: 2px;
    background: var(--pyd-primary);
}

/* In-card title — hidden on desktop (tab bar handles it), visible on mobile */
.product-tab-content__title { display: none; }

/* Tab content — viewport height max with scroll */
.product-tab-content { display: none; }
.product-tab-content--active {
    display: block;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--tab-border) transparent;
}
.product-tab-content--active::-webkit-scrollbar { width: 4px; }
.product-tab-content--active::-webkit-scrollbar-track { background: transparent; }
.product-tab-content--active::-webkit-scrollbar-thumb { background: var(--tab-border); border-radius: 4px; }

/* Description tab */
.tab-description__title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--tab-heading);
    margin-bottom: 24px;
    line-height: 1.25;
}
.tab-description__text {
    font-size: 15px;
    line-height: 1.85;
    color: var(--tab-text);
}
.tab-description__text strong { color: var(--tab-strong); }
.tab-description__list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}
.tab-description__list li {
    font-size: 15px;
    color: var(--tab-text);
    padding: 10px 0 10px 28px;
    position: relative;
    line-height: 1.6;
}
.tab-description__list li::before {
    content: '';
    position: absolute;
    left: 0; top: 18px;
    width: 12px; height: 1px;
    background: var(--pyd-primary);
}

/* Specs tab */
.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--tab-border);
}
.spec-row__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--tab-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.spec-row__value {
    font-size: 14px;
    color: var(--tab-heading);
}

/* WooCommerce content styling (Más información tab) */
.tab-wc-content {
    font-family: 'Archivo', sans-serif;
    font-size: 15px;
    line-height: 1.85;
    color: var(--tab-text);
}
.tab-wc-content strong { color: var(--tab-strong); }
.tab-wc-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--tab-heading);
    margin: 40px 0 16px;
}
.tab-wc-content h2:first-child { margin-top: 0; }
.tab-wc-content h3 {
    font-family: 'Archivo', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--tab-heading);
    margin: 32px 0 12px;
}
.tab-wc-content h5 {
    font-family: 'Archivo', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--tab-heading);
    margin: 24px 0 12px;
}
.tab-wc-content p { margin-bottom: 16px; }
.tab-wc-content ul, .tab-wc-content ol {
    padding-left: 24px;
    margin: 16px 0;
}
.tab-wc-content li {
    margin-bottom: 8px;
    color: var(--tab-text);
}
.tab-wc-content hr {
    border: none;
    height: 1px;
    background: var(--tab-border);
    margin: 32px 0;
}
.tab-wc-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}
.tab-wc-content th {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--tab-text-light);
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid var(--tab-border);
    background: rgba(0,0,0,0.02);
}
.tab-wc-content td {
    font-size: 14px;
    padding: 10px 16px;
    text-align: center;
    color: var(--tab-text);
    border: 1px solid var(--tab-border);
}
.tab-wc-content a {
    color: var(--pyd-primary);
    text-decoration: none;
}
.tab-wc-content a:hover { text-decoration: underline; }

/* Norma tab */
.tab-norma__subtitle {
    font-size: 15px;
    color: var(--tab-text-light);
    margin-bottom: 32px;
    line-height: 1.7;
}
.norma-table { width: 100%; border-collapse: collapse; }
.norma-table th {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--tab-text-light);
    padding: 14px 20px; text-align: center;
    border-bottom: 1px solid var(--tab-border);
}
.norma-table td {
    font-size: 15px; padding: 14px 20px;
    text-align: center; color: var(--tab-text);
    border-bottom: 1px solid var(--tab-border);
}
.norma-table tr.highlight td {
    color: var(--tab-heading); font-weight: 600;
    background: rgba(0,112,192,0.06);
}
.norma-table__note {
    font-size: 12px; color: rgba(255,255,255,0.25);
    text-align: center; margin-top: 20px;
}

/* Footer and trust bar → handled by global.css */

/* ── RESPONSIVE ── */
/* ── RESPONSIVE — TABLET ── */
@media (max-width: 1024px) {
    .product-hero {
        grid-template-columns: 80px 1fr 340px;
        gap: 12px;
        padding: 12px 20px 24px;
    }
    .product-hero__thumb { width: 72px; height: 72px; }
    .specs-grid { grid-template-columns: 1fr; }
}

/* ── Premium Lightbox ── */
.pyd-lightbox {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
}
.pyd-lightbox--open { display: flex; }

/* Backdrop with blur */
.pyd-lb__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Close button */
.pyd-lb__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: color 0.2s, background 0.2s;
}
.pyd-lb__close:hover { color: white; background: rgba(255,255,255,0.1); }

/* Counter */
.pyd-lb__counter {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    color: rgba(255,255,255,0.6);
    font-family: 'Archivo', sans-serif;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}

/* Chevron navigation */
.pyd-lb__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    padding: 16px;
    border-radius: 50%;
    transition: color 0.2s, background 0.2s;
}
.pyd-lb__nav:hover { color: white; background: rgba(255,255,255,0.1); }
.pyd-lb__nav--prev { left: 12px; }
.pyd-lb__nav--next { right: 12px; }

/* Content area */
.pyd-lb__content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 80vh;
    cursor: zoom-in;
    transition: opacity 0.15s ease;
}
.pyd-lb__content--fade { opacity: 0; }
.pyd-lb__content--zoomed { cursor: grab; }
.pyd-lb__content--zoomed:active { cursor: grabbing; }
.pyd-lightbox--video .pyd-lb__content { cursor: default; }

/* Image */
.pyd-lb__img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    transform-origin: center;
    transition: transform 0.25s ease;
    user-select: none;
    -webkit-user-select: none;
}

/* Thumbnail strip */
.pyd-lb__thumbs {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(0,0,0,0.5);
    border-radius: 10px;
    max-width: 80vw;
    overflow-x: auto;
    scrollbar-width: none;
}
.pyd-lb__thumbs::-webkit-scrollbar { display: none; }
.pyd-lb__thumb {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 6px;
    border: 2px solid transparent;
    background: rgba(255,255,255,0.1);
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    transition: border-color 0.2s, opacity 0.2s;
    opacity: 0.5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pyd-lb__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pyd-lb__thumb:hover { opacity: 0.8; }
.pyd-lb__thumb--active { border-color: white; opacity: 1; }
.pyd-lb__thumb--video { color: white; font-size: 14px; }
.pyd-lb__thumb-play { pointer-events: none; }
/* ── Reusable video player (.pyd-vp) ── */
.pyd-vp {
    position: relative;
    background: #000;
    width: 100%;
    z-index: 5;
}
.pyd-vp__video {
    width: 100%;
    display: block;
}
/* Center play/pause button (mobile) */
.pyd-vp__center-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0,0,0,0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 8;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.2s ease;
}
/* Seek ripple overlays (mobile double-tap ±5s) */
.pyd-vp__seek {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 8;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}
.pyd-vp__seek--visible { opacity: 1; }
.pyd-vp__seek--left {
    left: 0;
    border-radius: 0 50% 50% 0;
    background: rgba(255,255,255,0.12);
}
.pyd-vp__seek--right {
    right: 0;
    border-radius: 50% 0 0 50%;
    background: rgba(255,255,255,0.12);
}
.pyd-vp__seek-arrows {
    font-size: 22px;
    color: white;
    letter-spacing: -4px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.pyd-vp__seek-text {
    font-family: 'Archivo', sans-serif;
    font-size: 12px;
    color: white;
    margin-top: 4px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
/* Fullscreen: video centered, controls pinned to bottom */
.pyd-vp--fullscreen {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #000 !important;
}
.pyd-vp--fullscreen .pyd-vp__video {
    width: 100% !important;
    max-height: calc(100vh - 48px) !important;
    max-height: calc(100dvh - 48px) !important;
    object-fit: contain !important;
}
.pyd-vp--fullscreen .pyd-vc {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
}
/* Hide all lightbox chrome when video is fullscreen */
.pyd-vp--fullscreen ~ .pyd-lb__thumbs,
.pyd-vp--fullscreen ~ .pyd-lb__close,
.pyd-vp--fullscreen ~ .pyd-lb__counter,
.pyd-vp--fullscreen ~ .pyd-lb__nav { display: none !important; }
.pyd-lb__content:has(.pyd-vp--fullscreen) ~ .pyd-lb__thumbs,
.pyd-lb__content:has(.pyd-vp--fullscreen) ~ .pyd-lb__close,
.pyd-lb__content:has(.pyd-vp--fullscreen) ~ .pyd-lb__counter,
.pyd-lb__content:has(.pyd-vp--fullscreen) ~ .pyd-lb__nav { display: none !important; }

/* Hide cursor + controls after inactivity in fullscreen */
.pyd-vp--cursor-hidden {
    cursor: none !important;
}
.pyd-vp--cursor-hidden * {
    cursor: none !important;
}
.pyd-vp--cursor-hidden .pyd-vc {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Custom video controls — Gradient fade */
.pyd-vc {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 14px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 7;
    transition: opacity 0.3s ease;
}
.pyd-vc--hidden { opacity: 0; pointer-events: none; }
.pyd-vc__play,
.pyd-vc__fs {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
}
.pyd-vc__progress {
    flex: 1;
    height: 24px;
    cursor: pointer;
    position: relative;
    touch-action: none;
    display: flex;
    align-items: center;
}
/* Visible track (4px centered) */
.pyd-vc__progress::before {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 4px;
    background: rgba(255,255,255,0.25);
    border-radius: 2px;
}
.pyd-vc__bar {
    position: absolute;
    left: 0;
    height: 4px;
    background: var(--pyd-primary, #0070C0);
    border-radius: 2px;
    width: 0;
    z-index: 2;
}
/* Gray preview fill (hover/touch) */
.pyd-vc__preview {
    position: absolute;
    left: 0;
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    width: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.15s;
}
/* Thumb — always visible at current progress, follows mouse on hover */
.pyd-vc__thumb {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 1px 5px rgba(0,0,0,0.4);
    z-index: 3;
    pointer-events: none;
    transition: width 0.15s, height 0.15s;
}
/* Thumbnail preview tooltip (desktop only) */
.pyd-vc__preview-tip {
    position: absolute;
    bottom: calc(100% + 14px);
    transform: translateX(-50%);
    display: none;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    z-index: 10;
}
.pyd-vc__preview-tip canvas {
    border-radius: 4px;
    border: 2px solid rgba(255,255,255,0.9);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    display: block;
}
.pyd-vc__preview-time {
    font-family: 'Archivo', sans-serif;
    font-size: 11px;
    color: white;
    background: rgba(0,0,0,0.7);
    padding: 2px 6px;
    border-radius: 3px;
    margin-top: 4px;
}
/* Sprite preview tooltip (mobile) */
.pyd-vc__sprite-tip {
    position: absolute;
    bottom: calc(100% + 14px);
    left: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    z-index: 10;
    will-change: opacity;
    transition: opacity 0.15s ease;
}
.pyd-vc__sprite-img {
    background-repeat: no-repeat;
    border-radius: 4px;
    border: 2px solid rgba(255,255,255,0.9);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* On hover: thumb grows, preview shows */
.pyd-vc__progress--seeking .pyd-vc__thumb {
    width: 18px;
    height: 18px;
}
.pyd-vc__progress--seeking .pyd-vc__preview {
    opacity: 1;
}
.pyd-vc__time {
    color: rgba(255,255,255,0.6);
    font-size: 11px;
    font-family: 'Archivo', sans-serif;
    min-width: 32px;
}

/* Lightbox UI toggle (single tap hides/shows controls on mobile) */
.pyd-lightbox--ui-hidden .pyd-lb__close,
.pyd-lightbox--ui-hidden .pyd-lb__nav,
.pyd-lightbox--ui-hidden .pyd-lb__counter,
.pyd-lightbox--ui-hidden .pyd-lb__thumbs {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Lightbox video */
.pyd-lightbox__video-wrap .pyd-vp__video {
    max-height: 70vh;
}
.pyd-lightbox__video {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border: none;
    display: block;
}

/* Gallery indicator — hidden on desktop */
.product-gallery-indicator { display: none; }

/* Tabs indicator — hidden on desktop */
.product-tabs-indicator { display: none; }

/* ── RESPONSIVE — MOBILE ── */
@media (max-width: 768px) {
    .breadcrumb { display: none; }
    .breadcrumb-back {
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 72px 16px 12px;
        font-family: 'Archivo', sans-serif;
        font-size: 13px;
        color: var(--pyd-text-light);
    }
    .breadcrumb-back a {
        color: var(--pyd-text-light);
        text-decoration: none;
    }
    .breadcrumb-back svg { flex-shrink: 0; display: block; }
    .breadcrumb-back__arrow { display: flex; align-items: center; line-height: 0; }
    .breadcrumb-back__parent { opacity: 0.6; }
    .breadcrumb-back__sep { opacity: 0.3; margin: 0 4px; }

    /* Hero → single column, no padding (image goes edge-to-edge) */
    .product-hero {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 0;
    }

    /* Image: edge-to-edge, height follows natural aspect ratio */
    .product-hero__image {
        order: 1;
        height: auto;
        min-height: auto;
        max-height: none;
        border-radius: 0;
    }
    .product-hero__image img {
        width: 100%;
        height: auto;
        max-width: 100%;
        max-height: none;
        display: block;
        margin: 0;
    }
    .product-hero__image:hover img { transform: none; }

    /* Thumbnails — hidden on mobile, replaced by dot indicator */
    .product-hero__thumbs {
        display: none;
    }

    /* Info below — needs its own padding now */
    .product-hero__info {
        order: 3;
        padding: 20px 16px 32px;
    }
    .product-hero__cat { font-size: 10px; }
    .product-hero__title {
        font-size: 24px;
        margin-bottom: 12px;
    }
    .product-hero__excerpt { font-size: 14px; }
    .product-hero__var-label { font-size: 10px; }

    /* Dropdown full width */
    .pyd-dropdown__trigger { padding: 14px 16px; }
    .pyd-dropdown__name { font-size: 14px; }
    .pyd-dropdown__price { font-size: 16px; }
    .pyd-dropdown__option { padding: 12px 16px; }

    /* Price */
    .product-hero__price { font-size: 22px; }

    /* Actions: qty + button full width */
    .product-hero__actions {
        flex-direction: row;
        gap: 10px;
    }
    .product-hero__btn {
        font-size: 13px;
        padding: 14px 20px;
        letter-spacing: 1px;
    }

    /* Payment logos */
    .product-hero__payment {
        flex-wrap: wrap;
        gap: 8px;
    }
    .product-hero__card-icon { height: 24px; }
    .product-hero__card-icon[alt="Diners Club"] { height: 20px; }
    .product-hero__card-icon[alt="Discover"] { height: 28px; }

    /* Chevron nav — hide all on mobile (swipe + dots instead) */
    .product-hero__image-hitarea,
    .product-hero__image-cursor,
    .product-hero__nav-fixed { display: none !important; }

    /* Video — force stacking context for absolute overlays on real mobile */
    .product-hero__image--video { display: block; }
    .product-hero__image--video .pyd-vp {
        position: relative;
        width: 100%;
        height: auto;
    }
    .product-hero__image--video .pyd-vp__video {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    .product-hero__video { max-height: 400px; }

    /* Meta pills */
    .product-hero__meta { padding-top: 16px; }

    /* Tabs — swipeable cards */
    .product-tabs-section { padding: 32px 0 48px; }

    /* Tab bar — hidden on mobile (titles are inside cards) */
    .product-tabs { display: none; }

    /* Content strip — native scroll-snap for smooth card swiping */
    .product-tabs-strip__track {
        display: flex;
        gap: 12px;
        padding: 8px 20px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .product-tabs-strip__track::-webkit-scrollbar { display: none; }
    .product-tab-content {
        flex: 0 0 calc(100vw - 24px);
        min-width: calc(100vw - 24px);
        scroll-snap-align: center;
        scroll-snap-stop: always;
        display: block !important;
        max-height: none;
        overflow-y: visible;
        background: white;
        border-radius: 16px;
        padding: 28px 20px;
        box-shadow: 0 2px 20px rgba(0,0,0,0.06);
        box-sizing: border-box;
    }

    /* In-card title */
    .product-tab-content__title {
        display: block;
        font-family: 'Archivo', sans-serif;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 2px;
        color: var(--pyd-heading);
        margin: 0 0 20px;
        padding-bottom: 12px;
        border-bottom: 2px solid var(--pyd-primary);
        text-align: center;
    }

    .tab-description__title { font-size: 22px; }
    .tab-wc-content h2 { font-size: 20px; }
    .tab-wc-content { font-size: 14px; }

    /* Spec rows — stacked on mobile */
    .spec-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .spec-row__value {
        font-size: 14px;
    }

    /* ── Tabs indicator (simple dots) ── */
    .product-tabs-indicator {
        display: flex;
        justify-content: center;
        margin-bottom: 16px;
    }
    .product-tabs-indicator__track {
        display: inline-flex;
        align-items: center;
    }
    .product-tabs-indicator__progress { display: none; }
    .product-tabs-indicator__dots {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .product-tabs-indicator__dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: rgba(0,0,0,0.15);
        border: none;
        transition: background 0.3s ease;
        flex-shrink: 0;
        cursor: pointer;
    }
    .product-tabs-indicator__dot.active {
        background: var(--pyd-primary);
    }

    /* ── Gallery indicator (mobile dots over image + pill on swipe) ── */
    .product-gallery-indicator {
        display: flex;
        position: absolute;
        bottom: 16px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 5;
    }
    /* Video tap overlay — intercepts taps above controls bar for play/pause */
    .pyd-video-tap-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 48px;
        z-index: 6;
        background: transparent;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    /* Hide expand pill on mobile (tap image opens lightbox directly) */
    .product-hero__expand { display: none; }

    /* ── Lightbox mobile: simple, no desktop chrome ── */
    .pyd-lb__nav,
    .pyd-lb__thumbs { display: none !important; }
    .pyd-lb__backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(0,0,0,0.95); }
    .pyd-lb__content { max-width: 100vw; max-height: 90vh; }
    .pyd-lb__img { max-width: 100vw; max-height: 90vh; }
    .pyd-lb__close { top: 10px; right: 10px; }

    /* Desktop preview tip hidden on mobile (sprite replaces it) */
    .pyd-vc__preview-tip { display: none !important; }

    /* Hide gallery dots during video */
    .product-hero__image--video .product-gallery-indicator {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    .product-gallery-indicator__track {
        position: relative;
        display: inline-flex;
        align-items: center;
        border-radius: 20px;
        padding: 10px 20px;
    }
    /* Pill background — appears on swipe */
    .product-gallery-indicator__track::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.5);
        border-radius: 20px;
        opacity: 0;
        transition: opacity 0.4s ease;
    }
    .product-gallery-indicator.pill-visible .product-gallery-indicator__track::before {
        opacity: 1;
    }
    /* Progress line — appears on swipe */
    .product-gallery-indicator__progress {
        position: absolute;
        top: 50%;
        left: 20px;
        height: 10px;
        background: white;
        transform: translateY(-50%);
        border-radius: 5px;
        width: 10px;
        z-index: 2;
        opacity: 0;
        transition: width 0.3s ease, opacity 0.4s ease;
    }
    .product-gallery-indicator.pill-visible .product-gallery-indicator__progress {
        opacity: 1;
    }
    /* Dots — always visible over image */
    .product-gallery-indicator__dots {
        display: flex;
        align-items: center;
        gap: 14px;
        position: relative;
        z-index: 3;
    }
    .product-gallery-indicator__dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: rgba(255,255,255,0.7);
        border: none;
        box-shadow: 0 1px 3px rgba(0,0,0,0.4);
        transition: all 0.3s ease;
        flex-shrink: 0;
        cursor: pointer;
        box-sizing: border-box;
    }
    .product-gallery-indicator__dot.active {
        width: 9px;
        height: 9px;
        background: white;
    }
    /* Video dots — play triangle only (no circle) */
    .product-gallery-indicator__dot[data-video] {
        width: 0;
        height: 0;
        background: none;
        box-shadow: none;
        border-radius: 0;
        border: none;
        border-left: 7px solid rgba(255,255,255,0.7);
        border-top: 4.5px solid transparent;
        border-bottom: 4.5px solid transparent;
        filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
    }
    .product-gallery-indicator__dot[data-video].active {
        border-left-color: white;
        border-left-width: 9px;
        border-top-width: 5.5px;
        border-bottom-width: 5.5px;
    }

    /* When pill visible: visited/active dots grow transparent (progress covers them) */
    .product-gallery-indicator.pill-visible .product-gallery-indicator__dot.visited,
    .product-gallery-indicator.pill-visible .product-gallery-indicator__dot.active {
        width: 10px;
        height: 10px;
        background: transparent;
        box-shadow: none;
    }
    .product-gallery-indicator.pill-visible .product-gallery-indicator__dot[data-video].visited,
    .product-gallery-indicator.pill-visible .product-gallery-indicator__dot[data-video].active {
        border-left-color: transparent;
    }
}
