/* ═══════════════════════════════════════════════════════════════
 * PDP.CSS — Brillo de Amalia
 * Estilos para Product Detail Pages
 * ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────
 * 0. SUPERFICIE REAL WOOCOMMERCE
 * ───────────────────────────────────────────── */
body.single-product {
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.76), transparent 38%),
        linear-gradient(180deg, #f8f5f1 0%, #f5f1eb 42%, #f8f6f3 100%);
}

body.single-product .site-main {
    position: relative;
}

body.single-product div.product {
    display: grid;
    gap: clamp(1.75rem, 3vw, 3rem);
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

body.single-product div.product > * {
    min-width: 0;
}

body.single-product div.product .woocommerce-tabs,
body.single-product div.product .related.products,
body.single-product div.product .up-sells.upsells {
    grid-column: 1 / -1;
    width: 100%;
}

@media (min-width: 992px) {
    body.single-product div.product {
        grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 0.92fr);
        align-items: start;
    }
}

body.single-product div.product .woocommerce-product-gallery,
body.single-product div.product .summary {
    position: relative;
    float: none;
    width: auto;
    max-width: none;
    min-width: 0;
    border: 1px solid rgba(149, 165, 166, 0.18);
    border-radius: 32px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(248, 246, 243, 0.86)),
        rgba(255, 255, 255, 0.82);
    box-shadow:
        0 30px 70px rgba(17, 24, 39, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

body.single-product div.product .woocommerce-product-gallery {
    padding: clamp(1rem, 2vw, 1.4rem);
}

@media (min-width: 992px) {
    body.single-product div.product .woocommerce-product-gallery {
        position: sticky;
        top: calc(var(--bda-nav-offset, 5.5rem) + var(--bda-admin-bar-offset, 0px) + 0.5rem);
    }
}

body.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(243, 244, 246, 0.92), rgba(255, 255, 255, 0.88));
}

body.single-product div.product .woocommerce-product-gallery__image {
    border-radius: 24px;
    overflow: hidden;
}

body.single-product div.product .woocommerce-product-gallery__image img {
    border-radius: 24px;
}

body.single-product div.product .flex-control-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(4.5rem, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

body.single-product div.product .flex-control-thumbs li {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(149, 165, 166, 0.2);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
    transition:
        transform var(--bda-duration-fast) var(--bda-ease-out),
        box-shadow var(--bda-duration-fast) var(--bda-ease-out),
        border-color var(--bda-duration-fast) var(--bda-ease);
}

body.single-product div.product .flex-control-thumbs li img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    opacity: 0.88;
}

body.single-product div.product .flex-control-thumbs li:hover {
    border-color: rgba(44, 62, 80, 0.28);
    box-shadow: 0 16px 28px rgba(17, 24, 39, 0.12);
    transform: translateY(-2px);
}

body.single-product div.product .flex-control-thumbs li img.flex-active {
    opacity: 1;
}

body.single-product div.product .summary {
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

body.single-product div.product .summary > *:first-child {
    margin-top: 0;
}

body.single-product .summary .product_title {
    font-family: var(--bda-font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    color: #111827;
    max-width: none;
    word-break: normal;
    overflow-wrap: normal;
}

body.single-product .summary .price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.85rem;
    margin-bottom: 1rem;
    font-size: clamp(1.5rem, 2.2vw, 1.95rem);
    font-weight: 600;
    color: #111827;
}

body.single-product .summary .price del {
    color: #7c8a97;
    font-size: 0.9em;
    font-weight: 400;
}

body.single-product .summary .price ins {
    text-decoration: none;
}

body.single-product .summary .woocommerce-product-details__short-description {
    margin-bottom: 1.35rem;
    color: #4b5563;
    line-height: 1.75;
}

body.single-product .summary .woocommerce-product-details__short-description p:last-child {
    margin-bottom: 0;
}

body.single-product div.product .woocommerce-product-gallery,
body.single-product div.product .summary,
body.single-product .bda-pdp-summary-panel .summary,
body.single-product .summary.entry-summary {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

body.single-product .summary .stock,
body.single-product .summary .woocommerce-review-link {
    color: #667085;
    font-size: 0.9rem;
}

body.single-product .summary .bda-pdp-variation--summary {
    margin-bottom: 1.25rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(149, 165, 166, 0.2);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(244, 240, 233, 0.72));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

body.single-product .summary .bda-pdp-variation-label {
    color: #344054;
}

body.single-product .summary .bda-pdp-sizes {
    gap: 0.625rem;
}

body.single-product .summary .bda-pdp-size-pill {
    border-color: rgba(149, 165, 166, 0.28);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

body.single-product .summary form.cart {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(149, 165, 166, 0.2);
}

body.single-product .summary form.cart:not(.variations_form),
body.single-product .summary form.cart .variations_button,
body.single-product .summary form.cart .woocommerce-variation-add-to-cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.875rem;
}

body.single-product .summary form.cart table.variations {
    margin-bottom: 0.25rem;
    border-collapse: separate;
    border-spacing: 0 0.75rem;
}

body.single-product .summary form.cart table.variations th,
body.single-product .summary form.cart table.variations td {
    padding: 0;
}

body.single-product .summary form.cart table.variations label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #344054;
}

body.single-product .summary form.cart .reset_variations {
    font-size: 0.82rem;
    color: #5b6472;
}

body.single-product .summary .bda-variation-guidance {
    width: 100%;
    margin: 0.25rem 0 0.1rem;
    padding: 0.62rem 0.78rem;
    border: 1px solid rgba(149, 165, 166, 0.2);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.74);
    color: #536273;
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.42;
}

body.single-product .summary .bda-variation-guidance[hidden] {
    display: none !important;
}

body.single-product .summary .quantity {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-height: 3.35rem;
    padding: 0.3rem;
    border: 1px solid rgba(149, 165, 166, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow:
        0 14px 28px rgba(17, 24, 39, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.single-product .summary .quantity .qty,
body.single-product .summary .quantity input.qty {
    width: 3.2rem;
    min-height: 2.6rem;
    padding: 0;
    border: none;
    background: transparent;
    color: #111827;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    -moz-appearance: textfield;
}

body.single-product .summary .quantity input.qty::-webkit-inner-spin-button,
body.single-product .summary .quantity input.qty::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

body.single-product .summary .bda-pdp-qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.45rem;
    height: 2.45rem;
    border: none;
    border-radius: 999px;
    background: rgba(44, 62, 80, 0.08);
    color: #16202b;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    transition:
        background var(--bda-duration-fast) var(--bda-ease),
        transform var(--bda-duration-fast) var(--bda-ease-out);
}

body.single-product .summary .bda-pdp-qty-btn:hover {
    background: rgba(44, 62, 80, 0.14);
    transform: scale(1.04);
}

body.single-product .summary .single_add_to_cart_button {
    flex: 1 1 16rem;
    min-height: 3.6rem;
    padding-inline: 1.6rem;
}

body.single-product .summary .single_add_to_cart_button.is-busy {
    border-color: rgba(44, 62, 80, 0.24);
    box-shadow: 0 20px 42px rgba(17, 24, 39, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

body.single-product .summary .single_add_to_cart_button.is-disabled-by-variation,
body.single-product .summary .single_add_to_cart_button:disabled {
    cursor: not-allowed;
    opacity: 0.58;
    filter: grayscale(16%);
    box-shadow: none !important;
}

body.single-product .summary .product_meta {
    display: grid;
    gap: 0.65rem;
    margin-top: 1.4rem;
    padding-top: 1.35rem;
    border-top: 1px solid rgba(149, 165, 166, 0.2);
    color: #667085;
    font-size: 0.88rem;
}

body.single-product .summary .product_meta > span {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
}

body.single-product .summary .product_meta a {
    color: #344054;
    text-decoration-color: rgba(44, 62, 80, 0.2);
}

body.single-product .woocommerce-tabs {
    order: 3;
    margin-top: clamp(2.5rem, 6vw, 4.5rem);
    padding: clamp(1.35rem, 3vw, 2rem);
    border: 1px solid rgba(149, 165, 166, 0.18);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 24px 56px rgba(17, 24, 39, 0.06);
}

body.single-product .woocommerce-tabs ul.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0 0 1.5rem;
    padding: 0;
    border: none;
}

body.single-product .woocommerce-tabs ul.tabs::before,
body.single-product .woocommerce-tabs ul.tabs li::before,
body.single-product .woocommerce-tabs ul.tabs li::after {
    display: none;
}

body.single-product .woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
}

body.single-product .woocommerce-tabs ul.tabs li a {
    padding: 0.8rem 1.15rem;
    border-radius: 999px;
    border: 1px solid rgba(149, 165, 166, 0.2);
    background: rgba(255, 255, 255, 0.88);
    color: #344054;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.single-product .woocommerce-tabs ul.tabs li.active a {
    border-color: rgba(44, 62, 80, 0.2);
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.08), rgba(44, 62, 80, 0.03));
    color: #111827;
}

body.single-product .woocommerce-tabs .panel {
    margin: 0;
    color: #4b5563;
    line-height: 1.8;
}

body.single-product .related.products,
body.single-product .up-sells.upsells {
    order: 4;
    margin-top: clamp(3rem, 6vw, 5rem);
}

body.single-product .related.products > h2,
body.single-product .up-sells.upsells > h2 {
    font-family: var(--bda-font-display);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    margin-bottom: 1.75rem;
    color: #111827;
}

body.single-product .related.products .products,
body.single-product .up-sells.upsells .products {
    margin-top: 0;
}

/* ─────────────────────────────────────────────
 * 1. LAYOUT PRINCIPAL
 * ───────────────────────────────────────────── */
.bda-pdp {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .bda-pdp {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: start;
    }
}
@media (min-width: 1024px) {
    .bda-pdp {
        grid-template-columns: 7fr 5fr;
        gap: 4rem;
    }
}

