/* ==========================================================
   BTC POP SHOP
   ========================================================== */

.shop-page-hero {
    margin-bottom: 22px;
}

.shop-hero-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255,255,255,.03);
}

.shop-hero-icon {
    width: 60px;
    height: 60px;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.shop-page-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
}

.shop-filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.shop-filter {
    padding: 11px 16px;
    color: var(--muted-light);
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: .15s;
}

    .shop-filter:hover {
        border-color: var(--bitcoin);
    }

    .shop-filter.active {
        color: #111;
        background: var(--bitcoin);
    }

.shop-page-products {
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax(min(100%, 520px), 1fr) );
    gap: 22px;
    width: 100%;
    min-width: 0;
}
.shop-product-art {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border-right: 1px solid var(--border);
    background: radial-gradient( circle at center, rgba(247,147,26,.18), transparent 70% ), rgba(247,147,26,.05);
}

.shop-product-image {
    display: block;
    width: 175px;
    max-width: 100%;
    max-height: 250px;
    height: auto;
    object-fit: contain;
    transition: transform .25s ease;
}

.shop-product:hover .shop-product-image {
    transform: scale(1.04);
}

/* Remove the unwanted CARD PACK label */
.shop-product-type {
    display: none;
}

.shop-product-symbol {
    width: 90px;
    height: 90px;
    display: grid;
    place-items: center;
    color: #111;
    background: var(--bitcoin);
    border-radius: 22px;
    font-size: 52px;
    font-weight: 900;
}

.shop-product-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.shop-product-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

    .shop-product-meta span {
        padding: 6px 10px;
        background: rgba(255,255,255,.04);
        border: 1px solid var(--border);
        border-radius: 8px;
        font-size: 10px;
        font-weight: 800;
        color: var(--muted);
    }

.shop-product {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--panel);
}

.shop-product-description {
    margin: 16px 0 24px;
    color: var(--muted);
    line-height: 1.6;
}

.shop-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: auto;
}

.shop-price strong {
    display: block;
    color: var(--bitcoin);
    font-size: 30px;
}

.shop-price small {
    color: var(--muted);
}

.shop-buy-button {
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    background: var(--bitcoin);
    color: #111;
    font-weight: 900;
    cursor: pointer;
    transition: .15s;
}

    .shop-buy-button:hover {
        background: #ffab41;
    }

.shop-information-panel {
    margin-top: 36px;
}

.shop-information-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
}

    .shop-information-grid > div {
        padding: 22px;
        border: 1px solid var(--border);
        border-radius: 16px;
        background: rgba(255,255,255,.025);
    }

    .shop-information-grid h3 {
        margin: 18px 0 10px;
    }

    .shop-information-grid p {
        color: var(--muted);
        line-height: 1.6;
    }

.shop-sats-price {
    display: block;
    margin-top: 3px;
    color: var(--muted-light);
    font-size: 13px;
    font-weight: 700;
}

.shop-price small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
}

@media(max-width:900px) {

    .shop-page-toolbar {
        display: block;
    }

    .shop-filter-row {
        margin-top: 18px;
    }

    .shop-information-grid {
        grid-template-columns: 1fr;
    }
}

/* ADD IT HERE */
@media (max-width: 1100px) {
    .shop-page-products {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .shop-page-products {
        grid-template-columns: 1fr;
    }

    .shop-product {
        grid-template-columns: 1fr;
    }

    .shop-product-art {
        min-height: 260px;
        border-right: none;
        border-bottom: 1px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px;
    }

    .shop-product-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .shop-buy-button {
        width: 100%;
    }
}



/* =========================================================
   LIGHTNING CHECKOUT MODAL
   ========================================================= */

.checkout-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
}

    .checkout-modal[hidden] {
        display: none !important;
    }

.checkout-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.checkout-window {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 28px;
    background: linear-gradient( 145deg, rgba(31, 25, 18, 0.98), rgba(10, 10, 12, 0.99) );
    border: 1px solid rgba(255, 153, 24, 0.45);
    border-radius: 22px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75), 0 0 40px rgba(255, 145, 0, 0.08);
}

.checkout-close-button {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

    .checkout-close-button:hover {
        background: rgba(255, 153, 24, 0.18);
        border-color: rgba(255, 153, 24, 0.55);
    }

.checkout-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-right: 48px;
    margin-bottom: 14px;
}

    .checkout-heading small {
        display: block;
        margin-bottom: 4px;
        color: #ff9918;
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.12em;
    }

    .checkout-heading h2 {
        margin: 0;
        color: #ffffff;
        font-size: 1.65rem;
    }

.checkout-bitcoin-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 14px;
    background: #ff9918;
    color: #111111;
    font-size: 1.8rem;
    font-weight: 900;
}

.checkout-product-name {
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 1rem;
    font-weight: 700;
}

.checkout-qr-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto 18px;
    padding: 16px;
    background: #ffffff;
    border-radius: 16px;
}

#invoiceQR {
    display: block;
    width: min(280px, 100%);
    height: auto;
    aspect-ratio: 1 / 1;
}

.checkout-amount {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}

    .checkout-amount small {
        color: rgba(255, 255, 255, 0.58);
    }

    .checkout-amount strong {
        color: #ff9918;
        font-size: 1.2rem;
    }

.checkout-invoice-label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
    font-weight: 700;
}

.checkout-invoice {
    width: 100%;
    min-height: 86px;
    padding: 12px;
    resize: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.45);
    color: #ffffff;
    font-family: monospace;
    font-size: 0.76rem;
    line-height: 1.4;
    box-sizing: border-box;
}

.checkout-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

    .checkout-actions .shop-buy-button {
        width: 100%;
    }

.checkout-payment-status {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
}

    .checkout-payment-status.waiting {
        background: rgba(255, 153, 24, 0.10);
        color: #ffb347;
    }

    .checkout-payment-status.success {
        background: rgba(59, 220, 132, 0.12);
        color: #52e69a;
    }

    .checkout-payment-status.warning {
        background: rgba(255, 193, 7, 0.12);
        color: #ffd466;
    }

    .checkout-payment-status.error {
        background: rgba(255, 82, 82, 0.12);
        color: #ff7a7a;
    }

body.checkout-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .checkout-modal {
        align-items: flex-start;
        padding: 12px;
    }

    .checkout-window {
        width: 100%;
        max-height: calc(100vh - 24px);
        padding: 22px 16px;
        border-radius: 16px;
    }

    .checkout-actions {
        grid-template-columns: 1fr;
    }

    #invoiceQR {
        width: min(240px, 100%);
    }
}

.checkout-payment-status {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    text-align: center;
}

    .checkout-payment-status strong {
        font-size: 1rem;
    }

    .checkout-payment-status span {
        font-size: 0.85rem;
        font-weight: 600;
        opacity: 0.82;
    }

    .checkout-payment-status small {
        font-size: 0.75rem;
        opacity: 0.65;
    }

    .checkout-payment-status.processing {
        background: rgba(255, 153, 24, 0.12);
        color: #ffb347;
    }

.checkout-collection-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 12px;
    padding: 13px 18px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 153, 24, 0.5);
    border-radius: 12px;
    background: rgba(255, 153, 24, 0.08);
    color: #ff9918;
    font-weight: 800;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

    .checkout-collection-button:hover {
        background: rgba(255, 153, 24, 0.16);
        border-color: #ff9918;
        transform: translateY(-1px);
    }

    .checkout-collection-button[hidden] {
        display: none !important;
    }
