/* ═══════════════════════════════════════════════════════════════
 * PLP.CSS — Brillo de Amalia
 * Estilos para Product Listing Pages (Shop / Categorías)
 * ═══════════════════════════════════════════════════════════════ */

.bda-plp-shell {
    padding-block: 2rem 5rem;
    background: var(--bda-bg-light);
}

/* ─────────────────────────────────────────────
 * 1. GRID DE PRODUCTOS
 * ───────────────────────────────────────────── */
.bda-plp-grid,
.bda-plp-shell .products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
@media (min-width: 768px) {
    .bda-plp-grid,
    .bda-plp-shell .products { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .bda-plp-grid,
    .bda-plp-shell .products { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
}

/* ─────────────────────────────────────────────
 * 2. PRODUCT CARD (PLP variant)
 * ───────────────────────────────────────────── */
.bda-plp-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(189, 195, 199, 0.38);
    border-radius: calc(var(--bda-radius) + 0.2rem);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 249, 250, 0.98) 100%);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.06);
    transition:
        transform 0.35s var(--bda-ease-out),
        box-shadow 0.35s var(--bda-ease-out),
        border-color 0.35s var(--bda-ease);
}

.bda-plp-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.72), transparent 38%),
        radial-gradient(circle at 84% 14%, rgba(191, 201, 207, 0.18), transparent 24%);
}

.bda-plp-card-link {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 1rem;
    height: 100%;
    padding: clamp(0.95rem, 2vw, 1.1rem);
    color: inherit;
    text-decoration: none;
}

.bda-plp-card-copy {
    display: grid;
    grid-template-rows: auto minmax(4.75rem, auto) auto;
    gap: 0.75rem;
    align-content: start;
}

.bda-plp-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
}

.bda-plp-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #4b5563;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: color var(--bda-duration-fast) var(--bda-ease);
}

.bda-plp-card-cta::after {
    content: '->';
    font-size: 0.88em;
    transform: translateY(-1px);
}

