/* ==========================================================
   BDA PDP DECISION SURFACE
   Calm WooCommerce purchase path aligned with "La luz talla la joya"
   ========================================================== */

/* BDA SHOWROOM COMPACT PDP PASS - consolidated decision surface. */

body.single-product {
    --bda-pdp-forest: #0d4037;
    --bda-pdp-forest-deep: #082f29;
    --bda-pdp-pearl: #f7f6f3;
    --bda-pdp-paper: #ffffff;
    --bda-pdp-ink: #12231f;
    --bda-pdp-copy: #40534f;
    --bda-pdp-muted: #65736f;
    --bda-pdp-silver: #c7cecc;
    --bda-pdp-silver-soft: #e3e7e5;
    --bda-pdp-gold: #c79a4a;
    --bda-pdp-line: rgba(13, 64, 55, 0.18);
    --bda-pdp-focus: rgba(199, 154, 74, 0.36);
    overflow-x: clip;
    background: var(--bda-pdp-pearl);
    color: var(--bda-pdp-copy);
}

body.single-product [data-bda-pdp],
body.single-product [data-bda-pdp] * {
    box-sizing: border-box;
}

body.single-product .site-main,
body.single-product .woocommerce-page-content,
body.single-product .woocommerce-notices-wrapper {
    width: 100%;
}

body.single-product [data-bda-pdp] {
    width: min(100% - 2rem, 82rem);
    margin-inline: auto;
    padding-block: 1.5rem 5rem;
}

body.single-product .bda-pdp-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 2rem;
}

body.single-product .bda-pdp-gallery-panel,
body.single-product .bda-pdp-summary-panel {
    min-width: 0;
}

body.single-product .bda-pdp-gallery-stage {
    position: relative;
    width: 100%;
    min-width: 0;
    border: 1px solid var(--bda-pdp-silver-soft);
    border-radius: 2px;
    background: #eef1ef;
}

body.single-product .bda-pdp-light-signature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.8rem 0 0;
    color: var(--bda-pdp-forest);
    font-family: var(--bda-font-display, Newsreader, serif);
    font-size: 0.95rem;
    font-style: italic;
    letter-spacing: 0;
    line-height: 1.35;
}

body.single-product .bda-pdp-light-signature::before {
    width: 2.6rem;
    height: 1px;
    background: var(--bda-pdp-gold);
    content: "";
}

/* Woo gallery: FlexSlider keeps exclusive ownership of slide positioning. */
body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery {
    position: relative;
    display: grid;
    width: 100%;
    min-width: 0;
    margin: 0;
    gap: 0.75rem;
    float: none;
}

body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery:not(:has(.flex-control-thumbs)) {
    grid-template-areas: "media";
    grid-template-columns: minmax(0, 1fr);
}

body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery:has(.flex-control-thumbs) {
    grid-template-areas: "thumbs media";
    grid-template-columns: 4.5rem minmax(0, 1fr);
}

body.single-product .bda-pdp-gallery-panel .flex-viewport {
    position: relative;
    grid-area: media;
    width: 100%;
    min-width: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #eef1ef;
}

body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery:not(:has(.flex-viewport)) > .woocommerce-product-gallery__wrapper {
    position: relative;
    grid-area: media;
    width: 100%;
    min-width: 0;
    margin: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #eef1ef;
}

body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__image,
body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__image > a {
    min-width: 0;
    min-height: 0;
}

body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__image > a {
    display: block;
    width: 100%;
    height: 100%;
}

body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__image img.wp-post-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
    background: #eef1ef;
}

body.single-product .bda-pdp-gallery-panel .flex-control-thumbs {
    grid-area: thumbs;
    display: grid;
    grid-auto-rows: 4.5rem;
    align-content: start;
    width: 100%;
    max-height: 100%;
    margin: 0;
    padding: 0;
    gap: 0.65rem;
    overflow-x: hidden;
    overflow-y: auto;
    list-style: none;
    scrollbar-width: thin;
    scrollbar-color: var(--bda-pdp-silver) transparent;
}

body.single-product .bda-pdp-gallery-panel .flex-control-thumbs li {
    width: 100%;
    min-width: 0;
    margin: 0;
    float: none;
}