/* ─────────────────────────────────────────────
 * 2. GALERÍA DE PRODUCTO
 * ───────────────────────────────────────────── */
.bda-pdp-gallery {
    position: sticky;
    top: calc(var(--bda-nav-offset, 5.5rem) + var(--bda-admin-bar-offset, 0px));
}

/* Imagen principal con zoom */
.bda-pdp-main-img {
    position: relative;
    aspect-ratio: 4/5;
    background: #f3f4f6;
    border-radius: var(--bda-radius);
    overflow: hidden;
    cursor: crosshair;
    margin-bottom: 0.75rem;
}
.bda-pdp-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(10%);
    transition: transform var(--bda-duration-fast) var(--bda-ease-out);
    transform-origin: var(--zoom-x, center) var(--zoom-y, center);
}
.bda-pdp-main-img:hover img {
    transform: scale(2);
}

/* Thumbnails */
.bda-pdp-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.bda-pdp-thumbs::-webkit-scrollbar { display: none; }

.bda-pdp-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 90px;
    border-radius: var(--bda-radius);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--bda-duration-fast) var(--bda-ease),
                opacity var(--bda-duration-fast) var(--bda-ease);
    opacity: 0.6;
}
.bda-pdp-thumb.is-active,
.bda-pdp-thumb:hover {
    border-color: var(--bda-primary);
    opacity: 1;
}
.bda-pdp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(10%);
}

/* Navegación flechas galería (mobile) */
.bda-pdp-gallery-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}
@media (min-width: 768px) {
    .bda-pdp-gallery-nav { display: none; }
}
.bda-pdp-gallery-dot {
    width: 6px;
    height: 6px;
    border-radius: var(--bda-radius-full);
    background: var(--bda-accent);
    border: none;
    cursor: pointer;
    transition: background var(--bda-duration-fast) var(--bda-ease),
                width var(--bda-duration-fast) var(--bda-ease);
}
.bda-pdp-gallery-dot.is-active {
    background: var(--bda-primary);
    width: 18px;
}

/* ─────────────────────────────────────────────
 * 3. INFO DE PRODUCTO
 * ───────────────────────────────────────────── */
.bda-pdp-info {
    padding-top: 1rem;
}

/* Breadcrumb */
.bda-pdp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--bda-text-light);
    margin-bottom: 1.5rem;
}
.bda-pdp-breadcrumb a {
    color: var(--bda-text-light);
    text-decoration: none;
    transition: color var(--bda-duration-fast) var(--bda-ease);
}
.bda-pdp-breadcrumb a:hover {
    color: var(--bda-primary);
}
.bda-pdp-breadcrumb span {
    color: var(--bda-accent);
}

/* Título */
.bda-pdp-title {
    font-family: var(--bda-font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 400;
    color: #111827;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

/* Material / subtítulo */
.bda-pdp-material {
    font-size: 0.9375rem;
    color: var(--bda-text-light);
    font-weight: 300;
    margin-bottom: 1.5rem;
}

/* Precio */
.bda-pdp-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1.5rem;
}
.bda-pdp-price del {
    color: var(--bda-secondary);
    font-weight: 400;
    font-size: 1.125rem;
    margin-right: 0.75rem;
}
.bda-pdp-price .bda-pdp-discount {
    font-size: 0.875rem;
    color: var(--bda-error);
    font-weight: 500;
    margin-left: 0.5rem;
}

/* Línea divisoria sutil */
.bda-pdp-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 1.5rem 0;
}

/* ─────────────────────────────────────────────
 * 4. VARIACIONES (talla, color)
 * ───────────────────────────────────────────── */
.bda-pdp-variation {
    margin-bottom: 1.5rem;
}
.bda-pdp-variation-label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bda-text);
    margin-bottom: 0.75rem;
    display: block;
}
.bda-pdp-sizes {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.bda-pdp-size-btn {
    min-width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d5db;
    border-radius: var(--bda-radius);
    background: transparent;
    font-size: 0.8125rem;
    color: var(--bda-text);
    cursor: pointer;
    transition: all var(--bda-duration-fast) var(--bda-ease);
    padding: 0 0.75rem;
}
.bda-pdp-size-pill {
    min-width: 2.5rem;
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d5db;
    border-radius: var(--bda-radius);
    background: transparent;
    font-size: 0.8125rem;
    color: var(--bda-text);
    padding: 0.45rem 0.75rem;
    cursor: default;
}
.bda-pdp-size-btn:hover,
.bda-pdp-size-btn.is-selected {
    border-color: var(--bda-primary);
    background: var(--bda-primary);
    color: white;
}
.bda-pdp-size-pill.is-disabled {
    opacity: 0.35;
    text-decoration: line-through;
}
.bda-pdp-size-btn.is-disabled {
    opacity: 0.35;
    pointer-events: none;
    text-decoration: line-through;
}

/* ─────────────────────────────────────────────
 * 5. ADD TO CART
 * ───────────────────────────────────────────── */
.bda-pdp-add-to-cart {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Cantidad */
.bda-pdp-qty {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: var(--bda-radius);
    overflow: hidden;
}
.bda-pdp-qty button {
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.125rem;
    color: var(--bda-text);
    transition: background var(--bda-duration-fast) var(--bda-ease);
}
.bda-pdp-qty button:hover {
    background: #f3f4f6;
}
.bda-pdp-qty input {
    width: 2.5rem;
    text-align: center;
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--bda-text);
    -moz-appearance: textfield;
}
.bda-pdp-qty input::-webkit-inner-spin-button { display: none; }

/* Botón ATC */
.bda-pdp-atc-btn {
    flex: 1;
    background: var(--bda-primary);
    color: white;
    border: none;
    border-radius: var(--bda-radius);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background var(--bda-duration-fast) var(--bda-ease),
                transform var(--bda-duration-fast) var(--bda-ease);
}
.bda-pdp-atc-btn:hover {
    background: #1e293b;
    transform: translateY(-1px);
}
.bda-pdp-atc-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Pulse on hover */
.bda-pdp-atc-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(44, 62, 80, 0.4);
    transition: box-shadow var(--bda-duration-base) var(--bda-ease);
}
.bda-pdp-atc-btn:hover::after {
    box-shadow: 0 0 0 6px rgba(44, 62, 80, 0);
}

/* Feedback "Añadido" */
body.single-product .summary .single_add_to_cart_button.is-added,
.bda-pdp-atc-btn.is-added {
    background: var(--bda-success);
    border-color: var(--bda-success);
    color: #ffffff !important;
    pointer-events: none;
}

/* ─────────────────────────────────────────────
 * 6. TRUST BADGES
 * ───────────────────────────────────────────── */
.bda-pdp-trust {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}
.bda-pdp-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--bda-text-light);
}
.bda-pdp-trust-item i,
.bda-pdp-trust-item .material-icons {
    font-size: 1.125rem;
    color: var(--bda-secondary);
}

/* ─────────────────────────────────────────────
 * 7. ACORDEONES (Detalles, Envío, Cuidados)
 * ───────────────────────────────────────────── */
.bda-pdp-accordion {
    border-bottom: 1px solid #e5e7eb;
}
.bda-pdp-accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bda-text);
    transition: color var(--bda-duration-fast) var(--bda-ease);
}
.bda-pdp-accordion-header:hover {
    color: var(--bda-primary);
}
.bda-pdp-accordion-icon {
    transition: transform var(--bda-duration-fast) var(--bda-ease);
    font-size: 1.25rem;
    color: var(--bda-secondary);
}
.bda-pdp-accordion.is-open .bda-pdp-accordion-icon {
    transform: rotate(180deg);
}
.bda-pdp-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--bda-duration-base) var(--bda-ease-out),
                padding var(--bda-duration-fast) var(--bda-ease);
}
.bda-pdp-accordion.is-open .bda-pdp-accordion-body {
    max-height: 500px;
    padding-bottom: 1rem;
}
.bda-pdp-accordion-body p {
    font-size: 0.875rem;
    color: var(--bda-text-light);
    line-height: 1.7;
}
.bda-pdp-accordion-body--rich p,
.bda-pdp-accordion-body--rich li {
    font-size: 0.875rem;
    color: var(--bda-text-light);
    line-height: 1.7;
}
.bda-pdp-accordion-body--rich p,
.bda-pdp-accordion-body--rich ul {
    margin-bottom: 0.75rem;
}
.bda-pdp-accordion-body--rich p:last-child,
.bda-pdp-accordion-body--rich ul:last-child {
    margin-bottom: 0;
}
.bda-pdp-accordion-body--rich ul {
    padding-left: 1.1rem;
}
.bda-pdp-accordion-body--rich li + li {
    margin-top: 0.25rem;
}

@media (prefers-reduced-motion: reduce) {
    body.single-product div.product .woocommerce-product-gallery__image img,
    body.single-product div.product .flex-control-thumbs li,
    body.single-product .summary .bda-pdp-qty-btn,
    body.single-product .summary .single_add_to_cart_button,
    body.single-product .summary .single_add_to_cart_button::after,
    body.single-product .summary .quantity .qty,
    body.single-product .summary .quantity input.qty,
    .bda-pdp-main-img img,
    .bda-pdp-thumb,
    .bda-pdp-gallery-dot,
    .bda-pdp-size-btn,
    .bda-pdp-qty button,
    .bda-pdp-atc-btn,
    .bda-pdp-atc-btn::after,
    .bda-pdp-accordion-header,
    .bda-pdp-accordion-icon,
    .bda-pdp-accordion-body {
        transition: none !important;
        animation: none !important;
    }

    body.single-product div.product .flex-control-thumbs li:hover,
    body.single-product .summary .bda-pdp-qty-btn:hover,
    body.single-product .summary .bda-pdp-qty-btn:active,
    body.single-product .summary .single_add_to_cart_button:hover,
    body.single-product .summary .single_add_to_cart_button:active,
    .bda-pdp-main-img:hover img,
    .bda-pdp-thumb:hover,
    .bda-pdp-atc-btn:hover,
    .bda-pdp-atc-btn:active {
        transform: none !important;
    }

    .bda-pdp-gallery-dot {
        width: 6px;
    }

    .bda-pdp-gallery-dot.is-active {
        width: 6px;
        box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.18);
    }

    .bda-pdp-accordion.is-open .bda-pdp-accordion-icon {
        transform: none !important;
        color: var(--bda-primary);
    }

    .bda-pdp-accordion.is-open .bda-pdp-accordion-body {
        padding-bottom: 1rem;
    }
}