/* Hover premium (Props-like): perspectiva + tilt leve + gloss */
@media (hover: hover) and (pointer: fine) {
    .bda-plp-card.bda-premium-card {
        perspective: 900px;
        transform-style: preserve-3d;
    }

    .bda-plp-card.bda-premium-card .bda-plp-card-img {
        transform: translateZ(0);
        transition: transform 0.18s var(--bda-ease-out),
                    filter 0.25s var(--bda-ease);
        will-change: transform;
    }

    .bda-plp-card.bda-premium-card.is-tilting .bda-plp-card-img {
        transform: rotateX(var(--bda-tilt-x, 0deg)) rotateY(var(--bda-tilt-y, 0deg)) translateZ(0) scale(1.01);
    }

    .bda-plp-card.bda-premium-card .bda-plp-card-img::before {
        content: '';
        position: absolute;
        inset: -40%;
        pointer-events: none;
        background:
            radial-gradient(
                circle at var(--bda-gloss-x, 50%) var(--bda-gloss-y, 35%),
                rgba(255, 255, 255, 0.42),
                rgba(255, 255, 255, 0.0) 55%
            );
        opacity: 0;
        transition: opacity 0.35s var(--bda-ease-out);
        mix-blend-mode: screen;
    }

    .bda-plp-card.bda-premium-card:hover .bda-plp-card-img::before {
        opacity: 1;
    }

    .bda-plp-card.bda-premium-card .bda-plp-card-img::after {
        content: '';
        position: absolute;
        inset: 0;
        pointer-events: none;
        border-radius: var(--bda-radius);
        box-shadow: inset 0 0 0 1px rgba(44, 62, 80, 0.06);
        opacity: 0;
        transition: opacity 0.25s var(--bda-ease);
    }

    .bda-plp-card.bda-premium-card:hover .bda-plp-card-img::after {
        opacity: 1;
    }

    .bda-plp-card:hover {
        transform: translateY(-6px);
        border-color: rgba(149, 165, 166, 0.48);
        box-shadow: 0 28px 60px rgba(15, 23, 42, 0.1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bda-plp-card {
        transition: none !important;
    }
    .bda-plp-card:hover {
        transform: none !important;
        box-shadow: 0 22px 48px rgba(15, 23, 42, 0.06) !important;
    }
    .bda-plp-card.bda-premium-card .bda-plp-card-img {
        transition: none !important;
        will-change: auto !important;
    }
    .bda-plp-card.bda-premium-card .bda-plp-card-img::before,
    .bda-plp-card.bda-premium-card .bda-plp-card-img::after {
        transition: none !important;
        opacity: 0 !important;
    }
    .bda-plp-card-img img.bda-img-primary,
    .bda-plp-card-img img.bda-img-secondary,
    .bda-plp-card-cta {
        transition: none !important;
    }
    .bda-plp-card:hover .bda-img-primary {
        opacity: 1 !important;
        transform: none !important;
    }
    .bda-plp-card:hover .bda-img-secondary {
        opacity: 0 !important;
    }
}

.bda-plp-card-img {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 4.9;
    background: linear-gradient(180deg, #f6f7f8 0%, #eef1f3 100%);
    border-radius: calc(var(--bda-radius) - 0.1rem);
    overflow: hidden;
}

.bda-plp-card-link:focus-visible {
    outline: 2px solid rgba(44, 62, 80, 0.32);
    outline-offset: -2px;
}

.bda-plp-card-actions {
    position: relative;
    z-index: 1;
    padding: 0 1rem 1rem;
}

.bda-plp-card-actions .bda-plp-card-action {
    width: 100%;
    min-height: 3.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 999px !important;
}

.bda-plp-card-actions .bda-plp-card-action--secondary {
    --bda-cta-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.72));
    --bda-cta-text: #16202b;
    --bda-cta-border: rgba(149, 165, 166, 0.28);
    --bda-cta-shadow: 0 18px 34px rgba(17, 24, 39, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.82);
    --bda-cta-hover-border: rgba(44, 62, 80, 0.16);
    --bda-cta-hover-shadow: 0 20px 38px rgba(17, 24, 39, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

/* Imagen principal */
.bda-plp-card-img img.bda-img-primary {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 24%;
    filter: grayscale(10%);
    transition: opacity var(--bda-duration-fast) var(--bda-ease);
}

/* Imagen secundaria (crossfade on hover) */
.bda-plp-card-img img.bda-img-secondary {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 24%;
    filter: grayscale(10%);
    opacity: 0;
    transition: opacity var(--bda-duration-fast) var(--bda-ease);
}
.bda-plp-card:hover .bda-img-primary {
    opacity: 0;
}
.bda-plp-card:hover .bda-img-secondary {
    opacity: 1;
}

/* Fallback si no hay imagen secundaria */
.bda-plp-card:not(.bda-plp-card--has-secondary-image) .bda-plp-card-img .bda-img-primary {
    transition: transform var(--bda-duration-base) var(--bda-ease-out);
}
.bda-plp-card:not(.bda-plp-card--has-secondary-image):hover .bda-plp-card-img .bda-img-primary {
    transform: scale(1.05);
    opacity: 1;
}

/* Product info */
.bda-plp-card-title {
    margin: 0;
    font-family: var(--bda-font-display);
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    color: #111827;
    transition: color var(--bda-duration-fast) var(--bda-ease);
    line-height: 1.08;
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
.bda-plp-card:hover .bda-plp-card-title {
    color: #1f2937;
}
.bda-plp-card:hover .bda-plp-card-cta {
    color: #111827;
}
.bda-plp-card-material {
    margin: 0;
    color: #5b6775;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.bda-plp-card-price {
    font-weight: 600;
    color: #111827;
    margin-top: 0;
    font-size: 1rem;
}
.bda-plp-card-price del {
    color: var(--bda-secondary);
    font-weight: 400;
    margin-right: 0.5rem;
}

/* Badges */
.bda-plp-badge {
    position: absolute;
    top: 0.625rem;
    left: 0.625rem;
    z-index: 3;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.5rem;
    border-radius: var(--bda-radius);
}
.bda-plp-badge--new {
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
}
.bda-plp-badge--sale {
    background: var(--bda-error);
    color: white;
}
.bda-plp-badge--sold {
    background: #374151;
    color: white;
}

/* Wishlist icon */
.bda-plp-wishlist {
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    z-index: 3;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--bda-radius-full);
    border: none;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity var(--bda-duration-fast) var(--bda-ease),
                transform var(--bda-duration-fast) var(--bda-ease-spring);
}
.bda-plp-card:hover .bda-plp-wishlist {
    opacity: 1;
    transform: scale(1);
}
.bda-plp-wishlist:hover {
    background: white;
    color: var(--bda-error);
}

/* ─────────────────────────────────────────────
 * 3. FILTROS
 * ───────────────────────────────────────────── */
.bda-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}
.bda-filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: var(--bda-radius-full);
    background: transparent;
    font-size: 0.8125rem;
    color: var(--bda-text);
    cursor: pointer;
    transition: all var(--bda-duration-fast) var(--bda-ease);
}
.bda-filter-btn:hover,
.bda-filter-btn.is-active {
    background: var(--bda-primary);
    color: white;
    border-color: var(--bda-primary);
}

/* Resultado count + sort */
.bda-plp-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.bda-plp-count {
    font-size: 0.875rem;
    color: var(--bda-text-light);
}
.bda-plp-count p {
    margin: 0;
}
.bda-plp-sort select {
    appearance: none;
    border: 1px solid #d1d5db;
    border-radius: var(--bda-radius);
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 0.8125rem;
    color: var(--bda-text);
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
    cursor: pointer;
    transition: border-color var(--bda-duration-fast) var(--bda-ease);
}
.bda-plp-sort select:focus {
    border-color: var(--bda-primary);
    outline: none;
}

/* ─────────────────────────────────────────────
 * 4. LOAD MORE / PAGINACIÓN
 * ───────────────────────────────────────────── */
.bda-load-more {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}
.bda-load-more-btn {
    padding: 0.875rem 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: var(--bda-radius);
    background: transparent;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bda-text);
    cursor: pointer;
    transition: all var(--bda-duration-fast) var(--bda-ease);
}
.bda-load-more-btn:hover {
    background: var(--bda-primary);
    color: white;
    border-color: var(--bda-primary);
}
.bda-load-more-btn.is-loading {
    pointer-events: none;
    opacity: 0.6;
}

/* Fade-in para productos cargados dinámicamente */
.bda-plp-card[data-loaded] {
    animation: bdaFadeUp var(--bda-duration-base) var(--bda-ease-out) both;
}
@keyframes bdaFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────────
 * 5. CATEGORY HEADER (banner)
 * ───────────────────────────────────────────── */
.bda-plp-header {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: clamp(1.5rem, 4vw, 2.5rem);
    overflow: hidden;
    border: 1px solid rgba(189, 195, 199, 0.36);
    border-radius: calc(var(--bda-radius) + 0.35rem);
    padding: clamp(1.35rem, 4vw, 2.5rem);
    background:
        radial-gradient(circle at top right, rgba(191, 201, 207, 0.18), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 249, 0.96));
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.08);
    margin-bottom: 3rem;
}

.bda-plp-header::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.54), transparent 40%);
}

