/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    /* Neutrals */
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --bg-hover: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border: #334155;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-card: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);

    /* Spacing */
    --container-width: 1200px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 24px rgba(99, 102, 241, 0.3);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    background-image:
        radial-gradient(at 20% 20%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 80%, rgba(236, 72, 153, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
}

/* ===== HEADER ===== */
.header {
    background: var(--gradient-primary);
    padding: 3rem 1rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M0 50h100M50 0v100" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    opacity: 0.3;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    position: relative;
    animation: slideDown 0.6s ease-out;
}

.tagline {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    animation: slideDown 0.6s ease-out 0.1s both;
}

/* ===== CONTAINER ===== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===== ALERTS ===== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideDown 0.4s ease-out;
}

.alert svg {
    flex-shrink: 0;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-left: 4px solid var(--error);
}

/* ===== ORDER FORM ===== */
.order-form {
    margin-top: 2rem;
}

/* ===== PRODUCTS GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    position: relative;
    animation: fadeInUp 0.5s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding-top: 3.5rem;
    /* Space for banner badge */
}

.product-card>* {
    width: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--primary-light);
}

.product-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    text-align: center;
}

.product-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    transition: all 0.3s ease;
}

.product-card:hover .product-icon {
    transform: rotate(360deg) scale(1.1);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
}

.product-icon.rear {
    color: var(--primary);
}

.product-icon.front {
    color: var(--secondary);
}

.product-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.product-price {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 0.25rem;
}

.product-detail {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.product-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.product-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.product-features li:last-child {
    border-bottom: none;
}

/* ===== STOCK INFO ===== */
.stock-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
}

