﻿        @import "normalize.css";

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

        body {
            font-family: var(--font-family-base);
            background-color: var(--color-bg);
            background-image:
                radial-gradient(circle at top left, rgba(220, 38, 38, 0.12), transparent 26%),
                radial-gradient(circle at top right, rgba(34, 197, 94, 0.08), transparent 20%),
                linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
            background-attachment: fixed;
            color: var(--color-text);
            line-height: 1.4;
            overflow-x: hidden;
        }

        .container {
            max-width: 37.5rem;
            margin: 0 auto;
            padding: 0 0.9375rem;
        }

        /* Header */
        header {
            padding: 1.25rem 0;
            background: rgba(10, 10, 10, 0.76);
            border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(var(--glass-blur));
        }

        .logo {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--color-primary);
            text-align: center;
        }

        /* Page Title */
        .page-title {
            padding: 0 0 0;
            text-align: center;
        }

        .page-title h1 {
            font-size: 2rem;
            font-weight: 900;
            color: var(--color-text);
            margin-bottom: 0.625rem;
        }

        .page-title p {
            color: #999;
            font-size: 1rem;
        }

        /* Products Section */
        .products-section {
            padding: 1.25rem 0;
        }

        .section-header {
            font-size: 1.25rem;
            font-weight: 800;
            color: var(--color-primary);
            margin-bottom: 1.25rem;
            text-transform: uppercase;
            letter-spacing: 0.0313rem;
        }

        /* Product Card */
        .product-card {
            background: rgba(255, 255, 255, 0.04);
            border: 0.0625rem solid rgba(255, 255, 255, 0.08);
            border-radius: 0.9375rem;
            padding: 1.25rem;
            margin-bottom: 0.9375rem;
            transition: all 0.3s ease;
            box-shadow: var(--shadow-sm);
            backdrop-filter: blur(var(--glass-blur));
        }

        .product-card:hover {
            border-color: rgba(220, 38, 38, 0.45);
            background: rgba(255, 255, 255, 0.06);
        }

        .product-header {
            display: flex;
            text-align: left;
            gap: 0.9375rem;
            align-items: flex-start;
        }

        .product-image {
            width: 4.375rem;
            height: 6.25rem;
            object-fit: contain;
            border-radius: 0.625rem;
            flex-shrink: 0;
        }

        .product-info {
            flex: 1;
        }

        

        .product-title {
            font-size: 1.125rem;
            font-weight: 800;
            color: var(--color-text);
            margin-bottom: 0.3125rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .product-description {
            font-size: 0.875rem;
            color: var(--color-text-muted);
            margin-bottom: 0.625rem;
            line-height: 1.4;
        }

        .product-price {
            font-size: 1.5rem;
            font-weight: 900;
            color: var(--color-success);
        }

        .product-title .product-price {
            font-size: 0.875rem;
            color: var(--color-success);
            font-weight: 700;
            flex-shrink: 0;
        }

        .product-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 0.9375rem;
            padding-top: 0.9375rem;
            border-top: 0.0625rem solid rgba(255, 255, 255, 0.08);
        }

        /* Quantity Controls */
        .quantity-controls {
            display: flex;
            align-items: center;
            gap: 0.625rem;
        }

        .quantity-btn {
            width: 2.1875rem;
            height: 2.1875rem;
            background: rgba(220, 38, 38, 0.16);
            border: 0.0625rem solid rgba(220, 38, 38, 0.5);
            border-radius: 0.5rem;
            color: var(--color-text);
            font-size: 1.25rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .quantity-btn:hover {
            background: var(--color-primary);
            transform: scale(1.05);
        }

        .quantity-btn:active {
            transform: scale(0.95);
        }

        .quantity-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

        .quantity-display {
            font-size: 1.25rem;
            font-weight: 700;
            min-width: 1.875rem;
            text-align: center;
        }

        /* Add/Remove Button */
        .toggle-btn {
            padding: 0.625rem 1.25rem;
            border-radius: 0.5rem;
            font-size: 0.875rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 0.0313rem;
        }

        .btn-add {
            background: linear-gradient(135deg, var(--color-success) 0%, var(--color-success-dark) 100%);
            color: var(--color-bg);
            border: none;
        }

        .btn-add:hover {
            transform: translateY(-0.125rem);
            box-shadow: 0 0.3125rem 0.9375rem rgba(34, 197, 94, 0.4);
        }

        .btn-remove {
            background: transparent;
            color: var(--color-primary);
            border: 0.0625rem solid var(--color-primary);
        }

        .btn-remove:hover {
            background: var(--color-primary);
            color: var(--color-text);
        }

        /* Cart Summary */
        .cart-summary {
            background: rgba(255, 255, 255, 0.05);
            border: 0.125rem solid rgba(220, 38, 38, 0.28);
            border-radius: 0.9375rem;
            padding: 1.5625rem;
            margin: 1.875rem 0;
            position: sticky;
            top: 1.25rem;
            box-shadow: var(--shadow-md);
            backdrop-filter: blur(var(--glass-blur));
        }

        .summary-title {
            font-size: 1.375rem;
            font-weight: 800;
            color: var(--color-text);
            margin-bottom: 1.25rem;
            text-align: center;
        }

        .summary-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.75rem 0;
            border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.08);
        }

        .summary-row:last-child {
            border-bottom: 0.125rem solid rgba(220, 38, 38, 0.5);
        }

        .summary-label {
            font-size: 1rem;
            color: var(--color-text-muted);
        }

        .summary-value {
            font-size: 1.125rem;
            font-weight: 700;
            color: var(--color-text);
        }

        .summary-total {
            font-size: 1.75rem !important;
            font-weight: 900 !important;
            color: var(--color-success) !important;
        }

        /* Checkout Button */
        .btn-checkout {
            background: linear-gradient(135deg, var(--color-success) 0%, var(--color-success-dark) 100%);
            color: var(--color-bg);
            padding: 1.25rem 2.5rem;
            font-size: 1.5rem;
            font-weight: 900;
            border: none;
            border-radius: 0.875rem;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 0.0625rem;
            box-shadow: 0 0.625rem 1.875rem rgba(34, 197, 94, 0.5);
            width: 100%;
            margin: 0;
            border: 0.0625rem solid rgba(255, 255, 255, 0.08);
        }

        @keyframes buttonPulse {
            0%, 100% { box-shadow: 0 0.625rem 1.875rem rgba(34, 197, 94, 0.5); }
            50% { box-shadow: 0 0.9375rem 2.5rem rgba(34, 197, 94, 0.8); }
        }

        .btn-checkout:hover {
            transform: translateY(-0.1875rem);
        }

        .btn-checkout:active {
            transform: translateY(-0.0625rem);
        }

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

        /* Empty Cart */
        .empty-cart {
            text-align: center;
            padding: 3.75rem 1.25rem;
            background: rgba(255, 255, 255, 0.03);
            border: 0.0625rem solid rgba(255, 255, 255, 0.06);
            border-radius: 0.9375rem;
        }

        .empty-cart-icon {
            font-size: 5rem;
            margin-bottom: 1.25rem;
            opacity: 0.3;
        }

        .empty-cart h3 {
            font-size: 1.5rem;
            font-weight: 700;
            color: #999;
            margin-bottom: 0.625rem;
        }

        .empty-cart p {
            font-size: 1rem;
            color: #666;
        }

        /* Back Button */
        .back-button {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--color-primary);
            text-decoration: none;
            font-weight: 700;
            padding: 0.625rem 0;
            margin-bottom: 1.25rem;
            transition: all 0.3s ease;
        }

        .back-button:hover {
            gap: 0.75rem;
        }

        /* Discount Badge */
        .discount-badge {
            display: inline-block;
            background: var(--color-primary);
            color: var(--color-text);
            padding: 0.25rem 0.75rem;
            border-radius: 1.25rem;
            font-size: 0.75rem;
            font-weight: 800;
            margin-left: 0.625rem;
        }


        /* Footer */
        footer {
            padding: 1.875rem 0;
            text-align: center;
            border-top: 0.0625rem solid rgba(255, 255, 255, 0.08);
            color: #666;
            font-size: 0.8125rem;
            margin-top: 3.125rem;
        }

        @media (max-width: 40rem) {
            .page-title h1 {
                font-size: 1.625rem;
            }

            .product-image {
                width: 3.75rem;
                height: 3.75rem;
                font-size: 2rem;
            }

            .product-title {
                font-size: 1rem;
            }

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

            .cart-summary {
                position: static;
                top: auto;
                padding: 1.25rem;
            }

            .summary-label {
                font-size: 0.875rem;
                word-break: break-word;
            }

            .summary-value {
                font-size: 1rem;
            }

            .summary-total {
                font-size: 1.5rem !important;
            }

            .btn-checkout {
                font-size: 1.125rem;
                padding: 1rem 1.5rem;
            }
        }
