/* Sidecart and Toast Styles */
@font-face {
    font-family: 'Montserrat';
    src: url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');
}

/* Toast Notification */
#cart-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 320px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    padding: 15px;
    display: none;
    border-radius: 4px;
    animation: slideInRight 0.3s ease;
}

#cart-toast .toast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

#cart-toast .toast-body {
    display: flex;
    gap: 12px;
}

#cart-toast .toast-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

#cart-toast .toast-info h6 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
}

#cart-toast .toast-info p {
    margin: 2px 0;
    font-size: 0.8rem;
    color: #666;
}

#cart-toast .toast-success-msg {
    margin-top: 5px;
    font-size: 0.8rem;
    color: #3CB532;
    font-weight: bold;
}

/* Sidecart Drawer */
#side-cart {
    position: fixed;
    top: 0;
    right: -450px;
    width: 400px;
    height: 100vh;
    background: #fff;
    z-index: 10001;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

#side-cart.open {
    right: 0;
}

#side-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
}

#side-cart .cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
}

#side-cart .cart-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

#side-cart .cart-empty-msg {
    background: #f0f7ff;
    border: 1px solid #cce5ff;
    color: #004085;
    padding: 10px;
    font-size: 0.85rem;
    border-radius: 4px;
    text-align: center;
}

#side-cart .cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f9f9f9;
}

#side-cart .cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

#side-cart .cart-item-info {
    flex-grow: 1;
}

#side-cart .cart-item-title {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.2;
}

#side-cart .cart-item-remove {
    font-size: 0.75rem;
    color: #999;
    text-decoration: underline;
    cursor: pointer;
    float: right;
}

#side-cart .qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    width: fit-content;
    height: 30px;
    margin-top: 10px;
}

#side-cart .qty-btn {
    border: none;
    background: none;
    padding: 0 10px;
    cursor: pointer;
}

#side-cart .qty-input {
    width: 30px;
    text-align: center;
    border: none;
    font-size: 0.8rem;
    font-weight: bold;
}

#side-cart .cart-footer {
    padding: 20px;
    background: #fff;
    border-top: 1px solid #eee;
}

#side-cart .subtotal-line {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    margin-bottom: 15px;
}

#side-cart .subtotal-line strong {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

#side-cart .shipping-box {
    margin-bottom: 20px;
}

#side-cart .total-section {
    margin-top: 15px;
}

#side-cart .total-price {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 5px;
}

#side-cart .total-price .price {
    font-size: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

#side-cart .installments-info {
    font-size: 0.8rem;
    color: #333;
    text-align: right;
    display: block;
    margin-bottom: 15px;
}

#side-cart .btn-checkout {
    background-color: #3CB532;
    color: #fff;
    width: 100%;
    border: none;
    padding: 12px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 10px;
}

#side-cart .btn-more {
    display: block;
    text-align: center;
    color: #333;
    text-decoration: underline;
    font-size: 0.85rem;
}

/* Promotional Shipping Styles */
.shipping-promo-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 10px;
    margin-top: 10px;
    border-radius: 4px;
    gap: 12px;
}

.shipping-promo-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    flex-shrink: 0;
}

.shipping-promo-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3CB532;
    display: none;
}

.shipping-promo-row.selected .shipping-promo-radio::after {
    display: block;
}

.shipping-promo-row.selected {
    background: #f0fff0 !important;
    border-color: #3CB532 !important;
}

.shipping-promo-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.shipping-promo-method {
    font-size: 0.85rem;
    font-weight: 700;
    color: #333;
}

.shipping-promo-arrival {
    font-size: 0.75rem;
    color: #666;
}

.shipping-promo-price-box {
    text-align: right;
    display: flex;
    flex-direction: column;
}

.shipping-promo-label {
    font-size: 0.85rem;
    color: #3CB532;
    font-weight: 700;
    text-transform: uppercase;
}

.shipping-old-price {
    font-size: 0.8rem;
    color: #999;
    text-decoration: line-through;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 480px) {
    #side-cart {
        width: 100vw;
        right: -100vw;
    }
}