/*
 * BDAGSTORE Customer Experience Layer
 * Visual interaction layer only.
 * Does not contain business logic or wallet/payment behavior.
 */

:root {
    --ux-space-1: 8px;
    --ux-space-2: 12px;
    --ux-space-3: 16px;
    --ux-space-4: 20px;
    --ux-space-5: 24px;
    --ux-space-6: 32px;
    --ux-space-7: 48px;
    --ux-radius-sm: 12px;
    --ux-radius-md: 18px;
    --ux-radius-lg: 24px;
    --ux-touch: 48px;
    --ux-ease: cubic-bezier(.22, 1, .36, 1);
}

/* =========================================================
   GLOBAL EXPERIENCE FOUNDATION
   ========================================================= */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    overflow-x: hidden;
}

button,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

button {
    min-height: var(--ux-touch);
}

button:not(:disabled) {
    transition:
        transform .22s var(--ux-ease),
        box-shadow .22s var(--ux-ease),
        background-color .22s ease,
        border-color .22s ease,
        opacity .22s ease;
}

button:not(:disabled):hover {
    transform: translateY(-2px);
}

button:not(:disabled):active {
    transform: translateY(0) scale(.98);
}

/* =========================================================
   EXPERIENCE SECTIONS
   ========================================================= */

.hero,
.market-section,
#selection-panel,
#store-section,
#store-checkout,
#customer-orders,
.security-note {
    position: relative;
    isolation: isolate;
}

.hero,
.market-section,
#selection-panel,
#store-section,
#customer-orders {
    scroll-margin-top: 92px;
}

/* =========================================================
   SCROLL REVEAL FOUNDATION
   ========================================================= */

.ux-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity .7s var(--ux-ease),
        transform .7s var(--ux-ease);
    will-change: opacity, transform;
}

.ux-reveal.ux-visible {
    opacity: 1;
    transform: translateY(0);
}

.ux-reveal.ux-active {
    position: relative;
}

.ux-reveal.ux-active::after {
    content: "";
    position: absolute;
    inset: -8px;
    z-index: -1;
    border: 1px solid rgba(0, 174, 189, .14);
    border-radius: inherit;
    opacity: .9;
    pointer-events: none;
}

/* =========================================================
   PREMIUM TASK / JOURNEY MOTION
   Visual-only state driven by the existing UX controller.
   ========================================================= */

.ux-task {
    position: relative;
    isolation: isolate;
}

.ux-task-active {
    z-index: 1;
}

.ux-reveal.ux-task-active {
    transform: translateY(-2px);
    transition:
        opacity .7s var(--ux-ease),
        transform .7s var(--ux-ease),
        filter .45s ease;
}

.ux-reveal.ux-task-active::before {
    content: "";
    position: absolute;
    inset: -14px;
    z-index: -2;
    border-radius: calc(var(--ux-radius-lg) + 10px);
    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(0, 174, 189, .10),
            rgba(0, 174, 189, 0) 68%
        );
    opacity: 0;
    transform: scale(.94);
    pointer-events: none;
    transition:
        opacity .55s ease,
        transform .7s var(--ux-ease);
}

.ux-reveal.ux-task-active::before {
    opacity: 1;
    transform: scale(1);
    animation: ux-task-glow 3.2s ease-in-out infinite;
}

.ux-reveal.ux-task-active::after {
    border-color: rgba(0, 174, 189, .28);
    box-shadow:
        0 0 0 1px rgba(0, 174, 189, .035),
        0 12px 36px rgba(0, 174, 189, .08);
    animation: ux-task-border 3.2s ease-in-out infinite;
}

@keyframes ux-task-glow {
    0%, 100% {
        opacity: .55;
        transform: scale(.98);
    }

    50% {
        opacity: 1;
        transform: scale(1.015);
    }
}

@keyframes ux-task-border {
    0%, 100% {
        opacity: .72;
    }

    50% {
        opacity: 1;
    }
}

/* =========================================================
   BUTTON COMPLETION FEEDBACK
   ========================================================= */

