/* === CART STYLES (from main.css) === */

/* === HEADER CART STYLES === */
.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-cart a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #333;
    background-color: #fff;
    padding: 8px 16px;
    border-radius: 24px;
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.08); */
    transition: all 0.2s ease;
}

.header-cart a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.cart-icon-container {
    position: relative;
}

.cart-item-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: #d96e2f;
    color: white;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-total-price {
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    font-weight: 600;
}

/* === CART SIDEBAR STYLES === */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -35%; /* Start off-screen */
    width: 35%;
    height: 100%;
    background-color: #f9f9f9;
    box-shadow: -4px 0 15px rgba(0,0,0,0.1);
    z-index: 1001;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.is-open {
    right: 0 !important;
}

.cart-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s 0.4s;
}

.cart-sidebar-overlay.is-open {
    opacity: 1;
    pointer-events: all;
    visibility: visible; /* Показываем затемнение */
    transition: opacity 0.4s ease; /* Убираем задержку скрытия для видимости */
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.toast {
    background-color: #333;
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s ease;
    font-size: 16px;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.cart-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background: white;
}
 
.cart-sidebar-header h3 {
    margin: 0;
    font-size: 20px;
}
 
.close-cart-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
}
 
.cart-sidebar-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0 20px 20px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}
 
.cart-empty {
    text-align: center;
    color: #888;
    margin-top: 40px;
    padding: 20px;
}
 
.cart-item-card {
    display: flex;
    gap: 15px;
    border-bottom: 1px solid #e0e0e0;
    position: relative; /* для кнопки удаления */
    padding: 16px 8px;
}
 
.cart-item-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
 
.cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
 
.cart-item-details h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 500;
}

.cart-item-attributes {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}
 
.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}
 
.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 6px;
}
 
.quantity-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    font-size: 18px;
    color: #333;
}
 
.item-quantity {
    padding: 0 4px;
    font-size: 16px;
    font-weight: 500;
}
 
.item-price {
    font-size: 16px;
    font-weight: 600;
}
 
.remove-item-btn {
    position: absolute;
    top: 16px;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #6c757d;
    padding: 0;
}
.remove-item-btn:hover {
    color: #ff6b35;
}
 
.cart-sidebar-footer {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex-grow: 1;
}

.cart-footer-top {
    background: #f8f9fa;
}

.cart-footer-bottom {
    border-top: 1px solid #e9ecef;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8f9fa;
}

.cart-summary {

}
.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    color: #495057;
    margin-bottom: 8px;
}
.summary-line span:last-child {
    font-weight: 500;
}
.summary-line .discount-amount {
    color: #e63946;
    font-weight: 600;
}

.promo-area {

}
.promo-toggle-wrapper {
    text-align: center;
    padding: 16px 20px;
}
#promo-toggle-link {
    color: #ff6b35;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px dashed #ff6b35;
    transition: color 0.2s, border-color 0.2s;
}
#promo-toggle-link:hover {
    color: #e55a2b;
    border-bottom-color: #e55a2b;
}

.promo-input-group #apply-promo-btn {
    padding: 8px 16px;
    background-color: #ff6b35;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
}

.promo-applied{
    display:flex;
    align-items: flex-start;
    border-radius: 6px;
    padding: 20px 20px;
    gap: 12px;
    background:#F8F9FA;
    border-radius:8px;
    position:relative;
} 

.promo-applied-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.promo-applied-label {
    font-size: 12px;
    color: #000000;
    font-weight: 400;
    opacity: 0.8;
}

.promo-applied-desc {
    color: #ff6b35;
    font-size: 14px;
    font-weight: 500;
}

.promo-applied-code {
    font-size: 16px;
    font-weight: 600;
    color: #ff6b35;
}
.remove-promo-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}
.remove-promo-btn:hover {
    background-color: rgba(0,0,0,0.05);
}

.checkout-button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}
.checkout-button-text {
    font-size: 16px;
    font-weight: 500;
}
.checkout-button-price {
    font-size: 18px;
    font-weight: 700;
}

.cart-actions {
    margin-top: auto;
}

.cart-actions button {
    text-align: right;
}

.clear-cart-btn {
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: #6c757d;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.clear-cart-btn:hover {
    color: #343a40;
    text-decoration: underline;
}

