:root {
    --primary-color: #4CAF50;
    --primary-dark: #388E3C;
    --secondary-color: #f5f5f5;
    --text-color: #333;
    --border-color: #ddd;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
    padding: 20px;
}

header {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.cart-summary {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 15px;
    font-weight: bold;
}

section {
    background-color: white;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

h2 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.btn-primary, .btn-secondary {
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: #e0e0e0;
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: #d0d0d0;
}

.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.slider-wrapper {
    overflow: hidden;
    width: 100%;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.slider-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 10px;
}

.slider-slide .product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: white;
    border: 1px solid var(--border-color);
}

/*вот здесь ошибка*/
.slider-slide .product-card img {
    width: 10%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px 4px 0 0;
    margin-bottom: 10px;
    margin-left: 45%;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    border-radius: 4px;
}

.slider-btn:hover {
    background: rgba(0,0,0,0.8);
}

.slider-btn-prev {
    left: 10px;
}

.slider-btn-next {
    right: 10px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 8px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #bbb;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-dot.active {
    background-color: var(--primary-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    background-color: var(--secondary-color);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/*вот здесь тоже*/
.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px 4px 0 0;
    margin-bottom: 10px;
}

.product-card .product-info {
    padding: 0 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.product-card .description {
    flex-grow: 1;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #666;
}

.product-card .price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.add-to-cart-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: auto;
}

.add-to-cart-btn:hover {
    background-color: var(--primary-dark);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-info {
    flex-grow: 1;
}

.remove-from-cart-btn {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}

.remove-from-cart-btn:hover {
    background-color: #d32f2f;
}

.cart-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

#cart-total {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-dark);
    text-align: right;
    margin-top: 10px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: black;
}

#checkout-form label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

#checkout-form input, #checkout-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

#checkout-summary {
    margin-top: 20px;
    padding: 15px;
    background-color: var(--secondary-color);
    border-radius: 4px;
    font-family: monospace;
    white-space: pre-wrap;
}

#checkout-result {
    padding: 15px;
    background-color: #e8f5e9;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    margin-top: 15px;
    white-space: pre-wrap;
}