button.ux-pressed {
    transform: scale(.965) !important;
    box-shadow:
        0 0 0 5px rgba(0, 174, 189, .10),
        0 8px 20px rgba(8, 34, 58, .12) !important;
}

button.ux-pressed::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    animation: ux-button-pulse .36s ease-out both;
}

@keyframes ux-button-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 174, 189, .24);
    }

    100% {
        box-shadow: 0 0 0 14px rgba(0, 174, 189, 0);
    }
}

/* =========================================================
   REVEAL DEPTH
   Uses the shared .ux-reveal transition so scroll entrance
   and active-task motion never compete for transform.
   ========================================================= */

.coupon.ux-card-ready,
.store-product-card.ux-card-ready,
.customer-order-card.ux-card-ready {
    transition:
        opacity .7s var(--ux-ease),
        transform .7s var(--ux-ease),
        box-shadow .45s var(--ux-ease),
        filter .45s ease;
}

/* =========================================================
   MOBILE JOURNEY MOTION
   ========================================================= */

@media (max-width: 760px) {
    .ux-reveal.ux-task-active {
        transform: translateY(-1px);
    }

    .ux-reveal.ux-task-active::before {
        inset: -8px;
        animation-duration: 4s;
    }

    .ux-reveal.ux-task-active::after {
        inset: -5px;
        animation-duration: 4s;
    }

    .coupon.ux-card-ready,
    .store-product-card.ux-card-ready,
    .customer-order-card.ux-card-ready {
        transition-duration: .55s;
    }
}

@media (max-width: 480px) {
    .ux-reveal.ux-task-active::before {
        inset: -5px;
    }

    .ux-reveal.ux-task-active::after {
        inset: -3px;
    }
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    min-width: 0;
}

.hero-copy {
    min-width: 0;
}

.hero h1 {
    text-wrap: balance;
}

.hero-copy > p {
    text-wrap: pretty;
}

.hero-card {
    overflow: hidden;
    transform: translateZ(0);
}

#hero-nft-image {
    transform-origin: center;
    transition:
        transform .8s var(--ux-ease),
        filter .8s var(--ux-ease);
    will-change: transform;
}

.hero-card:hover #hero-nft-image {
    transform: translateY(-6px) scale(1.015);
}

/* =========================================================
   COLLECTION CARDS
   ========================================================= */

.catalog {
    min-width: 0;
}

.coupon {
    transition:
        transform .35s var(--ux-ease),
        box-shadow .35s var(--ux-ease);
    will-change: transform;
}

.coupon:hover {
    transform: translateY(-7px);
}

.coupon:focus-within {
    transform: translateY(-4px);
}

.coupon img {
    transition:
        transform .6s var(--ux-ease),
        filter .4s ease;
}

.coupon:hover img {
    transform: scale(1.025);
}

/* =========================================================
   SELECTED NFT
   ========================================================= */

#selection-panel {
    min-width: 0;
    overflow: clip;
}

#selection-content {
    min-width: 0;
}

.selection-nft {
    position: relative;
}

#selection-image {
    transform-origin: center;
    transition:
        transform .8s var(--ux-ease),
        filter .6s ease;
    will-change: transform;
}

#selection-panel.ux-active #selection-image {
    animation: ux-nft-float 4.8s ease-in-out infinite;
}

@keyframes ux-nft-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(.35deg);
    }
}

/* =========================================================
   PROFILE / FORM EXPERIENCE
   ========================================================= */

#customer-profile,
#store-checkout {
    min-width: 0;
}

.profile-grid {
    min-width: 0;
}

.profile-field {
    min-width: 0;
}

.profile-field input,
.profile-field select,
.profile-field textarea {
    min-height: var(--ux-touch);
    width: 100%;
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background-color .2s ease;
}

.profile-field input:focus,
.profile-field select:focus,
.profile-field textarea:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 174, 189, .10);
}

/* =========================================================
   STORE
   ========================================================= */

#store-section {
    min-width: 0;
}

