/* Evonex Commerce - Global Styles & Design System */
:root {
    --bg-dark: #0A0F16;
    --bg-darker: #05080b;
    --primary: #00F0FF; /* Neon Cyan */
    --primary-glow: rgba(0, 240, 255, 0.4);
    --surface: rgba(20, 28, 38, 0.6);
    --surface-border: rgba(255, 255, 255, 0.1);
    --text-main: #FFFFFF;
    --text-muted: #8F9BA8;
    --font-family: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
    /* Aesthetic mesh gradient background */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(0, 240, 255, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(112, 0, 255, 0.08), transparent 25%);
    background-attachment: fixed;
}

/* Typography */
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; }

/* Glass Navbar */
.glass-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 15, 22, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--surface-border);
    padding: 1rem 0;
}

.nav-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}
.logo-bold { font-weight: 700; color: var(--text-main); }
.logo-light { font-weight: 300; color: var(--primary); }

.secure-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #4ADE80;
    font-weight: 500;
    background: rgba(74, 222, 128, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
}

/* Layout */
.checkout-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .checkout-container {
        grid-template-columns: 400px 1fr;
        align-items: flex-start;
    }
}

/* Glass Panels */
.glass-panel {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Product Section */
.product-image-placeholder {
    width: 100%;
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.25rem;
    border: 1px solid var(--surface-border);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.product-img:hover { transform: scale(1.05); }

.product-title { font-size: 1.25rem; margin-bottom: 0.25rem; }
.product-variant { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }

.price-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.original-price { color: var(--text-muted); text-decoration: line-through; font-size: 1rem; }
.current-price { font-size: 1.75rem; font-weight: 700; color: var(--primary); }
.current-price small { font-size: 1rem; font-weight: 400; }

.quantity-selector label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.qty-controls {
    display: flex;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    width: fit-content;
    overflow: hidden;
}
.btn-qty {
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}
.btn-qty:hover { background: rgba(255,255,255,0.1); }
#qty {
    width: 50px;
    background: transparent;
    border: none;
    color: var(--text-main);
    text-align: center;
    font-weight: 600;
    font-family: var(--font-family);
    border-left: 1px solid var(--surface-border);
    border-right: 1px solid var(--surface-border);
    -moz-appearance: textfield;
}

/* Forms */
.checkout-form h2 { margin-bottom: 1.5rem; font-size: 1.25rem; }

.input-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.input-group {
    margin-bottom: 1rem;
    width: 100%;
}
.input-group.half { flex: 1; min-width: calc(50% - 0.5rem); }

input {
    width: 100%;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    color: var(--text-main);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}
input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15);
}
input:disabled { opacity: 0.6; cursor: not-allowed; }

/* Shipping Selection */
.hidden { display: none !important; }
.shipping-options h3 { font-size: 1rem; margin-bottom: 1rem; border-top: 1px solid var(--surface-border); padding-top: 1.5rem; }

.radio-card {
    display: block;
    position: relative;
    margin-bottom: 0.75rem;
    cursor: pointer;
}
.radio-card input {
    position: absolute;
    opacity: 0;
}
.card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    transition: var(--transition);
}
.radio-card input:checked + .card-content {
    border-color: var(--primary);
    background: rgba(0, 240, 255, 0.05);
}
.radio-card input:checked + .card-content .cost {
    color: var(--primary);
    font-weight: 600;
}

/* Footer / CTA */
.checkout-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--surface-border);
}
.total-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.total-display span { color: var(--text-muted); font-size: 1.1rem; }
.total-display strong { font-size: 1.75rem; color: #FFF; }

.btn-primary {
    width: 100%;
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-family);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.6);
}
.btn-primary.loading {
    background: #333;
    color: #888;
    box-shadow: none;
    pointer-events: none;
}

.secure-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* Animations */
.loader-pulse {
    font-size: 0.9rem;
    color: var(--primary);
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* Micro-animations */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.glass-panel { animation: slideUp 0.5s ease forwards; }
.checkout-form { animation-delay: 0.1s; }
