/* Chiprr Shop - Premium Design */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --hint-color: #707579;
    --button-color: #3390ec;
    --button-text-color: #ffffff;
    --secondary-bg: #f4f4f5;
    --success-color: #34c759;
    --gradient-start: #667eea;
    --gradient-end: #764ba2;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
    background: #e8ebf2;
    color: var(--text-primary, #1d1d1f);
    min-height: 100vh;
    padding-bottom: 100px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#app {
    max-width: 500px;
    margin: 0 auto;
}

/* Header avec gradient */
.header {
    position: relative;
    padding: 32px 20px 24px;
    text-align: center;
    background: var(--glass-bg, rgba(255, 255, 255, 0.65));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.8));
    box-shadow: var(--glass-shadow, 0 10px 40px rgba(0, 0, 0, 0.04));
    color: var(--text-primary, #1d1d1f);
    border-radius: 0 0 28px 28px;
    margin-bottom: 16px;
}

.header h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text-primary, #1d1d1f);
}

.subtitle {
    color: var(--text-secondary, #86868b);
    font-size: 15px;
    font-weight: 500;
}

/* Bouton Support */
.support-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 14px;
    background: var(--button-glass-bg, rgba(255, 255, 255, 0.5));
    backdrop-filter: blur(20px);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    color: var(--text-primary, #1d1d1f);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}



/* Liste des produits */
.products-grid {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.product-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    background: var(--glass-bg, rgba(255, 255, 255, 0.65));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: var(--glass-shadow, 0 10px 40px rgba(0, 0, 0, 0.04));
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.8));
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--glass-shadow-hover, 0 12px 50px rgba(0, 0, 0, 0.08));
    border-color: #ffffff;
}

.product-card:active {
    transform: scale(0.98);
}

.product-emoji {
    font-size: 44px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 16px;
    flex-shrink: 0;
}

.product-image {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-info {
    flex: 1;
    min-width: 0;
}

.product-name {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary, #1d1d1f);
}

.product-price {
    font-size: 15px;
    color: var(--blue-color, #007aff);
    font-weight: 600;
}

.product-arrow {
    font-size: 28px;
    color: #c8c8cc;
    font-weight: 300;
}

/* Page détail produit */
.detail-page {
    padding: 20px;
}

.detail-header {
    text-align: center;
    margin-bottom: 28px;
    padding: 32px 24px;
    background: var(--glass-bg, rgba(255, 255, 255, 0.65));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.8));
    border-radius: 24px;
    box-shadow: var(--glass-shadow, 0 10px 40px rgba(0, 0, 0, 0.04));
}

.detail-emoji {
    font-size: 72px;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.detail-image {
    width: 180px;
    height: 180px;
    margin: 0 auto 16px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-name {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-primary, #1d1d1f);
    letter-spacing: -0.02em;
}

.detail-description {
    color: var(--text-secondary, #86868b);
    font-size: 15px;
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
}

.variants-section {
    margin-bottom: 24px;
}

.section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--hint-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.variants-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.variant-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: var(--glass-bg, rgba(255, 255, 255, 0.65));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: var(--glass-shadow, 0 10px 40px rgba(0, 0, 0, 0.04));
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.8));
}

.variant-card.in-cart {
    background: var(--blue-glow, rgba(0, 122, 255, 0.08));
    border: 1px solid var(--blue-color, #007aff);
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.15);
}

.variant-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.variant-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary, #1d1d1f);
}

.variant-price {
    font-weight: 800;
    font-size: 20px;
    color: var(--blue-color, #007aff);
}

.add-btn {
    padding: 12px 24px;
    background: #007aff;
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.25);
}

.add-btn:active {
    transform: scale(0.95);
}

