* {
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Arial, sans-serif;
            margin: 0;
            padding: 0;
            color: #333;
            background: url('Photo/Fondlyasaqta.jpg');
            background-size: cover;
            background-attachment: fixed;
            min-height: 100vh;
        }

        /* Шапка как в index.html */
        .header-container {
            display: flex;
            align-items: center;
            padding: 10px 20px;
            background-color: rgba(255, 255, 255, 0.9);
            border-radius: 8px;
            margin: 10px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .social-buttons {
            display: flex;
            align-items: center;
            margin-left: 15px;
        }

        .social-buttons a {
            margin: 0 5px;
        }

        .nav-buttons {
            display: flex;
            margin-left: 15px;
        }

        .nav-buttons a {
            margin: 0 5px;
        }

        .nav-button {
            cursor: pointer;
            background-color: darkblue;
            color: white;
            border: none;
            padding: 8px 12px;
            border-radius: 50px;
            font-size: 14px;
            text-decoration: none;
            display: inline-block;
            transition: all 0.3s;
        }

        .nav-button:hover {
            background-color: #00008b;
            transform: translateY(-2px);
        }

        /* Контейнер корзины */
        .cart-container {
            max-width: 1400px;
            margin: 40px auto;
            padding: 0 20px;
            display: grid;
            grid-template-columns: 1fr 400px;
            gap: 30px;
            min-height: calc(100vh - 200px);
        }

        @media (max-width: 1200px) {
            .cart-container {
                grid-template-columns: 1fr;
                max-width: 900px;
            }
        }

        /* Заголовок корзины */
        .cart-header {
            grid-column: 1 / -1;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 15px;
            padding: 25px 30px;
            margin-bottom: 20px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
            animation: fadeIn 0.5s ease-out;
        }

        .cart-header h1 {
            color: darkblue;
            font-size: 28px;
            margin: 0;
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .cart-header h1:before {
            content: "🛒";
            font-size: 28px;
        }

        .continue-shopping {
            background-color: darkblue;
            color: white;
            border: none;
            padding: 10px 25px;
            border-radius: 25px;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s;
        }

        .continue-shopping:hover {
            background-color: #00008b;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        /* Контейнер товаров */
        .cart-items-container {
            background: rgba(255, 255, 255, 0.9);
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            transition: all 0.5s ease;
            animation: fadeIn 0.5s ease-out;
        }

        .cart-items-container.expanded {
            transform: scale(1.02);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        }

        .cart-items-header {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            padding: 20px 0;
            border-bottom: 2px solid #f1f3f5;
            font-weight: 600;
            color: #495057;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .cart-item {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            align-items: center;
            padding: 20px 0;
            border-bottom: 1px solid #f1f3f5;
            transition: all 0.3s;
        }

        .cart-item:hover {
            background-color: rgba(0, 0, 139, 0.05);
            border-radius: 10px;
            padding: 20px 15px;
            margin: 0 -15px;
        }

        .item-product {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .item-image {
            width: 80px;
            height: 80px;
            border-radius: 8px;
            overflow: hidden;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .item-image img {
            width: 70%;
            height: 70%;
            object-fit: contain;
        }

        .item-details {
            flex: 1;
        }

        .item-name {
            font-weight: 600;
            font-size: 16px;
            color: #212529;
            margin-bottom: 5px;
        }

        .item-category {
            color: #6c757d;
            font-size: 13px;
        }

        .item-price {
            font-size: 18px;
            font-weight: 700;
            color: darkblue;
        }

        .item-quantity {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .quantity-control {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .quantity-btn {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            border: 2px solid #e9ecef;
            background: white;
            color: #495057;
            font-size: 16px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        .quantity-btn:hover {
            border-color: darkblue;
            color: darkblue;
            transform: scale(1.1);
        }

        .quantity-input {
            width: 50px;
            height: 30px;
            border: 2px solid #e9ecef;
            border-radius: 6px;
            text-align: center;
            font-size: 14px;
            font-weight: 600;
        }

        .item-total {
            font-size: 18px;
            font-weight: 700;
            color: #212529;
        }

        .item-remove {
            background: none;
            border: none;
            color: #dc3545;
            font-size: 20px;
            cursor: pointer;
            opacity: 0.7;
            transition: all 0.2s;
            padding: 5px;
            margin-left: 10px;
        }

        .item-remove:hover {
            opacity: 1;
            transform: scale(1.2);
        }

        .empty-cart {
            text-align: center;
            padding: 60px 20px;
        }

        .empty-cart-icon {
            font-size: 60px;
            color: #dee2e6;
            margin-bottom: 20px;
        }

        .empty-cart h2 {
            color: #6c757d;
            font-size: 24px;
            margin-bottom: 10px;
        }

        .empty-cart p {
            color: #adb5bd;
            font-size: 15px;
            margin-bottom: 25px;
        }

        /* Блок суммы заказа */
        .cart-summary {
            background: rgba(255, 255, 255, 0.9);
            border-radius: 15px;
            padding: 25px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            height: fit-content;
            position: sticky;
            top: 100px;
            animation: fadeIn 0.5s ease-out 0.2s;
            animation-fill-mode: both;
        }

        .summary-title {
            font-size: 22px;
            font-weight: 700;
            color: darkblue;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid #f1f3f5;
        }

        .summary-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 12px;
            font-size: 15px;
        }

        .summary-label {
            color: #6c757d;
        }

        .summary-value {
            font-weight: 600;
            color: #212529;
        }

        .summary-divider {
            height: 1px;
            background: #f1f3f5;
            margin: 15px 0;
        }

        .summary-total {
            display: flex;
            justify-content: space-between;
            font-size: 20px;
            font-weight: 700;
            color: darkblue;
            margin-bottom: 25px;
        }

        .checkout-btn {
            width: 100%;
            background-color: darkblue;
            color: white;
            border: none;
            padding: 15px;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            margin-bottom: 15px;
        }

        .checkout-btn:hover {
            background-color: #00008b;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .checkout-btn:disabled {
            background: #e9ecef;
            color: #adb5bd;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        /* Форма оформления заказа */
        .checkout-form {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            padding: 40px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            margin-top: 30px;
            display: none;
            animation: fadeIn 0.5s ease-out;
            transition: all 0.5s ease;
            transform-origin: top;
        }

        .checkout-form.visible {
            display: block;
            animation: expandForm 0.5s ease-out;
        }

        .form-title {
            font-size: 26px;
            color: darkblue;
            margin-bottom: 25px;
            text-align: center;
        }

        .form-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            margin-bottom: 25px;
        }

        @media (max-width: 768px) {
            .form-grid {
                grid-template-columns: 1fr;
            }
        }

        .form-group {
            margin-bottom: 15px;
        }

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

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #495057;
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 12px;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            font-size: 15px;
            transition: all 0.2s;
            background: white;
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: darkblue;
            box-shadow: 0 0 0 3px rgba(0, 0, 139, 0.1);
        }

        .form-buttons {
            display: flex;
            gap: 15px;
            margin-top: 25px;
        }

        .back-btn {
            flex: 1;
            background: #f8f9fa;
            color: #495057;
            border: 2px solid #e9ecef;
            padding: 12px;
            border-radius: 8px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .back-btn:hover {
            background: #e9ecef;
            transform: translateY(-1px);
        }

        .submit-btn {
            flex: 2;
            background-color: darkblue;
            color: white;
            border: none;
            padding: 12px;
            border-radius: 8px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .submit-btn:hover {
            background-color: #00008b;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .submit-btn:disabled {
            background: #e9ecef;
            color: #adb5bd;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        /* Сообщение об успешном заказе */
        .thank-you-message {
            text-align: center;
            padding: 50px 20px;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            margin-top: 30px;
            display: none;
            animation: fadeIn 0.5s ease-out;
        }

        .thank-you-icon {
            font-size: 60px;
            color: #4caf50;
            margin-bottom: 20px;
        }

        .thank-you-message h2 {
            color: #4caf50;
            font-size: 28px;
            margin-bottom: 15px;
        }

        .thank-you-message p {
            color: #6c757d;
            font-size: 16px;
            margin-bottom: 25px;
            line-height: 1.5;
        }

        /* Подвал как в index.html */
        footer {
            background-color: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 30px 20px;
            text-align: center;
            margin-top: 40px;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .footer-links a {
            color: white;
            text-decoration: none;
            transition: color 0.2s;
        }

        .footer-links a:hover {
            color: #cccccc;
            text-decoration: underline;
        }

        footer p {
            margin: 0;
            color: #cccccc;
            font-size: 14px;
        }

        /* Анимации */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes expandForm {
            0% { 
                opacity: 0;
                transform: scale(0.95) translateY(20px);
            }
            100% { 
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        .cart-container > * {
            animation: fadeIn 0.5s ease-out;
        }

        /* Адаптивность */
        @media (max-width: 768px) {
            .header-container {
                flex-direction: column;
                align-items: flex-start;
                padding: 15px;
            }
            
            .social-buttons {
                margin-left: 0;
                margin-top: 10px;
            }
            
            .nav-buttons {
                margin-left: 0;
                margin-top: 10px;
                flex-wrap: wrap;
                gap: 5px;
            }
            
            .cart-container {
                padding: 0 15px;
                margin: 20px auto;
                grid-template-columns: 1fr;
            }
            
            .cart-header {
                flex-direction: column;
                gap: 15px;
                text-align: center;
                padding: 20px;
            }
            
            .cart-items-header {
                display: none;
            }
            
            .cart-item {
                grid-template-columns: 1fr;
                gap: 15px;
                text-align: center;
                padding: 15px 0;
            }
            
            .item-product {
                flex-direction: column;
                text-align: center;
                gap: 10px;
            }
            
            .cart-summary {
                position: static;
            }
            
            .form-buttons {
                flex-direction: column;
            }
        }

        /* Стили для ошибок валидации */
        .error {
            color: #dc3545;
            font-size: 12px;
            margin-top: 5px;
            display: none;
        }

        .form-group.error input,
        .form-group.error select,
        .form-group.error textarea {
            border-color: #dc3545;
        }

        .form-group.error .error {
            display: block;
        }


        .cart-summary,
        .checkout-form,
        .cart-items-container {
            transition: opacity .35s ease, transform .35s ease, box-shadow .35s ease, max-height .35s ease;
        }

        .checkout-form {
            display: none;
            grid-column: 1 / -1;
            background: rgba(255, 255, 255, 0.96);
            border-radius: 18px;
            padding: 32px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
        }

        .checkout-form.visible {
            display: block;
            animation: fadeIn .35s ease;
        }

        .cart-container.checkout-open {
            grid-template-columns: 1fr;
            max-width: 980px;
        }

        .cart-container.checkout-open .cart-items-container,
        .cart-container.checkout-open .cart-summary {
            opacity: 0;
            transform: translateY(-16px) scale(.98);
            pointer-events: none;
        }
