:root {
    --primary-color: #0d6efd;
    --primary-hover: #0b5ed7;
    --accent-color: #198754;
    --bg-light: #f8f9fa;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --card-hover-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f6f9;
    color: #212529;
    min-height: 100vh;
}

a {
    text-decoration: none;
}

.store-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.brand-badge {
    background: #e7f1ff;
    color: #0d6efd;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.gateway-badge {
    background: linear-gradient(135deg, #198754, #20c997);
    color: white;
    font-size: 0.72rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hero-banner {
    background: linear-gradient(135deg, #0a2540 0%, #1a365d 50%, #0d6efd 100%);
    color: white;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-banner::after {
    content: '';
    position: absolute;
    right: -50px;
    bottom: -50px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.product-card {
    background: #ffffff;
    border: 1px solid #eef0f4;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
    border-color: #d1d9e6;
}

.product-image-wrapper {
    position: relative;
    height: 200px;
    background: #f1f3f6;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(13, 110, 253, 0.9);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0d6efd;
}

.currency-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    margin-right: 2px;
}

.cart-counter {
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0.15rem 0.45rem;
    position: absolute;
    top: -5px;
    right: -8px;
}

.checkout-step-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.gateway-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 1.25rem;
}

.gateway-box-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #166534;
}

.order-summary-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 90px;
}

.category-pill {
    cursor: pointer;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #dee2e6;
    background: white;
    color: #495057;
}

.category-pill:hover, .category-pill.active {
    background: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.success-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #d1fae5;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
}

.failure-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fee2e2;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
}

.status-badge-paid {
    background-color: #d1fae5;
    color: #065f46;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    display: inline-block;
}

.status-badge-pending {
    background-color: #fef3c7;
    color: #92400e;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    display: inline-block;
}

.status-badge-failed {
    background-color: #fee2e2;
    color: #991b1b;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    display: inline-block;
}

.footer-store {
    background: #ffffff;
    border-top: 1px solid #eef0f4;
    padding: 2.5rem 0 1.5rem;
    margin-top: 4rem;
    color: #6c757d;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-success {
    background-color: #198754;
    border-color: #198754;
    font-weight: 500;
    border-radius: 8px;
}

.btn-outline-primary {
    border-radius: 8px;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 0.6rem 0.85rem;
}

.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.validation-message {
    color: #dc3545;
    font-size: 0.82rem;
    margin-top: 0.25rem;
}

#blazor-error-ui {
    background: #fffae6;
    border-top: 1px solid #ffe58f;
    bottom: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    left: 0;
    padding: 0.75rem 1.5rem;
    position: fixed;
    width: 100%;
    z-index: 1050;
}