/* Contrôles quantité */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    background: var(--button-glass-bg, rgba(255, 255, 255, 0.5));
    backdrop-filter: blur(20px);
    color: var(--text-primary, #1d1d1f);
    font-size: 22px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.qty-btn:active {
    transform: scale(0.9);
}

.qty-value {
    font-size: 20px;
    font-weight: 800;
    min-width: 28px;
    text-align: center;
}

/* Bouton retour */
.back-btn {
    width: 100%;
    padding: 16px;
    background: var(--glass-bg, rgba(255, 255, 255, 0.65));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    color: var(--text-secondary, #86868b);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.8));
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 24px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: var(--glass-shadow, 0 10px 40px rgba(0, 0, 0, 0.04));
}

.back-btn:active {
    background: #e8e8e8;
}

/* Barre panier flottante - DESIGN PREMIUM */
.cart-bar {
    position: fixed;
    bottom: 20px;
    left: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(0, 122, 255, 0.8);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    color: white;
    cursor: pointer;
    z-index: 100;
    border-radius: 20px;
    box-shadow: 0 10px 32px rgba(0, 122, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 468px;
    margin: 0 auto;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cart-bar:active {
    transform: scale(0.98);
}

.cart-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-icon {
    font-size: 22px;
}

.cart-count {
    font-size: 15px;
    font-weight: 500;
    opacity: 0.9;
}

.cart-total {
    font-size: 22px;
    font-weight: 800;
}

.cart-arrow {
    font-size: 14px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 14px;
    border-radius: 10px;
}

/* Page panier */
.cart-page {
    padding: 20px;
}

.cart-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 24px;
    text-align: center;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px;
    background: var(--glass-bg, rgba(255, 255, 255, 0.65));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 18px;
    box-shadow: var(--glass-shadow, 0 10px 40px rgba(0, 0, 0, 0.04));
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.8));
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-name {
    font-weight: 700;
    font-size: 16px;
}

.cart-item-variant {
    font-size: 14px;
    color: var(--hint-color);
}

.cart-item-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-item-price {
    font-weight: 800;
    font-size: 18px;
    min-width: 55px;
    text-align: right;
    color: var(--blue-color, #007aff);
}

/* Footer panier */
.cart-footer {
    padding: 24px;
    background: var(--glass-bg, rgba(255, 255, 255, 0.65));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.8));
    border-radius: 20px;
    margin-bottom: 16px;
    box-shadow: var(--glass-shadow, 0 10px 40px rgba(0, 0, 0, 0.04));
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.cart-total-price {
    font-weight: 800;
    font-size: 32px;
    color: var(--text-primary, #1d1d1f);
}

.confirm-btn {
    width: 100%;
    padding: 16px;
    background: #007aff;
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.25);
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.confirm-btn:active {
    transform: scale(0.98);
}

/* Loading */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    gap: 20px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--secondary-bg);
    border-top-color: var(--gradient-start);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error & Empty States */
.error-page,
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 40px 20px;
    gap: 16px;
}

.error-emoji,
.empty-emoji {
    font-size: 64px;
    margin-bottom: 8px;
}

.error-page h1 {
    font-size: 22px;
    font-weight: 700;
}

.error-page p,
.empty-state p {
    color: var(--hint-color);
    font-size: 15px;
    max-width: 280px;
}

.retry-btn {
    padding: 14px 28px;
    background: var(--blue-color, #007aff);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 12px;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.retry-btn:active {
    transform: scale(0.95);
}

/* Single product action (no variants) */
.single-product-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: var(--glass-bg, rgba(255, 255, 255, 0.65));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 16px;
    box-shadow: var(--glass-shadow, 0 10px 40px rgba(0, 0, 0, 0.04));
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.8));
}

