/* =========================================================
   BDAGSTORE — CUSTOMER MARKETPLACE UI V2
   Presentation layer only.
   Existing Web3/catalog behavior remains authoritative.
   ========================================================= */

:root {
    --bg: #f5f8f8;
    --surface: #ffffff;
    --surface-soft: #eef7f6;
    --text: #102a2d;
    --text-soft: #617477;
    --border: #dbe8e7;

    --primary: #087f7a;
    --primary-dark: #075c59;
    --primary-soft: #dff4f1;

    --accent: #11a39b;
    --success: #16805d;
    --danger: #b44a4a;

    --shadow-sm: 0 8px 24px rgba(16, 42, 45, 0.07);
    --shadow-md: 0 18px 48px rgba(16, 42, 45, 0.10);
    --shadow-lg: 0 28px 80px rgba(16, 42, 45, 0.14);

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-xl: 36px;

    --container: 1320px;
}

/* ---------------------------------------------------------
   Base
   --------------------------------------------------------- */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(
            circle at 85% 5%,
            rgba(17, 163, 155, 0.08),
            transparent 28rem
        ),
        var(--bg);
    color: var(--text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    -webkit-font-smoothing: antialiased;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
}

/* ---------------------------------------------------------
   Main shell
   --------------------------------------------------------- */

.site-shell {
    width: 100%;
    min-height: 100vh;
}

main {
    width: min(var(--container), calc(100% - 48px));
    margin: 0 auto;
    padding: 34px 0 90px;
}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

.topbar {
    width: min(var(--container), calc(100% - 48px));
    min-height: 76px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    border-bottom: 1px solid rgba(219, 232, 231, 0.9);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-logo {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    overflow: hidden;
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.brand-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.brand-name {
    font-size: 18px;
    font-weight: 850;
    letter-spacing: -0.03em;
}

.brand-sub {
    margin-top: 2px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 600;
}

.network-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-sm);

    color: var(--text-soft);
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

.network-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(22, 128, 93, 0.10);
}

.network-id {
    color: var(--primary);
}

/* ---------------------------------------------------------
   Shared typography
   --------------------------------------------------------- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: var(--primary);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

.hero {
    position: relative;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
    align-items: center;
    gap: clamp(40px, 7vw, 100px);

    min-height: 570px;
    padding: 64px 0 78px;
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.hero h1 {
    max-width: 720px;
    margin: 20px 0 22px;

    color: var(--text);
    font-size: clamp(48px, 5.4vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.065em;
    font-weight: 900;
}

.hero h1 span {
    color: var(--primary);
}

.hero-copy > p {
    max-width: 600px;
    margin-bottom: 34px;

    color: var(--text-soft);
    font-size: 18px;
    line-height: 1.7;
}

/* Hero statistics */

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-stats div {
    min-width: 180px;
    padding: 17px 20px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-sm);
}

.hero-stats strong {
    display: block;
    color: var(--text);
    font-size: 16px;
    font-weight: 850;
}

.hero-stats span {
    display: block;
    margin-top: 5px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 600;
}

/* Hero NFT */

.hero-card {
    position: relative;

    min-height: 520px;
    padding: 18px;

    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-xl);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.96),
            rgba(224, 243, 241, 0.90)
        );

    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: 12px;

    border: 1px solid rgba(8, 127, 122, 0.10);
    border-radius: calc(var(--radius-xl) - 10px);

    pointer-events: none;
}

.hero-card-glow {
    position: absolute;
    width: 280px;
    height: 280px;
    right: -80px;
    top: -80px;

    border-radius: 50%;
    background: rgba(17, 163, 155, 0.20);
    filter: blur(40px);
}

.hero-nft-placeholder {
    position: relative;
    z-index: 1;

    width: 100%;
    height: 100%;
    min-height: 480px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border-radius: 24px;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(17, 163, 155, 0.14),
            transparent 45%
        ),
        #f9fdfc;
}

.hero-nft-placeholder span {
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.18em;
}