body.single-product .bda-pdp-gallery-panel .flex-control-thumbs img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid transparent;
    border-radius: 2px;
    opacity: 0.58;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
    transition: border-color 180ms ease, opacity 180ms ease;
}

body.single-product .bda-pdp-gallery-panel .flex-control-thumbs img:hover,
body.single-product .bda-pdp-gallery-panel .flex-control-thumbs img.flex-active,
body.single-product .bda-pdp-gallery-panel .flex-control-thumbs img[aria-current="true"] {
    border-color: var(--bda-pdp-forest);
    opacity: 1;
}

body.single-product .bda-pdp-gallery-panel .flex-control-thumbs img:focus-visible,
body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__trigger:focus-visible {
    outline: 2px solid var(--bda-pdp-gold);
    outline-offset: 3px;
}

body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__trigger {
    position: absolute;
    z-index: 4;
    top: 0.9rem;
    right: 0.9rem;
    display: grid;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(13, 64, 55, 0.14);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--bda-pdp-forest);
    text-decoration: none;
    box-shadow: 0 0.5rem 1.5rem rgba(8, 47, 41, 0.08);
    transition: border-color 180ms ease, transform 180ms ease;
}

body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery__trigger:hover {
    border-color: var(--bda-pdp-gold);
    transform: translateY(-1px);
}

body.single-product .bda-pdp-gallery-panel .onsale {
    position: absolute;
    z-index: 4;
    top: 0.9rem;
    left: 0.9rem;
    min-width: 0;
    min-height: 0;
    padding: 0.42rem 0.6rem;
    border: 0;
    border-radius: 2px;
    background: var(--bda-pdp-forest);
    color: var(--bda-pdp-paper);
    font-family: var(--bda-font-sans, Inter, sans-serif);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
}

/* A brief optical reflection. It lives inside the image viewport only. */
body.single-product .bda-pdp-image-reflection {
    position: absolute;
    z-index: 3;
    inset: -12% auto -12% -28%;
    width: 18%;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(
        102deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.12) 28%,
        rgba(255, 249, 226, 0.72) 50%,
        rgba(255, 255, 255, 0.1) 72%,
        rgba(255, 255, 255, 0) 100%
    );
    mix-blend-mode: screen;
    transform: translateX(0) skewX(-10deg);
    will-change: transform, opacity;
}

body.single-product .bda-pdp-image-reflection.is-reflecting {
    animation: bda-pdp-reflection 520ms cubic-bezier(0.23, 1, 0.32, 1) both;
}

@keyframes bda-pdp-reflection {
    0% {
        opacity: 0;
        transform: translateX(0) skewX(-10deg);
    }

    24% {
        opacity: 0.74;
    }

    100% {
        opacity: 0;
        transform: translateX(720%) skewX(-10deg);
    }
}

/* Purchase summary */
body.single-product .bda-pdp-summary-panel .summary.entry-summary {
    display: flex;
    width: 100%;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    float: none;
}

body.single-product .bda-pdp-summary-panel .summary.entry-summary > * {
    margin-block: 0;
}

body.single-product .bda-pdp-summary-panel .bda-pdp-breadcrumb--inline {
    order: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    color: var(--bda-pdp-muted);
    font-family: var(--bda-font-sans, Inter, sans-serif);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.4;
}

body.single-product .bda-pdp-summary-panel .bda-pdp-breadcrumb--inline a {
    color: var(--bda-pdp-forest);
    text-decoration-color: transparent;
    text-underline-offset: 0.25em;
    transition: text-decoration-color 180ms ease;
}

body.single-product .bda-pdp-summary-panel .bda-pdp-breadcrumb--inline a:hover {
    text-decoration-color: var(--bda-pdp-gold);
}

body.single-product .bda-pdp-summary-panel .product_title {
    order: 2;
    max-width: 18ch;
    margin: 0;
    color: var(--bda-pdp-ink);
    font-family: var(--bda-font-display, Newsreader, serif);
    font-size: 3.1rem;
    font-weight: 450;
    letter-spacing: 0;
    line-height: 1.02;
    text-wrap: balance;
}