#store-products {
    min-width: 0;
}

#store-products > * {
    min-width: 0;
}

#store-checkout {
    scroll-margin-top: 92px;
}

/* =========================================================
   CHECKOUT / PAYMENT
   ========================================================= */

#store-checkout input,
#store-checkout select,
#store-checkout textarea {
    min-height: var(--ux-touch);
}

#store-create-checkout,
#store-payment button {
    min-height: 52px;
}

/* =========================================================
   CUSTOMER ORDERS
   ========================================================= */

#customer-orders {
    min-width: 0;
}

.customer-order-card {
    min-width: 0;
    transition:
        transform .3s var(--ux-ease),
        box-shadow .3s var(--ux-ease),
        border-color .3s ease;
}

.customer-order-card:hover {
    transform: translateY(-3px);
}

.customer-order-delivery {
    min-width: 0;
}

.customer-order-delivery-address {
    overflow-wrap: anywhere;
}

/* =========================================================
   MOBILE-FIRST EXPERIENCE
   ========================================================= */

@media (max-width: 760px) {
    html {
        scroll-padding-top: 78px;
    }

    main {
        width: calc(100% - 20px) !important;
        padding-top: 24px !important;
        padding-bottom: 56px !important;
    }



    .hero,
    .market-section,
    #selection-panel,
    #store-section,
    #customer-orders,
    .security-note {
        width: 100% !important;
        max-width: 100% !important;
    }

    .hero {
        padding-top: 28px !important;
        padding-bottom: 36px !important;
        gap: 24px !important;
    }

    .hero-copy {
        width: 100%;
    }

    .hero h1,
    .hero-copy h1 {
        max-width: 100% !important;
        font-size: clamp(36px, 11vw, 54px) !important;
        line-height: .98 !important;
    }

    .hero-copy > p {
        max-width: 100%;
        font-size: 15px !important;
        line-height: 1.6 !important;
    }

    .hero-stats {
        gap: 10px !important;
        margin-top: 22px !important;
    }

    .hero-stats div {
        flex: 1 1 0;
        min-width: 0;
    }

    .hero-stats strong {
        font-size: 17px !important;
    }

    .hero-card {
        width: 100%;
        min-height: min(88vw, 410px) !important;
        border-radius: 22px !important;
    }

    #hero-nft-image {
        max-width: 84% !important;
        max-height: 84% !important;
    }

    .market-section {
        margin-top: 8px !important;
    }

    .section-heading {
        gap: 12px !important;
    }

    .section-heading h2 {
        font-size: clamp(26px, 8vw, 34px) !important;
        line-height: 1.05 !important;
    }

    .section-heading p {
        font-size: 13px !important;
        line-height: 1.55 !important;
    }

    .carousel-controls {
        flex: 0 0 auto;
    }

    .carousel-control {
        width: 46px !important;
        min-width: 46px !important;
        min-height: 46px !important;
    }

    .carousel-frame {
        width: 100%;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
    }

    .carousel-frame::-webkit-scrollbar {
        display: none;
    }

    .catalog {
        gap: 14px !important;
    }

    .coupon {
        width: min(76vw, 280px) !important;
        min-width: min(76vw, 280px) !important;
        max-width: min(76vw, 280px) !important;
    }

    #selection-panel {
        margin-top: 24px !important;
        padding: 16px !important;
        border-radius: 20px !important;
    }

    .selection-content {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .selection-nft {
        min-height: min(82vw, 340px) !important;
    }

    .selection-nft img,
    #selection-image {
        width: auto !important;
        max-width: min(76vw, 280px) !important;
        max-height: min(78vw, 320px) !important;
    }

    .selection-details {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .price-block,
    .quantity-block,
    .total-block {
        min-width: 0 !important;
    }

    #customer-profile,
    #store-checkout {
        padding: 18px !important;
        border-radius: 20px !important;
    }

    .profile-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .profile-field-full {
        grid-column: auto !important;
    }

    .profile-field input,
    .profile-field select,
    .profile-field textarea,
    #store-checkout input,
    #store-checkout select,
    #store-checkout textarea {
        font-size: 16px !important;
    }

    #store-products {
        grid-template-columns: 1fr !important;
    }

    #store-create-checkout {
        width: 100% !important;
    }

    .customer-orders {
        width: 100% !important;
        padding: 18px !important;
        border-radius: 20px !important;
    }

    .customer-order-card {
        padding: 16px !important;
    }

    .customer-order-card-heading {
        gap: 12px !important;
    }

    .customer-order-delivery-status {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    main {
        width: calc(100% - 16px) !important;
    }



    .hero {
        padding-top: 20px !important;
    }

    .hero h1,
    .hero-copy h1 {
        font-size: clamp(34px, 11.5vw, 48px) !important;
    }

    .hero-card {
        min-height: min(90vw, 360px) !important;
    }

    .hero-stats {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-stats div {
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: rgba(255,255,255,.72);
    }

    .coupon {
        width: min(78vw, 260px) !important;
        min-width: min(78vw, 260px) !important;
        max-width: min(78vw, 260px) !important;
    }

    #selection-panel,
    #customer-profile,
    #store-checkout,
    .customer-orders {
        padding: 14px !important;
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    .ux-reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    button:not(:disabled):hover,
    .coupon:hover,
    .customer-order-card:hover {
        transform: none !important;
    }
}

/* =========================================================
   BDAGSTORE SHOP / SERVICE EXPERIENCE
   Branded commerce presentation for products and services.
   ========================================================= */

#store-section {
    margin-top: 64px;
    padding: clamp(28px, 4vw, 52px);
    border: 1px solid rgba(8, 34, 58, .08);
    border-radius: 30px;
    background:
        radial-gradient(
            circle at 88% 8%,
            rgba(24, 199, 193, .12),
            transparent 32%
        ),
        radial-gradient(
            circle at 8% 92%,
            rgba(64, 133, 224, .09),
            transparent 30%
        ),
        rgba(255, 255, 255, .78);
    box-shadow:
        0 30px 80px rgba(20, 52, 76, .08),
        inset 0 1px 0 rgba(255,255,255,.9);
    backdrop-filter: blur(16px);
}

.store-heading {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 28px;
}

.store-heading h2 {
    margin: 10px 0 8px;
    font-size: clamp(32px, 4vw, 52px);
    line-height: .98;
    letter-spacing: -.045em;
    color: #08223a;
    text-wrap: balance;
}

.store-heading p {
    max-width: 620px;
    margin: 0;
    color: #657d94;
    font-size: 15px;
    line-height: 1.65;
}

.store-access-status {
    flex: 0 0 auto;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid rgba(24, 166, 163, .22);
    border-radius: 999px;
    background: rgba(232, 250, 249, .82);
    color: #087873;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow: 0 8px 22px rgba(20, 120, 130, .08);
}

.store-access-status::before {
    content: "✓";
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(8, 157, 153, .12);
    font-size: 12px;
}

/* Product availability message */

#store-products-status {
    width: fit-content;
    max-width: 100%;
    margin: 0 0 20px;
    padding: 9px 13px;
    border: 1px solid rgba(8, 34, 58, .07);
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    color: #6d8194;
    font-size: 12px;
    font-weight: 700;
}