/* ─────────────────────────────────────────────
 * 8. RELATED PRODUCTS
 * ───────────────────────────────────────────── */
.bda-pdp-related {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #e5e7eb;
}
.bda-pdp-related-title {
    font-family: var(--bda-font-display);
    font-size: 1.5rem;
    color: #111827;
    margin-bottom: 2rem;
}
.bda-pdp-related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .bda-pdp-related-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ─────────────────────────────────────────────
 * 9. RESPONSIVE
 * ───────────────────────────────────────────── */
@media (max-width: 767px) {
    body.single-product div.product .woocommerce-product-gallery,
    body.single-product div.product .summary,
    body.single-product .woocommerce-tabs {
        border-radius: 24px;
    }

    body.single-product div.product .woocommerce-product-gallery {
        padding: 0.8rem;
    }

    body.single-product .summary {
        padding: 1.2rem;
    }

    body.single-product .summary form.cart:not(.variations_form),
    body.single-product .summary form.cart .variations_button,
    body.single-product .summary form.cart .woocommerce-variation-add-to-cart {
        flex-direction: column;
        align-items: stretch;
    }

    body.single-product .summary .quantity,
    body.single-product .summary .single_add_to_cart_button {
        width: 100%;
    }

    body.single-product .woocommerce-tabs ul.tabs li {
        width: 100%;
    }

    body.single-product .woocommerce-tabs ul.tabs li a {
        display: block;
        width: 100%;
        text-align: center;
    }

    .bda-pdp-gallery { position: static; }
    .bda-pdp-main-img { aspect-ratio: 1/1; }
    .bda-pdp-trust { flex-wrap: wrap; gap: 1rem; }
    .bda-pdp-add-to-cart { flex-direction: column; }
    .bda-pdp-atc-btn { padding: 1rem; }
}

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    border-radius: var(--bda-radius);
    padding: 0.875rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.woocommerce-message {
    background: #f0fdf4;
    color: #166534;
    border-left: 3px solid var(--bda-success);
}

.woocommerce-error {
    background: #fef2f2;
    color: #991b1b;
    border-left: 3px solid var(--bda-error);
}

.woocommerce-info {
    background: #eff6ff;
    color: #1e40af;
    border-left: 3px solid #3b82f6;
}

/* ─────────────────────────────────────────────
 * 10. WOO STOREFRONT REPAIR — stable PDP surface
 * ───────────────────────────────────────────── */

body.single-product.bda-storefront {
    background:
        radial-gradient(circle at 14% 2%, rgba(255, 255, 255, 0.92), transparent 28rem),
        radial-gradient(circle at 86% 16%, rgba(198, 207, 214, 0.18), transparent 24rem),
        linear-gradient(180deg, #f8f5f1 0%, #f6f2ec 48%, #fbfaf8 100%);
}

body.single-product div.product.bda-pdp-product {
    display: block;
    width: min(100% - clamp(1.25rem, 4vw, 4rem), 1500px);
    margin: clamp(2rem, 5vw, 4.5rem) auto clamp(4rem, 7vw, 6rem);
}

body.single-product .bda-pdp-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(22rem, 0.58fr);
    gap: clamp(1.35rem, 3.6vw, 3rem);
    align-items: start;
}

body.single-product .bda-pdp-gallery-panel,
body.single-product .bda-pdp-summary-panel,
body.single-product .bda-pdp-after {
    min-width: 0;
}

body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery,
body.single-product .bda-pdp-summary-panel .summary {
    float: none !important;
    width: auto !important;
    max-width: none !important;
}

body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery {
    margin: 0;
    padding: clamp(0.8rem, 1.8vw, 1.35rem);
    border-radius: 34px;
    border: 1px solid rgba(149, 165, 166, 0.2);
    background:
        radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.9), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 244, 246, 0.76));
    box-shadow:
        0 34px 82px rgba(15, 23, 42, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__wrapper {
    border-radius: 26px;
    background: #f3f5f6;
}

body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__image img {
    width: 100%;
    max-height: min(74vh, 860px);
    object-fit: cover;
    object-position: center;
}

body.single-product .bda-pdp-summary-panel {
    position: sticky;
    top: calc(var(--bda-nav-offset, 7.5rem) + var(--bda-admin-bar-offset, 0px) + 1rem);
}

body.single-product .bda-pdp-summary-panel .summary {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: clamp(1.2rem, 2.4vw, 1.8rem);
    border-radius: 30px;
    border: 1px solid rgba(149, 165, 166, 0.22);
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(248, 247, 244, 0.88)),
        rgba(255, 255, 255, 0.9);
    box-shadow:
        0 28px 70px rgba(15, 23, 42, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.single-product .bda-pdp-summary-panel .product_title {
    margin: 0;
    color: #121b28;
    font-size: clamp(2.1rem, 4.2vw, 4.2rem);
    line-height: 0.92;
    letter-spacing: -0.055em;
}

body.single-product .bda-pdp-summary-panel .price {
    margin: 0;
    color: #263445;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-weight: 800;
}

body.single-product .bda-pdp-summary-panel .woocommerce-product-details__short-description {
    margin: 0;
    color: #64748b;
    font-size: 0.96rem;
    line-height: 1.75;
}

body.single-product .bda-pdp-summary-panel form.cart:not(.variations_form),
body.single-product .bda-pdp-summary-panel form.cart .variations_button,
body.single-product .bda-pdp-summary-panel form.cart .woocommerce-variation-add-to-cart {
    display: grid;
    grid-template-columns: minmax(5.5rem, 0.35fr) minmax(0, 1fr);
    gap: 0.8rem;
    align-items: stretch;
}

body.single-product .bda-pdp-summary-panel .quantity,
body.single-product .bda-pdp-summary-panel .single_add_to_cart_button {
    min-height: 3.35rem;
}

body.single-product .bda-pdp-summary-panel .single_add_to_cart_button {
    display: inline-flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 0.35rem 0.4rem 0.35rem 1.25rem !important;
    border: 1px solid rgba(63, 75, 89, 0.38) !important;
    border-radius: 999px !important;
    background: #3f4b59 !important;
    color: #fff !important;
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.18) !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.1em !important;
}

body.single-product .bda-pdp-summary-panel .single_add_to_cart_button::before {
    display: none !important;
}

body.single-product .bda-pdp-summary-panel .single_add_to_cart_button::after {
    content: '->' !important;
    position: static !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.35rem;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    background: #fff;
    color: #3f4b59;
    transform: none !important;
    transition: transform 0.35s var(--bda-ease-out);
}

body.single-product .bda-pdp-summary-panel .single_add_to_cart_button:hover::after {
    transform: translateX(2px) !important;
}

body.single-product .bda-pdp-summary-panel .single_add_to_cart_button.is-sheening::after {
    animation: none !important;
}

body.single-product .bda-pdp-after {
    margin-top: clamp(2rem, 5vw, 4.5rem);
}

body.single-product .bda-pdp-after .woocommerce-tabs,
body.single-product .bda-pdp-after .related.products,
body.single-product .bda-pdp-after .up-sells.upsells {
    width: 100%;
    margin-top: clamp(2rem, 4vw, 3.5rem);
}

body.single-product .bda-pdp-after .woocommerce-tabs {
    padding: clamp(1.1rem, 2.6vw, 2rem);
    border-radius: 30px;
    border: 1px solid rgba(149, 165, 166, 0.18);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 24px 56px rgba(17, 24, 39, 0.06);
}

body.single-product .bda-pdp-after .related.products > h2,
body.single-product .bda-pdp-after .up-sells.upsells > h2 {
    max-width: 12ch;
    margin: 0 0 clamp(1.2rem, 3vw, 2rem);
    color: #121b28;
    font-family: var(--bda-font-display);
    font-size: clamp(2.4rem, 5vw, 5rem);
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: -0.055em;
}

@media (max-width: 991px) {
    body.single-product .bda-pdp-shell {
        grid-template-columns: 1fr;
    }

    body.single-product .bda-pdp-summary-panel {
        position: static;
    }
}

@media (max-width: 640px) {
    body.single-product div.product.bda-pdp-product {
        width: min(100% - 1rem, 1500px);
        margin-top: 1.2rem;
    }

    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery,
    body.single-product .bda-pdp-summary-panel .summary,
    body.single-product .bda-pdp-after .woocommerce-tabs {
        border-radius: 24px;
    }

    body.single-product .bda-pdp-summary-panel form.cart:not(.variations_form),
    body.single-product .bda-pdp-summary-panel form.cart .variations_button,
    body.single-product .bda-pdp-summary-panel form.cart .woocommerce-variation-add-to-cart {
        grid-template-columns: 1fr;
    }
}

/* Final PDP repair pass: rebalance the product view and make related cards
 * feel like the same storefront, not a separate native Woo block. */
body.single-product div.product.bda-pdp-product {
    width: min(100% - clamp(1rem, 4vw, 4rem), 1240px);
    margin-top: clamp(1.4rem, 3vw, 3rem);
}

body.single-product .bda-pdp-shell {
    grid-template-columns: minmax(0, 680px) minmax(320px, 420px);
    justify-content: center;
    gap: clamp(1.25rem, 3vw, 2.5rem);
}

body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery {
    max-width: 680px !important;
}

body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__wrapper {
    overflow: hidden;
}

body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__image img {
    max-height: clamp(420px, 58vh, 650px);
    object-fit: contain;
    background: #f3f5f6;
}

body.single-product .bda-pdp-summary-panel {
    max-width: 420px;
}

body.single-product .bda-pdp-summary-panel .product_title {
    font-size: clamp(1.85rem, 2.3vw, 3rem);
    line-height: 0.96;
}

body.single-product .bda-pdp-summary-panel .summary {
    gap: 0.9rem;
    padding: clamp(1.1rem, 2.2vw, 1.65rem);
}

body.single-product .bda-pdp-summary-panel .added_to_cart,
body.single-product .bda-pdp-summary-panel .added_to_cart.wc-forward {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.95rem;
    margin-top: 0.75rem !important;
    padding: 0.4rem 1rem !important;
    border: 1px solid rgba(63, 75, 89, 0.28) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    color: #253241 !important;
    box-shadow:
        0 14px 30px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.13em !important;
    line-height: 1 !important;
    text-decoration: none !important;
    text-transform: uppercase;
}

body.single-product .bda-pdp-summary-panel .added_to_cart::after,
body.single-product .bda-pdp-summary-panel .added_to_cart.wc-forward::after {
    content: '->';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    margin-left: 0.7rem;
    border-radius: 999px;
    background: #3f4b59;
    color: #fff;
}

body.single-product .bda-pdp-after .related.products,
body.single-product .bda-pdp-after .up-sells.upsells {
    max-width: 1240px;
    margin-right: auto;
    margin-left: auto;
}

body.single-product .bda-pdp-after .related.products > h2,
body.single-product .bda-pdp-after .up-sells.upsells > h2 {
    max-width: none;
    font-size: clamp(2.1rem, 3.8vw, 4rem);
}

body.single-product .bda-pdp-after .related.products ul.products,
body.single-product .bda-pdp-after .up-sells.upsells ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: clamp(0.85rem, 1.6vw, 1.25rem) !important;
}