body.single-product .bda-pdp-summary-panel .price {
    order: 3;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.45rem;
    color: var(--bda-pdp-forest);
    font-family: var(--bda-font-sans, Inter, sans-serif);
    font-size: 1.5rem;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
}

body.single-product .bda-pdp-summary-panel .price del {
    color: var(--bda-pdp-muted);
    font-size: 0.78em;
    font-weight: 500;
    opacity: 1;
}

body.single-product .bda-pdp-summary-panel .price ins {
    color: inherit;
    text-decoration: none;
}

body.single-product .bda-pdp-summary-panel .bda-pdp-spec-grid {
    order: 4;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0.55rem 0 0;
    padding: 0;
    border-block: 1px solid var(--bda-pdp-line);
}

body.single-product .bda-pdp-summary-panel .bda-pdp-spec {
    min-width: 0;
    padding: 0.75rem 0.72rem 0.72rem 0;
    border-right: 1px solid var(--bda-pdp-line);
}

body.single-product .bda-pdp-summary-panel .bda-pdp-spec + .bda-pdp-spec {
    padding-left: 0.72rem;
}

body.single-product .bda-pdp-summary-panel .bda-pdp-spec:last-child {
    border-right: 0;
}

body.single-product .bda-pdp-summary-panel .bda-pdp-spec dt {
    color: var(--bda-pdp-muted);
    font-family: var(--bda-font-sans, Inter, sans-serif);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: uppercase;
}