/* Product grid */

#store-products {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 310px), 1fr)
    );
    gap: 22px;
    align-items: stretch;
}

/* Product / service card */

.store-product-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(8, 34, 58, .09);
    border-radius: 24px;
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.98),
            rgba(247,251,253,.94)
        );
    box-shadow:
        0 18px 42px rgba(19, 48, 70, .07),
        inset 0 1px 0 rgba(255,255,255,.9);
}

.store-product-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background:
        linear-gradient(
            90deg,
            #078f8b,
            #48b9c0,
            #76a7e9
        );
    opacity: .95;
}

.store-product-card::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -95px;
    top: -95px;
    border-radius: 50%;
    background: rgba(38, 192, 190, .08);
    pointer-events: none;
}

/* Media presentation */

.store-product-media {
    position: relative;
    min-height: 250px;
    display: grid;
    place-items: center;
    overflow: hidden;
    margin: 12px 12px 0;
    border-radius: 18px;
    background:
        radial-gradient(
            circle at 50% 42%,
            rgba(22, 190, 188, .17),
            transparent 42%
        ),
        linear-gradient(
            145deg,
            #f8fcfd 0%,
            #eaf6f8 48%,
            #f5f9fc 100%
        );
    border: 1px solid rgba(24, 166, 163, .10);
}