.hero-nft-placeholder strong {
    margin-top: 8px;
    color: var(--primary);
    font-size: 76px;
    line-height: 1;
    letter-spacing: -0.07em;
}

/* If an actual image is placed in the hero */
.hero-nft-placeholder img {
    width: 100%;
    height: 100%;
    min-height: 480px;
    display: block;
    object-fit: contain;
}

/* ---------------------------------------------------------
   Marketplace section
   --------------------------------------------------------- */

.market-section {
    margin-top: 28px;
    padding: 54px 0 20px;
}

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

.section-heading h2 {
    margin: 8px 0 8px;
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.section-heading p {
    margin: 0;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.6;
}

/* ---------------------------------------------------------
   Carousel
   --------------------------------------------------------- */

.carousel-controls {
    display: flex;
    gap: 9px;
    flex: 0 0 auto;
}

.carousel-control {
    width: 44px;
    height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);

    color: var(--text);
    font-size: 18px;
    font-weight: 700;

    box-shadow: var(--shadow-sm);
    transition:
        transform 160ms ease,
        background 160ms ease,
        color 160ms ease,
        border-color 160ms ease;
}

.carousel-control:hover {
    transform: translateY(-2px);
    border-color: rgba(8, 127, 122, 0.35);
    background: var(--primary);
    color: white;
}

.carousel-frame {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;

    padding: 8px 4px 26px;

    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(8, 127, 122, 0.25) transparent;
}

.carousel-frame::-webkit-scrollbar {
    height: 7px;
}

.carousel-frame::-webkit-scrollbar-track {
    background: transparent;
}

.carousel-frame::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(8, 127, 122, 0.25);
}

.catalog {
    display: flex;
    align-items: stretch;
    gap: 18px;
    width: max-content;
}

/* ---------------------------------------------------------
   Collection cards
   --------------------------------------------------------- */

.coupon {
    position: relative;

    width: 258px;
    min-width: 258px;
    min-height: 420px;

    display: flex;
    flex-direction: column;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    background: var(--surface);
    box-shadow: var(--shadow-sm);

    overflow: hidden;

    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.coupon:hover {
    transform: translateY(-7px);
    border-color: rgba(8, 127, 122, 0.30);
    box-shadow: var(--shadow-md);
}

.coupon.selected {
    border: 2px solid var(--primary);
    box-shadow:
        0 0 0 5px rgba(8, 127, 122, 0.08),
        var(--shadow-md);
}

.coupon-image-wrap {
    position: relative;

    height: 292px;
    padding: 12px;

    background:
        linear-gradient(
            145deg,
            #f7fbfb,
            #eaf5f3
        );
}

.coupon-image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
    object-position: center;

    border-radius: 16px;

    transition: transform 220ms ease;
}

.coupon:hover .coupon-image {
    transform: scale(1.035);
}

.coupon-discount-badge {
    position: absolute;
    left: 22px;
    top: 22px;

    padding: 7px 10px;

    border-radius: 999px;

    background: var(--primary);
    color: white;

    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.02em;

    box-shadow: 0 7px 18px rgba(8, 127, 122, 0.24);
}

.coupon-body {
    flex: 1;
    display: flex;
    flex-direction: column;

    padding: 18px 18px 20px;
}

.coupon-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.coupon-code {
    color: var(--text);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.coupon-chain {
    color: var(--text-soft);
    font-size: 10px;
    font-weight: 800;
}

.coupon-title {
    margin-top: 7px;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.5;
}

.coupon-meta {
    margin-top: auto;
    padding-top: 17px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.coupon-meta span:first-child {
    color: var(--text-soft);
    font-size: 10px;
    font-weight: 700;
}

.coupon-meta span:last-child {
    color: var(--text);
    font-size: 16px;
    font-weight: 900;
}

/* Disabled collection */

.coupon.disabled {
    opacity: 0.55;
    filter: saturate(0.6);
}

.carousel-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-top: 3px;

    color: var(--text-soft);
    font-size: 11px;
    font-weight: 650;
}

.carousel-hint span {
    color: var(--primary);
    font-size: 14px;
}

/* ---------------------------------------------------------
   Selected NFT / purchase panel
   --------------------------------------------------------- */

.selection-panel {
    position: relative;

    margin-top: 54px;
    padding: 34px;

    border: 1px solid var(--border);
    border-radius: var(--radius-xl);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.98),
            rgba(238, 247, 246, 0.92)
        );

    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.selection-panel::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    right: -100px;
    bottom: -160px;

    border-radius: 50%;
    background: rgba(17, 163, 155, 0.09);
    filter: blur(20px);
    pointer-events: none;
}