body.single-product .bda-pdp-summary-panel .bda-pdp-spec dd {
    margin: 0.22rem 0 0;
    color: var(--bda-pdp-ink);
    font-family: var(--bda-font-sans, Inter, sans-serif);
    font-size: 0.82rem;
    font-weight: 650;
    letter-spacing: 0;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

body.single-product .bda-pdp-summary-panel .bda-pdp-variation--summary {
    order: 5;
    display: grid;
    gap: 0.65rem;
    padding-top: 0.15rem;
}

body.single-product .bda-pdp-summary-panel .bda-pdp-variation-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

body.single-product .bda-pdp-summary-panel .bda-pdp-variation-label {
    color: var(--bda-pdp-ink);
    font-family: var(--bda-font-sans, Inter, sans-serif);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.3;
}

body.single-product .bda-pdp-summary-panel .bda-pdp-size-guide {
    color: var(--bda-pdp-forest);
    font-family: var(--bda-font-sans, Inter, sans-serif);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0;
    text-decoration-color: var(--bda-pdp-gold);
    text-underline-offset: 0.25em;
}

body.single-product .bda-pdp-summary-panel .bda-pdp-sizes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

body.single-product .bda-pdp-summary-panel .bda-pdp-size-pill {
    display: inline-grid;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.5rem 0.7rem;
    place-items: center;
    border: 1px solid var(--bda-pdp-silver);
    border-radius: 2px;
    background: var(--bda-pdp-paper);
    color: var(--bda-pdp-forest);
    font-family: var(--bda-font-sans, Inter, sans-serif);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

body.single-product .bda-pdp-summary-panel button.bda-pdp-size-pill {
    cursor: pointer;
}

body.single-product .bda-pdp-summary-panel button.bda-pdp-size-pill:hover,
body.single-product .bda-pdp-summary-panel button.bda-pdp-size-pill.is-selected,
body.single-product .bda-pdp-summary-panel button.bda-pdp-size-pill[aria-pressed="true"] {
    border-color: var(--bda-pdp-forest);
    background: var(--bda-pdp-forest);
    color: var(--bda-pdp-paper);
}

body.single-product .bda-pdp-summary-panel button.bda-pdp-size-pill:focus-visible {
    outline: 2px solid var(--bda-pdp-gold);
    outline-offset: 3px;
}

body.single-product .bda-pdp-summary-panel .bda-pdp-size-pill.is-disabled,
body.single-product .bda-pdp-summary-panel .bda-pdp-size-pill:disabled {
    border-color: var(--bda-pdp-silver-soft);
    background: #f1f3f2;
    color: #88938f;
    cursor: not-allowed;
    text-decoration: line-through;
}

body.single-product .bda-pdp-summary-panel .bda-pdp-size-pill--reference {
    min-width: 0;
    min-height: 2rem;
    padding: 0.45rem 0.65rem;
    border: 0;
    border-left: 2px solid var(--bda-pdp-gold);
    background: rgba(13, 64, 55, 0.06);
}

body.single-product .bda-pdp-summary-panel .bda-pdp-size-note {
    color: var(--bda-pdp-copy);
    font-family: var(--bda-font-sans, Inter, sans-serif);
    font-size: 0.78rem;
    letter-spacing: 0;
    line-height: 1.4;
}

body.single-product .bda-pdp-summary-panel form.cart {
    order: 6;
    width: 100%;
    margin: 0;
}

body.single-product .bda-pdp-summary-panel form.cart:not(.variations_form),
body.single-product .bda-pdp-summary-panel form.cart .woocommerce-variation-add-to-cart {
    display: grid;
    grid-template-columns: 7.75rem minmax(0, 1fr);
    align-items: stretch;
    gap: 0.65rem;
}

body.single-product .bda-pdp-summary-panel form.cart.variations_form {
    display: grid;
    gap: 0.75rem;
}

body.single-product .bda-pdp-summary-panel form.cart table.variations {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
}

body.single-product .bda-pdp-summary-panel form.cart table.variations th,
body.single-product .bda-pdp-summary-panel form.cart table.variations td {
    padding: 0.25rem 0;
    border: 0;
    text-align: left;
}

body.single-product .bda-pdp-summary-panel form.cart table.variations th {
    width: 5.5rem;
    padding-right: 0.65rem;
}

body.single-product .bda-pdp-summary-panel form.cart table.variations label {
    color: var(--bda-pdp-ink);
    font-size: 0.78rem;
    font-weight: 700;
}

body.single-product .bda-pdp-summary-panel form.cart table.variations select {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.55rem 2rem 0.55rem 0.7rem;
    border: 1px solid var(--bda-pdp-silver);
    border-radius: 2px;
    background-color: var(--bda-pdp-paper);
    color: var(--bda-pdp-ink);
    font-family: var(--bda-font-sans, Inter, sans-serif);
    font-size: 0.82rem;
}

body.single-product .bda-pdp-summary-panel form.cart table.variations select:focus-visible {
    border-color: var(--bda-pdp-forest);
    outline: 3px solid var(--bda-pdp-focus);
}

body.single-product .bda-pdp-summary-panel form.cart .reset_variations {
    display: inline-block;
    margin-top: 0.4rem;
    color: var(--bda-pdp-muted);
    font-size: 0.72rem;
    text-underline-offset: 0.2em;
}

body.single-product .bda-pdp-summary-panel form.cart table.variations.bda-pdp-variations-hidden {
    display: none;
}

body.single-product .bda-pdp-summary-panel .single_variation_wrap,
body.single-product .bda-pdp-summary-panel .woocommerce-variation {
    display: grid;
    gap: 0.55rem;
}

body.single-product .bda-pdp-summary-panel .bda-variation-guidance {
    margin: 0;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--bda-pdp-silver-soft);
    border-left: 2px solid var(--bda-pdp-gold);
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.64);
    color: var(--bda-pdp-copy);
    font-family: var(--bda-font-sans, Inter, sans-serif);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.4;
}

body.single-product .bda-pdp-summary-panel .bda-variation-guidance[data-state="ready"] {
    border-left-color: var(--bda-pdp-forest);
    color: var(--bda-pdp-forest);
}

body.single-product .bda-pdp-summary-panel .woocommerce-variation-price .price {
    font-size: 1.05rem;
}

body.single-product .bda-pdp-summary-panel .stock {
    order: 4;
    margin: 0;
    color: var(--bda-pdp-forest);
    font-family: var(--bda-font-sans, Inter, sans-serif);
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0;
    line-height: 1.4;
}

body.single-product .bda-pdp-summary-panel .stock.out-of-stock {
    color: #9b352f;
}