body.single-product .bda-pdp-after .related.products li.product.bda-plp-card,
body.single-product .bda-pdp-after .up-sells.upsells li.product.bda-plp-card {
    border-radius: 24px;
}

body.single-product .bda-pdp-after .related.products .bda-plp-card-link,
body.single-product .bda-pdp-after .up-sells.upsells .bda-plp-card-link {
    gap: 0.75rem;
    padding: 0.75rem;
}

body.single-product .bda-pdp-after .related.products .bda-plp-card-img,
body.single-product .bda-pdp-after .up-sells.upsells .bda-plp-card-img {
    aspect-ratio: 1 / 1;
    border-radius: 18px;
}

body.single-product .bda-pdp-after .related.products .bda-plp-card-title,
body.single-product .bda-pdp-after .up-sells.upsells .bda-plp-card-title {
    font-size: clamp(1.08rem, 1.35vw, 1.38rem);
    line-height: 1.04;
    letter-spacing: -0.025em;
    -webkit-line-clamp: 3;
}

body.single-product .bda-pdp-after .related.products .bda-plp-card-excerpt,
body.single-product .bda-pdp-after .up-sells.upsells .bda-plp-card-excerpt {
    display: none;
}

body.single-product .bda-pdp-after .related.products .bda-plp-card-actions,
body.single-product .bda-pdp-after .up-sells.upsells .bda-plp-card-actions {
    padding: 0 0.75rem 0.75rem;
}

body.single-product .bda-pdp-after .related.products .bda-pill-cta.bda-plp-card-action,
body.single-product .bda-pdp-after .up-sells.upsells .bda-pill-cta.bda-plp-card-action {
    --bda-pill-bubble: 2.75rem;
    min-height: 2.85rem;
    padding-left: 1rem;
}

@media (max-width: 1024px) {
    body.single-product .bda-pdp-after .related.products ul.products,
    body.single-product .bda-pdp-after .up-sells.upsells ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 720px) {
    body.single-product .bda-pdp-shell {
        grid-template-columns: 1fr;
    }

    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery {
        max-width: none !important;
    }

    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__image img {
        max-height: 520px;
    }

    body.single-product .bda-pdp-summary-panel {
        max-width: none;
    }

    body.single-product .bda-pdp-after .related.products ul.products,
    body.single-product .bda-pdp-after .up-sells.upsells ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 460px) {
    body.single-product .bda-pdp-after .related.products ul.products,
    body.single-product .bda-pdp-after .up-sells.upsells ul.products {
        grid-template-columns: 1fr !important;
    }
}

/* ─────────────────────────────────────────────
 * 11. PDP PROPORTION + RELATED CAROUSEL REPAIR
 * ───────────────────────────────────────────── */
body.single-product div.product.bda-pdp-product {
    width: min(100% - clamp(1rem, 4vw, 4rem), 1180px);
}

body.single-product .bda-pdp-shell {
    grid-template-columns: minmax(0, 620px) minmax(300px, 390px);
    gap: clamp(1.15rem, 3vw, 2.25rem);
    align-items: start;
}

body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery {
    max-width: 620px !important;
}

body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__image img {
    max-height: clamp(390px, 56vh, 610px);
}

body.single-product aside.bda-pdp-summary-panel {
    align-self: start;
    max-width: 390px;
}

body.single-product aside.bda-pdp-summary-panel .summary {
    gap: 0.72rem;
    padding: clamp(1rem, 1.8vw, 1.45rem);
}