.bda-plp-header-copy-shell,
.bda-plp-header-media {
    position: relative;
    z-index: 1;
}

.bda-plp-header-copy-shell {
    display: grid;
    gap: 1.3rem;
    align-content: center;
}

.bda-plp-header-topline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
}

.bda-plp-header-eyebrow,
.bda-plp-header-note-label {
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 700;
}

.bda-plp-header-eyebrow {
    color: #475569;
}

.bda-plp-header-link {
    color: #1f2937;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
}

.bda-plp-header-content {
    position: relative;
    z-index: 1;
    color: #111827;
}

.bda-plp-header-title {
    margin: 0;
    font-family: var(--bda-font-display);
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    line-height: 0.92;
}

.bda-plp-header-copy {
    max-width: 38rem;
    margin: 1rem 0 0;
    font-size: 1rem;
    line-height: 1.75;
    color: #4b5563;
}

.bda-plp-header-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.bda-plp-header-extension {
    margin-top: 1rem;
}

.bda-plp-header-media {
    display: grid;
    gap: 1rem;
    align-content: stretch;
}

.bda-plp-header-image {
    width: 100%;
    min-height: 100%;
    object-fit: cover;
    border-radius: calc(var(--bda-radius) + 0.1rem);
    aspect-ratio: 4 / 4.8;
    filter: grayscale(8%) saturate(0.94);
}

.bda-plp-pagination .woocommerce-pagination {
    margin-top: 3rem;
}

.bda-plp-pagination .page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    list-style: none;
}

.bda-plp-pagination .page-numbers li {
    list-style: none;
}

.bda-plp-pagination .page-numbers a,
.bda-plp-pagination .page-numbers span {
    min-width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: var(--bda-radius);
    background: white;
    color: var(--bda-text);
    text-decoration: none;
    transition: all var(--bda-duration-fast) var(--bda-ease);
}

.bda-plp-pagination .page-numbers a:hover,
.bda-plp-pagination .page-numbers .current {
    background: var(--bda-primary);
    border-color: var(--bda-primary);
    color: white;
}

/* ─────────────────────────────────────────────
 * 6. EMPTY STATE
 * ───────────────────────────────────────────── */
.bda-plp-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--bda-text-light);
}
.bda-plp-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

/* ─────────────────────────────────────────────
 * 7. RESPONSIVE
 * ───────────────────────────────────────────── */
@media (max-width: 767px) {
    .bda-plp-shell { padding-top: 1rem; }
    .bda-plp-header {
        grid-template-columns: 1fr;
        padding: 1.1rem;
    }
    .bda-plp-header-title { font-size: 2rem; }
    .bda-plp-header-meta { grid-template-columns: 1fr; }
    .bda-plp-card-link { padding: 0.85rem; }
    .bda-plp-card-actions { padding: 0 0.85rem 0.85rem; }
    .bda-plp-card-footer { align-items: flex-start; flex-direction: column; }
    .bda-plp-wishlist { opacity: 1; transform: scale(1); }
    .bda-plp-toolbar { align-items: flex-start; flex-direction: column; }
}

/* ─────────────────────────────────────────────
 * 8. WOOCOMMERCE NATIVE CLASSES — alineación real
 * ─────────────────────────────────────────────
 * Blocksy + Woo generan .products > li.product.
 * Aplicamos el mismo grid editorial y card style
 * sobre los selectores reales, no solo .bda-plp-*.
 * ───────────────────────────────────────────── */

/* Grid nativo de Woo */
ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
@media (min-width: 768px) {
    ul.products { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    ul.products { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
}

/* Card nativa: neutralizar márgenes/estilos que rompen el grid */
ul.products li.product {
    position: relative;
    margin: 0 !important;
    float: none !important;
    width: auto !important;
    clear: none !important;
}

/* Imagen del card nativo */
ul.products li.product a img,
ul.products li.product .woocommerce-loop-product__link img,
ul.products li.product .ct-image-container img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    display: block;
    border-radius: var(--bda-radius);
    transition: transform var(--bda-duration-base) var(--bda-ease-out);
    filter: grayscale(8%);
}
ul.products li.product:hover a img,
ul.products li.product:hover .woocommerce-loop-product__link img {
    transform: scale(1.04);
}

/* Contenedor de imagen nativa: overflow para zoom */
ul.products li.product .woocommerce-loop-product__link,
ul.products li.product .ct-image-container {
    display: block;
    overflow: hidden;
    border-radius: var(--bda-radius);
    margin-bottom: 0.75rem;
}

/* Título del producto nativo */
ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--bda-font-display);
    font-size: 1rem;
    color: #111827;
    line-height: 1.3;
    margin: 0.25rem 0;
    transition: color var(--bda-duration-fast) var(--bda-ease);
}
ul.products li.product:hover .woocommerce-loop-product__title {
    color: var(--bda-text-light);
}

/* Precio nativo */
ul.products li.product .price {
    font-weight: 500;
    color: #111827;
    font-size: 0.9375rem;
    display: block;
    margin-top: 0.375rem;
}
ul.products li.product .price del {
    color: var(--bda-secondary);
    font-weight: 400;
    margin-right: 0.375rem;
}

/* Botón "Añadir al carrito" nativo — mismo gesto que "Conocer historia" */
ul.products li.product .add_to_cart_button,
ul.products li.product .button,
ul.products li.product a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0;
    min-height: 3.25rem;
    padding: 0.875rem 1.35rem;
    border-radius: 999px !important;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-align: center;
    box-shadow: 0 18px 34px rgba(17, 24, 39, 0.08);
}
ul.products li.product .add_to_cart_button::before,
ul.products li.product .button::before,
ul.products li.product a.button::before {
    inset: 0;
}