.stock-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.stock-badge.in-stock {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.stock-badge.low-stock {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

.stock-count {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ===== QUANTITY SELECTOR ===== */
.quantity-selector {
    margin-top: 1.5rem;
}

.quantity-selector label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qty-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.qty-controls button {
    width: 44px;
    height: 44px;
    border: 2px solid var(--border);
    background: var(--bg-hover);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-controls button:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.05);
}

.qty-controls button:active {
    transform: scale(0.95);
}

.qty-controls input[type="number"] {
    flex: 1;
    height: 44px;
    padding: 0 1rem;
    background: var(--bg-main);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
}

.qty-controls input[type="number"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* ===== CHECKOUT SECTION ===== */
.checkout-section {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.checkout-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.checkout-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.checkout-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* ===== FORM GROUPS ===== */
.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input[type="email"] {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-main);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.help-text {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ===== CART SUMMARY ===== */
.cart-summary {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    color: var(--text-secondary);
}

.summary-line:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.empty-cart {
    color: var(--text-muted);
    font-style: italic;
}

.shipping-line {
    font-weight: 500;
}

.total-line {
    font-size: 1.25rem;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 2px solid var(--border);
}

.total-line strong {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
}

.shipping-note {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
}

/* ===== BUTTONS ===== */
.btn-checkout {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
}

.btn-checkout:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-checkout:active:not(:disabled) {
    transform: translateY(0);
}

.btn-checkout:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== INFO SECTION ===== */
.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 4rem 0;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.info-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.info-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.info-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* ===== FOOTER ===== */
footer {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
}

footer p {
    margin: 0.5rem 0;
    font-size: 0.875rem;
}

.footer-note {
    font-size: 0.8125rem;
    opacity: 0.7;
}

/* ===== CONFIRMATION PAGE ===== */
.confirmation-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.confirmation-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    max-width: 600px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.success-icon {
    margin: 0 auto 2rem;
    animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.confirmation-card h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-success);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.confirmation-message {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.order-summary {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
    text-align: left;
}

.order-summary h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    font-size: 1.25rem;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 2px solid var(--border);
}

.summary-row.total strong {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.next-steps {
    text-align: left;
    margin: 2rem 0;
    background: rgba(99, 102, 241, 0.1);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
}

.next-steps h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.next-steps ol {
    padding-left: 1.5rem;
}

.next-steps li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.btn-return {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-return:hover {
    box-shadow: var(--shadow-glow);
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    padding: 1.5rem;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(100%);
    animation: slideUpBanner 0.5s ease-out forwards;
}

.cookie-banner.hide {
    animation: slideDownBanner 0.5s ease-in forwards;
}

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-text h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.cookie-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 800px;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-cookie-accept {
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cookie-accept:hover {
    background: var(--primary-dark);
}

.btn-cookie-decline {
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cookie-decline:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

@keyframes slideUpBanner {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes slideDownBanner {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(100%);
    }
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }

    .btn-cookie-accept,
    .btn-cookie-decline {
        width: 100%;
    }
}


/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== PRODUCT IMAGES ===== */
.product-image-wrapper {
    width: 100%;
    max-width: 280px;
    height: 200px;
    margin: 0 auto 1.5rem;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.image-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.dot.active {
    width: 24px;
    border-radius: 4px;
    background: white;
}

.product-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* ===== CART ELEMENTS ===== */
.cart-icon-link {
    position: absolute;
    top: 2rem;
    right: 2rem;
    text-decoration: none;
}

.cart-icon {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.75rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    color: white;
}

.cart-icon:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--error);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-add-to-cart {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
    margin-top: 1rem;
}

.btn-add-to-cart:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-add-to-cart:active:not(:disabled) {
    transform: translateY(0);
}

.btn-add-to-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.view-cart-section {
    max-width: 600px;
    margin: 3rem auto;
    text-align: center;
}

.btn-view-cart {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-size: 1.25rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.btn-view-cart:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* ===== CART PAGE STYLES ===== */
.cart-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    margin: 2rem 0;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto auto auto;
    gap: 1.5rem;
    align-items: center;
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.cart-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.cart-item-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.cart-item-image-placeholder {
    width: 120px;
    height: 120px;
    background: var(--bg-hover);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.cart-item-details h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.cart-item-price {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.cart-item-quantity {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.cart-item-quantity button {
    width: 36px;
    height: 36px;
    border: 2px solid var(--border);
    background: var(--bg-hover);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-item-quantity button:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.cart-item-quantity input {
    width: 60px;
    height: 36px;
    text-align: center;
    background: var(--bg-main);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.cart-item-total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-light);
    min-width: 100px;
    text-align: right;
}

.cart-item-remove {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--error);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-remove:hover {
    background: var(--error);
    color: white;
    border-color: var(--error);
}

.cart-summary-sidebar {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.cart-summary-sidebar h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.btn-continue-shopping {
    display: block;
    width: 100%;
    padding: 0.875rem;
    margin-top: 1rem;
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-secondary);
    text-decoration: none;
    text-align: center;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-continue-shopping:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.empty-cart-message {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 500px;
    margin: 2rem auto;
}

.empty-cart-message h2 {
    font-size: 2rem;
    margin: 1.5rem 0 1rem;
    color: var(--text-primary);
}

.empty-cart-message p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ===== CHECKOUT PAGE STYLES ===== */
.checkout-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    margin: 2rem 0;
}

.checkout-main {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.checkout-section {
    margin-bottom: 2.5rem;
}

.checkout-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.checkout-form .form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.checkout-form .form-group {
    display: flex;
    flex-direction: column;
}

.checkout-form .form-group.full-width {
    grid-column: 1 / -1;
}

.checkout-form label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkout-form input[type="text"],
.checkout-form input[type="email"],
.checkout-form input[type="tel"] {
    padding: 0.875rem 1rem;
    background: var(--bg-main);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.checkout-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.order-items-review {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--bg-main);
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

.review-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 1rem;
    align-items: center;
}

.review-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.review-item-placeholder {
    width: 60px;
    height: 60px;
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.review-item-details h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.review-item-details p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.review-item-total {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-light);
}

#paypal-button-container {
    margin: 2rem 0;
    min-height: 50px;
}

.checkout-terms {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.checkout-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-summary-box {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    position: sticky;
    top: 2rem;
}

.order-summary-box h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.btn-back-to-cart {
    display: block;
    width: 100%;
    padding: 0.875rem;
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-secondary);
    text-decoration: none;
    text-align: center;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-back-to-cart:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===== ORDER CONFIRMATION PAGE ===== */
.confirmation-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg-main);
}

.confirmation-card {
    max-width: 700px;
    width: 100%;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: var(--success);
}

.confirmation-card h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.confirmation-message {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.confirmation-card .order-summary {
    background: var(--bg-main);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
    text-align: left;
}

.confirmation-card .order-summary h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    padding-top: 1.25rem;
    margin-top: 0.75rem;
    border-top: 2px solid var(--border);
    font-size: 1.25rem;
}

.next-steps {
    background: rgba(99, 102, 241, 0.1);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

.next-steps h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.next-steps ol {
    text-align: left;
    padding-left: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.btn-return {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    margin-top: 1.5rem;
}

.btn-return:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}


/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .header h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-price {
        font-size: 2rem;
    }

    .checkout-card {
        padding: 1.5rem;
    }

    .info-section {
        grid-template-columns: 1fr;
    }

    .confirmation-card {
        padding: 2rem 1.5rem;
    }

    /* Fix Cart & Checkout Layouts on Mobile */
    .cart-container,
    .checkout-container {
        grid-template-columns: 100%;
        gap: 1.5rem;
    }

    .cart-item {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 1rem;
        position: relative;
    }

    .cart-item-image,
    .cart-item-image-placeholder {
        width: 100%;
        height: 200px;
        max-width: 250px;
    }

    .cart-item-details {
        width: 100%;
    }

    .cart-item-quantity {
        justify-content: center;
    }

    .cart-item-total {
        width: 100%;
        text-align: center;
        font-size: 1.5rem;
        margin: 0.5rem 0;
    }

    .cart-item-remove {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: var(--bg-card);
        border-color: var(--error);
        color: var(--error);
        width: 36px;
        height: 36px;
    }

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

    .checkout-sidebar,
    .cart-summary-sidebar {
        order: -1;
        /* Show summary at top on mobile if preferred, or remove to keep at bottom */
    }

    /* Ensure summary box fits and isn't sticky on mobile */
    .order-summary-box,
    .cart-summary-sidebar {
        width: 100%;
        box-sizing: border-box;
        position: static;
        top: auto;
    }
}