/* Animations d'entrée */
.product-card {
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.product-card:nth-child(1) {
    animation-delay: 0.05s;
}

.product-card:nth-child(2) {
    animation-delay: 0.1s;
}

.product-card:nth-child(3) {
    animation-delay: 0.15s;
}

.product-card:nth-child(4) {
    animation-delay: 0.2s;
}

.product-card:nth-child(5) {
    animation-delay: 0.25s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.variant-card {
    animation: fadeInUp 0.35s ease forwards;
    opacity: 0;
}

.variant-card:nth-child(1) {
    animation-delay: 0.1s;
}

.variant-card:nth-child(2) {
    animation-delay: 0.15s;
}


/* ========== CHECKOUT STYLES ========== */

.checkout-page {
    padding: 24px 20px;
}

.checkout-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    text-align: center;
}

.checkout-subtitle {
    text-align: center;
    color: var(--hint-color);
    margin-bottom: 32px;
    font-size: 16px;
}

/* Contact Options */
.contact-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--glass-bg, rgba(255, 255, 255, 0.65));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 18px;
    box-shadow: var(--glass-shadow, 0 10px 40px rgba(0, 0, 0, 0.04));
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.8));
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.contact-card:active {
    background: var(--secondary-bg);
}

.contact-icon {
    font-size: 32px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-glow, rgba(0, 122, 255, 0.15));
    color: var(--blue-color, #007aff);
    border-radius: 14px;
}

.contact-label {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
}

.contact-desc {
    font-size: 14px;
    color: var(--hint-color);
}

/* Telegram Autofill Card */
.tg-autofill-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--glass-bg, rgba(255, 255, 255, 0.65));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 20px;
    box-shadow: var(--glass-shadow, 0 10px 40px rgba(0, 0, 0, 0.04));
    border: 1px solid var(--blue-color, #007aff);
    margin-bottom: 20px;
}

.tg-autofill-avatar {
    font-size: 32px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tg-autofill-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2px;
}

.tg-autofill-handle {
    font-size: 14px;
    color: var(--hint-color);
    font-weight: 500;
}

.tg-autofill-alt {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: var(--hint-color);
}

.alt-link {
    background: none;
    border: none;
    color: var(--button-color);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}


.checkout-form {
    background: var(--glass-bg, rgba(255, 255, 255, 0.65));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: 24px;
    border-radius: 20px;
    box-shadow: var(--glass-shadow, 0 10px 40px rgba(0, 0, 0, 0.04));
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.8));
}

.input-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--hint-color);
    margin-bottom: 8px;
    margin-left: 4px;
}

.input-group {
    display: flex;
    align-items: center;
    background: var(--glass-bg, rgba(255, 255, 255, 0.65));
    border-radius: 14px;
    padding: 4px 16px;
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.8));
    transition: all 0.2s;
}

.input-group:focus-within {
    border-color: var(--button-color);
    background: white;
}

.input-prefix {
    font-weight: 600;
    color: var(--hint-color);
    margin-right: 2px;
}

.checkout-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--glass-bg, rgba(255, 255, 255, 0.65));
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.8));
    border-radius: 14px;
    font-size: 16px;
    font-family: inherit;
    color: var(--text-primary, #1d1d1f);
    outline: none;
    transition: all 0.2s ease;
}

.input-group .checkout-input {
    background: transparent;
    padding-left: 0;
}

.checkout-input:focus {
    background: white;
    box-shadow: inset 0 0 0 1px var(--button-color);
}

.input-hint {
    font-size: 13px;
    color: var(--hint-color);
    margin-top: 8px;
    margin-left: 4px;
}

/* Payment Options */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.payment-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--glass-bg, rgba(255, 255, 255, 0.65));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 18px;
    box-shadow: var(--glass-shadow, 0 10px 40px rgba(0, 0, 0, 0.04));
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.8));
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.payment-card:active {
    transform: scale(0.98);
}

.payment-icon {
    font-size: 32px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-glow, rgba(0, 122, 255, 0.15));
    color: var(--blue-color, #007aff);
    border-radius: 14px;
}

.payment-info {
    flex: 1;
}

.payment-name {
    font-weight: 700;
    font-size: 16px;
}

.payment-desc {
    font-size: 13px;
    color: var(--hint-color);
}

.payment-arrow {
    color: #c8c8cc;
    font-weight: 900;
}