body.single-product .bda-pdp-summary-panel .quantity {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: 2.4rem minmax(2.25rem, 1fr) 2.4rem;
    align-items: stretch;
    border: 1px solid var(--bda-pdp-silver);
    border-radius: 2px;
    background: var(--bda-pdp-paper);
}

body.single-product .bda-pdp-summary-panel .quantity input.qty {
    width: 100%;
    min-width: 0;
    height: 100%;
    min-height: 2.75rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--bda-pdp-ink);
    font-family: var(--bda-font-sans, Inter, sans-serif);
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    text-align: center;
    appearance: textfield;
}

body.single-product .bda-pdp-summary-panel .quantity input.qty::-webkit-inner-spin-button,
body.single-product .bda-pdp-summary-panel .quantity input.qty::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
}

body.single-product .bda-pdp-summary-panel .bda-pdp-qty-btn {
    display: grid;
    min-width: 0;
    min-height: 2.75rem;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--bda-pdp-forest);
    font-family: var(--bda-font-sans, Inter, sans-serif);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 160ms ease;
}

body.single-product .bda-pdp-summary-panel .bda-pdp-qty-btn:hover {
    background: rgba(13, 64, 55, 0.07);
}

body.single-product .bda-pdp-summary-panel .bda-pdp-qty-btn:focus-visible,
body.single-product .bda-pdp-summary-panel .quantity input.qty:focus-visible {
    outline: 2px solid var(--bda-pdp-gold);
    outline-offset: -2px;
}

body.single-product .bda-pdp-summary-panel .bda-pdp-native-qty-control {
    display: none;
}

body.single-product .bda-pdp-summary-panel .single_add_to_cart_button {
    width: 100%;
}

body.single-product .bda-pdp-summary-panel .added_to_cart.wc-forward {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    color: var(--bda-pdp-forest);
    font-size: 0.78rem;
    font-weight: 700;
    text-underline-offset: 0.25em;
}

body.single-product .bda-pdp-summary-panel .bda-pdp-trust {
    order: 7;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
    padding-block: 0.72rem;
    border-block: 1px solid var(--bda-pdp-line);
}

body.single-product .bda-pdp-summary-panel .bda-pdp-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    color: var(--bda-pdp-copy);
    font-family: var(--bda-font-sans, Inter, sans-serif);
    font-size: 0.72rem;
    letter-spacing: 0;
    line-height: 1.35;
}

body.single-product .bda-pdp-summary-panel .bda-pdp-trust-item > span:first-child {
    color: var(--bda-pdp-gold);
    font-size: 0.9rem;
}

body.single-product .bda-pdp-summary-panel .woocommerce-product-details__short-description {
    order: 8;
    max-width: 62ch;
    color: var(--bda-pdp-copy);
    font-family: var(--bda-font-sans, Inter, sans-serif);
    font-size: 0.82rem;
    letter-spacing: 0;
    line-height: 1.6;
}

body.single-product .bda-pdp-summary-panel .woocommerce-product-details__short-description p {
    margin: 0;
}

body.single-product .bda-pdp-summary-panel .woocommerce-product-rating {
    order: 9;
    margin: 0;
    color: var(--bda-pdp-muted);
    font-size: 0.75rem;
}

body.single-product .bda-pdp-summary-panel .bda-pdp-accordion-group {
    order: 10;
    display: grid;
    border-top: 1px solid var(--bda-pdp-line);
}

body.single-product .bda-pdp-summary-panel .bda-pdp-accordion {
    border-bottom: 1px solid var(--bda-pdp-line);
}

body.single-product .bda-pdp-summary-panel .bda-pdp-accordion-header {
    display: flex;
    width: 100%;
    min-height: 3rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--bda-pdp-forest);
    font-family: var(--bda-font-sans, Inter, sans-serif);
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0;
    line-height: 1.3;
    text-align: left;
    text-transform: uppercase;
    cursor: pointer;
}

body.single-product .bda-pdp-summary-panel .bda-pdp-accordion-header:focus-visible {
    outline: 2px solid var(--bda-pdp-gold);
    outline-offset: 3px;
}

body.single-product .bda-pdp-summary-panel .bda-pdp-accordion-icon {
    color: var(--bda-pdp-gold);
    font-size: 1rem;
    transition: transform 180ms ease;
}