.store-product-media::before {
    content: "BDAGSTORE";
    position: absolute;
    top: 18px;
    left: 18px;
    color: rgba(7, 143, 139, .72);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .16em;
}

.store-product-media::after {
    content: "PRODUCT • SERVICE";
    position: absolute;
    right: 18px;
    bottom: 18px;
    color: rgba(8, 34, 58, .38);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
}

.store-product-media img {
    position: relative;
    z-index: 1;
    display: block;
    width: auto;
    max-width: 76%;
    max-height: 215px;
    object-fit: contain;
    filter: drop-shadow(0 18px 24px rgba(10, 43, 65, .12));
    transition:
        transform .6s var(--ux-ease),
        filter .4s ease;
}

.store-product-card:hover .store-product-media img {
    transform: scale(1.045) translateY(-4px);
    filter: drop-shadow(0 24px 30px rgba(10, 43, 65, .16));
}

/*
 * When a product has no image, the media surface remains intentional:
 * the branded background acts as the advertisement surface instead
 * of exposing an empty HTML block.
 */

.store-product-media:not(:has(img))::before {
    content: "BDAGSTORE  •  " attr(data-media-label);
}

/* Product body */

.store-product-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px 22px 22px;
}

.store-product-body > .eyebrow {
    align-self: flex-start;
    margin-bottom: 12px;
    padding: 7px 10px;
    border: 1px solid rgba(24, 166, 163, .18);
    border-radius: 999px;
    background: rgba(232, 250, 249, .72);
    color: #087873;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
}

.store-product-body h3 {
    margin: 0;
    color: #08223a;
    font-size: clamp(21px, 2vw, 27px);
    line-height: 1.12;
    letter-spacing: -.025em;
    text-wrap: balance;
}

.store-product-body > p {
    min-height: 48px;
    margin: 10px 0 20px;
    color: #70859a;
    font-size: 14px;
    line-height: 1.6;
}

/* Price / inventory */

.store-product-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 16px;
    margin-top: auto;
    padding: 16px 0;
    border-top: 1px solid rgba(8, 34, 58, .08);
    border-bottom: 1px solid rgba(8, 34, 58, .08);
}

.store-product-meta strong {
    display: block;
    color: #087f7c;
    font-size: clamp(20px, 2.2vw, 28px);
    line-height: 1.05;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
}

.store-product-meta span {
    align-self: center;
    padding: 7px 9px;
    border-radius: 999px;
    background: #eef4f6;
    color: #607487;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

/* Primary commerce action */

.store-buy-button {
    width: 100%;
    min-height: 54px;
    margin-top: 16px;
    border: 0;
    border-radius: 14px;
    background:
        linear-gradient(
            100deg,
            #078f8b 0%,
            #079f9a 48%,
            #3d82df 100%
        );
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .01em;
    box-shadow:
        0 12px 24px rgba(13, 135, 143, .18),
        inset 0 1px 0 rgba(255,255,255,.22);
}

.store-buy-button:hover:not(:disabled) {
    box-shadow:
        0 16px 30px rgba(13, 135, 143, .25),
        inset 0 1px 0 rgba(255,255,255,.24);
}

.store-buy-button:disabled {
    background: #e8eef1;
    color: #8da0ae;
    box-shadow: none;
    cursor: not-allowed;
}

/* Service products get a slightly more editorial presentation */

.store-product-card:has(
    .eyebrow:first-child
) {
    --store-card-accent: #078f8b;
}

/* Checkout becomes the next branded stage */

#store-checkout {
    margin-top: 28px;
    padding: clamp(22px, 3vw, 36px);
    border: 1px solid rgba(8, 34, 58, .08);
    border-radius: 26px;
    background:
        radial-gradient(
            circle at 88% 8%,
            rgba(0, 174, 189, .10),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            rgba(255,255,255,.99),
            rgba(242,249,251,.96)
        );
    box-shadow:
        0 24px 60px rgba(20, 52, 76, .08);
}

