/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
} */

/* Header Styles */
/* .header {
    background: rgba(255,255,255,0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
} */

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 20px;
}

.nav-links a:hover, .nav-links a.active {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.cta-button {
    background: linear-gradient(45deg, #FF6B35, #F7931E);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.pricing-info {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.discount-tags {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.discount-tag {
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9rem;
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.crypto-tag {
    background: linear-gradient(45deg, #FF6B35, #F7931E);
}

.bulk-tag {
    background: linear-gradient(45deg, #8E44AD, #9B59B6);
}

.max-savings {
    background: linear-gradient(45deg, #E74C3C, #C0392B);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.bundle-cta {
    background: linear-gradient(45deg, #27AE60, #2ECC71);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 30px;
}

.bundle-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.bundle-cta p {
    margin-bottom: 15px;
    opacity: 0.9;
}

.bundle-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.bundle-link {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.bundle-link:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.pricing-note {
    text-align: center;
    color: #666;
    margin-top: 15px;
}

/* Shop Container */
.shop-container {
    position: relative;
    min-height: 600px;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    padding: 20px;
    width: 320px;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 50;
}

.cart-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.empty-cart-message {
    text-align: center;
    color: #666;
    padding: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-name {
    font-weight: 500;
    color: #333;
    flex: 1;
}

.cart-item-price {
    font-weight: bold;
    color: #27AE60;
    margin-left: 10px;
}

.remove-btn {
    background: #E74C3C;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: 10px;
}

/* Cart Summary (Consolidated - Fixed Duplicates) */
.cart-summary {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #eee;
    display: none;
}

.cart-summary.show {
    display: block !important;
}

.discount-options {
    margin-bottom: 15px;
}

.crypto-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #FF6B35;
    cursor: pointer;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-row.show {
    display: flex !important;
}

.summary-total {
    font-size: 1.2rem;
    font-weight: bold;
    color: #27AE60;
    border-top: 1px solid #ddd;
    padding-top: 10px;
}

.checkout-btn {
    width: 100%;
    background: linear-gradient(45deg, #27AE60, #2ECC71);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

.checkout-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.checkout-btn.hide {
    display: none !important;
}

/* Templates Grid */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Template Card (Consolidated - Fixed Duplicates) */
.template-card {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.template-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.template-category {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
}

.template-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.template-pricing {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.template-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: #27AE60;
}

.template-crypto-price {
    font-size: 1.1rem;
    color: #FF6B35;
    text-decoration: line-through;
    opacity: 0.7;
}

.add-to-cart-btn {
    width: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Loading States */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: white;
}

.loading-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.retry-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Payment Button Styles */
.payment-method-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 20px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-family: inherit;
}

.payment-method-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    background: rgba(255, 255, 255, 1);
}

.payment-method-btn:active {
    transform: translateY(0);
}

.payment-icon {
    font-size: 2.5rem;
    margin-right: 20px;
    width: 60px;
    text-align: center;
}

.payment-content {
    flex: 1;
}

.payment-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.payment-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.payment-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.current-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
}

.original-price {
    font-size: 1.1rem;
    color: #999;
    text-decoration: line-through;
}

.discount-badge {
    background: #4CAF50;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.payment-perks {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.perk-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.payment-arrow {
    font-size: 1.5rem;
    color: #667eea;
    margin-left: 15px;
}

/* Payment Loading and Messages */
#payment-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    z-index: 10;
}

.payment-loading {
    text-align: center;
    padding: 30px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.payment-success-content,
.payment-error-content {
    text-align: center;
    padding: 30px;
}

.success-icon,
.error-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.payment-success-content h3 {
    color: #4CAF50;
    margin-bottom: 15px;
}

.payment-error-content h3 {
    color: #f44336;
    margin-bottom: 15px;
}

.payment-details {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: left;
}

.redirect-notice {
    color: #666;
    font-style: italic;
    margin-top: 15px;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.retry-btn,
.support-btn {
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.retry-btn {
    background: #667eea;
    color: white;
}

.retry-btn:hover {
    background: #5a67d8;
}

.support-btn {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.support-btn:hover {
    background: #e0e0e0;
}

/* Mobile responsiveness for payment buttons */
@media (max-width: 768px) {
    .payment-method-btn {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .payment-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .payment-arrow {
        margin-left: 0;
        margin-top: 10px;
    }

    .payment-perks {
        justify-content: center;
    }
}

/* Catalog Filters */
.catalog-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.catalog-filters input,
.catalog-filters select {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
    max-width: 300px;
}

.catalog-filters input:focus,
.catalog-filters select:focus {
    border-color: #667eea;
    outline: none;
}

/* Catalog Grid */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .templates-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cart-sidebar {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        margin: 20px 0;
    }
    
    .discount-tags {
        flex-direction: column;
        align-items: center;
    }
    
    .bundle-links {
        flex-direction: column;
    }
    
    .catalog-filters {
        flex-direction: column;
    }
}

/* Payment Buttons Container */
#payment-buttons-container {
    display: none;
}

#payment-buttons-container.show {
    display: block !important;
}