body.single-product .bda-pdp-summary-panel .bda-pdp-accordion.is-open .bda-pdp-accordion-icon {
    transform: rotate(45deg);
}

body.single-product .bda-pdp-summary-panel .bda-pdp-accordion-body {
    max-width: 65ch;
    padding: 0 0 1rem;
    color: var(--bda-pdp-copy);
    font-family: var(--bda-font-sans, Inter, sans-serif);
    font-size: 0.8rem;
    letter-spacing: 0;
    line-height: 1.65;
}

body.single-product .bda-pdp-summary-panel .bda-pdp-accordion-body[hidden] {
    display: none;
}

body.single-product .bda-pdp-summary-panel .bda-pdp-accordion-body p,
body.single-product .bda-pdp-summary-panel .bda-pdp-accordion-body ul {
    margin-block: 0 0.7rem;
}

body.single-product .bda-pdp-summary-panel .bda-pdp-technical-meta {
    display: grid;
    margin: 0.85rem 0 0;
    padding-top: 0.75rem;
    gap: 0.45rem;
    border-top: 1px solid var(--bda-pdp-line);
}

body.single-product .bda-pdp-summary-panel .bda-pdp-technical-meta div {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr);
    gap: 0.75rem;
}

body.single-product .bda-pdp-summary-panel .bda-pdp-technical-meta dt {
    color: var(--bda-pdp-muted);
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
}

body.single-product .bda-pdp-summary-panel .bda-pdp-technical-meta dd {
    margin: 0;
    color: var(--bda-pdp-copy);
}

body.single-product .bda-pdp-summary-panel .product_meta {
    order: 11;
    color: var(--bda-pdp-muted);
    font-size: 0.72rem;
}

/* Secondary Woo information remains available below the first decision. */
body.single-product .bda-pdp-after {
    width: min(100%, 76rem);
    margin: 4rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--bda-pdp-line);
}

body.single-product .bda-pdp-after .woocommerce-tabs,
body.single-product .bda-pdp-after .up-sells.upsells {
    width: 100%;
    margin: 0 0 4rem;
}

body.single-product .bda-pdp-after .woocommerce-tabs ul.tabs {
    display: flex;
    flex-wrap: wrap;
    margin: 0 0 1.5rem;
    padding: 0;
    gap: 1rem;
    border-bottom: 1px solid var(--bda-pdp-line);
    list-style: none;
}

body.single-product .bda-pdp-after .woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

body.single-product .bda-pdp-after .woocommerce-tabs ul.tabs a {
    display: block;
    padding: 0.75rem 0;
    color: var(--bda-pdp-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
}

body.single-product .bda-pdp-after .woocommerce-tabs ul.tabs li.active a {
    color: var(--bda-pdp-forest);
    box-shadow: inset 0 -2px var(--bda-pdp-gold);
}

body.single-product .bda-pdp-after .woocommerce-tabs .panel {
    max-width: 70ch;
    color: var(--bda-pdp-copy);
    font-size: 0.9rem;
    line-height: 1.7;
}

body.single-product .bda-pdp-after .up-sells.upsells > h2 {
    margin: 0 0 1.5rem;
    color: var(--bda-pdp-ink);
    font-family: var(--bda-font-display, Newsreader, serif);
    font-size: 2rem;
    font-weight: 450;
    letter-spacing: 0;
    line-height: 1.05;
}

body.single-product .bda-pdp-after .up-sells.upsells ul.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    gap: 1rem;
}

/* Shared PLP cards continue inside the existing PDP editorial wrapper. */
body.single-product .bda-pdp-after > .bda-pdp-recommendations {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
}

body.single-product .bda-pdp-after > .bda-pdp-recommendations .bda-pdp-recommendations-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

body.single-product .bda-pdp-after > .bda-pdp-recommendations .bda-pdp-recommendations-header h2 {
    margin: 0;
    color: var(--bda-pdp-ink);
    font-family: var(--bda-font-display, Newsreader, serif);
    font-size: 2.75rem;
    font-weight: 450;
    letter-spacing: 0;
    line-height: 1.05;
    text-wrap: balance;
}