/* ─────────────────────────────────────────────
 * 9. CATEGORÍAS — ocultar sección de atributos
 * ─────────────────────────────────────────────
 * En el header de categoría, algunos themes/plugins
 * inyectan bloques de atributos (piezas / material / enfoque).
 * Los ocultamos manteniendo el resto del header intacto.
 * ───────────────────────────────────────────── */

/* Blocksy product-category attribute terms */
.term-description .product-attributes,
.woocommerce-taxonomy-archive-description .product-attributes,
.ct-term-description .product-attributes,
.bda-plp-header .product-attributes,

/* Stitch / meta attribute blocks comunes */
.category-page-attributes,
.product-category-meta,
.ct-category-attributes,
.woocommerce-loop-category__product-count,

/* Filas de etiquetas de atributo (piezas / material / enfoque) */
.ct-term-meta,
.product-term-meta,
.category-term-meta,
.bda-cat-attrs,

/* Widget de facets / atributos en el header de categoría */
.category-header-filters,
.archive-header-attrs {
    display: none !important;
}

/* Si el bloque aparece dentro del banner de categoría de Blocksy */
.ct-category-header .sub-category-description {
    display: none !important;
}

/* ─────────────────────────────────────────────
 * 10. WOO STOREFRONT REPAIR — PLP + related cards
 * ───────────────────────────────────────────── */

body.bda-storefront .woocommerce-products-header:not(.bda-plp-header),
body.bda-storefront .ct-shop-hero,
body.bda-storefront .ct-category-header {
    display: none !important;
}

body.bda-storefront .bda-plp-shell {
    padding-block: clamp(0.45rem, 1.4vw, 1.1rem) clamp(3.5rem, 7vw, 6rem);
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.95), transparent 30rem),
        radial-gradient(circle at 85% 12%, rgba(199, 210, 218, 0.18), transparent 26rem),
        linear-gradient(180deg, #fbfcfc 0%, #f5f7f8 48%, #fbfcfc 100%);
}

body.bda-storefront .bda-plp-shell .bda-container {
    width: min(100% - clamp(1.25rem, 4vw, 4rem), 1520px);
}

body.bda-storefront .bda-plp-header {
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.38fr);
    min-height: clamp(14rem, 22vw, 18rem);
    margin-bottom: clamp(0.75rem, 1.6vw, 1.25rem);
    padding: clamp(0.9rem, 1.9vw, 1.45rem);
    overflow: hidden;
    border-color: rgba(149, 165, 166, 0.24);
    border-radius: 34px;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 250, 0.84) 48%, rgba(236, 241, 244, 0.72)),
        radial-gradient(circle at 88% 20%, rgba(255, 255, 255, 0.9), transparent 18rem);
    box-shadow:
        0 36px 86px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.bda-storefront .bda-plp-header::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.62));
}

body.bda-storefront .bda-plp-header-copy-shell {
    gap: clamp(0.7rem, 1.2vw, 0.95rem);
}

body.bda-storefront .bda-plp-header-title {
    max-width: 11ch;
    font-size: clamp(2.15rem, 3.1vw, 3.55rem);
    letter-spacing: 0;
    line-height: 0.98;
}

body.bda-storefront .bda-plp-header-copy {
    max-width: 44rem;
    color: #5d6b7a;
    font-size: clamp(0.9rem, 0.98vw, 1rem);
    line-height: 1.48;
}

body.bda-storefront .bda-plp-header-meta {
    max-width: 42rem;
}

body.bda-storefront .bda-plp-header-stat {
    padding: 0.58rem 0.72rem;
    border: 1px solid rgba(149, 165, 166, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.64);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

body.bda-storefront .bda-plp-header-stat-label {
    display: block;
    margin-bottom: 0.35rem;
    color: #6b7786;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

body.bda-storefront .bda-plp-header-extension {
    margin-top: 0.15rem;
}

body.bda-storefront .bda-plp-header-image {
    min-height: 0;
    height: clamp(13rem, 22vw, 18rem);
    aspect-ratio: 1 / 0.9;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    filter: contrast(1.04) saturate(1.02);
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.1);
}

body.bda-storefront .bda-filters {
    justify-content: center;
    gap: 0.7rem;
    margin-bottom: clamp(0.85rem, 1.6vw, 1.3rem);
    padding: 0;
    border: 0;
}

body.bda-storefront .bda-filter-btn {
    border-color: rgba(149, 165, 166, 0.28);
    background: rgba(255, 255, 255, 0.74);
    color: #334155;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
}

body.bda-storefront .bda-filter-btn:hover,
body.bda-storefront .bda-filter-btn.is-active {
    background: #3f4b59;
    border-color: #3f4b59;
    color: #fff;
}

body.bda-storefront .bda-plp-toolbar {
    align-items: center;
    margin-bottom: clamp(0.85rem, 1.4vw, 1.2rem);
}

body.bda-storefront .bda-plp-count,
body.bda-storefront .bda-plp-count p {
    color: #64748b;
    font-size: 0.92rem;
}

body.bda-storefront .bda-plp-sort select {
    min-height: 2.75rem;
    border-color: rgba(149, 165, 166, 0.3);
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.82);
    color: #243142;
    font-weight: 600;
}