.selection-empty {
    min-height: 180px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    color: var(--text-soft);
    text-align: left;
}

.selection-icon {
    width: 58px;
    height: 58px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;
    background: var(--primary-soft);

    color: var(--primary);
    font-size: 25px;
}

.selection-empty strong {
    display: block;
    color: var(--text);
    font-size: 18px;
    font-weight: 850;
}

.selection-empty p {
    max-width: 480px;
    margin: 7px 0 0;

    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.6;
}

.selection-content {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
    gap: 38px;
    align-items: center;
}

/* Selected artwork */

.selection-nft {
    display: grid;
    grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
    align-items: center;
    gap: 24px;
}

.selection-nft img {
    width: 100%;
    aspect-ratio: 1 / 1;

    display: block;
    object-fit: contain;

    padding: 12px;

    border: 1px solid var(--border);
    border-radius: 26px;

    background:
        linear-gradient(
            145deg,
            #f9fdfc,
            #e9f5f3
        );

    box-shadow: var(--shadow-sm);
}

.selection-nft h3 {
    margin: 9px 0 10px;

    color: var(--text);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1;
    letter-spacing: -0.055em;
}

.selection-discount {
    display: inline-flex;
    padding: 8px 11px;

    border-radius: 999px;

    background: var(--primary-soft);
    color: var(--primary-dark);

    font-size: 12px;
    font-weight: 900;
}

/* Purchase details */

.selection-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.price-block,
.quantity-block,
.total-block {
    min-height: 120px;
    padding: 19px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.84);
}

.price-block > span,
.quantity-block > span,
.total-block > span {
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 750;
}

.price-block strong,
.total-block strong {
    color: var(--text);
    font-size: 22px;
    font-weight: 900;
}

.total-block {
    background: var(--primary);
    border-color: var(--primary);
}

.total-block > span,
.total-block strong {
    color: white;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 9px;
}

.quantity-control button {
    width: 34px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: white;
    color: var(--text);

    font-size: 17px;
    font-weight: 800;
}

.quantity-control button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.quantity-control span {
    min-width: 25px;
    text-align: center;

    color: var(--text);
    font-size: 15px;
    font-weight: 900;
}

.quantity-block small {
    color: var(--text-soft);
    font-size: 10px;
}

/* Wallet */

.wallet-area {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;

    margin-top: 18px;
    padding-top: 20px;

    border-top: 1px solid var(--border);
}

.wallet-status {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wallet-status span {
    color: var(--text-soft);
    font-size: 10px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.wallet-status strong {
    color: var(--text);
    font-size: 13px;
    font-weight: 850;
}

/* Buttons */

.btn {
    min-height: 46px;
    padding: 0 19px;

    border: 1px solid transparent;
    border-radius: 13px;

    font-size: 12px;
    font-weight: 850;

    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease,
        border-color 160ms ease;
}

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

.btn-primary {
    background: var(--text);
    color: white;
    box-shadow: 0 10px 25px rgba(16, 42, 45, 0.18);
}

.btn-primary:hover:not(:disabled) {
    background: #193d40;
}

.btn-mint {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 25px rgba(8, 127, 122, 0.22);
}

.btn-mint:hover:not(:disabled) {
    background: var(--primary-dark);
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

/* ---------------------------------------------------------
   Modal
   --------------------------------------------------------- */

.nft-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background: rgba(9, 29, 31, 0.58);
    backdrop-filter: blur(10px);
}

.nft-modal.open {
    display: flex;
}

.nft-modal-card {
    width: min(920px, 100%);
    max-height: min(760px, calc(100vh - 48px));

    display: grid;
    grid-template-columns: 1fr 1fr;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: var(--radius-xl);

    background: white;
    box-shadow: var(--shadow-lg);
}

.nft-modal-image {
    min-height: 560px;
    padding: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            145deg,
            #f5fbfa,
            #e5f2f0
        );
}

.nft-modal-image img {
    width: 100%;
    height: 100%;
    max-height: 510px;

    display: block;
    object-fit: contain;

    border-radius: 20px;
}

.nft-modal-copy {
    position: relative;
    padding: 48px 42px;
}

.nft-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;

    width: 38px;
    height: 38px;

    border: 1px solid var(--border);
    border-radius: 50%;
    background: white;

    color: var(--text);
    font-size: 23px;
    line-height: 1;
}