body.single-product aside.bda-pdp-summary-panel .product_title {
    font-size: clamp(1.75rem, 2.15vw, 2.45rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

body.single-product aside.bda-pdp-summary-panel .price {
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
}

body.single-product aside.bda-pdp-summary-panel .woocommerce-product-details__short-description {
    font-size: 0.9rem;
    line-height: 1.62;
}

body.single-product aside.bda-pdp-summary-panel .ct-product-divider,
body.single-product aside.bda-pdp-summary-panel .bda-shipping-info {
    display: none !important;
}

body.single-product aside.bda-pdp-summary-panel .ct-product-add-to-cart,
body.single-product aside.bda-pdp-summary-panel form.cart {
    margin: 0.2rem 0 0 !important;
}

body.single-product aside.bda-pdp-summary-panel .bda-pdp-trust {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
    margin: 0;
    padding: 0.75rem 0;
}

body.single-product aside.bda-pdp-summary-panel .bda-pdp-trust-item {
    min-width: 0;
    font-size: 0.68rem;
    line-height: 1.35;
}

body.single-product aside.bda-pdp-summary-panel .product_meta {
    gap: 0.42rem;
    margin-top: 0.25rem;
    padding-top: 0.8rem;
    font-size: 0.72rem;
}

body.single-product aside.bda-pdp-summary-panel .bda-pdp-accordion-header {
    padding: 0.78rem 0;
    font-size: 0.72rem;
}

body.single-product aside.bda-pdp-summary-panel .bda-pdp-accordion-body p {
    font-size: 0.8rem;
    line-height: 1.58;
}

body.single-product .related.products,
body.single-product .up-sells.upsells {
    position: relative;
    width: min(100% - clamp(1rem, 4vw, 4rem), 1240px);
    max-width: 1240px;
    margin: clamp(3rem, 6vw, 5rem) auto 0 !important;
    overflow: visible;
}

body.single-product .related.products > h2,
body.single-product .up-sells.upsells > h2 {
    margin: 0 auto clamp(1.15rem, 2.6vw, 2rem);
    color: #121b28;
    font-family: var(--bda-font-display);
    font-size: clamp(1.8rem, 3.4vw, 3.4rem);
    font-weight: 400;
    line-height: 0.96;
    letter-spacing: -0.045em;
    text-align: center;
}

body.single-product .bda-related-viewport {
    position: relative;
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    padding: clamp(1rem, 2vw, 1.65rem) clamp(0.75rem, 1.5vw, 1.4rem) clamp(1.6rem, 3vw, 2.4rem);
    overflow: hidden;
    cursor: ew-resize;
    --bda-related-left-force: 0;
    --bda-related-right-force: 0;
}

body.single-product .bda-related-viewport::before,
body.single-product .bda-related-viewport::after {
    content: 'MOVER';
    position: absolute;
    top: clamp(1rem, 2vw, 1.65rem);
    bottom: clamp(1.6rem, 3vw, 2.4rem);
    z-index: 5;
    display: grid;
    place-items: center;
    width: min(12rem, 18vw);
    color: #fff;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    pointer-events: none;
    opacity: 0;
    text-shadow: 0 1px 10px rgba(15, 23, 42, 0.25);
    transition:
        opacity 0.18s var(--bda-ease),
        transform 0.18s var(--bda-ease);
}

body.single-product .bda-related-viewport::before {
    left: 0;
    background:
        radial-gradient(circle at 22% 50%, rgba(255, 255, 255, 0.16), transparent 28%),
        linear-gradient(90deg, rgba(48, 62, 76, 0.86), rgba(48, 62, 76, 0));
    opacity: calc(var(--bda-related-left-force) * 0.92);
    transform: translateX(calc((1 - var(--bda-related-left-force)) * -0.75rem)) scaleX(calc(0.78 + (var(--bda-related-left-force) * 0.22)));
    transform-origin: left center;
}

body.single-product .bda-related-viewport::after {
    right: 0;
    background:
        radial-gradient(circle at 78% 50%, rgba(255, 255, 255, 0.16), transparent 28%),
        linear-gradient(270deg, rgba(48, 62, 76, 0.86), rgba(48, 62, 76, 0));
    opacity: calc(var(--bda-related-right-force) * 0.92);
    transform: translateX(calc((1 - var(--bda-related-right-force)) * 0.75rem)) scaleX(calc(0.78 + (var(--bda-related-right-force) * 0.22)));
    transform-origin: right center;
}

body.single-product .bda-related-carousel ul.products.bda-related-track {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: stretch;
    width: max-content;
    gap: clamp(0.75rem, 1.3vw, 1.1rem) !important;
    margin: 0 !important;
    padding: 0.25rem 0 0.8rem !important;
    will-change: transform;
}

body.single-product .bda-related-carousel li.product.bda-plp-card {
    flex: 0 0 clamp(12.75rem, 15.5vw, 15.25rem);
    min-height: 0;
    border-radius: 22px;
}

body.single-product .bda-related-carousel .bda-plp-card-link {
    gap: 0.62rem;
    padding: 0.68rem;
}

body.single-product .bda-related-carousel .bda-plp-card-index {
    font-size: 0.62rem;
}

body.single-product .bda-related-carousel .bda-plp-card-img {
    aspect-ratio: 1 / 1;
    border-radius: 17px;
}

body.single-product .bda-related-carousel .bda-plp-card-copy {
    gap: 0.5rem;
}

body.single-product .bda-related-carousel .bda-plp-card-kicker {
    font-size: 0.58rem;
    gap: 0.25rem 0.45rem;
    letter-spacing: 0.1em;
}

body.single-product .bda-related-carousel .bda-plp-card-title {
    font-size: clamp(1rem, 1.18vw, 1.22rem);
    line-height: 1.04;
    letter-spacing: -0.025em;
    -webkit-line-clamp: 3;
}

body.single-product .bda-related-carousel .bda-plp-card-excerpt,
body.single-product .bda-related-carousel .bda-plp-card-actions {
    display: none !important;
}

body.single-product .bda-related-carousel .bda-plp-card-footer {
    gap: 0.55rem;
    margin-top: 0.1rem;
}

body.single-product .bda-related-carousel .bda-plp-card-price {
    font-size: 0.78rem;
}

body.single-product .bda-related-carousel .bda-plp-card-cta {
    font-size: 0.56rem;
    letter-spacing: 0.14em;
}

@media (max-width: 720px) {
    body.single-product .bda-pdp-shell {
        grid-template-columns: 1fr;
    }

    body.single-product aside.bda-pdp-summary-panel {
        max-width: none;
        position: static;
    }

    body.single-product .bda-related-carousel li.product.bda-plp-card {
        flex-basis: clamp(12rem, 72vw, 17rem);
    }
}

/* ─────────────────────────────────────────────
 * 12. PDP OPTION 01 - editorial split polish
 * ───────────────────────────────────────────── */
body.single-product .bda-pdp-after .woocommerce-tabs,
body.single-product div.product .woocommerce-tabs {
    display: none !important;
}

body.single-product aside.bda-pdp-summary-panel .summary {
    position: relative;
    padding-top: clamp(1.55rem, 2.6vw, 2.05rem);
}

body.single-product aside.bda-pdp-summary-panel .summary::before {
    content: 'PIEZA SELECCIONADA';
    display: inline-flex;
    width: fit-content;
    margin-bottom: 0.1rem;
    padding: 0.48rem 0.72rem;
    border: 1px solid rgba(149, 165, 166, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #566475;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;
}

body.single-product aside.bda-pdp-summary-panel .bda-pdp-variation--summary {
    margin-bottom: 0.2rem;
    padding: 0.82rem 0.9rem;
    border-radius: 20px;
}

body.single-product .summary .bda-pdp-size-pill--reference {
    border-color: rgba(63, 75, 89, 0.2);
    background: rgba(255, 255, 255, 0.92);
    color: #263445;
}

body.single-product .summary .bda-pdp-size-note {
    flex: 1 1 100%;
    color: #758294;
    font-size: 0.68rem;
    line-height: 1.45;
}

body.single-product .summary .bda-pdp-qty .bda-pdp-native-qty-control,
body.single-product .summary .bda-pdp-qty .ct-increase,
body.single-product .summary .bda-pdp-qty .ct-decrease {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.single-product .summary .bda-pdp-qty-btn::before,
body.single-product .summary .bda-pdp-qty-btn::after {
    content: none !important;
    display: none !important;
}

body.single-product aside.bda-pdp-summary-panel form.cart:not(.variations_form),
body.single-product aside.bda-pdp-summary-panel form.cart .variations_button,
body.single-product aside.bda-pdp-summary-panel form.cart .woocommerce-variation-add-to-cart {
    grid-template-columns: minmax(7.85rem, auto) minmax(0, 1fr);
}

@media (max-width: 520px) {
    body.single-product aside.bda-pdp-summary-panel form.cart:not(.variations_form),
    body.single-product aside.bda-pdp-summary-panel form.cart .variations_button,
    body.single-product aside.bda-pdp-summary-panel form.cart .woocommerce-variation-add-to-cart {
        grid-template-columns: 1fr;
    }
}

/* ─────────────────────────────────────────────
 * 13. PDP COMMERCE DENSITY PASS
 * Mantiene el tono editorial, pero reduce la escala para comprar sin
 * tener que perseguir el CTA bajo el fold.
 * ───────────────────────────────────────────── */
@media (min-width: 1000px) {
    body.single-product div.product.bda-pdp-product {
        width: min(100% - clamp(1rem, 3vw, 3rem), 1100px);
        margin-top: clamp(0.85rem, 1.8vw, 1.7rem);
        margin-bottom: clamp(2.5rem, 4.5vw, 4rem);
    }

    body.single-product .bda-pdp-shell {
        grid-template-columns: minmax(0, 540px) minmax(300px, 365px);
        gap: clamp(1rem, 2.25vw, 1.8rem);
    }

    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery {
        max-width: 540px !important;
        padding: clamp(0.62rem, 1.2vw, 0.95rem);
        border-radius: 28px;
        box-shadow:
            0 22px 54px rgba(15, 23, 42, 0.085),
            inset 0 1px 0 rgba(255, 255, 255, 0.86);
    }

    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__wrapper,
    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__image,
    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__image img {
        border-radius: 21px;
    }

    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__image img {
        max-height: clamp(330px, 46vh, 485px);
        object-fit: contain;
    }

    body.single-product aside.bda-pdp-summary-panel {
        max-width: 365px;
        top: calc(var(--bda-nav-offset, 5.8rem) + var(--bda-admin-bar-offset, 0px) + 0.65rem);
    }

    body.single-product aside.bda-pdp-summary-panel .summary {
        gap: 0.55rem;
        padding: clamp(0.86rem, 1.45vw, 1.15rem);
        border-radius: 26px;
        box-shadow:
            0 20px 52px rgba(15, 23, 42, 0.085),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }

    body.single-product aside.bda-pdp-summary-panel .summary::before {
        margin-bottom: 0;
        padding: 0.4rem 0.62rem;
        font-size: 0.52rem;
        letter-spacing: 0.15em;
    }

    body.single-product aside.bda-pdp-summary-panel .product_title {
        font-size: clamp(1.45rem, 1.85vw, 2rem);
        line-height: 1.02;
        letter-spacing: -0.04em;
    }

    body.single-product aside.bda-pdp-summary-panel .price {
        font-size: clamp(1rem, 1.3vw, 1.18rem);
    }

    body.single-product aside.bda-pdp-summary-panel .woocommerce-product-details__short-description {
        font-size: 0.82rem;
        line-height: 1.48;
    }

    body.single-product aside.bda-pdp-summary-panel .bda-pdp-variation--summary {
        margin: 0;
        padding: 0.64rem 0.72rem;
        border-radius: 18px;
    }

    body.single-product aside.bda-pdp-summary-panel .bda-pdp-sizes {
        gap: 0.42rem;
    }

    body.single-product aside.bda-pdp-summary-panel .bda-pdp-size-pill {
        min-width: 2.15rem;
        min-height: 2.15rem;
        padding: 0.32rem 0.56rem;
        font-size: 0.72rem;
    }

    body.single-product aside.bda-pdp-summary-panel form.cart {
        gap: 0.62rem;
        padding-top: 0.82rem;
        border-top-color: rgba(149, 165, 166, 0.18);
    }

    body.single-product aside.bda-pdp-summary-panel form.cart table.variations {
        border-spacing: 0 0.45rem;
    }

    body.single-product aside.bda-pdp-summary-panel form.cart table.variations label {
        font-size: 0.68rem;
        letter-spacing: 0.12em;
    }

    body.single-product aside.bda-pdp-summary-panel form.cart .reset_variations {
        font-size: 0.72rem;
    }

    body.single-product aside.bda-pdp-summary-panel form.cart:not(.variations_form),
    body.single-product aside.bda-pdp-summary-panel form.cart .variations_button,
    body.single-product aside.bda-pdp-summary-panel form.cart .woocommerce-variation-add-to-cart {
        grid-template-columns: minmax(7.15rem, auto) minmax(0, 1fr);
        gap: 0.62rem;
    }

    body.single-product aside.bda-pdp-summary-panel .quantity,
    body.single-product aside.bda-pdp-summary-panel .single_add_to_cart_button {
        min-height: 2.85rem;
    }

    body.single-product aside.bda-pdp-summary-panel .quantity {
        padding: 0.18rem;
    }

    body.single-product aside.bda-pdp-summary-panel .quantity .qty,
    body.single-product aside.bda-pdp-summary-panel .quantity input.qty {
        width: 2.55rem;
        min-height: 2.2rem;
        font-size: 0.92rem;
    }

    body.single-product aside.bda-pdp-summary-panel .bda-pdp-qty-btn {
        width: 2.15rem;
        height: 2.15rem;
    }

    body.single-product aside.bda-pdp-summary-panel .single_add_to_cart_button {
        padding: 0.28rem 0.34rem 0.28rem 1rem !important;
        font-size: 0.62rem !important;
        letter-spacing: 0.11em !important;
    }

    body.single-product aside.bda-pdp-summary-panel .single_add_to_cart_button::after {
        flex-basis: 2.1rem;
        width: 2.1rem;
        height: 2.1rem;
    }

    body.single-product aside.bda-pdp-summary-panel .bda-pdp-trust,
    body.single-product aside.bda-pdp-summary-panel .product_meta {
        padding-top: 0.58rem;
    }

    body.single-product aside.bda-pdp-summary-panel .bda-pdp-trust {
        gap: 0.32rem;
    }

    body.single-product aside.bda-pdp-summary-panel .bda-pdp-trust-item,
    body.single-product aside.bda-pdp-summary-panel .product_meta,
    body.single-product aside.bda-pdp-summary-panel .bda-pdp-accordion-header,
    body.single-product aside.bda-pdp-summary-panel .bda-pdp-accordion-body p {
        font-size: 0.66rem;
    }
}

@media (max-width: 999px) {
    body.single-product div.product.bda-pdp-product {
        margin-top: clamp(0.9rem, 3vw, 1.4rem);
    }

    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__image img {
        max-height: min(58vh, 520px);
        object-fit: contain;
    }
}

@media (max-width: 560px) {
    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__image img {
        max-height: 420px;
    }

    body.single-product aside.bda-pdp-summary-panel .summary {
        gap: 0.65rem;
        padding: 1rem;
    }
}

/* ─────────────────────────────────────────────
 * 14. VISUAL VALIDATION DENSITY PASS
 * Captura real 1440x900: la galeria seguia midiendo 704px de alto.
 * Esta pasada fija una altura de vitrina y evita que la imagen dicte el fold.
 * ───────────────────────────────────────────── */
@media (min-width: 1000px) {
    body.single-product .site-main {
        padding-top: 0 !important;
    }

    body.single-product div.product.bda-pdp-product {
        width: min(100% - clamp(1rem, 4vw, 5rem), 960px);
        margin-top: 0.55rem;
        margin-bottom: 2rem;
    }

    body.single-product .bda-pdp-breadcrumb {
        margin-bottom: 0.8rem;
        font-size: 0.66rem;
    }

    body.single-product .bda-pdp-shell {
        grid-template-columns: minmax(0, 450px) minmax(290px, 340px);
        gap: clamp(0.9rem, 1.8vw, 1.4rem);
        align-items: start;
        justify-content: center;
    }

    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery {
        max-width: 450px !important;
        padding: 0.62rem;
        border-radius: 24px;
    }

    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__wrapper,
    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__image,
    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__image > a {
        height: clamp(340px, 49vh, 440px) !important;
        max-height: 440px !important;
        border-radius: 18px;
    }

    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__image img {
        width: 100% !important;
        height: 100% !important;
        max-height: 440px !important;
        object-fit: contain !important;
    }

    body.single-product aside.bda-pdp-summary-panel {
        max-width: 340px;
        top: calc(var(--bda-nav-offset, 5.2rem) + var(--bda-admin-bar-offset, 0px) + 0.35rem);
    }

    body.single-product aside.bda-pdp-summary-panel .summary {
        min-height: 0;
        gap: 0.48rem;
        padding: 0.82rem 0.92rem;
        border-radius: 22px;
    }

    body.single-product aside.bda-pdp-summary-panel .summary::before {
        padding: 0.34rem 0.56rem;
        font-size: 0.48rem;
        letter-spacing: 0.14em;
    }

    body.single-product aside.bda-pdp-summary-panel .product_title {
        font-size: clamp(1.28rem, 1.62vw, 1.72rem);
        line-height: 1.02;
    }

    body.single-product aside.bda-pdp-summary-panel .price {
        font-size: 1rem;
    }

    body.single-product aside.bda-pdp-summary-panel .woocommerce-product-details__short-description {
        font-size: 0.76rem;
        line-height: 1.42;
    }

    body.single-product aside.bda-pdp-summary-panel form.cart {
        gap: 0.48rem;
        padding-top: 0.62rem;
    }

    body.single-product aside.bda-pdp-summary-panel form.cart:not(.variations_form),
    body.single-product aside.bda-pdp-summary-panel form.cart .variations_button,
    body.single-product aside.bda-pdp-summary-panel form.cart .woocommerce-variation-add-to-cart {
        grid-template-columns: minmax(6.45rem, auto) minmax(0, 1fr);
        gap: 0.48rem;
    }

    body.single-product aside.bda-pdp-summary-panel .quantity,
    body.single-product aside.bda-pdp-summary-panel .single_add_to_cart_button {
        min-height: 2.55rem;
    }

    body.single-product aside.bda-pdp-summary-panel .quantity .qty,
    body.single-product aside.bda-pdp-summary-panel .quantity input.qty {
        width: 2.25rem;
        min-height: 1.95rem;
        font-size: 0.84rem;
    }

    body.single-product aside.bda-pdp-summary-panel .bda-pdp-qty-btn {
        width: 1.92rem;
        height: 1.92rem;
    }

    body.single-product aside.bda-pdp-summary-panel .single_add_to_cart_button {
        padding: 0.24rem 0.3rem 0.24rem 0.86rem !important;
        font-size: 0.56rem !important;
    }

    body.single-product aside.bda-pdp-summary-panel .single_add_to_cart_button::after {
        flex-basis: 1.88rem;
        width: 1.88rem;
        height: 1.88rem;
    }

    body.single-product aside.bda-pdp-summary-panel .bda-pdp-trust {
        gap: 0.22rem;
    }

    body.single-product aside.bda-pdp-summary-panel .bda-pdp-trust,
    body.single-product aside.bda-pdp-summary-panel .product_meta,
    body.single-product aside.bda-pdp-summary-panel .bda-pdp-accordion {
        padding-top: 0.42rem;
    }

    body.single-product aside.bda-pdp-summary-panel .bda-pdp-trust-item,
    body.single-product aside.bda-pdp-summary-panel .product_meta,
    body.single-product aside.bda-pdp-summary-panel .bda-pdp-accordion-header,
    body.single-product aside.bda-pdp-summary-panel .bda-pdp-accordion-body p {
        font-size: 0.6rem;
        line-height: 1.35;
    }

    body.single-product div.product .related.products {
        margin-top: 1rem;
    }
}

@media (max-width: 560px) {
    body.single-product div.product.bda-pdp-product {
        margin-top: 0.8rem;
    }

    body.single-product .bda-pdp-breadcrumb {
        font-size: 0.64rem;
        margin-bottom: 0.7rem;
    }

    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery {
        padding: 0.55rem;
    }

    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__wrapper,
    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__image,
    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__image > a {
        height: min(78vw, 325px) !important;
        max-height: 325px !important;
    }

    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__image img {
        height: 100% !important;
        max-height: 325px !important;
        object-fit: contain !important;
    }
}

/* Final visual audit pass: on phones the product image cannot push every
 * buying decision below the first fold. Keep the gallery calm but compact. */
@media (max-width: 560px) {
    body.single-product .site-main {
        padding-top: calc(var(--bda-nav-offset, 6.45rem) + var(--bda-admin-bar-offset, 0px) - 0.65rem) !important;
    }

    body.single-product .hero-section.is-width-constrained {
        margin-bottom: 0.9rem !important;
    }

    body.single-product div.product.bda-pdp-product {
        width: min(100% - 1rem, 100%);
        gap: 0.75rem;
        margin-top: 0.35rem;
        margin-bottom: 1.4rem;
    }

    body.single-product .bda-pdp-breadcrumb {
        margin-bottom: 0.45rem;
        font-size: 0.58rem;
        line-height: 1.35;
    }

    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery {
        padding: 0.42rem;
        border-radius: 22px;
    }

    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__wrapper,
    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__image,
    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__image > a {
        height: min(54vw, 245px) !important;
        max-height: 245px !important;
        border-radius: 17px;
    }

    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__image img {
        height: 100% !important;
        max-height: 245px !important;
        object-fit: contain !important;
    }

    body.single-product .bda-pdp-gallery-panel .ct-product-gallery-container,
    body.single-product .bda-pdp-gallery-panel .ct-media-container {
        height: min(66vw, 258px) !important;
        max-height: 258px !important;
        min-height: 0 !important;
        border-radius: 17px;
    }

    body.single-product .bda-pdp-gallery-panel .ct-product-gallery-container {
        overflow: hidden;
        background: #f3f5f6;
    }

    body.single-product .bda-pdp-gallery-panel .ct-media-container {
        align-items: center;
        justify-content: center;
        aspect-ratio: auto !important;
    }

    body.single-product .bda-pdp-gallery-panel .ct-media-container img {
        width: 100% !important;
        height: 100% !important;
        max-height: 258px !important;
        object-fit: contain !important;
        aspect-ratio: auto !important;
    }

    body.single-product aside.bda-pdp-summary-panel .summary {
        gap: 0.55rem;
        padding: 0.82rem;
        border-radius: 22px;
    }

    body.single-product aside.bda-pdp-summary-panel .product_title {
        font-size: clamp(1.48rem, 7.6vw, 2rem);
        line-height: 1.02;
    }

    body.single-product aside.bda-pdp-summary-panel .woocommerce-product-details__short-description {
        font-size: 0.78rem;
        line-height: 1.42;
    }

    body.single-product aside.bda-pdp-summary-panel form.cart:not(.variations_form),
    body.single-product aside.bda-pdp-summary-panel form.cart .variations_button,
    body.single-product aside.bda-pdp-summary-panel form.cart .woocommerce-variation-add-to-cart {
        grid-template-columns: 1fr;
    }
}

/* Second visual pass: compact product media for the in-app narrow viewport
 * without changing the desktop two-column PDP composition. */
@media (min-width: 561px) and (max-width: 767px) {
    body.single-product .site-main {
        padding-top: calc(var(--bda-nav-offset, 6.85rem) + var(--bda-admin-bar-offset, 0px) - 0.72rem) !important;
    }

    body.single-product .hero-section.is-width-constrained {
        margin-bottom: 0.8rem !important;
    }

    body.single-product div.product.bda-pdp-product {
        width: min(100% - 1rem, 100%);
        gap: 0.72rem;
        margin-top: 0.3rem;
        margin-bottom: 1.3rem;
    }

    body.single-product .bda-pdp-breadcrumb {
        margin-bottom: 0.42rem;
        font-size: 0.58rem;
        line-height: 1.35;
    }

    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery {
        padding: 0.42rem;
        border-radius: 22px;
    }

    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__wrapper,
    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__image,
    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__image > a {
        height: min(42vw, 248px) !important;
        max-height: 248px !important;
        border-radius: 17px;
    }

    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__image img {
        height: 100% !important;
        max-height: 248px !important;
        object-fit: contain !important;
    }

    body.single-product .bda-pdp-gallery-panel .ct-product-gallery-container,
    body.single-product .bda-pdp-gallery-panel .ct-media-container {
        height: min(48vw, 260px) !important;
        max-height: 260px !important;
        min-height: 0 !important;
        border-radius: 17px;
    }

    body.single-product .bda-pdp-gallery-panel .ct-product-gallery-container {
        overflow: hidden;
        background: #f3f5f6;
    }

    body.single-product .bda-pdp-gallery-panel .ct-media-container {
        align-items: center;
        justify-content: center;
        aspect-ratio: auto !important;
    }

    body.single-product .bda-pdp-gallery-panel .ct-media-container img {
        width: 100% !important;
        height: 100% !important;
        max-height: 260px !important;
        object-fit: contain !important;
        aspect-ratio: auto !important;
    }

    body.single-product aside.bda-pdp-summary-panel .summary {
        gap: 0.56rem;
        padding: 0.84rem;
        border-radius: 22px;
    }

    body.single-product aside.bda-pdp-summary-panel .product_title {
        font-size: clamp(1.42rem, 4.6vw, 1.9rem);
        line-height: 1.04;
    }

    body.single-product aside.bda-pdp-summary-panel .woocommerce-product-details__short-description {
        font-size: 0.78rem;
        line-height: 1.42;
    }
}

/* PDP alternative B: gallery-led boutique layout.
 * The product page should feel like a clean showcase, not stacked cards. */
@media (min-width: 901px) {
    body.single-product .site-main {
        padding-top: calc(var(--bda-nav-offset, 7.5rem) + var(--bda-admin-bar-offset, 0px) + 0.6rem) !important;
    }

    body.single-product .hero-section.is-width-constrained {
        margin-bottom: 0.75rem !important;
    }

    body.single-product div.product.bda-pdp-product {
        width: min(100% - clamp(2rem, 4.5vw, 5rem), 1480px);
        margin-top: 0;
        margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
    }

    body.single-product .bda-pdp-shell {
        grid-template-columns: minmax(0, 1fr) minmax(19rem, 24rem);
        gap: clamp(1.8rem, 3.4vw, 4rem);
        align-items: start;
    }

    body.single-product .bda-pdp-gallery-panel {
        min-width: 0;
    }

    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery {
        position: sticky;
        top: calc(var(--bda-nav-offset, 7.5rem) + var(--bda-admin-bar-offset, 0px) + 0.75rem);
        display: grid;
        grid-template-columns: clamp(4.6rem, 6vw, 5.65rem) minmax(0, 1fr);
        gap: clamp(0.9rem, 1.8vw, 1.35rem);
        align-items: start;
        margin: 0;
        padding: 0 !important;
        border: 0;
        border-radius: 0;
        background: transparent !important;
        box-shadow: none;
    }

    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery:not(:has(.flex-control-thumbs)) {
        grid-template-columns: minmax(0, 1fr);
    }

    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__wrapper {
        grid-column: 2;
        grid-row: 1;
        overflow: hidden;
        border: 1px solid rgba(149, 165, 166, 0.16);
        border-radius: 0;
        background:
            radial-gradient(circle at 45% 18%, rgba(255, 255, 255, 0.92), transparent 42%),
            linear-gradient(135deg, rgba(247, 248, 248, 0.88), rgba(255, 255, 255, 0.96));
        box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
    }

    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery:not(:has(.flex-control-thumbs)) .woocommerce-product-gallery__wrapper {
        grid-column: 1;
    }

    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__wrapper,
    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__image,
    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__image > a {
        height: clamp(520px, calc(100svh - var(--bda-nav-offset, 7.5rem) - var(--bda-admin-bar-offset, 0px) - 4.75rem), 760px) !important;
        min-height: 520px;
        max-height: 760px !important;
    }

    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__image {
        display: flex !important;
        align-items: center;
        justify-content: center;
        border-radius: 0;
        background: transparent;
    }

    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__image img,
    body.single-product .bda-pdp-gallery-panel .ct-media-container img {
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: center !important;
        border-radius: 0;
    }

    body.single-product .bda-pdp-gallery-panel .ct-product-gallery-container,
    body.single-product .bda-pdp-gallery-panel .ct-media-container {
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        border-radius: 0;
        background: transparent;
    }

    body.single-product div.product .flex-control-thumbs {
        grid-column: 1;
        grid-row: 1;
        display: grid;
        grid-template-columns: 1fr;
        align-content: start;
        gap: 0.72rem;
        max-height: min(70vh, 670px);
        margin: 0;
        padding: 0;
        overflow: auto;
        scrollbar-width: thin;
    }

    body.single-product div.product .flex-control-thumbs li {
        aspect-ratio: 1 / 1;
        border: 1px solid rgba(82, 97, 114, 0.18);
        border-radius: 0;
        background: rgba(255, 255, 255, 0.74);
        box-shadow: none;
    }

    body.single-product div.product .flex-control-thumbs li img {
        width: 100%;
        height: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        opacity: 0.76;
    }

    body.single-product div.product .flex-control-thumbs li:hover,
    body.single-product div.product .flex-control-thumbs li:has(img.flex-active) {
        border-color: rgba(32, 43, 56, 0.42);
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
        transform: none;
    }

    body.single-product div.product .flex-control-thumbs li img.flex-active {
        opacity: 1;
    }

    body.single-product .bda-pdp-summary-panel {
        position: sticky;
        top: calc(var(--bda-nav-offset, 7.5rem) + var(--bda-admin-bar-offset, 0px) + 0.75rem);
        max-width: none;
    }

    body.single-product .bda-pdp-summary-panel .summary {
        display: grid;
        gap: 0.95rem;
        min-height: 0;
        margin: 0;
        padding: clamp(0.25rem, 0.8vw, 0.65rem) 0 0;
        border: 0;
        border-radius: 0;
        background: transparent !important;
        box-shadow: none;
    }

    body.single-product .bda-pdp-summary-panel .summary::before {
        width: fit-content;
        padding: 0;
        border: 0;
        background: transparent;
        color: #536171;
        font-size: 0.62rem;
        letter-spacing: 0.16em;
    }

    body.single-product .bda-pdp-summary-panel .product_title {
        max-width: 13ch;
        color: #111827;
        font-size: clamp(2.1rem, 2.6vw, 3.35rem);
        line-height: 0.96;
        letter-spacing: 0;
    }

    body.single-product .bda-pdp-summary-panel .price {
        color: #1f2c3a;
        font-size: clamp(1.15rem, 1.5vw, 1.42rem);
        font-weight: 900;
    }

    body.single-product .bda-pdp-summary-panel .woocommerce-product-details__short-description {
        max-width: 34ch;
        color: #627083;
        font-size: 0.88rem;
        line-height: 1.55;
    }

    body.single-product .bda-pdp-summary-panel .bda-pdp-size-guide,
    body.single-product .bda-pdp-summary-panel .variations,
    body.single-product .bda-pdp-summary-panel .bda-pdp-reference-size {
        border-radius: 0;
        border-color: rgba(149, 165, 166, 0.2);
        background: rgba(255, 255, 255, 0.44);
        box-shadow: none;
    }

    body.single-product .bda-pdp-summary-panel form.cart:not(.variations_form),
    body.single-product .bda-pdp-summary-panel form.cart .variations_button,
    body.single-product .bda-pdp-summary-panel form.cart .woocommerce-variation-add-to-cart {
        grid-template-columns: minmax(5.8rem, 0.32fr) minmax(0, 1fr);
        gap: 0.8rem;
    }

    body.single-product .bda-pdp-summary-panel .quantity {
        border-radius: 999px;
        background: rgba(245, 247, 248, 0.82);
        box-shadow: none;
    }

    body.single-product .bda-pdp-summary-panel .single_add_to_cart_button {
        min-height: 3.18rem;
        border-radius: 999px !important;
        box-shadow: none !important;
    }

    body.single-product .bda-pdp-summary-panel .bda-pdp-trust {
        display: grid;
        gap: 0.45rem;
        padding-top: 0.9rem;
        border-top: 1px solid rgba(149, 165, 166, 0.22);
    }

    body.single-product .bda-pdp-summary-panel .product_meta,
    body.single-product .bda-pdp-summary-panel .bda-pdp-accordion {
        padding-top: 0.7rem;
        border-top: 1px solid rgba(149, 165, 166, 0.2);
    }

    body.single-product .bda-pdp-summary-panel .bda-pdp-accordion-header {
        min-height: 2.55rem;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }
}

@media (min-width: 901px) and (max-width: 1180px) {
    body.single-product div.product.bda-pdp-product {
        width: min(100% - 1.6rem, 1120px);
    }

    body.single-product .bda-pdp-shell {
        grid-template-columns: minmax(0, 1fr) minmax(18rem, 21rem);
        gap: 1.4rem;
    }

    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__wrapper,
    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__image,
    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__image > a {
        height: clamp(430px, calc(100svh - var(--bda-nav-offset, 7.5rem) - var(--bda-admin-bar-offset, 0px) - 4.5rem), 620px) !important;
        min-height: 430px;
        max-height: 620px !important;
    }

    body.single-product .bda-pdp-summary-panel .product_title {
        font-size: clamp(1.72rem, 2.65vw, 2.5rem);
    }
}

@media (max-width: 900px) {
    body.single-product .site-main {
        padding-top: calc(var(--bda-nav-offset, 6.85rem) + var(--bda-admin-bar-offset, 0px) - 0.15rem) !important;
    }

    body.single-product .hero-section.is-width-constrained {
        margin-bottom: 0.55rem !important;
    }

    body.single-product div.product.bda-pdp-product {
        width: min(100% - 1rem, 100%);
        gap: 0.82rem;
        margin-top: 0;
        margin-bottom: 2rem;
    }

    body.single-product .bda-pdp-shell {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.88rem;
    }

    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery {
        display: block;
        margin: 0;
        padding: 0 !important;
        border: 0;
        border-radius: 0;
        background: transparent !important;
        box-shadow: none;
    }

    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__wrapper {
        overflow: hidden;
        border: 1px solid rgba(149, 165, 166, 0.16);
        border-radius: 0;
        background:
            radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.92), transparent 42%),
            linear-gradient(135deg, rgba(246, 247, 248, 0.9), rgba(255, 255, 255, 0.96));
        box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
    }

    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__wrapper,
    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__image,
    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__image > a {
        height: clamp(250px, 54vw, 390px) !important;
        min-height: 250px !important;
        max-height: 390px !important;
        border-radius: 0 !important;
    }

    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__image {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__image img,
    body.single-product .bda-pdp-gallery-panel .ct-media-container img {
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: center !important;
        border-radius: 0;
    }

    body.single-product .bda-pdp-gallery-panel .ct-product-gallery-container,
    body.single-product .bda-pdp-gallery-panel .ct-media-container {
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        border-radius: 0;
        background: transparent;
    }

    body.single-product div.product .flex-control-thumbs {
        display: flex;
        gap: 0.48rem;
        margin-top: 0.55rem;
        overflow-x: auto;
        padding-bottom: 0.12rem;
    }

    body.single-product div.product .flex-control-thumbs li {
        flex: 0 0 3.7rem;
        aspect-ratio: 1 / 1;
        border-radius: 0;
        box-shadow: none;
    }

    body.single-product .bda-pdp-summary-panel {
        position: static;
        max-width: none;
    }

    body.single-product .bda-pdp-summary-panel .summary {
        display: grid;
        gap: 0.72rem;
        margin: 0;
        padding: 0.1rem 0 0;
        border: 0;
        border-radius: 0;
        background: transparent !important;
        box-shadow: none;
    }

    body.single-product .bda-pdp-summary-panel .summary::before {
        width: fit-content;
        padding: 0;
        border: 0;
        background: transparent;
        font-size: 0.55rem;
        letter-spacing: 0.15em;
    }

    body.single-product .bda-pdp-summary-panel .product_title {
        max-width: 18ch;
        font-size: clamp(1.42rem, 5.4vw, 2.25rem);
        line-height: 1.03;
        letter-spacing: 0;
    }

    body.single-product .bda-pdp-summary-panel .price {
        font-size: 1.08rem;
    }

    body.single-product .bda-pdp-summary-panel .woocommerce-product-details__short-description {
        font-size: 0.78rem;
        line-height: 1.45;
    }

    body.single-product .bda-pdp-summary-panel form.cart:not(.variations_form),
    body.single-product .bda-pdp-summary-panel form.cart .variations_button,
    body.single-product .bda-pdp-summary-panel form.cart .woocommerce-variation-add-to-cart {
        grid-template-columns: minmax(6.5rem, 0.32fr) minmax(0, 1fr);
        gap: 0.56rem;
        padding-top: 0.38rem;
        border-top: 1px solid rgba(149, 165, 166, 0.2);
    }

    body.single-product .bda-pdp-summary-panel .quantity,
    body.single-product .bda-pdp-summary-panel .single_add_to_cart_button {
        min-height: 3rem;
    }

    body.single-product .bda-pdp-summary-panel .quantity {
        border-radius: 999px;
        box-shadow: none;
    }

    body.single-product .bda-pdp-summary-panel .single_add_to_cart_button {
        border-radius: 999px !important;
        font-size: 0.66rem !important;
        box-shadow: none !important;
    }

    body.single-product .bda-pdp-summary-panel .bda-pdp-trust,
    body.single-product .bda-pdp-summary-panel .product_meta,
    body.single-product .bda-pdp-summary-panel .bda-pdp-accordion {
        padding-top: 0.62rem;
        border-top: 1px solid rgba(149, 165, 166, 0.2);
    }

    body.single-product .bda-pdp-summary-panel .bda-pdp-accordion-header {
        min-height: 2.55rem;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }
}

@media (max-width: 430px) {
    body.single-product .bda-pdp-summary-panel form.cart:not(.variations_form),
    body.single-product .bda-pdp-summary-panel form.cart .variations_button,
    body.single-product .bda-pdp-summary-panel form.cart .woocommerce-variation-add-to-cart {
        grid-template-columns: 1fr;
    }
}

/* PDP alternative B tuning: keep the showcase elegant but never let a pale
 * product image become a blank wall before the buy controls. */
@media (min-width: 1181px) {
    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__wrapper,
    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__image,
    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__image > a {
        height: clamp(500px, calc(100svh - var(--bda-nav-offset, 7.5rem) - var(--bda-admin-bar-offset, 0px) - 5.5rem), 680px) !important;
        min-height: 500px !important;
        max-height: 680px !important;
    }
}

@media (min-width: 901px) and (max-width: 1180px) {
    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__wrapper,
    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__image,
    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__image > a {
        height: clamp(340px, calc(100svh - var(--bda-nav-offset, 7.5rem) - var(--bda-admin-bar-offset, 0px) - 7rem), 500px) !important;
        min-height: 340px !important;
        max-height: 500px !important;
    }
}

@media (max-width: 900px) {
    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__wrapper {
        background:
            radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.72), transparent 38%),
            linear-gradient(135deg, rgba(236, 239, 241, 0.95), rgba(250, 251, 252, 0.96));
    }

    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__wrapper,
    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__image,
    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__image > a {
        height: clamp(210px, 42vw, 295px) !important;
        min-height: 210px !important;
        max-height: 295px !important;
    }
}

@media (min-width: 901px) {
    body.single-product .bda-pdp-gallery-panel figure {
        display: flex;
        align-items: center;
        justify-content: center;
        height: clamp(340px, calc(100svh - var(--bda-nav-offset, 7.5rem) - var(--bda-admin-bar-offset, 0px) - 7rem), 560px);
        margin: 0;
        overflow: hidden;
        border: 1px solid rgba(149, 165, 166, 0.16);
        border-radius: 0;
        background:
            radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.72), transparent 38%),
            linear-gradient(135deg, rgba(236, 239, 241, 0.95), rgba(250, 251, 252, 0.96));
        box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
    }

    body.single-product .bda-pdp-gallery-panel figure img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
        border-radius: 0 !important;
        filter: contrast(1.03) saturate(1.04);
    }
}