/* Gift Selection Modal Styles */
.gift-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
}

.gift-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.gift-modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 10% auto;
    padding: 25px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: slide-down 0.3s ease-out;
}

.gift-modal-content .close-cart-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s ease;
}
.gift-modal-content .close-cart-btn:hover { color: #000; }


form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@keyframes slide-down {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.gift-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}

.gift-modal-close:hover,
.gift-modal-close:focus {
    color: black;
}

.gift-modal-content h3 {
    margin-bottom: 20px;
    font-size: 22px;
    text-align: center;
    color: #333;
}

.gift-modal-list {
    max-height: 50vh;
    overflow-y: auto;
    margin: 0 -15px;
    padding: 0 15px;
}

.gift-item {
    display: flex;
    align-items: center;
    padding: 16px 8px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.gift-item.selected {
    border-color: #ff6b35;
    background-color: #fff5f3;
    box-shadow: 0 2px 8px rgba(255,107,53,0.2);
    border-radius: 20px;
}

.gift-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 15px;
}

.gift-item-details {
    flex-grow: 1;
}

.gift-item-name {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 5px 0;
}

.gift-item-desc {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.gift-item-selector {
    margin-left: 15px;
}

.gift-item-selector input[type="radio"] {
    display: none;
}

.gift-item-selector label {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #ccc;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.gift-item.selected .gift-item-selector label {
    border-color: #ff6b35;
}

.gift-item-selector input[type="radio"]:checked + label::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background-color: #ff6b35;
    border-radius: 50%;
}

.gift-modal-footer {
    margin-top: 25px;
    text-align: right;
}

.gift-modal-footer .order-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Old styles to remove or adjust */
.cart-subtotal {
    display: none; /* Replaced by .summary-line */
}
.promo-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 0; /* Let wrapper handle margin */
}
.promo-feedback {
    font-size: 13px;
    margin: 0px 20px;
}
.promo-feedback.error {
    color: #e63946;
}
.promo-feedback.notice {
    color: #6c757d;
}
 

 
/* === CART SIDEBAR REFACTORED OVERRIDES === */
.cart-sidebar, .cart-sidebar * {
    font-family: 'Rubik', sans-serif;
}

.cart-sidebar {
    background: #ffffff;
}

.cart-sidebar-header h3 {
    font-weight: 700;
    color: #333;
}

.quantity-control {
    border: none;
}

.quantity-btn {
    background: #f2f2f2;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background-color 0.25s ease;
}

.quantity-btn:hover {
    background: #e0e0e0;
}

.item-quantity {
    min-width: 24px;
    text-align: center;
}

.checkout-button {
    background: #ff6b00;
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 50px;
    transition: background 0.3s ease;
    justify-content: space-between !important;
}

.checkout-button:hover:not(:disabled) {
    background: #e85d00;
}

.checkout-button:disabled {
    background: #ccc;
    color: #777;
}

.remove-item-btn {
    font-size: 12px;
    color: #6c757d;
}

.promo-input-group{
    display:flex;
    gap:8px;
    padding: 16px 20px;
}

.promo-input-group input{
    flex:1;
    padding:8px 10px;
    border:1px solid #ccc;
    border-radius:6px;
    font-size:14px;
}

.promo-input-group input:focus-visible {
    border: 1px solid #ff6b35;
}

/* Promotions Section Styles */
.promotions-section {
    padding: 20px;
    background: #f8f9fa;
}

.promotions-section.no-promotions-list {
    padding: 20px 0px 0px 20px;
}

.promotions-container {
    display: flex;
    gap: 4px;
    flex-direction: column;
    padding-bottom: 12px;
}

.promotions-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.promotions-warning {
    font-size: 13px;
    color: #6c757d;
    text-align: left;
}

.nearest-promotion-info {
    font-size: 14px;
    font-weight: 500;
    color: #d96e2f;
    text-align: left;
    margin-top: 8px;
    padding: 8px 12px;
    background-color: #fef7f0;
    border: 1px solid #f4d5b0;
    border-radius: 6px;
}

.promotions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.promotion-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: #fff;
    border-radius: 24px;
    transition: all 0.2s ease;
}

.promotion-item:hover {
    border-color: #ff6b35;
    box-shadow: 0 2px 4px rgba(255, 107, 53, 0.1);
}