.store-checkout-heading {
    margin-bottom: 22px;
}

.store-checkout-heading h3 {
    margin: 8px 0 7px;
    color: #08223a;
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.05;
    letter-spacing: -.04em;
}

.store-checkout-heading p {
    max-width: 720px;
    margin: 0;
    color: #6c8296;
    line-height: 1.6;
}

.store-checkout-summary {
    display: grid;
    gap: 0;
    margin: 0 0 18px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(8, 34, 58, .08);
    border-radius: 20px;
    background: rgba(255,255,255,.88);
    box-shadow: 0 12px 32px rgba(20, 52, 76, .055);
}

.store-summary-row {
    display: grid;
    grid-template-columns: minmax(110px, .35fr) minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    min-height: 66px;
    padding: 14px 20px;
}

.store-summary-row + .store-summary-row {
    border-top: 1px solid rgba(8, 34, 58, .07);
}

.store-summary-row span {
    color: #70859a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.store-summary-row strong {
    min-width: 0;
    color: #09243c;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.store-summary-row:nth-child(2) strong {
    color: #078f8b;
    font-size: 24px;
    letter-spacing: -.02em;
}

#store-delivery-address {
    margin-top: 0;
    padding: clamp(18px, 2.5vw, 26px);
    border: 1px solid rgba(8, 34, 58, .075);
    border-radius: 20px;
    background: rgba(255,255,255,.74);
}

#store-delivery-address .profile-grid {
    margin-bottom: 18px;
}

#store-delivery-address-status {
    min-height: 0;
    margin: 0 0 14px;
    padding: 0;
    color: #60788e;
    line-height: 1.5;
}

#store-delivery-address-status:not(:empty) {
    padding: 11px 14px;
    border: 1px solid rgba(8, 169, 189, .16);
    border-radius: 12px;
    background: rgba(233, 249, 250, .72);
}

#store-create-checkout {
    width: min(100%, 330px);
    margin-top: 2px;
}

#store-payment {
    margin-top: 18px;
}

/* =========================================================
   SHOP MOBILE
   ========================================================= */

@media (max-width: 760px) {
    #store-section {
        margin-top: 42px;
        padding: 20px 14px 22px;
        border-radius: 22px;
    }

    .store-heading {
        display: block;
        margin-bottom: 20px;
    }

    .store-heading h2 {
        font-size: clamp(30px, 9vw, 42px);
    }

    .store-heading p {
        font-size: 14px;
    }

    .store-access-status {
        width: fit-content;
        margin-top: 16px;
    }

    #store-products-status {
        margin-bottom: 14px;
    }

    #store-products {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .store-product-card {
        border-radius: 20px;
    }

    .store-product-media {
        min-height: min(68vw, 300px);
        margin: 10px 10px 0;
        border-radius: 16px;
    }

    .store-product-media img {
        max-width: 72%;
        max-height: min(55vw, 220px);
    }

    .store-product-body {
        padding: 18px;
    }

    .store-product-body > p {
        min-height: 0;
        margin-bottom: 18px;
    }

    .store-product-meta {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
    }

    .store-product-meta strong {
        font-size: 22px;
    }

    .store-buy-button {
        min-height: 52px;
    }

    #store-checkout {
        padding: 16px;
        border-radius: 20px;
    }

    .store-summary-row {
        grid-template-columns: 1fr;
        gap: 5px;
        min-height: auto;
        padding: 15px 16px;
    }

    .store-summary-row:nth-child(2) strong {
        font-size: 22px;
    }

    #store-delivery-address {
        padding: 14px;
    }

    #store-create-checkout {
        width: 100%;
        min-height: 54px;
    }
}