body.single-product .bda-pdp-after > .bda-pdp-recommendations .bda-pdp-recommendations-header p {
    max-width: 48ch;
    margin: 0.45rem 0 0;
    color: var(--bda-pdp-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

body.single-product .bda-pdp-after > .bda-pdp-recommendations .bda-pdp-recommendations-header > a {
    flex: 0 0 auto;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid var(--bda-pdp-gold);
    color: var(--bda-pdp-forest);
    font-family: var(--bda-font-sans, Inter, sans-serif);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0;
    line-height: 1.25;
    text-decoration: none;
    text-transform: uppercase;
}

body.single-product .bda-pdp-after > .bda-pdp-recommendations .bda-pdp-recommendations-grid {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.single-product .bda-pdp-after > .bda-pdp-recommendations .bda-pdp-recommendations-grid::before,
body.single-product .bda-pdp-after > .bda-pdp-recommendations .bda-pdp-recommendations-grid::after {
    display: none;
    content: none;
}

body.single-product .bda-pdp-after > .bda-pdp-recommendations .bda-pdp-recommendations-grid > li.product.bda-plp-card {
    position: relative;
    display: flex;
    width: auto;
    min-width: 0;
    min-height: 100%;
    flex: none;
    flex-direction: column;
    float: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--bda-pdp-ink);
}

body.single-product .woocommerce-message,
body.single-product .woocommerce-info,
body.single-product .woocommerce-error {
    width: min(100% - 2rem, 82rem);
    margin: 1rem auto;
    padding: 0.75rem 0.8rem 0.75rem 1rem;
    border: 1px solid var(--bda-pdp-silver);
    border-radius: 2px;
    background: var(--bda-pdp-paper);
    color: var(--bda-pdp-copy);
    font-size: 0.82rem;
}

body.single-product .woocommerce-message {
    display: flex;
    min-height: 4rem;
    align-items: center;
    gap: 0.75rem;
    border-color: rgba(13, 64, 55, 0.42);
    background: #eef3f1;
    color: var(--bda-pdp-forest);
}

body.single-product .woocommerce-error {
    border-color: #c98e89;
}

body.single-product .woocommerce-message::before {
    display: none;
}

body.single-product .woocommerce-message a.button {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 0 auto;
    padding: 0.35rem 0.35rem 0.35rem 0.8rem;
    float: none;
    border: 1px solid var(--bda-pdp-forest);
    border-radius: 0;
    background: var(--bda-pdp-paper);
    color: var(--bda-pdp-forest);
    font-family: var(--bda-font-sans, Inter, sans-serif);
    font-size: 0.7rem;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
}

body.single-product .woocommerce-message a.button::after {
    display: inline-grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    background: var(--bda-pdp-forest);
    color: var(--bda-pdp-paper);
    content: '\2192';
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    body.single-product .woocommerce-message {
        flex-wrap: wrap;
    }

    body.single-product .woocommerce-message a.button {
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
    }
}

@media (min-width: 960px) {
    body.single-product [data-bda-pdp] {
        padding-block-start: 2rem;
    }

    body.single-product .bda-pdp-shell {
        grid-template-columns: minmax(0, 1.16fr) minmax(21rem, 0.84fr);
        gap: clamp(2.5rem, 5vw, 5.5rem);
    }

    body.single-product .bda-pdp-gallery-panel {
        position: sticky;
        top: calc(var(--bda-nav-offset, 5.35rem) + var(--bda-admin-bar-offset, 0px) + 1.25rem);
    }

    body.single-product .bda-pdp-summary-panel {
        padding-block: 0.35rem 1.5rem;
    }
}

@media (min-width: 1200px) {
    body.single-product .bda-pdp-summary-panel .product_title {
        font-size: 3.35rem;
    }
}

@media (max-width: 959px) {
    body.single-product [data-bda-pdp] {
        width: min(100% - 1.5rem, 48rem);
        padding-block-start: 1rem;
    }

    body.single-product .bda-pdp-shell {
        gap: 1.5rem;
    }

    body.single-product .bda-pdp-gallery-panel,
    body.single-product .bda-pdp-summary-panel {
        width: 100%;
    }

    body.single-product .bda-pdp-summary-panel .product_title {
        max-width: 17ch;
    }

    body.single-product .bda-pdp-after .up-sells.upsells ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1023px) {
    body.single-product .bda-pdp-after > .bda-pdp-recommendations .bda-pdp-recommendations-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    body.single-product [data-bda-pdp] {
        width: min(100% - 1rem, 35rem);
        padding-block: 0.65rem 3.5rem;
    }

    body.single-product .bda-pdp-shell {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.1rem;
    }

    body.single-product .bda-pdp-gallery-stage {
        width: 100%;
    }

    body.single-product .bda-pdp-gallery-panel .woocommerce-product-gallery:has(.flex-control-thumbs) {
        grid-template-areas:
            "media"
            "thumbs";
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto;
    }

    body.single-product .bda-pdp-gallery-panel .flex-control-thumbs {
        grid-auto-flow: column;
        grid-auto-columns: 4rem;
        grid-auto-rows: 4rem;
        width: 100%;
        padding: 0.05rem;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-inline: contain;
        scroll-snap-type: inline proximity;
    }

    body.single-product .bda-pdp-gallery-panel .flex-control-thumbs li {
        scroll-snap-align: start;
    }

    body.single-product .bda-pdp-light-signature {
        margin-top: 0.6rem;
        font-size: 0.88rem;
    }

    body.single-product .bda-pdp-summary-panel .summary.entry-summary {
        gap: 0.72rem;
    }

    body.single-product .bda-pdp-summary-panel .product_title {
        max-width: 20ch;
        font-size: clamp(2rem, 9vw, 2.35rem);
        line-height: 1.03;
    }

    body.single-product .bda-pdp-summary-panel .price {
        font-size: 1.35rem;
    }

    body.single-product .bda-pdp-summary-panel .bda-pdp-spec {
        padding: 0.62rem 0.45rem 0.62rem 0;
    }

    body.single-product .bda-pdp-summary-panel .bda-pdp-spec + .bda-pdp-spec {
        padding-left: 0.45rem;
    }

    body.single-product .bda-pdp-summary-panel .bda-pdp-spec dt {
        font-size: 0.7rem;
    }

    body.single-product .bda-pdp-summary-panel .bda-pdp-spec dd {
        font-size: 0.75rem;
    }

    body.single-product .bda-pdp-summary-panel form.cart:not(.variations_form),
    body.single-product .bda-pdp-summary-panel form.cart .woocommerce-variation-add-to-cart {
        grid-template-columns: 6.25rem minmax(0, 1fr);
        gap: 0.5rem;
    }

    body.single-product .bda-pdp-summary-panel .quantity {
        grid-template-columns: 1.9rem minmax(2rem, 1fr) 1.9rem;
    }

    body.single-product .bda-pdp-after {
        margin-top: 3rem;
    }

    body.single-product .bda-pdp-after > .bda-pdp-recommendations .bda-pdp-recommendations-header {
        align-items: start;
        flex-direction: column;
        gap: 0.75rem;
    }

    body.single-product .bda-pdp-after > .bda-pdp-recommendations .bda-pdp-recommendations-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 359px) {
    body.single-product .bda-pdp-summary-panel form.cart:not(.variations_form),
    body.single-product .bda-pdp-summary-panel form.cart .woocommerce-variation-add-to-cart {
        grid-template-columns: 5.8rem minmax(0, 1fr);
    }

}

@media (prefers-reduced-motion: reduce) {
    body.single-product [data-bda-pdp] *,
    body.single-product [data-bda-pdp] *::before,
    body.single-product [data-bda-pdp] *::after {
        scroll-behavior: auto;
        transition-duration: 0.01ms;
    }

    body.single-product .bda-pdp-image-reflection {
        display: none;
    }

    body.single-product .bda-pdp-after > .bda-pdp-recommendations *,
    body.single-product .bda-pdp-after > .bda-pdp-recommendations *::before,
    body.single-product .bda-pdp-after > .bda-pdp-recommendations *::after {
        scroll-behavior: auto;
        transition-duration: 0.01ms;
    }
}