.promotion-item.selected {
    background: #fff;
}

.promotion-content {
    flex: 1;
    min-width: 0;
    padding-left: 8px;
}

.promotion-name {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin-bottom: 2px;
    line-height: 1.3;
}

.promotion-item.selected .promotion-name {
    color: #218E2A;
}

.promotion-bonus {
    font-size: 13px;
    color: #ff6b35;
    font-weight: 500;
    margin-bottom: 2px;
}

.promotion-description {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
}

.promotion-action {
    margin-left: 12px;
    flex-shrink: 0;
}

.promotion-btn {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #ff6b35;
    background: #fff;
    color: #ff6b35;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 84px;
}

.promotion-btn:hover {
    background: #ff6b35;
    color: #fff;
}

.promotion-btn.selected {
    background: #fff;
    color: #989898;
    border: 1px solid #989898;
}

.promotion-btn.selected:hover {
    background: #e55a2b;
}

/* Gift item specific */
.cart-item-card.gift-item {
    background: #fff7f3;
}

.gift-item .gift-item-info {
    margin-top: auto;
    text-align: right;
}

.gift-item .gift-price {
    color: #ff6b35;
    font-weight: 600;
}

/* === PROMOTION PROGRESS BAR STYLES === */

.promotion-progress-section {
    margin: 16px 0;
    padding: 0 13px 0 0;
}

.progress-bar-container {
    margin-bottom: 8px;
}

/* progress-bar растягивается на всю ширину внутри контейнера с отступами */
.progress-bar {
    width: 100%;
}

.progress-bar {
    position: relative;
    height: 8px;
    background-color: #f0f2f5;
    border-radius: 4px;
    overflow: visible;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFC2AC 0%, #FF6B35 100%);
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    will-change: width;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
    border-radius: 0 4px 4px 0;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.milestone {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}



@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 60px;
        height: 60px;
        opacity: 0;
    }
}

.milestone-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: #6c757d;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.milestone.achieved .milestone-dot,
.milestone.animate-achievement .milestone-dot {
    background-color: #FF6B35;
    color: white;
    transform: scale(1.15);
}

.milestone.animate-achievement .milestone-dot {
    animation: milestone-pulse 0.6s ease-out;
}

@keyframes milestone-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: scale(1.3);
        box-shadow: 0 6px 20px rgba(217, 110, 47, 0.6);
    }
    100% {
        transform: scale(1.15);
        box-shadow: 0 4px 12px rgba(217, 110, 47, 0.4);
    }
}

.milestone-label {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 400;
    color: #6c757d;
    white-space: nowrap;
    padding: 2px 6px;
    border-radius: 3px;
    backdrop-filter: blur(4px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.milestone.achieved .milestone-label,
.milestone.animate-achievement .milestone-label {
    color: #d96e2f;
    font-weight: 500;
    transform: translateX(-50%) translateY(-2px);
}

.progress-text {
    font-size: 12px;
    color: #6c757d;
    text-align: left;
    margin: 12px;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .milestone-label {
        font-size: 10px;
        top: 28px;
        padding: 1px 4px;
    }
    
    .milestone-dot {
        width: 18px;
        height: 18px;
        font-size: 9px;
    }
    
    .progress-text {
        font-size: 12px;
        margin-top: 6px;
    }
}

/* === CART QUANTITY CONTROL – обновлённый дизайн в стиле модального окна пиццы === */
.cart-sidebar .quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F4F4F4;
    border-radius: 16px;
    padding: 2px;
    backdrop-filter: blur(10px);
    border: none; /* переопределяем старый бордер */
}

.cart-sidebar .quantity-btn {
    width: 20px;
    height: 20px;
    border: none;
    background: #ff6b35;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0; /* убираем лишние внутренние отступы */
}

.cart-sidebar .quantity-btn:hover:not(:disabled) {
    background: #e55a2b;
    transform: scale(1.1);
}

.cart-sidebar .quantity-btn:disabled {
    background: #ddd;
    color: #999;
    cursor: not-allowed;
    transform: none;
}

.cart-sidebar .item-quantity {
    min-width: 16px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #333;    
}

/* === PROMO INPUT INLINE STYLE === */
.promo-input-inline {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    gap: 8px;
    padding:    0px 20px 16px 20px;
}

.promo-input-inline input {
    flex: 1;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.05); /* тонкая 5% линия */
    border-radius: 0;
    background: transparent;
    font-size: 14px;
    padding: 0px 4px 8px 0;
}