.nft-modal-close:hover {
    background: var(--surface-soft);
}

.nft-modal-code {
    margin: 15px 0 10px;

    font-size: 48px;
    line-height: 1;
    letter-spacing: -0.06em;
}

.nft-modal-discount {
    display: inline-flex;
    padding: 8px 11px;

    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);

    font-size: 12px;
    font-weight: 900;
}

.nft-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;

    margin-top: 30px;
}

.nft-modal-stat {
    padding: 15px;

    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
}

.nft-modal-stat span {
    display: block;
    color: var(--text-soft);
    font-size: 10px;
    font-weight: 700;
}

.nft-modal-stat strong {
    display: block;
    margin-top: 5px;
    color: var(--text);
    font-size: 15px;
    font-weight: 850;
}

.nft-modal-quantity {
    margin-top: 24px;
}

.nft-modal-quantity-label {
    display: block;
    margin-bottom: 8px;

    color: var(--text-soft);
    font-size: 11px;
    font-weight: 750;
}

.nft-modal-quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nft-modal-quantity-control button {
    width: 40px;
    height: 40px;

    border: 1px solid var(--border);
    border-radius: 11px;
    background: white;

    font-size: 18px;
    font-weight: 800;
}

.nft-modal-quantity-control button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.nft-modal-total {
    margin-top: 22px;
    padding-top: 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-top: 1px solid var(--border);
}

.nft-modal-total span {
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 700;
}

