/* Cart Page Luxury Styles - Dior Inspired */


.cart-section {
    padding: 80px 0;
    background: #fafafa;
    min-height: calc(100vh - 400px);
}

.cart-header-wrapper {
    text-align: center;
    margin-bottom: 60px;
}

.cart-main-title {
    font-size: 48px;
    color: #1a1a1a;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.cart-title-line {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff8c42, transparent);
    margin: 0 auto;
}

.cart-container {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 50px;
    margin-top: 60px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cart-item {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 30px;
    align-items: center;
    padding: 30px;
    background: white;
    border-radius: 0;
    border: 1px solid #e0e0e0;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.cart-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #ff9966, #ff8c42);
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.cart-item:hover::before {
    transform: scaleY(1);
}

.cart-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateX(5px);
}

.cart-item-image {
    width: 140px;
    height: 140px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.cart-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cart-item:hover .cart-item-image img {
    transform: scale(1.05);
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 0.5px;
}

.cart-item-variant {
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cart-item-price {
    font-size: 16px;
    color: #ff8c42;
    font-weight: 600;
    margin-top: 8px;
}

.cart-item-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    background: white;
}

.qty-btn-cart {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    transition: all 0.3s;
}

.qty-btn-cart:hover {
    background: #ff8c42;
    color: white;
}

.qty-display {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 14px;
}

.remove-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #e0e0e0;
    background: white;
    color: #999;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.remove-btn:hover {
    background: #ff8c42;
    color: white;
    border-color: #ff8c42;
}

.empty-cart {
    text-align: center;
    padding: 100px 40px;
    background: white;
    border: 1px solid #e0e0e0;
}

.empty-cart-icon {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 30px;
}

.empty-cart-text {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
}

.empty-cart-btn {
    padding: 15px 40px;
    background: #1a1a1a;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s;
}

.empty-cart-btn:hover {
    background: #ff8c42;
}

/* Cart Summary Sidebar */
.cart-summary {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 40px;
    height: fit-content;
    position: sticky;
    top: 120px;


}

.summary-title {
    font-size: 20px;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.summary-details {
    margin-bottom: 30px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 16px;
    color: #666;
}

.summary-row span:first-child {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
}

.summary-row span:last-child {
    font-weight: 600;
    color: #1a1a1a;
}


.summary-row.total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #1a1a1a;
    font-weight: 700;
    color: #1a1a1a;
    font-size: 18px;
}

.summary-row.total span:last-child {
    color: #ff8c42;
    font-size: 22px;
}

.summary-row.shipping {
    color: #999;
    font-size: 12px;
    font-style: italic;
}

.promo-section {
    margin: 30px 0;
    padding: 25px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.promo-label {
    font-size: 11px;
    color: #999;
    margin-bottom: 12px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.promo-controls {
    display: flex;
    gap: 10px;
}

@media (max-width: 1200px) and (min-width: 1020px) {
    .promo-controls {
        flex-direction: column;
    }

}

.promo-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    font-size: 13px;
    transition: border-color 0.3s;
}

.promo-input:focus {
    outline: none;
    border-color: #ff8c42;
}

.promo-btn {
    padding: 12px 24px;
    background: #1a1a1a;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.promo-btn:hover {
    background: #ff8c42;
}

.coupon-message {
    margin-top: 12px;
    font-size: 14px;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
}

.coupon-message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef5350;
}

.coupon-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #66bb6a;
}

.checkout-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #ff9966, #ff8c42);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s;
    margin-top: 25px;
    position: relative;
    overflow: hidden;
}

.checkout-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.checkout-btn:hover::before {
    width: 300px;
    height: 300px;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 140, 66, 0.4);
}

.continue-shopping-btn {
    width: 100%;
    padding: 14px;
    background: transparent;
    color: #1a1a1a;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s;
    margin-top: 12px;
}