.promo-input-inline input:focus,
.promo-input-inline input:focus-visible {
    border: none; /* убираем рамку */
    border-bottom: 1px solid #ff6b35; /* оставляем только нижнюю линию */
    outline: none;
}

.promo-input-inline #apply-promo-btn {
    display: none; /* появляется при вводе */
    background: none;
    border: none;
    color: #ff6b35;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 0 8px;
}

.promo-applied-icon {
    width:24px;
    height:24px;
    border:2px solid #28a745;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}

.promo-applied-code {
    font-weight:600;
    color:#218E2A;
    font-size:16px;
}

.promo-applied-bonus {
    font-size:13px;
    color:#218E2A;
    margin-top:2px;
}

.remove-promo-btn {
    position:absolute;
    top:12px;
    right:20px;
}

.promo-error {
    display:flex;
    align-items:flex-start;
    gap:12px;
    padding: 20px;
    border-radius:8px;
    position:relative;
}

.promo-error-icon {
    width:24px;
    height:24px;
    border:2px solid #d0312d;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}

.promo-error-code {
    font-weight:600;
    color:#d0312d;
    font-size:16px;
}

.promo-error-text {
    font-size:13px;
    color:#d0312d;
    margin-top:2px;
}

.upsell-section {
    margin: 24px 0 12px 0;
}
.upsell-title {
    font-size:16px;
    font-weight:600;
    margin-bottom:12px;
    color:#000;
}
.upsell-list {
    display:flex;
    gap:12px;
    overflow-x:auto;
    padding-bottom:4px;
}
.upsell-item {
    width:96px;
    flex:0 0 auto;
    text-align:center;
    cursor:pointer;
}
.upsell-img {
    width:96px;
    height:96px;
    border-radius:16px;
    background:#f0f0f0;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}
.upsell-img img {
    max-width:80%;
    max-height:80%;
}
.upsell-name {
    margin-top:8px;
    font-size:13px;
    color:#000;
    line-height:1.2;
}

.upsell-stick-bottom {
    position:absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
}

.checkout-cart-title .cart-title-toggle-icon {
    display: none;
}

#cart-sidebar-content { position:relative; }

@media (max-width: 480px) {
    .upsell-img {
        width: 64px;
        height: 64px;
    }

    .upsell-item {
        width: 64px;
    }

    .upsell-name {
        font-size: 11px;
    }

    .upsell-title {
        font-size: 14px;
        font-weight: 500;
    }

    .cart-sidebar-header {
        padding: 12px 20px 12px 20px;
    }

    .promotions-section.no-promotions-list {
        padding: 20px 20px 0px 20px;
    }

    .clear-cart-btn {
        padding-top: 12px;
        font-size: 12px;
    }

    .cart-item-card {
        padding: 16px 0px;
    }

    .gift-modal-content {
        margin: 10% 20px;
    }

    .gift-modal-content h3 {
        font-size: 20px;
    }

    .cart-sidebar {
        width: 100% !important;
        right: -100% !important;
    }
    .checkout-sidebar {
        width: 100% !important;
        box-sizing: border-box;
    }
}

/* === TOAST POSITION FOR MOBILE (<768px) === */
@media (max-width: 768px) {
  #toast-container {
    top: auto;
    bottom: 20px;
    left: 10px;
    right: auto;
    transform: none;
    align-items: flex-start; /* выравниваем тосты к левому краю */
  }
  .toast {
    transform: translateX(-100%); /* вылетает слева */
  }
  .toast.show {
    transform: translateX(0);
  }

  .checkout-cart-title .cart-title-toggle-icon {
    display: inline-block;
  } 

  .promotions-warning {
    font-size: 10px;
  }

  .cart-sidebar {
    width: 80%;
    right: -80% ;
  }

  #checkout-button.order-button {
    width: 100% !important;
  }
}

@media (max-width: 1024px) and (min-width: 768px) {
    .cart-sidebar {
        width: 50%;
        right: -50% ;
      }
}