.nft-modal-total strong {
    color: var(--text);
    font-size: 22px;
    font-weight: 900;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 1100px) {
    .hero {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
        gap: 40px;
    }

    .hero-card {
        min-height: 430px;
    }

    .hero-nft-placeholder,
    .hero-nft-placeholder img {
        min-height: 390px;
    }

    .selection-content {
        grid-template-columns: 1fr;
    }

    .selection-nft {
        grid-template-columns: 220px minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    main,
    .topbar {
        width: min(100% - 28px, var(--container));
    }

    main {
        padding-top: 18px;
        padding-bottom: 55px;
    }

    .topbar {
        min-height: 68px;
    }

    .brand-sub {
        display: none;
    }

    .network-pill {
        padding: 8px 11px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 28px;
        min-height: 0;
        padding: 42px 0 45px;
    }

    .hero h1 {
        font-size: clamp(42px, 13vw, 62px);
    }

    .hero-copy > p {
        font-size: 15px;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

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

    .hero-card {
        min-height: 420px;
    }

    .hero-nft-placeholder,
    .hero-nft-placeholder img {
        min-height: 380px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .carousel-controls {
        align-self: flex-end;
    }

    .coupon {
        width: 230px;
        min-width: 230px;
        min-height: 390px;
    }

    .coupon-image-wrap {
        height: 255px;
    }

    .selection-panel {
        margin-top: 38px;
        padding: 20px;
        border-radius: 24px;
    }

    .selection-nft {
        grid-template-columns: 1fr;
    }

    .selection-nft img {
        width: min(100%, 300px);
        margin: 0 auto;
    }

    .selection-details {
        grid-template-columns: 1fr;
        margin-top: 24px;
    }

    .wallet-area {
        grid-template-columns: 1fr;
    }

    .wallet-area .btn {
        width: 100%;
    }

    .nft-modal {
        padding: 12px;
    }

    .nft-modal-card {
        grid-template-columns: 1fr;
        max-height: calc(100vh - 24px);
        overflow-y: auto;
        border-radius: 24px;
    }

    .nft-modal-image {
        min-height: 320px;
    }

    .nft-modal-copy {
        padding: 30px 24px 34px;
    }
}

@media (max-width: 460px) {
    .topbar {
        gap: 10px;
    }

    .brand-logo {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .brand-name {
        font-size: 16px;
    }

    .network-pill {
        font-size: 10px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-card {
        min-height: 350px;
        padding: 12px;
        border-radius: 25px;
    }

    .hero-nft-placeholder,
    .hero-nft-placeholder img {
        min-height: 320px;
    }

    .selection-details {
        gap: 9px;
    }

    .price-block,
    .quantity-block,
    .total-block {
        min-height: 100px;
    }

    .nft-modal-grid {
        grid-template-columns: 1fr;
    }
}

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

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   NFT ARTWORK — NEVER CROP
   The complete coupon artwork must always remain visible.
   ========================================================= */

.coupon-image-wrap {
    height: 300px !important;
    min-height: 300px !important;
    padding: 18px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    overflow: hidden !important;
}

.coupon-image {
    width: 100% !important;
    height: 100% !important;

    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: 100% !important;

    display: block !important;

    object-fit: contain !important;
    object-position: center center !important;

    margin: 0 !important;
    padding: 0 !important;

    border-radius: 14px !important;
}

/* Selected NFT — give the artwork room to breathe */
.selection-nft img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important;

    max-width: 280px !important;
    max-height: 330px !important;

    object-fit: contain !important;
    object-position: center center !important;

    padding: 10px !important;
    margin: 0 auto !important;
}

/* Hero artwork — complete image, never cover */
.hero-nft-placeholder {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 24px !important;
    overflow: hidden !important;
}

.hero-nft-placeholder img {
    width: 100% !important;
    height: 100% !important;

    min-width: 0 !important;
    min-height: 0 !important;

    max-width: 100% !important;
    max-height: 100% !important;

    object-fit: contain !important;
    object-position: center center !important;

    padding: 0 !important;
    margin: 0 !important;
}

/* Modal artwork — complete NFT */
.nft-modal-image {
    overflow: hidden !important;
}

.nft-modal-image img {
    width: 100% !important;
    height: 100% !important;

    max-width: 100% !important;
    max-height: 100% !important;

    object-fit: contain !important;
    object-position: center center !important;

    padding: 0 !important;
    margin: 0 !important;
}

/* Mobile: retain complete artwork */
@media (max-width: 760px) {
    .coupon-image-wrap {
        height: 270px !important;
        min-height: 270px !important;
        padding: 16px !important;
    }

    .selection-nft img {
        width: min(100%, 280px) !important;
        max-height: 320px !important;
    }

    .hero-nft-placeholder {
        padding: 18px !important;
    }

    .hero-nft-placeholder img {
        min-height: 0 !important;
    }
}

@media (max-width: 460px) {
    .coupon-image-wrap {
        height: 250px !important;
        min-height: 250px !important;
        padding: 14px !important;
    }

    .selection-nft img {
        max-width: 250px !important;
        max-height: 290px !important;
    }
}


/* ============================================================
   BDAGSTORE — FINAL CUSTOMER MARKETPLACE UI
   Artwork-first presentation
   No image-frame edges / no crop / responsive
   ============================================================ */

/* ---------- Global marketplace surface ---------- */

html,
body {
  width: 100% !important;
  min-width: 0 !important;
}

body {
  overflow-x: hidden !important;
}

.site-shell {
  width: 100% !important;
  max-width: none !important;
}

/* ---------- Main desktop canvas ---------- */

.topbar,
main {
  width: min(1440px, calc(100% - 48px)) !important;
  max-width: 1440px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ---------- Hero ---------- */

.hero {
  min-height: 520px !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr) !important;
  gap: 56px !important;
  align-items: center !important;
}

.hero-copy {
  max-width: 720px !important;
}

.hero-copy h1 {
  font-size: clamp(3.2rem, 5vw, 5.6rem) !important;
  line-height: .96 !important;
  letter-spacing: -0.055em !important;
}

.hero-copy p {
  max-width: 650px !important;
  font-size: 1.08rem !important;
  line-height: 1.7 !important;
}

.hero-card {
  min-height: 500px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

/* Completely remove artificial hero artwork frame. */
.hero-nft-placeholder {
  width: 100% !important;
  height: 100% !important;
  min-height: 460px !important;
  padding: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.hero-nft-placeholder::before,
.hero-nft-placeholder::after {
  display: none !important;
  content: none !important;
}

.hero-nft-stage {
  width: 100% !important;
  height: 100% !important;
  min-height: 440px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

#hero-nft-image {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: min(100%, 430px) !important;
  max-height: 450px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* ---------- Collection section ---------- */

.market-section {
  width: 100% !important;
  margin-top: 34px !important;
}

.market-section-head {
  margin-bottom: 20px !important;
}

.carousel-frame {
  width: 100% !important;
  max-width: none !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  scrollbar-width: thin !important;
  scroll-behavior: smooth !important;
}

#catalog {
  width: max-content !important;
  min-width: 100% !important;
  gap: 22px !important;
  padding: 8px 4px 24px !important;
}

/* ---------- Collection cards ---------- */

.coupon-card {
  width: 286px !important;
  min-width: 286px !important;
  max-width: 286px !important;
  overflow: hidden !important;
  border-radius: 26px !important;
  background: rgba(255,255,255,.96) !important;
}

/*
 * IMPORTANT:
 * The card can have its own boundary.
 * The NFT IMAGE AREA has absolutely no artificial boundary.
 */

.coupon-image-wrap {
  width: 100% !important;
  height: 315px !important;
  min-height: 315px !important;
  max-height: 315px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 18px 22px !important;
  margin: 0 !important;

  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;

  overflow: hidden !important;
}

.coupon-image-wrap::before,
.coupon-image-wrap::after {
  display: none !important;
  content: none !important;
}

.coupon-image {
  display: block !important;

  width: auto !important;
  height: auto !important;

  max-width: 100% !important;
  max-height: 275px !important;

  min-width: 0 !important;
  min-height: 0 !important;

  object-fit: contain !important;
  object-position: center center !important;

  margin: 0 auto !important;
  padding: 0 !important;

  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Remove image-frame effects from common nested selectors. */

.coupon-card .coupon-image,
.coupon-card .coupon-image-wrap,
.coupon-card .nft-image,
.coupon-card .nft-art,
.coupon-card .image-container {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

/* ---------- Card information ---------- */

.coupon-info {
  padding: 22px 22px 24px !important;
}

.coupon-info h3 {
  font-size: 1.2rem !important;
  letter-spacing: -.025em !important;
}

.coupon-info p {
  line-height: 1.45 !important;
}

.coupon-meta {
  margin-top: 18px !important;
}

/* ---------- Selected collection ---------- */

#selection-panel {
  width: 100% !important;
  margin-top: 26px !important;
  overflow: hidden !important;
}

#selection-content {
  width: 100% !important;
}

.selection-content {
  width: 100% !important;
}

/*
 * The selected artwork gets NO visible image frame.
 * The surrounding purchase panel remains a normal UI surface.
 */

.selection-nft {
  min-width: 300px !important;
  min-height: 390px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 18px !important;

  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}

.selection-nft::before,
.selection-nft::after {
  display: none !important;
  content: none !important;
}

.selection-nft img,
#selection-image {
  display: block !important;

  width: auto !important;
  height: auto !important;

  max-width: 280px !important;
  max-height: 350px !important;

  min-width: 0 !important;
  min-height: 0 !important;

  object-fit: contain !important;
  object-position: center center !important;

  margin: 0 auto !important;
  padding: 0 !important;

  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Kill any inherited image chrome. */

.selection-nft *,
.selection-nft img {
  outline: none !important;
}

/* ---------- Selected information hierarchy ---------- */

#selection-code {
  font-size: clamp(2.5rem, 4vw, 4rem) !important;
  letter-spacing: -.055em !important;
}

#selection-discount {
  font-weight: 800 !important;
}

#selection-price,
#selection-total {
  letter-spacing: -.025em !important;
}

/* ---------- Quantity controls ---------- */

#quantity-minus,
#quantity-plus {
  min-width: 48px !important;
  min-height: 48px !important;
  border-radius: 14px !important;
}

#quantity-value {
  min-width: 52px !important;
  text-align: center !important;
}

/* ---------- Wallet CTA ---------- */

#btn-conn,
#btn-mint {
  min-height: 54px !important;
  border-radius: 16px !important;
  font-weight: 800 !important;
}