.continue-shopping-btn:hover {
    border-color: #ff8c42;
    color: #ff8c42;
    background: rgba(255, 140, 66, 0.05);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .cart-container {
        grid-template-columns: 1fr 380px;
        gap: 40px;
    }
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
    .cart-container {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 40px;
    }

    .cart-summary {
        position: static;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .cart-section {
        padding: 40px 15px;
        min-height: calc(100vh - 200px);
    }

    .cart-header-wrapper {
        margin-bottom: 30px;
    }

    .cart-main-title {
        font-size: 28px;
        letter-spacing: 1px;
        margin-bottom: 15px;
    }

    .cart-container {
        margin-top: 30px;
        gap: 20px;
    }

    .cart-items {
        gap: 15px;
    }

    .cart-item {
        grid-template-columns: 80px 1fr auto;
        gap: 15px;
        padding: 15px;
        margin: 0 -5px;
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
    }

    .cart-item-details {
        gap: 8px;
    }

    .cart-item-name {
        font-size: 14px;
    }

    .cart-item-variant {
        font-size: 11px;
    }

    .cart-item-price {
        font-size: 14px;
    }

    .cart-item-actions {
        flex-direction: column;
        gap: 10px;
    }

    .quantity-selector {
        order: 1;
    }

    .remove-btn {
        order: 2;
    }
}

@media (max-width: 480px) {
    .cart-section {
        padding: 30px 10px;
    }

    .cart-main-title {
        font-size: 24px;
    }

    .cart-item {
        grid-template-columns: 60px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .cart-item-image {
        width: 60px;
        height: 60px;
    }

    .cart-item-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #f0f0f0;
        width: 100%;
    }

    .cart-item-details {
        min-width: 0;
        /* يمنع التمدد خارج الإطار */
    }

    .cart-item-name {
        font-size: 13px;
        word-wrap: break-word;
    }

    .cart-summary {
        padding: 20px 15px;
        margin: 0 -5px;
    }

    .summary-title {
        font-size: 16px;
    }

    .promo-controls {
        flex-direction: column;
    }

    .promo-btn {
        width: 100%;
    }

    .qty-display {
        width: 40px;
    }

    .empty-cart {
        padding: 60px 20px;
        margin: 0 -5px;
    }

    .empty-cart-icon {
        font-size: 60px;
    }

    .empty-cart-text {
        font-size: 16px;
    }
}

/* حل إضافي للتأكد من أن المحتوى لا يخرج عن الإطار */
.cart-container,
.cart-items,
.cart-summary,
.cart-item {
    max-width: 100%;
    box-sizing: border-box;
}

/* منع التمرير الأفقي على مستوى الصفحة */
body {
    overflow-x: hidden;
}


.empty-cart {
    text-align: center;
    padding: 140px 40px;
    background: #ffffff;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-cart-icon {
    font-size: 80px;
    /* حجم الأيقونة */
    color: linear-gradient(135deg, #ff9966, #ff8c42);
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.empty-cart-text {
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* النص تم نقله إلى JavaScript للدعم الترجمة */
.empty-cart-subtitle {
    display: block;
    font-size: 14px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    margin-top: 25px;
}

.empty-cart-btn {
    padding: 18px 55px;
    background: #1a1a1a;
    color: white;
    border: 2px solid #1a1a1a;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    margin-top: 40px;
}

.empty-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff8c42, #ff6b35);
    transition: left 0.4s ease;
    z-index: -1;
}

.empty-cart-btn:hover {
    border-color: #ff8c42;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 140, 66, 0.25);
}

.empty-cart-btn:hover::before {
    left: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .empty-cart {
        padding: 100px 30px;
    }

    .empty-cart-icon {
        font-size: 60px;
        margin-bottom: 35px;
    }

    .empty-cart-text {
        font-size: 22px;
    }

    .empty-cart-btn {
        padding: 16px 45px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .empty-cart {
        padding: 70px 20px;
    }

    .empty-cart-icon {
        font-size: 50px;
        margin-bottom: 25px;
    }

    .empty-cart-text {
        font-size: 18px;
    }

    .empty-cart-btn {
        padding: 14px 35px;
        width: 100%;
    }
}