/* Кнопка меню (гамбургер) */
.menu-button {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: #8a2be2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.menu-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.4);
}

.menu-button svg {
    width: 30px;
    height: 30px;
}

.menu-button svg path {
    transition: all 0.3s ease;
}

/* Иконка корзины */
.cart-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #8a2be2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.cart-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.4);
}

.cart-icon svg {
    width: 30px;
    height: 30px;
}

.cart-icon svg path,
.cart-icon svg circle {
    transition: all 0.3s ease;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    border: 2px solid white;
}

/* Кнопка очистки корзины */
.clear-cart-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.clear-cart-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.clear-cart-btn svg {
    width: 20px;
    height: 20px;
}

.clear-cart-btn svg path {
    stroke: white;
}

/* Кнопка оформления заказа */
.checkout-btn {
    background: #8a2be2;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-btn:hover {
    background: #6b1fa0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
}

.checkout-btn svg {
    margin-right: 8px;
}

.checkout-btn svg path {
    stroke: white;
}

.checkout-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Кнопка отправки заказа */
.submit-order {
    background: #8a2be2;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-order:hover {
    background: #6b1fa0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
}

.submit-order svg {
    margin-right: 8px;
}

.submit-order svg path {
    stroke: white;
}

.submit-order:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
/* Кнопка добавления в корзину на карточке */
.add-to-cart-btn {
    background: #8a2be2;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(138, 43, 226, 0.3);
    transition: transform 0.3s ease, background 0.3s ease;
}

.add-to-cart-btn:hover {
    transform: scale(1.1);
    background: #6b1fa0;
}

.add-to-cart-btn svg {
    width: 20px;
    height: 20px;
}

.add-to-cart-btn svg path,
.add-to-cart-btn svg circle {
    stroke: white;
    fill: none;
}

.add-to-cart-btn svg circle {
    fill: white;
}

.add-to-cart-btn.added {
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Счетчик товаров на карточке */
.item-counter {
    background: #8a2be2;
    color: white;
    border-radius: 30px;
    padding: 5px 12px;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(138, 43, 226, 0.3);
}

.counter-btn {
    background: none;
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.counter-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.counter-btn:active {
    transform: scale(0.95);
}

.counter-value {
    min-width: 24px;
    text-align: center;
    font-size: 16px;
}