body.bda-storefront ul.products,
body.bda-storefront .bda-plp-shell .products {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: clamp(1.15rem, 3vw, 2rem) !important;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

body.bda-storefront ul.products::before,
body.bda-storefront ul.products::after {
    display: none !important;
    content: none !important;
}

@media (min-width: 640px) {
    body.bda-storefront ul.products,
    body.bda-storefront .bda-plp-shell .products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 1040px) {
    body.bda-storefront ul.products,
    body.bda-storefront .bda-plp-shell .products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 1360px) {
    body.bda-storefront ul.products,
    body.bda-storefront .bda-plp-shell .products {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

body.bda-storefront ul.products li.product.bda-plp-card {
    display: grid !important;
    grid-template-rows: 1fr auto;
    min-width: 0;
    min-height: 100%;
    margin: 0 !important;
    float: none !important;
    width: auto !important;
    overflow: hidden;
    border-radius: 28px;
    border-color: rgba(149, 165, 166, 0.22);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 250, 0.92)),
        #fff;
}

body.bda-storefront .bda-plp-card-link {
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: clamp(0.9rem, 1.7vw, 1.15rem);
    min-width: 0;
    height: auto;
    padding: clamp(0.85rem, 1.8vw, 1.15rem);
}

body.bda-storefront .bda-plp-card-index {
    display: inline-flex;
    align-self: start;
    width: max-content;
    color: #718096;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

body.bda-storefront .bda-plp-card-img {
    width: 100%;
    aspect-ratio: 1 / 1.12;
    border-radius: 22px;
    background:
        radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.94), transparent 34%),
        linear-gradient(180deg, #f5f7f8, #edf1f4);
}

body.bda-storefront .bda-plp-card-img img.bda-img-primary,
body.bda-storefront .bda-plp-card-img img.bda-img-secondary {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

body.bda-storefront .bda-plp-card-copy {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 0.72rem;
    min-width: 0;
}

body.bda-storefront .bda-plp-card-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
    color: #718096;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.25;
    text-transform: uppercase;
}

body.bda-storefront .bda-plp-card-title {
    min-height: 0;
    margin: 0;
    color: #121b28;
    font-size: clamp(1.12rem, 1.45vw, 1.42rem);
    line-height: 1.1;
    letter-spacing: 0;
    -webkit-line-clamp: 3;
}

body.bda-storefront .bda-plp-card-excerpt {
    display: -webkit-box;
    min-height: 2.9em;
    overflow: hidden;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body.bda-storefront .bda-plp-card-footer {
    align-items: flex-end;
    margin-top: 0.2rem;
}

body.bda-storefront .bda-plp-card-price {
    color: #1f2937;
    font-size: 0.96rem;
    font-weight: 800;
}

body.bda-storefront .bda-plp-card-cta {
    flex: 0 0 auto;
    color: #405062;
    font-size: 0.68rem;
}

body.bda-storefront .bda-plp-card-actions {
    padding: 0 clamp(0.85rem, 1.8vw, 1.15rem) clamp(0.85rem, 1.8vw, 1.15rem);
}

body.bda-storefront ul.products li.product .bda-pill-cta.bda-plp-card-action {
    display: inline-flex;
    min-height: 3.05rem;
    margin-top: 0;
    padding: 0.35rem 0.35rem 0.35rem 1.05rem;
    border-radius: 999px !important;
}

body.bda-storefront .bda-plp-card-actions .added_to_cart {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    margin-top: 0.65rem;
    color: #334155;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
}

@media (max-width: 767px) {
    body.bda-storefront .bda-plp-shell {
        padding-block: clamp(0.65rem, 2.5vw, 1rem) clamp(3rem, 10vw, 4.5rem);
    }

    body.bda-storefront .bda-plp-shell .bda-container {
        width: min(100% - 1rem, 1520px);
    }

    body.bda-storefront .bda-plp-header {
        grid-template-columns: 1fr;
        gap: clamp(0.75rem, 3vw, 1rem);
        min-height: auto;
        margin-bottom: clamp(0.65rem, 3vw, 1rem);
        padding: clamp(0.85rem, 3.5vw, 1.15rem);
        border-radius: 22px;
        box-shadow:
            0 18px 40px rgba(15, 23, 42, 0.07),
            inset 0 1px 0 rgba(255, 255, 255, 0.88);
    }

    body.bda-storefront .bda-plp-header-copy-shell {
        gap: 0.72rem;
    }

    body.bda-storefront .bda-plp-header-topline {
        gap: 0.45rem 0.7rem;
    }

    body.bda-storefront .bda-plp-header-eyebrow,
    body.bda-storefront .bda-plp-header-link {
        font-size: 0.66rem;
        letter-spacing: 0.1em;
    }

    body.bda-storefront .bda-plp-header-title {
        max-width: 12ch;
        font-size: clamp(2.15rem, 11.5vw, 3.25rem);
        line-height: 0.98;
        letter-spacing: 0;
    }

    body.bda-storefront .bda-plp-header-copy {
        display: block;
        margin-top: 0.5rem;
        overflow: visible;
        font-size: 0.9rem;
        line-height: 1.45;
    }

    body.bda-storefront .bda-plp-header-media {
        min-height: 0;
    }

    body.bda-storefront .bda-plp-header-media:empty {
        display: none;
    }

    body.bda-storefront .bda-plp-header-image {
        height: clamp(6.75rem, 25vw, 9rem);
        aspect-ratio: 16 / 7;
        border-radius: 18px;
        object-position: center 42%;
        box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
    }

    body.bda-storefront .bda-plp-header-meta {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.45rem;
        max-width: none;
    }

    body.bda-storefront .bda-plp-header-stat {
        padding: 0.55rem 0.45rem;
        border-radius: 14px;
    }

    body.bda-storefront .bda-plp-header-stat-label {
        margin-bottom: 0.18rem;
        font-size: 0.54rem;
        letter-spacing: 0.1em;
    }

    body.bda-storefront .bda-plp-header-stat strong {
        display: block;
        font-size: clamp(0.72rem, 2.6vw, 0.88rem);
        line-height: 1.12;
    }

    body.bda-storefront .bda-filters {
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 0.45rem;
        margin-bottom: 0.75rem;
        padding: 0 0.1rem 0.25rem;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    body.bda-storefront .bda-filters::-webkit-scrollbar {
        display: none;
    }

    body.bda-storefront .bda-filter-btn {
        flex: 0 0 auto;
        padding: 0.43rem 0.72rem;
        font-size: 0.64rem;
        letter-spacing: 0.1em;
        box-shadow: none;
    }

    body.bda-storefront .bda-plp-toolbar {
        align-items: stretch;
        gap: 0.5rem;
        margin-bottom: 0.85rem;
    }

    body.bda-storefront .bda-plp-count,
    body.bda-storefront .bda-plp-count p {
        font-size: 0.78rem;
    }

    body.bda-storefront .bda-plp-sort select {
        width: 100%;
        min-height: 2.45rem;
        padding-block: 0.45rem;
        font-size: 0.78rem;
    }

    body.bda-storefront ul.products,
    body.bda-storefront .bda-plp-shell .products {
        gap: 0.85rem !important;
    }

    body.bda-storefront ul.products li.product.bda-plp-card {
        border-radius: 22px;
    }

    body.bda-storefront .bda-plp-card-link {
        gap: 0.7rem;
        padding: 0.72rem;
    }

    body.bda-storefront .bda-plp-card-img {
        aspect-ratio: 1 / 1;
        border-radius: 18px;
    }

    body.bda-storefront .bda-plp-card-copy {
        grid-template-rows: auto auto auto auto;
        gap: 0.5rem;
    }

    body.bda-storefront .bda-plp-card-kicker {
        gap: 0.28rem 0.5rem;
        font-size: 0.62rem;
        letter-spacing: 0.1em;
    }

    body.bda-storefront .bda-plp-card-title {
        font-size: clamp(1.05rem, 4.8vw, 1.3rem);
        line-height: 1.1;
        letter-spacing: 0;
        -webkit-line-clamp: 2;
    }

    body.bda-storefront .bda-plp-card-excerpt {
        min-height: 0;
        font-size: 0.84rem;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }

    body.bda-storefront .bda-plp-card-footer {
        gap: 0.4rem;
        margin-top: 0.1rem;
    }

    body.bda-storefront .bda-plp-card-price {
        font-size: 0.9rem;
    }

    body.bda-storefront .bda-plp-card-cta {
        font-size: 0.62rem;
    }

    body.bda-storefront .bda-plp-card-actions {
        padding: 0 0.72rem 0.72rem;
    }
}

/* Final Woo repair pass: keep Blocksy native archive heroes out of the
 * product/category experience and normalize AJAX cart feedback. */
body.bda-storefront.woocommerce-shop .site-main > .hero-section,
body.bda-storefront.woocommerce-shop main .hero-section,
body.bda-storefront.woocommerce-shop #main .hero-section,
body.bda-storefront.woocommerce-shop [data-prefix*="product"] .hero-section,
body.bda-storefront.woocommerce-shop .ct-container-full > .hero-section,
body.bda-storefront.woocommerce-shop .hero-section[data-type],
body.bda-storefront.tax-product_cat .site-main > .hero-section,
body.bda-storefront.tax-product_cat main .hero-section,
body.bda-storefront.tax-product_cat #main .hero-section,
body.bda-storefront.tax-product_cat [data-prefix*="product"] .hero-section,
body.bda-storefront.tax-product_cat .ct-container-full > .hero-section,
body.bda-storefront.tax-product_cat .hero-section[data-type],
body.bda-storefront.post-type-archive-product .site-main > .hero-section,
body.bda-storefront.post-type-archive-product main .hero-section,
body.bda-storefront.post-type-archive-product #main .hero-section,
body.bda-storefront.post-type-archive-product [data-prefix*="product"] .hero-section,
body.bda-storefront.post-type-archive-product .ct-container-full > .hero-section,
body.bda-storefront.post-type-archive-product .hero-section[data-type],
body.bda-storefront.tax-product_cat .ct-shop-hero,
body.bda-storefront.tax-product_cat .ct-category-header,
body.bda-storefront.tax-product_cat .woocommerce-products-header:not(.bda-plp-header),
body.bda-storefront.tax-product_cat .entry-header:not(.bda-plp-header),
body.bda-storefront.tax-product_cat .page-title:not(.bda-plp-header-title),
body.bda-storefront.tax-product_cat .page-description,
body.bda-storefront.tax-product_cat .ct-term-title,
body.bda-storefront.tax-product_cat .ct-term-description {
    display: none !important;
}

body.bda-storefront ul.products li.product .bda-pill-cta.bda-plp-card-action {
    --bda-pill-bubble: 2.95rem;
    position: relative;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) calc(var(--bda-pill-bubble) - 0.7rem);
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 0.42rem 0.35rem 1.25rem;
    overflow: hidden;
    isolation: isolate;
}

body.bda-storefront ul.products li.product .bda-pill-cta.bda-plp-card-action::before {
    inset: 0.42rem 0.42rem 0.42rem auto;
    z-index: 0;
    width: calc(var(--bda-pill-bubble) - 0.84rem);
    height: calc(var(--bda-pill-bubble) - 0.84rem);
    border-radius: 999px;
    clip-path: none;
    transition:
        inset 0.42s var(--bda-ease-out),
        width 0.42s var(--bda-ease-out),
        height 0.42s var(--bda-ease-out);
}

body.bda-storefront ul.products li.product .bda-pill-cta.bda-plp-card-action .bda-pill-cta-label,
body.bda-storefront ul.products li.product .bda-pill-cta.bda-plp-card-action .bda-pill-cta-icon {
    position: relative;
    z-index: 1;
}

body.bda-storefront ul.products li.product .bda-pill-cta.bda-plp-card-action .bda-pill-cta-label {
    min-width: 0;
    text-align: center;
}

body.bda-storefront ul.products li.product .bda-pill-cta.bda-plp-card-action .bda-pill-cta-icon {
    justify-self: end;
}

body.bda-storefront ul.products li.product .bda-plp-card-actions .added_to_cart,
body.bda-storefront ul.products li.product .bda-plp-card-actions .added_to_cart.wc-forward {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.95rem;
    margin-top: 0.7rem !important;
    padding: 0.4rem 1rem !important;
    overflow: hidden;
    border: 1px solid rgba(63, 75, 89, 0.28) !important;
    border-radius: 999px !important;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.84)),
        rgba(255, 255, 255, 0.9) !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-align: center;
    text-decoration: none !important;
    text-transform: uppercase;
}