#btn-mint {
  letter-spacing: -.01em !important;
}

/* ---------- Modal artwork ---------- */

.nft-modal-image {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  min-height: 560px !important;
  padding: 24px !important;

  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.nft-modal-image::before,
.nft-modal-image::after {
  display: none !important;
  content: none !important;
}

.nft-modal-image img,
#modal-nft-image {
  display: block !important;

  width: auto !important;
  height: auto !important;

  max-width: min(100%, 440px) !important;
  max-height: 520px !important;

  object-fit: contain !important;
  object-position: center !important;

  margin: 0 auto !important;
  padding: 0 !important;

  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* ---------- Remove decorative lines specifically around artwork ---------- */

.hero-nft-placeholder *,
.coupon-image-wrap *,
.selection-nft *,
.nft-modal-image * {
  outline-color: transparent !important;
}

/* ---------- Mobile ---------- */

@media (max-width: 900px) {
  .topbar,
  main {
    width: calc(100% - 32px) !important;
  }

  .hero {
    min-height: auto !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .hero-copy {
    max-width: none !important;
    text-align: center !important;
  }

  .hero-copy h1 {
    font-size: clamp(2.6rem, 10vw, 4rem) !important;
  }

  .hero-copy p {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-card {
    min-height: 420px !important;
  }

  .hero-nft-placeholder,
  .hero-nft-stage {
    min-height: 390px !important;
  }

  #hero-nft-image {
    max-width: 82vw !important;
    max-height: 370px !important;
  }

  .coupon-card {
    width: 270px !important;
    min-width: 270px !important;
    max-width: 270px !important;
  }

  .coupon-image-wrap {
    height: 295px !important;
    min-height: 295px !important;
    max-height: 295px !important;
    padding: 14px 18px !important;
  }

  .coupon-image {
    max-height: 265px !important;
  }

  .selection-nft {
    min-width: 0 !important;
    min-height: 330px !important;
    padding: 10px !important;
  }

  .selection-nft img,
  #selection-image {
    max-width: 245px !important;
    max-height: 315px !important;
  }

  .nft-modal-image {
    min-height: 420px !important;
    padding: 16px !important;
  }

  .nft-modal-image img,
  #modal-nft-image {
    max-width: 88vw !important;
    max-height: 440px !important;
  }
}

@media (max-width: 560px) {
  .topbar,
  main {
    width: calc(100% - 24px) !important;
  }

  .hero-card {
    min-height: 350px !important;
  }

  .hero-nft-placeholder,
  .hero-nft-stage {
    min-height: 330px !important;
  }

  #hero-nft-image {
    max-height: 320px !important;
  }

  #catalog {
    gap: 14px !important;
  }

  .coupon-card {
    width: 250px !important;
    min-width: 250px !important;
    max-width: 250px !important;
  }

  .coupon-image-wrap {
    height: 275px !important;
    min-height: 275px !important;
    max-height: 275px !important;
  }

  .coupon-image {
    max-height: 245px !important;
  }

  .selection-nft img,
  #selection-image {
    max-width: 215px !important;
    max-height: 290px !important;
  }
}

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

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

