/*
 * PrimeStrains Mobile-App & High-Conversion UI Layer (2026-11-24)
 * Loaded last after StyleBundle on every storefront page. Zero external deps, GPU-friendly transitions.
 */

/* 1 — Global Trust Bar & App Chrome */
.ps-trust-bar {
    background: #0f172a;
    color: #e2e8f0;
    font-size: .78rem;
    line-height: 1.3;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.ps-trust-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px 22px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 7px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
}

.ps-trust-bar-inner::-webkit-scrollbar {
    display: none;
}

.ps-trust-bar-inner a,
.ps-trust-bar-inner>span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    color: #e2e8f0 !important;
    text-decoration: none;
}

.ps-trust-bar-inner strong {
    color: #ffffff;
    font-weight: 700;
}

.ps-trust-bar-inner a:hover {
    color: #93c5fd !important;
}

.ps-trust-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    flex: none;
}

@media (max-width: 767px) {
    .ps-trust-bar-inner {
        justify-content: flex-start;
        gap: 16px;
        padding: 6px 14px;
        font-size: .74rem;
    }
}

/* Lock scroll behind open drawers/sheets */
html.ps-drawer-open,
html.ps-filter-open {
    overflow: hidden;
}

/* Dimmed Backdrops (Mobile Nav, Cart Drawer, Filter Sheet) */
.ps-nav-backdrop,
.cart-widget-backdrop,
.ps-filter-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .48);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 48;
}

.cart-widget-backdrop {
    z-index: 94;
}

.ps-filter-backdrop {
    z-index: 88;
}

.ps-nav-backdrop[hidden],
.cart-widget-backdrop[hidden],
.ps-filter-backdrop[hidden] {
    display: none !important;
}

/* Payment & Trust Badges */
.ps-pay-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}