body.bda-storefront ul.products li.product .bda-plp-card-actions .added_to_cart::after,
body.bda-storefront ul.products li.product .bda-plp-card-actions .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;
    font-size: 0.72rem;
}

@media (hover: hover) and (pointer: fine) {
    body.bda-storefront ul.products li.product .bda-pill-cta.bda-plp-card-action:hover::before,
    body.bda-storefront ul.products li.product .bda-pill-cta.bda-plp-card-action:focus-visible::before {
        inset: 0;
        width: 100%;
        height: 100%;
    }

    body.bda-storefront ul.products li.product .bda-plp-card-actions .added_to_cart:hover,
    body.bda-storefront ul.products li.product .bda-plp-card-actions .added_to_cart:focus-visible {
        background: #3f4b59 !important;
        color: #fff !important;
        border-color: rgba(63, 75, 89, 0.45) !important;
        transform: translateY(-1px);
    }

    body.bda-storefront ul.products li.product .bda-plp-card-actions .added_to_cart:hover::after,
    body.bda-storefront ul.products li.product .bda-plp-card-actions .added_to_cart:focus-visible::after {
        background: #fff;
        color: #3f4b59;
    }
}

/* BDA SHOWROOM COMPACT PLP PASS */
.bda-plp-shell,
body.bda-storefront .bda-plp-shell {
    padding-block-start: clamp(0.35rem, 1vw, 0.75rem);
}