/* Success Page */
.success-page {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-page h1 {
    font-size: 24px;
    margin-bottom: 8px;
}

.instruction-box {
    background: white;
    padding: 24px;
    border-radius: 20px;
    margin: 32px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    text-align: left;
}

.instruction-box p {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.5;
}

.copy-field {
    background: var(--secondary-bg);
    padding: 14px;
    border-radius: 12px;
    font-family: monospace;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    word-break: break-all;
}

.copy-field:active {
    transform: scale(0.98);
    border-color: var(--button-color);
}

.copy-field.multiline {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    text-align: center;
}

.copy-icon {
    font-size: 16px;
    opacity: 0.6;
}

.pay-link-btn {
    display: block;
    margin-top: 16px;
    text-align: center;
    padding: 12px;
    background: #0070ba;
    /* PayPal Blue */
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
}

.small-hint {
    font-size: 13px !important;
    color: var(--hint-color);
    margin-top: 16px;
    text-align: center;
}

.proof-upload-hint {
    margin-bottom: 32px;
    background: rgba(255, 165, 0, 0.1);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 165, 0, 0.2);
}

.support-btn-large {
    width: 100%;
    padding: 16px;
    background: white;
    color: var(--button-color);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ========== PAYPAL UI (redesign) ========== */

.paypal-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    margin: 28px 0;
    box-shadow: 0 8px 32px rgba(0, 48, 135, 0.12);
    border: 1px solid rgba(0, 112, 186, 0.1);
}

/* Header */
.paypal-header {
    background: linear-gradient(135deg, #003087 0%, #0070ba 100%);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.paypal-logo {
    font-size: 22px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.5px;
    font-style: italic;
}

.paypal-header-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.paypal-header-sub::before {
    content: '🔒';
    font-size: 11px;
}

/* Montant */
.paypal-amount-section {
    padding: 28px 24px 20px;
    text-align: center;
    background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.paypal-amount-label {
    font-size: 12px;
    font-weight: 600;
    color: #8b8fa3;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.paypal-amount-value {
    font-size: 64px;
    font-weight: 900;
    color: #003087;
    line-height: 1;
    margin: 0;
    letter-spacing: -2px;
}

.paypal-currency {
    font-size: 32px;
    font-weight: 700;
    color: #0070ba;
    letter-spacing: 0;
    vertical-align: super;
}

/* Séparateur */
.paypal-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 112, 186, 0.15), transparent);
}

/* Section email */
.paypal-email-section {
    padding: 20px 24px;
}

.paypal-section-label {
    font-size: 11px;
    font-weight: 700;
    color: #8b8fa3;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}

.paypal-email-field {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f4f6fb;
    border: 1.5px solid rgba(0, 112, 186, 0.15);
    border-radius: 14px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.paypal-email-field:active {
    background: #e8eeff;
    border-color: #0070ba;
    transform: scale(0.98);
}

.paypal-email-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.paypal-email-text {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    word-break: break-all;
}

.paypal-copy-icon {
    font-size: 16px;
    opacity: 0.5;
    flex-shrink: 0;
}

/* Bouton CTA */
.paypal-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: calc(100% - 48px);
    margin: 0 24px 20px;
    padding: 18px 24px;
    background: linear-gradient(135deg, #ffc439 0%, #f0a500 100%);
    color: #003087;
    border: none;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(255, 196, 57, 0.5);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    letter-spacing: 0.2px;
}

.paypal-cta-btn:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(255, 196, 57, 0.4);
}

.paypal-btn-icon {
    font-size: 20px;
}

.paypal-btn-arrow {
    font-size: 18px;
    font-weight: 900;
    margin-left: auto;
}

/* Note */
.paypal-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 24px 20px;
    padding: 12px 14px;
    background: #fff8e1;
    border: 1px solid rgba(255, 196, 57, 0.4);
    border-radius: 12px;
    font-size: 13px;
    color: #5a4a00;
    line-height: 1.5;
}

.paypal-note-icon {
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ========== TON UI ========== */

.ton-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    margin: 28px 0;
    box-shadow: 0 8px 32px rgba(0, 136, 204, 0.12);
    border: 1px solid rgba(0, 136, 204, 0.1);
}