@media (max-width: 480px) {
    #store-section {
        margin-top: 32px;
        padding: 16px 10px 18px;
    }

    .store-heading h2 {
        font-size: 32px;
    }

    .store-product-media {
        min-height: 240px;
    }

    .store-product-body {
        padding: 16px;
    }

    .store-product-meta {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .store-product-meta span {
        align-self: flex-start;
    }

    .store-buy-button {
        margin-top: 14px;
    }
}
/* ---------- Journey focus: subtle, contained ---------- */

.ux-task {
    position: relative;
    isolation: isolate;
}

.ux-task-active {
    z-index: 2;
}

.ux-task-active::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: inherit;
    pointer-events: none;
    background: rgba(8,169,189,.075);
    filter: blur(14px);
    opacity: .7;
    z-index: -1;
    animation: ux-focused-glow 4s ease-in-out infinite;
}

.ux-task-active::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    border: 1px solid rgba(8,169,189,.18);
    box-shadow:
        0 8px 22px rgba(8,169,189,.055),
        inset 0 1px 0 rgba(255,255,255,.7);
    z-index: 3;
    animation: ux-focused-border 4s ease-in-out infinite;
}

@keyframes ux-focused-glow {
    0%, 100% {
        opacity: .45;
        transform: scale(.992);
    }
    50% {
        opacity: .75;
        transform: scale(1);
    }
}

@keyframes ux-focused-border {
    0%, 100% {
        opacity: .65;
    }
    50% {
        opacity: 1;
    }
}

/* ---------- Claim layout: authoritative final structure ---------- */

.wallet-area {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 240px) !important;
    grid-template-rows: auto auto !important;
    align-items: stretch !important;
    gap: 14px !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin-top: 18px !important;
}

.wallet-status {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    min-height: 54px !important;
    margin-top: 18px !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(8,34,58,.07) !important;
    border-radius: 14px !important;
    background: rgba(247,250,251,.92) !important;
    box-shadow:
        0 8px 22px rgba(7,29,56,.035),
        inset 0 1px 0 rgba(255,255,255,.75) !important;
}

.wallet-status span {
    display: block !important;
    margin-bottom: 4px !important;
    color: #71869a !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
}

.wallet-status strong {
    display: block !important;
    overflow-wrap: anywhere !important;
    color: #08223a !important;
    font-size: 15px !important;
}

/* Primary action occupies the second desktop column. */

#btn-mint {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 54px !important;
    margin-top: 18px !important;
    align-self: end !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Existing-NFT route gets its own full-width secondary row. */

.existing-nft-access {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    min-width: 0 !important;
    margin: 2px 0 0 !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 240px) !important;
    grid-template-rows: auto auto !important;
    gap: 9px 10px !important;
    border: 1px dashed rgba(8,34,58,.15) !important;
    border-radius: 17px !important;
    background:
        linear-gradient(
            135deg,
            rgba(247,250,251,.94),
            rgba(239,248,249,.78)
        ) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.82) !important;
}

.existing-nft-access label {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    display: block !important;
    margin: 0 !important;
    color: #31506a !important;
    font-size: 12px !important;
    font-weight: 850 !important;
}

#existing-nft-token-id {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 50px !important;
    box-sizing: border-box !important;
    padding: 0 14px !important;
    border: 1px solid rgba(8,34,58,.12) !important;
    border-radius: 13px !important;
    background: rgba(255,255,255,.94) !important;
    color: #08223a !important;
    font: inherit !important;
    font-weight: 700 !important;
    outline: none !important;
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease !important;
}

#existing-nft-token-id::placeholder {
    color: #94a5b3 !important;
}

#existing-nft-token-id:hover {
    border-color: rgba(8,169,189,.28) !important;
}