.bda-plp-header,
body.bda-storefront .bda-plp-header {
    align-items: stretch;
    grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.32fr);
    gap: clamp(0.75rem, 1.8vw, 1.2rem);
    min-height: 0;
    margin-bottom: clamp(0.65rem, 1.2vw, 1rem);
    padding: clamp(0.8rem, 1.7vw, 1.2rem);
    border-radius: 24px;
    background: #f8fafb;
    box-shadow:
        0 20px 46px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.bda-plp-header-copy-shell,
body.bda-storefront .bda-plp-header-copy-shell {
    gap: clamp(0.55rem, 1vw, 0.78rem);
}

.bda-plp-header-title,
body.bda-storefront .bda-plp-header-title {
    max-width: 16ch;
    font-size: clamp(2rem, 2.8vw, 3.1rem);
    line-height: 1;
    letter-spacing: 0;
    text-wrap: balance;
}

.bda-plp-header-copy,
.bda-plp-header-description,
body.bda-storefront .bda-plp-header-copy,
body.bda-storefront .bda-plp-header-description {
    max-width: min(46rem, 100%);
    margin-top: 0.45rem;
    color: #4f5f70;
    font-size: 0.94rem;
    line-height: 1.45;
    text-wrap: pretty;
}

.bda-plp-header-media,
body.bda-storefront .bda-plp-header-media {
    min-height: 0;
}

.bda-plp-header-media:empty,
body.bda-storefront .bda-plp-header-media:empty {
    display: none;
}

.bda-plp-header-image,
body.bda-storefront .bda-plp-header-image {
    min-height: 0;
    height: clamp(9.5rem, 16vw, 13.5rem);
    aspect-ratio: 4 / 3;
    object-position: center 42%;
}

.bda-plp-header-note,
body.bda-storefront .bda-plp-header-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    gap: 0.15rem 0.7rem;
    width: min(100%, 36rem);
    padding: 0.62rem 0.78rem;
    border: 1px solid rgba(149, 165, 166, 0.24);
    border-radius: 18px;
    background: #fff;
    color: #1f2937;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.bda-plp-header-note-label,
body.bda-storefront .bda-plp-header-note-label {
    color: #64748b;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
}

.bda-plp-header-note strong,
body.bda-storefront .bda-plp-header-note strong {
    min-width: 0;
    font-size: 0.94rem;
    line-height: 1.2;
}

.bda-plp-header-note p,
body.bda-storefront .bda-plp-header-note p {
    grid-column: 1 / -1;
    margin: 0.16rem 0 0;
    color: #5f6b7a;
    font-size: 0.84rem;
    line-height: 1.36;
}

.bda-plp-toolbar,
body.bda-storefront .bda-plp-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: clamp(0.65rem, 1vw, 0.9rem);
}

@media (max-width: 900px) {
    .bda-plp-header,
    body.bda-storefront .bda-plp-header {
        grid-template-columns: 1fr;
    }

    .bda-plp-header-media,
    body.bda-storefront .bda-plp-header-media {
        align-content: start;
    }

    .bda-plp-header-image,
    body.bda-storefront .bda-plp-header-image {
        height: clamp(7.5rem, 24vw, 10rem);
        aspect-ratio: 16 / 7;
    }
}