.ps-pay-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid var(--ui-line, #e3e8ef);
    background: var(--ui-surface-2, #f2f5f9);
    color: var(--ui-ink-2, #334155);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .02em;
}

/* 2 — Native Mobile App Bottom Tab Bar Polish */
@media (max-width: 899px) {
    html body .mobile-tabbar {
        background: rgba(255, 255, 255, .94) !important;
        backdrop-filter: saturate(180%) blur(14px) !important;
        -webkit-backdrop-filter: saturate(180%) blur(14px) !important;
        border-top: 1px solid rgba(15, 23, 42, .09) !important;
        box-shadow: 0 -6px 20px rgba(15, 23, 42, .06) !important;
        padding-bottom: env(safe-area-inset-bottom) !important;
    }

    html body .mobile-tabbar a {
        transition: transform .12s ease, color .15s ease;
    }

    html body .mobile-tabbar a:active {
        transform: scale(.93);
    }

    html body .mobile-tabbar a[aria-current="page"] {
        color: var(--ui-blue, #0b63e5) !important;
        font-weight: 700 !important;
    }
}

/* 3 — Tame PWA Prompt: Matching Brand Mark & Non-Blocking Footprint */
html body .pwa-install,
html body .pwa-install:not([hidden]) {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template: none !important;
    grid-template-columns: 36px minmax(0, 1fr) auto 32px !important;
    align-items: center !important;
    gap: 10px !important;
    width: min(368px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    padding: 10px 12px !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .14) !important;
    border: 1px solid var(--ui-line, #e3e8ef) !important;
    background: var(--ui-surface, #fff) !important;
    overflow: hidden !important;
}

html body .pwa-install__mark {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 36px !important;
    height: 36px !important;
    background: none !important;
    border: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

html body .pwa-install__mark .brand-mark {
    width: 36px;
    height: 36px;
    margin: 0;
    display: block;
}

html body .pwa-install__copy {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

html body .pwa-install__copy> :not(#pwa-install-title) {
    display: none !important;
}

html body .pwa-install__copy #pwa-install-title {
    display: block !important;
    margin: 0 !important;
    font: 700 .86rem/1.25 var(--ui-font) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

html body .pwa-install__footer {
    display: contents !important;
}

html body .pwa-install__benefit,
html body .pwa-install__action-icon {
    display: none !important;
}

html[data-theme] body .pwa-install__action {
    grid-column: 3 !important;
    grid-row: 1 !important;
    min-height: 34px !important;
    height: 34px !important;
    padding: 0 12px !important;
    border-radius: 9px !important;
    font: 700 .8rem/1 var(--ui-font) !important;
    white-space: nowrap !important;
}

html body .pwa-install__close {
    position: static !important;
    grid-column: 4 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    align-self: center !important;
    width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 999px !important;
    display: grid !important;
    place-items: center !important;
}

@media (max-width: 899px) {

    /* Never double-stack PWA toast over mobile bottom nav on shopping pages */
    body:is(.catalog-page, .product-page, .cart-page, .checkout-page, .brands-directory-page, .giveaway-hub-page) .pwa-install {
        display: none !important;
    }
}

/* Hide redundant floating Bag FAB on /cart and /checkout */
body:is(.cart-page, .checkout-page) .cart-widget-launcher {
    display: none !important;
}

/* 4 — Upgraded Slide-Out Bag Drawer (Desktop right rail, Mobile app bottom sheet) */
html body .cart-widget {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: min(420px, 100vw) !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: 0 !important;
    border-left: 1px solid var(--ui-line, #e3e8ef) !important;
    background: var(--ui-surface, #fff) !important;
    box-shadow: -16px 0 44px rgba(15, 23, 42, .16) !important;
    display: flex !important;
    flex-direction: column !important;
    z-index: 95 !important;
    transform: translateX(100%);
    transition: transform .22s cubic-bezier(.22, 1, .36, 1) !important;
}

html body .cart-widget[hidden] {
    display: none !important;
}

html body .cart-widget.is-open {
    transform: translateX(0) !important;
}

html body .cart-widget-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 18px !important;
    border-bottom: 1px solid var(--ui-line, #e3e8ef) !important;
}

html body .cart-widget-header h2 {
    margin: 2px 0 0 !important;
    font-size: 1.15rem !important;
}

html body .cart-widget-header h2 small {
    color: var(--ui-muted, #64748b);
    font-weight: 600;
    font-size: .92rem;
}

.cart-widget-reward {
    padding: 12px 18px;
    background: #eff6ff;
    border-bottom: 1px solid #dbeafe;
    font-size: .84rem;
    color: #1e3a8a;
}

.cart-widget-reward.is-unlocked {
    background: #ecfdf5;
    border-bottom-color: #bbf7d0;
    color: #166534;
}

.cart-widget-reward p {
    margin: 0 0 8px !important;
    color: inherit !important;
}

.cart-widget-reward-track {
    height: 7px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .1);
    overflow: hidden;
}

.cart-widget-reward-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #16a34a;
    transition: width .28s ease;
}

html body .cart-widget-items {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    padding: 14px 18px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    max-height: none !important;
}

html body .cart-widget-item {
    display: grid !important;
    grid-template-columns: 60px minmax(0, 1fr) auto !important;
    align-items: start !important;
    gap: 12px !important;
    padding: 10px !important;
    border: 1px solid var(--ui-line, #e3e8ef) !important;
    border-radius: 12px !important;
    background: var(--ui-surface, #fff) !important;
}

html body .cart-widget-item img {
    width: 60px !important;
    height: 60px !important;
    border-radius: 8px !important;
    object-fit: cover !important;
}

.cart-widget-item-qty {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.cart-widget-item-qty button:not(.cart-widget-item-remove) {
    width: 28px;
    height: 28px;
    min-height: 28px !important;
    padding: 0 !important;
    border-radius: 8px;
    border: 1px solid var(--ui-line-strong, #cfd7e3);
    background: var(--ui-surface-2, #f2f5f9);
    color: var(--ui-ink, #0f172a);
    font-weight: 700;
    cursor: pointer;
}

.cart-widget-item-qty span {
    min-width: 20px;
    text-align: center;
    font-size: .85rem;
    font-weight: 700;
}

.cart-widget-item-remove {
    margin-left: 6px;
    border: 0;
    background: none;
    color: var(--ui-muted, #64748b);
    font-size: .78rem;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    min-height: 28px !important;
    padding: 0 4px !important;
}

.cart-widget-item-remove:hover {
    color: var(--ui-red, #c81e3a);
}

html body .cart-widget-footer {
    padding: 16px 18px calc(16px + env(safe-area-inset-bottom)) !important;
    border-top: 1px solid var(--ui-line, #e3e8ef) !important;
    background: #f8fafc !important;
}

.cart-widget-subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 1rem;
}

.cart-widget-subtotal-row strong {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ui-ink, #0f172a);
}

.cart-widget-ship-note {
    margin: 4px 0 12px !important;
    font-size: .78rem !important;
    color: var(--ui-muted, #64748b) !important;
}

html body .cart-widget-actions {
    display: grid !important;
    grid-template-columns: 1fr 1.35fr !important;
    gap: 10px !important;
}

@media (max-width: 640px) {
    html body .cart-widget {
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-height: 86dvh !important;
        border-left: 0 !important;
        border-top: 1px solid var(--ui-line, #e3e8ef) !important;
        border-radius: 20px 20px 0 0 !important;
        transform: translateY(100%);
    }

    html body .cart-widget.is-open {
        transform: translateY(0) !important;
    }
}

/* 5 — Product Cards: Edge-to-Edge Full Photos, Clear "From" Pricing & Tactile Polish */
html body main .product-grid>.product-card:not([data-catalog-results=list] *, .taxonomy-directory-hero *, .taxonomy-directory-summary *) {
    padding: 0 !important;
    overflow: hidden !important;
}

html body main .product-grid>.product-card:not([data-catalog-results=list] *, .taxonomy-directory-hero *, .taxonomy-directory-summary *) .product-media {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
    background: var(--ui-surface-2, #f2f5f9) !important;
}

html body main .product-grid>.product-card:not([data-catalog-results=list] *, .taxonomy-directory-hero *, .taxonomy-directory-summary *) .product-media::after {
    display: none !important;
}

html body main .product-grid>.product-card:not([data-catalog-results=list] *, .taxonomy-directory-hero *, .taxonomy-directory-summary *) .product-media>img.product-card-image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

html body main .product-card {
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease !important;
}

html body main .product-card:hover {
    border-color: rgba(11, 99, 229, .35) !important;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .08) !important;
    transform: translateY(-2px);
}

html body main .product-card:active {
    transform: scale(.985);
}

.product-card-from {
    font-size: .72rem;
    font-weight: 600;
    color: var(--ui-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: .03em;
}

html body main .product-grid .product-card .product-card-cta {
    display: block !important;
    width: 100%;
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 9px;
    background: var(--ui-blue-soft, #e8f1fe);
    color: var(--ui-blue, #0b63e5);
    font: 700 .8rem/1.2 var(--ui-font);
    text-align: center;
    transition: background .15s ease, color .15s ease;
}

html body main .product-grid .product-card:hover .product-card-cta {
    background: var(--ui-blue, #0b63e5);
    color: #fff;
}

/* 6 — Catalog (/seeds): Clean Grid Default + Native Mobile Slide-Up Filter Sheet */
html body main [data-catalog-results="grid"] .catalog-grid-wrapper {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

@media (min-width: 768px) {
    html body main [data-catalog-results="grid"] .catalog-grid-wrapper {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }
}

@media (min-width: 1280px) {
    html body main [data-catalog-results="grid"] .catalog-grid-wrapper {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

.catalog-promo-widget--after-filters {
    margin-top: 16px !important;
    display: block;
}

.ps-filter-head-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.ps-filter-close {
    display: none;
}

@media (max-width: 960px) {
    body.catalog-page .catalog-hero {
        padding-top: 14px !important;
        padding-bottom: 10px !important;
    }

    body.catalog-page .catalog-hero p {
        font-size: .88rem !important;
        line-height: 1.45 !important;
    }

    html body .filters[data-mobile-filter-panel] {
        position: fixed !important;
        inset: auto 0 0 0 !important;
        z-index: 90 !important;
        max-height: 85dvh !important;
        overflow-y: auto !important;
        background: var(--ui-surface, #fff) !important;
        border-radius: 20px 20px 0 0 !important;
        box-shadow: 0 -16px 40px rgba(15, 23, 42, .22) !important;
        padding: 16px 16px calc(20px + env(safe-area-inset-bottom)) !important;
        display: none !important;
    }

    html body .filters[data-mobile-filter-panel].is-open {
        display: block !important;
    }

    html body .filters[data-mobile-filter-panel] .catalog-promo-widget {
        display: none !important;
    }

    .ps-filter-close {
        display: inline-grid;
        place-items: center;
        width: 34px;
        height: 34px;
        min-height: 34px !important;
        border-radius: 999px;
        border: 1px solid var(--ui-line, #e3e8ef);
        background: var(--ui-surface-2, #f2f5f9);
        color: var(--ui-ink, #0f172a);
        font-size: 1.25rem;
        line-height: 1;
        cursor: pointer;
    }

    html body .filters[data-mobile-filter-panel] #catalog-filter-form>.button.primary {
        position: sticky;
        bottom: 0;
        width: 100%;
        min-height: 48px !important;
        margin-top: 12px;
        box-shadow: 0 -8px 18px rgba(255, 255, 255, .95);
    }
}

/* 7 — Product Detail Page (/seeds/*): Unmistakable Pack State, Mobile 2x2 Facts, Payment Strip */
.pdp-pack {
    position: relative;
}

.pdp-pack-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--pdp-cta, #0b63e5);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: grid;
    place-items: center;
    opacity: 0;
    transform: scale(.7);
    transition: opacity .15s ease, transform .15s ease;
}

.pdp-pack.is-selected,
.pdp-pack:has(input:checked) {
    border-color: var(--pdp-cta, #0b63e5) !important;
    background: #eff6ff !important;
    box-shadow: 0 0 0 2px rgba(11, 99, 229, .18) !important;
}

.pdp-pack.is-selected .pdp-pack-check,
.pdp-pack:has(input:checked) .pdp-pack-check {
    opacity: 1;
    transform: scale(1);
}

.pdp-pack-tag.is-bonus {
    background: #0f766e !important;
}

.pdp-add {
    box-shadow: 0 8px 20px rgba(11, 99, 229, .24) !important;
}

.pdp-add:hover {
    box-shadow: 0 10px 24px rgba(11, 99, 229, .32) !important;
}

.pdp-pay-strip {
    justify-content: flex-start;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--pdp-border, #e3e8ef);
}

@media (max-width: 600px) {

    /* Fix FLOWERIN / G word-break bug with clean 2x2 grid */
    body .pdp dl.pdp-facts {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-auto-flow: row !important;
        gap: 8px !important;
        background: transparent !important;
        overflow: visible !important;
    }

    body .pdp dl.pdp-facts div {
        padding: 10px 12px !important;
        border-radius: 12px !important;
        background: var(--pdp-soft, #f1f4f8) !important;
        border: 1px solid var(--pdp-border, #e3e8ef) !important;
        text-align: left !important;
    }

    body .pdp dl.pdp-facts dt {
        font-size: 10.5px !important;
        white-space: nowrap;
    }

    body .pdp dl.pdp-facts dd {
        font-size: 14px !important;
        margin-top: 3px !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }

    .pdp-sticky button {
        box-shadow: 0 6px 16px rgba(11, 99, 229, .26);
    }
}

/* 8 — Cart Page (/cart): Fix Mobile Qty Stepper Stretch & Stock Status Color */
body.cart-page .bag-item-info small {
    color: var(--ui-green, #166534) !important;
    font-weight: 600;
}

body.cart-page .bag-item-info small.is-low {
    color: var(--ui-amber, #b45309) !important;
}

body.cart-page .bag-qty {
    display: inline-flex !important;
    align-items: center !important;
    width: fit-content !important;
    max-width: 126px !important;
    border: 1px solid var(--ui-line-strong, #cfd7e3) !important;
    border-radius: 10px !important;
    overflow: hidden;
    background: var(--ui-surface, #fff);
}

body.cart-page .bag-qty button {
    flex: 0 0 38px !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--ui-ink, #0f172a) !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
}

body.cart-page .bag-qty input {
    flex: 0 0 40px !important;
    width: 40px !important;
    min-height: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    border: 0 !important;
    text-align: center !important;
    font-weight: 700 !important;
}

.bag-pay-strip {
    margin-top: 12px;
}

/* 9 — Home Page Polish: Unclamped Mobile Hero & Crisp Deals Section */
.home-deals-head {
    margin-top: 14px !important;
    margin-bottom: 10px !important;
}

@media (max-width: 767px) {
    html body main .home-hero-copy p {
        display: block !important;
        -webkit-line-clamp: unset !important;
        overflow: visible !important;
        font-size: .88rem !important;
    }

    html body main .home-landing nav.home-seed-shopping {
        order: 2;
    }

    html body main .home-deals-head {
        order: 3;
        margin-bottom: 8px !important;
    }

    html body main .home-action-strip {
        order: 4;
    }

    html body main .home-giveaway-banner {
        order: 5;
    }

    html body main .home-taste-carousel {
        order: 6;
    }

    html body main .home-advisor-cta {
        order: 7;
    }
}

/* 10 — Breeders Directory (/brands): Zero Orphan Cell & Mobile 3-of-3 Alignment */
html body .brands-hero {
    padding-block: 18px !important;
}

html body .brand-strain-preview {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

html body .brand-strain-preview>.brand-preview-heading {
    grid-column: 1 / -1 !important;
}

html body .brand-strain-preview>a {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    min-width: 0;
}

@media (max-width: 767px) {
    html body .brand-strain-preview {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    html body .brand-strain-preview>a {
        display: grid !important;
        grid-template-columns: 52px minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 10px !important;
    }

    html body .brand-strain-preview>a:nth-child(n) {
        display: grid !important;
    }

    html body .brand-strain-preview>a img {
        width: 52px !important;
        height: 64px !important;
        border-radius: 8px !important;
        object-fit: cover !important;
    }
}

/* 11 — Giveaways (/giveaways): Clean Alignment, Framing & Non-Overlapping Badge */
body.giveaway-hub-page .giveaway-hub-hero {
    align-items: start !important;
}

body.giveaway-hub-page .giveaway-current-media.has-banner-art {
    aspect-ratio: 4 / 3 !important;
    background: #f3f4f1 !important;
}

body.giveaway-hub-page .giveaway-current-media.has-banner-art img {
    object-fit: cover !important;
}

body.giveaway-hub-page .giveaway-current-media>span {
    top: 10px !important;
    left: 10px !important;
    bottom: auto !important;
    right: auto !important;
}

/* 12 — Blog / Journal (/blog): Above-the-Fold Articles, Clean Topic Pills, No Scrollbar */
body.blog-index-page .blog-index-hero {
    padding: 20px 24px !important;
    margin-bottom: 14px !important;
}

body.blog-index-page .blog-index-hero-copy {
    max-width: 76ch !important;
}

body.blog-index-page .blog-hero-actions {
    margin-top: 12px !important;
}

body.blog-index-page .blog-topic-nav {
    scrollbar-width: none !important;
    padding-bottom: 4px !important;
    margin-bottom: 16px !important;
}

body.blog-index-page .blog-topic-nav::-webkit-scrollbar {
    display: none !important;
}

body.blog-index-page .blog-topic-nav a {
    text-transform: capitalize !important;
    white-space: nowrap;
}

/* 13 — Buyer Q&A Blocks (PDP, Taxonomy, Terpenes, Effects & Directory Hubs) */
.pdp-faq-grid,
.ps-faq-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.ps-dir-faq .ps-faq-cards,
.tp-faq .ps-faq-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pdp-faq-item,
.ps-faq-cards>article {
    background: #ffffff;
    border: 1px solid var(--ui-line, #e3e8ef);
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.pdp-faq-item h3,
.ps-faq-cards>article h3 {
    margin: 0 0 8px;
    font-size: 0.98rem;
    line-height: 1.35;
    font-weight: 700;
    color: var(--ui-ink, #0f172a);
}

.pdp-faq-item p,
.ps-faq-cards>article p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--ui-muted, #475569);
}

.pdp-faq-item a,
.ps-faq-cards>article a {
    color: var(--ui-accent, #0b5fff);
    font-weight: 600;
    text-decoration: none;
}

.pdp-faq-item a:hover,
.ps-faq-cards>article a:hover {
    text-decoration: underline;
}

.ps-tax-faq {
    margin-top: 18px;
}

.tp-faq {
    margin-top: 28px;
}

.tp-faq h2,
.ps-dir-faq h2 {
    margin: 0 0 6px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ui-ink, #0f172a);
}

.ps-dir-faq {
    padding-top: 8px;
    padding-bottom: 24px;
}

@media (max-width: 899px) {

    .pdp-faq-grid,
    .ps-faq-cards,
    .ps-dir-faq .ps-faq-cards,
    .tp-faq .ps-faq-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .pdp-faq-item,
    .ps-faq-cards>article {
        padding: 14px 15px;
    }
}

/* 14 — PDP Hero Gallery: Edge-to-Edge 1:1 Photo Framing (Zero Grey Letterbox Bars) */
body.product-page .pdp-gallery-main {
    position: relative !important;
    aspect-ratio: 1 / 1 !important;
    width: 100% !important;
    height: auto !important;
    background: #ffffff !important;
    border: 1px solid var(--ui-line, #e3e8ef) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    display: block !important;
    padding: 0 !important;
}

body.product-page .pdp-gallery-main > img[data-gallery-main] {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

body.product-page .pdp-gallery-main > video[data-gallery-video] {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background: #0f172a !important;
}

body.product-page .pdp-badge {
    z-index: 2;
}

body.product-page .pdp-thumb {
    flex: 0 0 72px !important;
    width: 72px !important;
    height: 72px !important;
}