@media (max-width: 900px) {
    body.single-product .bda-pdp-gallery-panel figure {
        display: flex;
        align-items: center;
        justify-content: center;
        height: clamp(210px, 42vw, 295px);
        margin: 0;
        overflow: hidden;
        border: 1px solid rgba(149, 165, 166, 0.16);
        border-radius: 0;
        background:
            radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.72), transparent 38%),
            linear-gradient(135deg, rgba(236, 239, 241, 0.95), rgba(250, 251, 252, 0.96));
        box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
    }

    body.single-product .bda-pdp-gallery-panel figure img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
        border-radius: 0 !important;
        filter: contrast(1.03) saturate(1.04);
    }
}

@media (max-width: 1180px) {
    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery,
    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__wrapper,
    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__image,
    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__image > a,
    body.single-product .bda-pdp-gallery-panel figure,
    body.single-product .bda-pdp-gallery-panel figure > *,
    body.single-product .bda-pdp-gallery-panel .ct-product-gallery-container,
    body.single-product .bda-pdp-gallery-panel .ct-media-container {
        height: clamp(220px, 38vw, 330px) !important;
        min-height: 220px !important;
        max-height: 330px !important;
    }

    body.single-product .bda-pdp-gallery-panel figure img,
    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__image img,
    body.single-product .bda-pdp-gallery-panel .ct-media-container img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 330px !important;
        object-fit: contain !important;
        object-position: center !important;
    }

    body.single-product div.product.bda-pdp-product aside.bda-pdp-summary-panel,
    body.single-product div.product.bda-pdp-product .bda-pdp-summary-panel {
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    body.single-product div.product.bda-pdp-product aside.bda-pdp-summary-panel .summary,
    body.single-product div.product.bda-pdp-product .bda-pdp-summary-panel .summary,
    body.single-product div.product.bda-pdp-product .summary.entry-summary {
        padding: 0.12rem 0 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    body.single-product div.product.bda-pdp-product aside.bda-pdp-summary-panel .summary::before,
    body.single-product div.product.bda-pdp-product .bda-pdp-summary-panel .summary::before {
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }
}

/* Desktop spacing correction: when a product has only one image, the gallery
 * must not leave a huge empty grid column between media and buy controls. */
@media (min-width: 1181px) {
    body.single-product div.product.bda-pdp-product {
        width: min(100% - clamp(2rem, 5vw, 6rem), 1220px);
    }

    body.single-product .bda-pdp-shell {
        grid-template-columns: minmax(32rem, 40rem) minmax(20.5rem, 22rem);
        justify-content: center;
        gap: clamp(2rem, 3.2vw, 3.5rem);
    }

    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery {
        width: 100%;
        max-width: 40rem;
        justify-self: end;
    }

    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__wrapper,
    body.single-product .bda-pdp-gallery-panel figure {
        width: 100% !important;
    }

    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery:not(:has(.flex-control-thumbs)) {
        max-width: 40rem;
    }

    body.single-product .bda-pdp-summary-panel {
        width: 100%;
        max-width: 22rem;
    }
}

@media (min-width: 1500px) {
    body.single-product div.product.bda-pdp-product {
        width: min(100% - 4rem, 1180px);
    }

    body.single-product .bda-pdp-shell {
        grid-template-columns: minmax(31rem, 38rem) minmax(20rem, 21.5rem);
        gap: 3.25rem;
    }

    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery {
        max-width: 38rem;
    }
}