@media (max-width: 767px) {
    .bda-plp-header,
    body.bda-storefront .bda-plp-header {
        gap: 0.65rem;
        margin-bottom: 0.65rem;
        padding: 0.78rem;
        border-radius: 20px;
    }

    .bda-plp-header-title,
    body.bda-storefront .bda-plp-header-title {
        max-width: 13ch;
        font-size: clamp(1.9rem, 10vw, 2.7rem);
    }

    .bda-plp-header-copy,
    .bda-plp-header-description,
    body.bda-storefront .bda-plp-header-copy,
    body.bda-storefront .bda-plp-header-description {
        margin-top: 0.35rem;
        font-size: 0.88rem;
        line-height: 1.38;
    }

    .bda-plp-header-note,
    body.bda-storefront .bda-plp-header-note {
        grid-template-columns: 1fr;
        gap: 0.18rem;
        padding: 0.58rem 0.68rem;
        border-radius: 16px;
    }

    .bda-plp-header-note p,
    body.bda-storefront .bda-plp-header-note p {
        grid-column: auto;
        font-size: 0.8rem;
    }

    .bda-plp-toolbar,
    body.bda-storefront .bda-plp-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 0.45rem;
        margin-bottom: 0.7rem;
    }
}

/* Product-card scanning refinements. */
.bda-plp-card-copy,
body.bda-storefront .bda-plp-card-copy {
    grid-template-rows: auto auto auto minmax(1.25rem, auto) auto;
    gap: 0.56rem;
}

.bda-plp-card-title,
body.bda-storefront .bda-plp-card-title {
    min-height: 2.2em;
    font-size: 1.16rem;
    line-height: 1.1;
    letter-spacing: 0;
    -webkit-line-clamp: 2;
}

.bda-plp-card-attribute-row,
body.bda-storefront .bda-plp-card-attribute-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.28rem 0.46rem;
    min-width: 0;
    color: #334155;
    font-size: 0.71rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.25;
    text-transform: uppercase;
}

.bda-plp-card-attribute-row span,
body.bda-storefront .bda-plp-card-attribute-row span {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bda-plp-card-attribute-row span + span::before,
body.bda-storefront .bda-plp-card-attribute-row span + span::before {
    content: '';
    flex: 0 0 auto;
    width: 0.25rem;
    height: 0.25rem;
    margin-right: 0.46rem;
    border-radius: 999px;
    background: rgba(79, 95, 112, 0.42);
}

.bda-plp-card-excerpt,
body.bda-storefront .bda-plp-card-excerpt {
    min-height: 0;
    color: #667085;
    font-size: 0.82rem;
    line-height: 1.38;
    -webkit-line-clamp: 1;
}

.bda-plp-card-footer,
body.bda-storefront .bda-plp-card-footer {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
    min-height: 2.1rem;
    margin-top: 0.05rem;
    padding-top: 0.42rem;
    border-top: 1px solid rgba(149, 165, 166, 0.18);
}

.bda-plp-card-price,
body.bda-storefront .bda-plp-card-price {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.18rem 0.42rem;
    min-width: 0;
    max-width: 100%;
    color: #111827;
    font-size: 1.06rem;
    font-weight: 850;
    line-height: 1.12;
}

.bda-plp-card-price ins,
body.bda-storefront .bda-plp-card-price ins {
    color: inherit;
    font-weight: 850;
    text-decoration: none;
}

.bda-plp-card-price del,
body.bda-storefront .bda-plp-card-price del {
    color: #7a8594;
    font-size: 0.86em;
}

.bda-plp-card-cta,
body.bda-storefront .bda-plp-card-cta {
    color: #2f3d4d;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    white-space: nowrap;
}

.bda-plp-card-link:focus-visible,
body.bda-storefront .bda-plp-card-link:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(63, 75, 89, 0.74);
}

.bda-plp-card-actions .bda-plp-card-action:focus-visible,
body.bda-storefront .bda-plp-card-actions .bda-plp-card-action:focus-visible,
.bda-plp-card-actions .added_to_cart:focus-visible,
body.bda-storefront .bda-plp-card-actions .added_to_cart:focus-visible {
    outline: none;
    box-shadow:
        inset 0 0 0 2px rgba(63, 75, 89, 0.68),
        0 14px 30px rgba(15, 23, 42, 0.08);
}

.bda-plp-card-actions .bda-plp-card-action.loading,
body.bda-storefront .bda-plp-card-actions .bda-plp-card-action.loading {
    cursor: progress;
    opacity: 0.88;
}

.bda-plp-card-actions .bda-plp-card-action.added,
body.bda-storefront .bda-plp-card-actions .bda-plp-card-action.added {
    border-color: rgba(63, 75, 89, 0.36);
}

@media (max-width: 767px) {
    .bda-plp-card-title,
    body.bda-storefront .bda-plp-card-title {
        font-size: 1.05rem;
    }

    .bda-plp-card-attribute-row,
    body.bda-storefront .bda-plp-card-attribute-row {
        font-size: 0.64rem;
        letter-spacing: 0.07em;
    }

    .bda-plp-card-excerpt,
    body.bda-storefront .bda-plp-card-excerpt {
        font-size: 0.78rem;
    }

    .bda-plp-card-footer,
    body.bda-storefront .bda-plp-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.34rem;
        min-height: 0;
    }

    .bda-plp-card-price,
    body.bda-storefront .bda-plp-card-price {
        width: 100%;
        font-size: 0.98rem;
        overflow-wrap: anywhere;
    }

    .bda-plp-card-cta,
    body.bda-storefront .bda-plp-card-cta {
        font-size: 0.6rem;
        white-space: normal;
    }
}