#existing-nft-token-id:focus {
    border-color: rgba(8,169,189,.62) !important;
    box-shadow:
        0 0 0 4px rgba(8,169,189,.08),
        0 8px 20px rgba(8,169,189,.07) !important;
}

#btn-use-existing {
    grid-column: 2 !important;
    grid-row: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 50px !important;
    margin: 0 !important;
    border: 1px solid rgba(8,169,189,.20) !important;
    border-radius: 13px !important;
    background: rgba(255,255,255,.94) !important;
    color: #075f7c !important;
    font-weight: 900 !important;
    box-shadow: 0 7px 18px rgba(7,95,124,.07) !important;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease,
        background .18s ease !important;
}

#btn-use-existing:not(:disabled):hover {
    transform: translateY(-2px) !important;
    border-color: rgba(8,169,189,.38) !important;
    background: #fff !important;
    box-shadow: 0 12px 25px rgba(7,95,124,.12) !important;
}

#btn-use-existing:disabled {
    opacity: .55 !important;
    cursor: not-allowed !important;
}

/* ---------- Product media ---------- */

.store-product-media:not(:has(img)) {
    min-height: 155px !important;
}

@media (max-width: 760px) {
    .store-product-media:not(:has(img)) {
        min-height: 145px !important;
    }
}

/* ---------- Stable scroll targets beneath fixed header ---------- */

#store-checkout,
#store-section,
#customer-profile,
#selection-panel,
#customer-orders {
    scroll-margin-top: 110px !important;
}

/* ---------- Mobile claim composition ---------- */

@media (max-width: 760px) {
    .wallet-area {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto auto !important;
        gap: 12px !important;
    }

    .wallet-status {
        grid-column: 1 !important;
        grid-row: 1 !important;
        margin-top: 18px !important;
    }

    #btn-mint {
        grid-column: 1 !important;
        grid-row: 2 !important;
        width: 100% !important;
        margin-top: 0 !important;
    }

    .existing-nft-access {
        grid-column: 1 !important;
        grid-row: 3 !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto auto !important;
        padding: 14px !important;
        border-radius: 15px !important;
    }

    .existing-nft-access label {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    #existing-nft-token-id {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }

    #btn-use-existing {
        grid-column: 1 !important;
        grid-row: 3 !important;
    }

    .store-buy-button,
    #btn-mint,
    #btn-use-existing,
    #customer-profile-save {
        min-height: 52px !important;
    }
}

@media (max-width: 480px) {
    .store-product-media:not(:has(img)) {
        min-height: 135px !important;
    }
}

/* ---------- Accessibility ---------- */

@media (prefers-reduced-motion: reduce) {
    .ux-task-active::before,
    .ux-task-active::after {
        animation: none !important;
    }
}

/* ============================================================
   BDAGSTORE — AUTHORITATIVE SELECTION JOURNEY FLOW
   The selection journey is intentionally one vertical sequence:
   Selected NFT → Profile → Purchase Summary → Claim.
   This overrides legacy marketplace grid layout.
   ============================================================ */

#selection-content,
.selection-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    gap: 18px !important;
}

#selection-content > *,
.selection-content > * {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

.selection-nft,
#customer-profile,
.customer-profile,
.selection-details,
.wallet-area {
    flex: 0 0 auto !important;
}

@media (max-width: 760px) {
    #selection-content,
    .selection-content {
        gap: 14px !important;
    }
}

/* ============================================================
   BDAGSTORE — FINAL SELECTION CASCADE AUTHORITY
   .selection-content has no ID in the live DOM. The legacy
   marketplace stylesheet uses an ID-qualified !important rule,
   so this intentionally uses doubled class specificity.
   ============================================================ */

.selection-content.selection-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    gap: 18px !important;
}

.selection-content.selection-content > * {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    box-sizing: border-box !important;
    grid-column: auto !important;
    grid-row: auto !important;
}

@media (max-width: 760px) {
    .selection-content.selection-content {
        gap: 14px !important;
    }
}