.ton-header {
    background: linear-gradient(135deg, #0a2336 0%, #0088cc 100%);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ton-logo {
    font-size: 20px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.ton-header-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
}

/* Montant */
.ton-amount-section {
    padding: 24px 24px 16px;
    text-align: center;
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ton-amount-label {
    font-size: 11px;
    font-weight: 700;
    color: #8b8fa3;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.ton-amount-value {
    font-size: 52px;
    font-weight: 900;
    color: #0a2336;
    line-height: 1;
    margin: 0;
    letter-spacing: -1px;
}

.ton-currency {
    font-size: 24px;
    font-weight: 700;
    color: #0088cc;
    letter-spacing: 0;
}

.ton-amount-fiat {
    font-size: 15px;
    color: #8b8fa3;
    font-weight: 500;
    margin-top: 6px;
    margin-bottom: 0;
}

/* Champs copiables */
.ton-field-section {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ton-field-label {
    font-size: 11px;
    font-weight: 700;
    color: #8b8fa3;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.ton-required {
    background: rgba(255, 80, 80, 0.1);
    color: #e53935;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 4px;
    vertical-align: middle;
}

.ton-field-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f4f8fb;
    border: 1.5px solid rgba(0, 136, 204, 0.15);
    border-radius: 14px;
    padding: 13px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ton-field-row:active {
    background: #e0f0fa;
    border-color: #0088cc;
    transform: scale(0.98);
}

.ton-field-text {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    word-break: break-all;
}

.ton-field-text.mono {
    font-family: monospace;
    letter-spacing: 0.5px;
}

.ton-copy {
    font-size: 15px;
    opacity: 0.45;
    flex-shrink: 0;
}

/* Boutons */
.ton-actions-section {
    padding: 16px 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ton-cta-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 17px 20px;
    background: linear-gradient(135deg, #0088cc 0%, #0a2336 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 136, 204, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ton-cta-btn:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(0, 136, 204, 0.3);
}

/* Wallet Telegram — bouton principal */
.ton-tg-wallet-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 17px 20px;
    background: linear-gradient(135deg, #2481cc 0%, #1a5fa0 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(36, 129, 204, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ton-tg-wallet-btn:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(36, 129, 204, 0.3);
}

.ton-btn-arrow {
    font-size: 18px;
    font-weight: 900;
}

.ton-secondary-btn {
    width: 100%;
    padding: 14px;
    background: transparent;
    color: #0088cc;
    border: 1.5px solid rgba(0, 136, 204, 0.35);
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ton-secondary-btn:active {
    background: rgba(0, 136, 204, 0.07);
    transform: scale(0.98);
}

.ton-verify-btn {
    width: 100%;
    padding: 13px;
    background: rgba(0, 0, 0, 0.04);
    color: #5a6070;
    border: none;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.ton-verify-btn:active {
    background: rgba(0, 136, 204, 0.08);
}

/* ========== GRID LAYOUT (2-column tiles) ========== */

.products-grid--grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 16px;
    flex-direction: unset;
}

.product-grid-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.product-grid-card:nth-child(1) {
    animation-delay: 0.05s;
}

.product-grid-card:nth-child(2) {
    animation-delay: 0.1s;
}

.product-grid-card:nth-child(3) {
    animation-delay: 0.15s;
}

.product-grid-card:nth-child(4) {
    animation-delay: 0.2s;
}

.product-grid-card:nth-child(5) {
    animation-delay: 0.25s;
}

.product-grid-card:nth-child(6) {
    animation-delay: 0.3s;
}

.product-grid-card:active {
    transform: scale(0.97);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.product-grid-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    flex-shrink: 0;
}

.product-grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.product-grid-card:active .product-grid-image img {
    transform: scale(1.04);
}

.product-grid-emoji {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    flex-shrink: 0;
}

.product-grid-info {
    padding: 12px 14px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-grid-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-grid-price {
    font-size: 15px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: auto;
}