/* متغيرات التصميم - محدثة لتطابق صفحة show.blade.php */

/* تضمين تنسيقات العروض للهواتف */
@import url('mobile-offers.css');

/* قواعد عامة لإخفاء عداد الكمية في الديسكتوب */
@media (min-width: 769px) {
    .mobile-quantity {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        position: absolute !important;
        left: -9999px !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
    }
}
:root {
    --primary: #97755b;
    --primary-light: rgba(151, 117, 91, 0.1);
    --secondary: #f8f9fa;
    --light: #ffffff;
    --dark: #333;
    --dark-light: rgba(51, 51, 51, 0.7);
    --gray: #666;
    --gray-light: #f1f1f1;
    --border: #e0e0e0;
    --success: #28a745;
    --error: #dc3545;
    --warning: #ffc107;
    --border-radius: 8px;
    --border-radius-sm: 4px;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

/* تصميم الصفحة العام */
.cart-section {
    padding: 30px 0;
    background-color: var(--light);
}

/* .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
} */

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-family: 'El Messiri', sans-serif;
    color: var(--dark);
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.breadcrumb a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.85rem;
}

.breadcrumb a:hover {
    color: var(--dark);
    text-decoration: underline;
}

.breadcrumb span {
    color: #ccc;
    margin: 0 10px;
    font-size: 0.8rem;
}

/* تخطيط السلة */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: flex-start;
}

.cart-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* حالة السلة الفارغة */
.empty-cart-state {
    background: var(--light);
    padding: 60px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--border);
}

.empty-cart-icon {
    width: 120px;
    height: 120px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.empty-cart-icon i {
    font-size: 3.5rem;
    color: var(--primary);
}

.empty-cart-state h3 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.empty-cart-state p {
    color: var(--gray);
    margin-bottom: 30px;
    font-size: 1.1rem;
    max-width: 400px;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    background-color: var(--primary);
    color: var(--light);
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.primary-btn:hover {
    background-color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

/* بطاقات المنتجات */
.cart-products {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-product-card {
    background: var(--light);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    display: grid
;
    grid-template-columns: 208px 1fr 50px;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.cart-product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.product-image-container {
    position: relative;
    padding: 20px;
    display: flex
;
    align-items: center;
    justify-content: center;
    /* background: var(--secondary); */
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
    transition: var(--transition);
}

.product-imagee {
    width: 112%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray);
}

.wishlist-btn.active {
    color: var(--error);
}

.wishlist-btn:hover {
    transform: scale(1.1);
    border-color: var(--error);
    color: var(--error);
    background-color: rgba(220, 53, 69, 0.1);
}

.product-details {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

/* تنسيق المتغيرات الجديدة */
.product-variant-container {
    margin-bottom: 12px;
}

.product-variant-box {
    border: 1px solid var(--border);
    border-radius: var(--border-radius-sm);
    padding: 12px;
    background-color: var(--light);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.variant-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.variant-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    min-width: 60px;
}

.variant-value {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 500;
}

.color-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: auto;
}

.color-box {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.color-name {
    font-size: 0.8rem;
    color: var(--gray);
    font-weight: 500;
}

/* تنسيق المتغيرات القديمة (للتوافق) */
.product-variant {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 10px;
}

.product-description {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-actions {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    gap: 15px;
    margin-right: 0.5rem;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--border-radius-sm);
    overflow: visible;
    gap: 8px;
    visibility: visible;
    opacity: 1;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    background: #6c757d;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: none !important; /* إزالة التأثيرات البطيئة */
    color: white;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    user-select: none !important; /* منع تحديد النص */
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

.quantity-btn:hover {
    background: #6c757d;
    color: white;
    transform: none !important; /* منع التأثيرات البطيئة */
}

.quantity-btn:disabled {
    opacity: 0.5 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
}

.quantity-input {
    width: 50px;
    height: 36px;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
    -moz-appearance: textfield;
    transition: none !important; /* إزالة التأثيرات البطيئة */
    user-select: none !important; /* منع تحديد النص */
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.price-section {
    text-align: left;
    min-width: 120px;
    visibility: visible !important;
    opacity: 1 !important;
}

.current-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
}

.original-price {
    font-size: 1.2rem;
    color: #575757;
    text-decoration: line-through;
    text-decoration-color: red;
    margin-top: 3px;
}

.product-controls {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
    background: var(--secondary);
}

.remove-btn {
    background: none;
    border: none;
    color: var(--error);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.remove-btn:hover {
    background: rgba(220, 53, 69, 0.1);
    transform: scale(1.1);
}



/* تأثير بصري لتحديث عداد السلة */
.cart-count.updated,
.cart-icon .count.updated,
.shopping-cart .count.updated,
.cart-badge.updated,
.cart-number.updated {
    animation: cartCountUpdate 0.5s ease-in-out;
}

@keyframes cartCountUpdate {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
        background-color: #ff6b6b;
        color: white;
    }
    100% {
        transform: scale(1);
    }
}

/* تحسين مظهر عداد السلة */
.cart-count,
.cart-icon .count,
.shopping-cart .count,
.cart-badge,
.cart-number {
    transition: all 0.3s ease;
}

/* ملخص الطلب الجانبي */
.cart-summary {
    position: sticky;
    top: 20px;
}

.summary-card {
    background: var(--light);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
    border: 1px solid var(--border);
}

.summary-title {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

.summary-title i {
    color: #2ecc71;
}

.summary-items {
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--gray);
}

.summary-item.discount {
    color: var(--success);
    font-weight: 600;
}

.shipping-option select {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
}

.coupon-section {
    margin: 25px 0;
    padding: 20px;
    background: var(--secondary);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border);
}

.coupon-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.coupon-header i {
    color: var(--primary);
}

.coupon-header h4 {
    font-size: 1rem;
    color: var(--dark);
    margin: 0;
}

.coupon-form {
    display: flex;
    gap: 10px;
}

.coupon-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
}

.coupon-btn {
    padding: 0 20px;
    background: var(--text-primary);
    color: var(--light);
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.coupon-btn:hover {
    background: var(--primary);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin: 25px 0;
    padding-top: 15px;
    border-top: 2px solid var(--border);
    font-size: 1.1rem;
    font-weight: 700;
}

.total-amount {
    color: var(--dark);
    font-size: 1.3rem;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.checkout-btn:hover {
    background: #28a745;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

.payment-methods {
    margin: 20px 0;
}

.payment-methods img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-sm);
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 15px;
}

.security-badge i {
    color: var(--success);
}

/* تحسينات للشاشات الكبيرة */
@media (min-width: 1200px) {
    .product-details {
        padding: 20px;
        gap: 15px;
    }
    
    .product-title {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .product-variant-container {
        margin-bottom: 15px;
    }
    
    .product-description {
        font-size: 1rem;
        margin-bottom: 18px;
    }
    
    .product-actions {
        gap: 20px;
        margin-top: auto;
    }
}

/* التصميم المتجاوب - محسن للهواتف */
@media (max-width: 1200px) {
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cart-summary {
        position: static;
        margin-top: 30px;
    }
    
    /* .container {
        padding: 0 15px;
    } */
}

@media (max-width: 768px) {
    .cart-section {
        padding: 20px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .breadcrumb {
        margin-bottom: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .cart-product-card {
        grid-template-columns: 100px 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .product-image-containerr {
        height: 120px;
        min-width: 120px;
        padding: 15px;
    }
    
    .product-imagee {
        max-height: 110px;
    }
    
    .product-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .product-description {
        font-size: 0.85rem;
        margin-bottom: 15px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .product-variant-container {
        margin-bottom: 12px;
    }
    
    .product-variant-box {
        padding: 10px;
        gap: 6px;
    }
    
    .variant-item {
        gap: 6px;
    }
    
    .variant-label {
        font-size: 0.8rem;
        min-width: 50px;
    }
    
    .variant-value {
        font-size: 0.85rem;
    }
    
    .color-box {
        width: 16px;
        height: 16px;
    }
    
    .color-name {
        font-size: 0.75rem;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .quantity-control {
        justify-content: center;
        gap: 6px;
    }
    
    .quantity-btn {
        width: 32px;
        height: 32px;
    }
    
    .quantity-input {
        width: 45px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    .price-section {
        text-align: center;
        min-width: auto;
    }
    
    .current-price {
        font-size: 1.1rem;
    }
    
    .original-price {
        font-size: 1rem;
    }
    
    .product-controls {
        grid-column: 1 / -1;
        flex-direction: row;
        padding: 12px;
        justify-content: space-between;
        gap: 15px;
        align-items: center;
    }
    
    /* تصميم عداد الكمية للهواتف */
    .mobile-quantity {
        display: flex;
        align-items: center;
        gap: 4px;
        background: var(--light);
        padding: 4px;
        border-radius: var(--border-radius-sm);
        /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
    }
    
    .remove-btn, .wishlist-btn {
        width: 40px;
        height: 40px;
    }
    


/* إخفاء عداد الكمية من قسم التحكمات في الديسكتوب - قواعد قوية */
.product-controls .mobile-quantity {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* إظهار عداد الكمية في الهواتف فقط */
@media (max-width: 768px) {
    .product-controls .mobile-quantity {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: static !important;
        left: auto !important;
        width: 42% !important;
        height: 101% !important;
        overflow: visible !important;
    }
}

/* إظهار عداد الكمية في الديسكتوب في قسم الإجراءات */
.desktop-quantity {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    align-items: center;
    gap: 8px;
    background: var(--light);
    padding: 8px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border);
}

/* قواعد إضافية لإخفاء عداد الكمية في الديسكتوب */
@media (min-width: 769px) {
    .product-controls .mobile-quantity {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        position: absolute !important;
        left: -9999px !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
    }
}

/* إخفاء عداد الكمية في الديسكتوب من قسم الإجراءات في الهواتف */
@media (max-width: 768px) {
    .desktop-quantity {
        display: none !important;
    }
    
    /* ضمان عدم اختفاء أزرار الكمية أثناء التحديث */
    .quantity-btn {
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transition: none !important; /* إزالة التأثيرات البطيئة */
    }
    
    .quantity-btn:disabled {
        opacity: 0.5 !important;
        pointer-events: none !important;
    }
    
    /* تحسين سرعة الاستجابة للهواتف */
    .quantity-input {
        transition: none !important;
        -webkit-transition: none !important;
        -moz-transition: none !important;
    }
}



.desktop-quantity .quantity-btn {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
}

.desktop-quantity .quantity-input {
    width: 50px;
    height: 32px;
    font-size: 0.9rem;
    text-align: center;
}
    

    
    .quantity-btn {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .quantity-input {
        width: 35px;
        height: 28px;
        font-size: 0.75rem;
        text-align: center;
    }
    

    
    /* .addons-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
     */
    .addon-product {
        padding: 15px;
    }
    
    .addon-image {
        height: 80px;
    }
    
    .addon-details h4 {
        font-size: 0.9rem;
    }
    
    .addon-price {
        font-size: 0.85rem;
    }
    
    .add-to-cart-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    /* ملخص الطلب للهواتف */
    .summary-card {
        padding: 20px;
    }
    
    .summary-title {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    .summary-items {
        gap: 12px;
    }
    
    .summary-item {
        padding: 10px 0;
        font-size: 0.9rem;
    }
    
    .coupon-section {
        margin: 20px 0;
        padding: 15px;
    }
    
    .coupon-header h4 {
        font-size: 0.95rem;
    }
    
    .coupon-input {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .coupon-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .offers-section {
        margin: 20px 0;
        padding: 15px;
    }
    
    .offers-header h4 {
        font-size: 0.95rem;
    }
    
    .offers-btn {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .summary-total {
        padding: 15px 0;
        font-size: 1.1rem;
    }
    
    .checkout-btn {
        padding: 15px;
        font-size: 1rem;
    }
    
    .payment-methods {
        margin: 20px 0;
    }
    
    .payment-methods img {
        max-width: 100%;
        height: auto;
    }
    
    .security-badge {
        padding: 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .cart-section {
        padding: 15px 0;
    }
    
    /* .container {
        padding: 0 10px;
    } */
    
    .section-header {
        margin-bottom: 25px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .breadcrumb {
        margin-bottom: 15px;
        font-size: 0.8rem;
    }
    
    .cart-product-card {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .product-image-containerr {
        height: 200px;
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
        padding: 20px;
    }
    
    .product-imagee {
        max-height: 180px;
    }
    
    .product-details {
        text-align: center;
    }
    
    .product-title {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .product-description {
        font-size: 0.9rem;
        text-align: center;
        margin-bottom: 15px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .product-variant-container {
        margin-bottom: 15px;
    }
    
    .product-variant-box {
        padding: 12px;
        gap: 8px;
    }
    
    .variant-item {
        /* justify-content: center; */
        gap: 8px;
    }
    
    .variant-label {
        font-size: 0.85rem;
        min-width: 60px;
    }
    
    .variant-value {
        font-size: 0.9rem;
    }
    
    .color-indicator {
        justify-content: center;
        margin-right: 0;
    }
    
    .color-box {
        width: 18px;
        height: 18px;
    }
    
    .color-name {
        font-size: 0.8rem;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .quantity-control {
        justify-content: center;
        gap: 8px;
        max-width: 200px;
        margin: 0;
    }
    
    .quantity-btn {
        width: 36px;
        height: 36px;
    }
    
    .quantity-input {
        width: 50px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .price-section {
        text-align: center;
    }
    
    .current-price {
        font-size: 1.2rem;
    }
    
    .original-price {
        font-size: 0.9rem;
    }
    
    .product-controls {
        grid-column: 1 / -1;
        flex-direction: row;
        padding: 15px;
        justify-content: space-between;
        gap: 20px;
        align-items: center;
    }
    
    /* تصميم عداد الكمية للهواتف الصغيرة */
    .mobile-quantity {
        display: flex;
        align-items: center;
        gap: 6px;
        background: var(--light);
        padding: 6px;
        border-radius: var(--border-radius-sm);
        /* box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15); */
    }
    
    .remove-btn, .wishlist-btn {
        width: 45px;
        height: 45px;
    }
    

    
    .quantity-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .quantity-input {
        width: 40px;
        height: 32px;
        font-size: 0.8rem;
        text-align: center;
    }
    
    /* .addons-grid {
        gap: 15px;
        padding: 5px 12px;
    } */
/*     
    .addons-grid {
        gap: 20px;
        padding: 8px 15px;
    } */
    
    /* .addon-product .luxury-product-image-containerr {
        height: 350px;
    }
     */
    .addon-product .luxury-product-info {
        padding: 5px 15px 0px 15px;
    }
    
    .addon-product .luxury-product-title {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .addon-product .luxury-current-price {
        font-size: 18px;
    }
    
    .addon-product .luxury-old-price {
        font-size: 1.1rem;
    }
    
    .addon-product .luxury-rating-cart-container {
        gap: 8px;
    }
    
    .addon-product .luxury-product-rating {
        width: 100px;
        padding: 4px 8px;
        height: 35px;
    }
    
    .addon-product .luxury-product-rating span {
        font-size: 16px;
    }
    
    .addon-product .luxury-action-btn {
        width: 70px;
        height: 32px;
        font-size: 12px;
    }
    
    .addon-product {
        width: 332px;
        min-width: 332px;
        margin: 0 8px;
    }
    
    .addon-product .luxury-action-btnn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    /* ملخص الطلب للهواتف الصغيرة */
    .summary-card {
        padding: 15px;
    }
    
    .summary-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .summary-items {
        gap: 10px;
    }
    
    .summary-item {
        padding: 8px 0;
        font-size: 0.85rem;
    }
    
    .coupon-section {
        margin: 15px 0;
        padding: 12px;
    }
    
    .coupon-header h4 {
        font-size: 0.9rem;
    }
    
    .coupon-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .coupon-input {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .coupon-btn {
        width: 100%;
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .offers-section {
        margin: 15px 0;
        padding: 12px;
    }
    
    .offers-header h4 {
        font-size: 0.9rem;
    }
    
    .offers-btn {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .summary-total {
        padding: 12px 0;
        font-size: 1rem;
    }
    
    .checkout-btn {
        padding: 15px;
        font-size: 1rem;
        width: 100%;
    }
    
    .payment-methods {
        margin: 15px 0;
    }
    
    .security-badge {
        padding: 10px;
        font-size: 0.8rem;
    }
}

/* تحسينات إضافية للهواتف الصغيرة جداً */
@media (max-width: 480px) {
    .cart-product-card {
        padding: 12px;
    }
    
    .product-image-containerr {
        height: 257px;
        max-width: 259px;
        padding: 15px;
    }
    
    .product-imagee {
        max-height: 270px;
    }
    
    .product-title {
        font-size: 1rem;
    }
    
    .product-description {
        font-size: 0.85rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .quantity-control {
        max-width: 180px;
    }
    
    /* تصميم عداد الكمية للهواتف الصغيرة جداً */
    .mobile-quantity {
        display: flex;
        align-items: center;
        gap: 4px;
        background: var(--light);
        padding: 4px;
        border-radius: var(--border-radius-sm);
        /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
    }
    
    .quantity-btn {
        width: 32px;
        height: 32px;
    }
    
    .quantity-input {
        width: 45px;
        height: 32px;
    }
    
    /* تصميم عداد الكمية في قسم التحكمات للهواتف الصغيرة جداً */
    .mobile-only-quantity {
        display: flex;
        align-items: center;
        gap: 4px;
        background: var(--light);
        padding: 4px;
        border-radius: var(--border-radius-sm);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .quantity-btn {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    
    .quantity-input {
        width: 42px;
        height: 28px;
        font-size: 16px;
        text-align: center;
    }
    
    .current-price {
        font-size: 16px;
    }
    
    .summary-card {
        padding: 12px;
    }
    
    .summary-title {
        font-size: 1rem;
    }
    
    .summary-item {
        font-size: 0.8rem;
    }
    
    /* .addon-product .luxury-product-image-container {
        height: 300px;
    } */
    
    .addon-product .luxury-product-info {
        padding: 8px 20px 24px 20px;
    }
    
    .addon-product .luxury-product-title {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .addon-product .luxury-current-price {
        font-size: 22px;
    }
    
    .addon-product .luxury-old-price {
        font-size: 1rem;
    }
    
    .addon-product .luxury-rating-cart-container {
        gap: 6px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .addon-product .luxury-product-rating {
        min-width: 70px;
        padding: 3px 9px;
        height: 30px;
        font-size: 11px;
    }
    
    .addon-product .luxury-product-rating span {
        font-size: 18px;
    }
    
    .addon-product .luxury-action-btn {
        width: 104px;
        height: 50px;
        font-size: 20px;
    }
    
    .addon-product {
        width: 300px;
        min-width: 300px;
        margin: 0 6px;
    }
    
    .addon-product .luxury-action-btnn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .addon-product {
        width: 280px;
        min-width: 280px;
        margin: 0 5px;
    }
    
    /* .addons-grid {
        gap: 12px;
        padding: 3px 10px;
    } */
}

/* قسم العروض المتاحة */
.offers-section {
    margin: 25px 0;
    padding: 20px;
    background: var(--secondary);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border);
}

.offers-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.offers-header i {
    color: #ff6b35;
}

.offers-header h4 {
    font-size: 1rem;
    color: var(--dark);
    margin: 0;
}

.offers-btn {
    width: 100%;
    padding: 12px 15px;
    background: #007bff;
    color: white;
    border: 1px solid #007bff;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
}

.offers-btn:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.offers-btn i {
    font-size: 1rem;
}

/* القائمة المنبثقة للعروض - قائمة منسدلة من الأسفل (للشاشات الصغيرة) */
.offers-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 35%);
    z-index: 1000;
}

.offers-modal-content {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--light);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
    max-height: 85vh;
    overflow: hidden;
    animation: slideUpFromBottom 0.4s ease-out;
    border: 1px solid var(--border);
}

@keyframes slideUpFromBottom {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.offers-modal-header {
    position: relative;
    padding: 30px 30px 25px;
    text-align: center;
    background: var(--light);
    border-bottom: 1px solid var(--border);
}

.offers-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #dc3545;
    border: 1px solid #dc3545;
    font-size: 1.2rem;
    color: white;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.offers-modal-close:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.1);
}

.offers-modal-header h3 {
    font-size: 1.8rem;
    color: var(--dark);
    margin: 0 0 10px 0;
    font-weight: 700;
}

.offers-modal-header p {
    color: var(--gray);
    margin: 0;
    font-size: 1rem;
}

.offers-list {
    padding: 30px;
    max-height: 400px;
    overflow-y: auto;
}

.offer-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 20px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    background: var(--light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.offer-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.offer-item.offer-cashback {
    background: linear-gradient(135deg, var(--success) 0%, #2d8f47 100%);
    color: var(--light);
}

.offer-item.offer-welcome {
    background: var(--light);
    border: 2px dashed var(--primary);
    color: var(--dark);
}

.offer-item.offer-discount {
    background: var(--light);
    border: 2px solid var(--border);
    color: var(--dark);
}

.offer-item.offer-discount:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.offer-item.offer-discount .offer-icon {
    background: var(--primary-light);
    color: var(--primary);
}

.offer-item.offer-discount.applied {
    border-color: var(--success);
    background: rgba(40, 167, 69, 0.05);
}

.offer-item.offer-discount.applied .offer-icon {
    background: var(--success);
    color: var(--light);
}

/* تنسيق الخصومات المطبقة */
.offer-item.offer-discount.offer-applied {
    background: var(--light);
    border-color: var(--success);
    color: var(--dark);
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(40, 167, 69, 0.3);
}

.offer-item.offer-discount.offer-applied:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(40, 167, 69, 0.3);
}

.offer-item.offer-discount.offer-applied .offer-icon {
    background: var(--success);
    color: var(--light);
}

.offer-item.offer-discount.offer-applied .offer-title {
    color: var(--dark);
}

.offer-item.offer-discount.offer-applied .offer-description {
    color: var(--gray);
    opacity: 0.9;
}

.offer-item.offer-discount.offer-applied .offer-code {
    background: var(--success);
    color: var(--light);
}

.offer-item.offer-discount.offer-applied .offer-remaining {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
}

/* تنسيق زر الإزالة */
.remove-offer-btn {
    padding: 12px 20px;
    background: #dc3545;
    color: white;
    border: 2px solid #dc3545;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.remove-offer-btn:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-2px);
}

.remove-offer-btn i {
    font-size: 0.9rem;
}

/* تنسيق الخصم المطبق في ملخص الطلب */
.summary-item.applied-discount {
    background: var(--secondary);
    color: var(--dark);
    padding: 12px 15px;
    border-radius: var(--border-radius-sm);
    margin: 15px 0;
    border: 1px solid var(--success);
}

.summary-item.applied-discount span:first-child {
    font-weight: 600;
    font-size: 1rem;
}

.discount-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.discount-name {
    font-size: 0.9rem;
    opacity: 0.9;
}

.discount-value {
    font-weight: 700;
    font-size: 1.1rem;
}

/* تنسيق الخصومات غير المتاحة */
.offer-item.offer-discount.offer-disabled {
    opacity: 0.7;
    background: var(--secondary);
    border-color: var(--gray);
    cursor: not-allowed;
}

.offer-item.offer-discount.offer-disabled:hover {
    transform: none;
    box-shadow: var(--box-shadow);
    border-color: var(--gray);
    background: var(--secondary);
}

.offer-item.offer-discount.offer-disabled .offer-icon {
    background: var(--gray);
    color: var(--light);
}

.offer-item.offer-discount.offer-disabled .offer-title {
    color: var(--gray);
}

.offer-item.offer-discount.offer-disabled .offer-description {
    color: var(--gray);
}

/* تنسيق حالة "غير متاح" */
.offer-disabled-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--secondary);
    color: var(--gray);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

.offer-disabled-status i {
    font-size: 0.9rem;
}

/* تنسيق المبلغ المتبقي */
.offer-remaining {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 16px;
    background: var(--warning);
    color: var(--dark);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.offer-remaining i {
    color: var(--dark);
    font-size: 0.9rem;
}

/* تنسيق سبب عدم إمكانية التطبيق */
.offer-reason {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 16px;
    background: rgba(220, 53, 69, 0.1);
    color: var(--error);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.offer-reason i {
    color: var(--error);
    font-size: 0.9rem;
}

/* تنسيق المنتج المستهدف */
.offer-target {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 6px 12px;
    background: rgba(151, 117, 91, 0.1);
    color: var(--primary);
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(151, 117, 91, 0.2);
}

.offer-target i {
    color: var(--primary);
    font-size: 0.85rem;
}

/* تنسيق تلميح الإجراء */
.offer-action-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 6px 12px;
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(23, 162, 184, 0.2);
}

.offer-action-hint i {
    color: #17a2b8;
    font-size: 0.85rem;
}

/* تنسيق الإشعارات */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    min-width: 300px;
    max-width: 500px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-left: 4px solid;
    animation: slideInRight 0.3s ease-out;
}

.toast-notification.toast-success {
    border-left-color: #28a745;
}

.toast-notification.toast-error {
    border-left-color: #dc3545;
}

.toast-notification.toast-warning {
    border-left-color: #ffc107;
}

.toast-notification.toast-info {
    border-left-color: #17a2b8;
}

.toast-content {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 12px;
}

.toast-content i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast-success .toast-content i {
    color: #28a745;
}

.toast-error .toast-content i {
    color: #dc3545;
}

.toast-warning .toast-content i {
    color: #ffc107;
}

.toast-info .toast-content i {
    color: #17a2b8;
}

.toast-message {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #666;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.offer-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.offer-item.offer-welcome .offer-icon {
    background: var(--primary-light);
    color: var(--primary);
}

.offer-icon i {
    font-size: 1.6rem;
}

.offer-content {
    flex: 1;
}

.offer-title {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1.1rem;
    line-height: 1.3;
}

.offer-description {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.4;
}

.offer-code {
    background: var(--primary);
    color: var(--light);
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 10px;
}

/* تم حذف offers-modal-footer لإزالة زر التطبيق من أسفل القائمة */

.offer-action {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.offer-action .apply-offer-btn {
    padding: 12px 20px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.offer-action .apply-offer-btn:hover {
    background: #28a745;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

.applied-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--success);
    color: var(--light);
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.no-offers-message {
    text-align: center;
    padding: 50px 30px;
    color: var(--gray);
}

.no-offers-message i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--gray-light);
}

.no-offers-message p {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.no-offers-message small {
    font-size: 1rem;
    color: var(--gray);
}

.pulse-animation {
    animation: pulse 1s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* حالة الجسم عند فتح القائمة المنبثقة */
body.modal-open {
    overflow: hidden;
}

/* التصميم المتجاوب للقائمة المنبثقة - محسن للهواتف */
@media (max-width: 768px) {
    .offers-modal {
        padding: 0;
    }
    
    .offers-modal-content {
        width: 100%;
        margin: 0;
        max-height: 90vh;
        overflow-y: auto;
        border-radius: 20px 20px 0 0;
    }
    
    .offers-modal-header {
        padding: 15px 15px 10px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .offers-modal-header h3 {
        font-size: 1.2rem;
        margin: 0;
    }
    
    .offers-modal-header p {
        font-size: 0.9rem;
        margin: 0;
    }
    
    .offers-modal-close {
        position: absolute;
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
    }
    
    .offers-list {
        padding: 15px;
        gap: 12px;
    }
    
    .offer-item {
        padding: 18px;
        gap: 15px;
        border-radius: 14px;
    }
    
    .offer-icon {
        width: 55px;
        height: 55px;
        min-width: 55px;
    }
    
    .offer-icon i {
        font-size: 1.3rem;
    }
    
    .offer-content {
        gap: 10px;
    }
    
    .offer-title {
        font-size: 1.1rem;
        font-weight: 700;
        margin-bottom: 6px;
    }
    
    .offer-description {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 8px;
    }
    
    .offer-code {
        font-size: 0.85rem;
        padding: 8px 14px;
        margin: 6px 0;
        background: #007bff;
        color: white;
        border-radius: 18px;
        font-weight: 600;
        display: inline-block;
    }
    
    .offer-remaining {
        font-size: 0.85rem;
        padding: 8px 14px;
        margin: 4px 0;
        display: inline-block;
    }
    
    .offer-action {
        gap: 10px;
        margin-top: 6px;
    }
    
    .apply-offer-btn, .remove-offer-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
        border-radius: 22px;
        font-weight: 600;
        min-width: 110px;
    }
    
    .offer-disabled-status {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    /* تم حذف offers-modal-footer */
    
    .no-offers-message {
        padding: 30px 20px;
    }
    
    .no-offers-message i {
        font-size: 3rem;
        margin-bottom: 15px;
    }
    
    .no-offers-message p {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .no-offers-message small {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .offers-modal {
        padding: 0;
    }
    
    .offers-modal-content {
        margin: 0;
        max-height: 95vh;
        border-radius: 20px 20px 0 0;
    }
    
    .offers-modal-header {
        padding: 12px 12px 8px;
    }
    
    .offers-modal-header h3 {
        font-size: 1.1rem;
    }
    
    .offers-modal-header p {
        font-size: 0.85rem;
    }
    
    .offers-modal-close {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
    }
    
    .offers-list {
        padding: 12px;
        gap: 10px;
    }
    
    .offer-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 15px;
        border-radius: 12px;
    }
    
    .offer-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        margin: 0 auto;
    }
    
    .offer-icon i {
        font-size: 1.2rem;
    }
    
    .offer-content {
        gap: 8px;
        text-align: center;
        width: 100%;
    }
    
    .offer-title {
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 8px;
    }
    
    .offer-description {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 8px;
    }
    
    .offer-code {
        font-size: 0.8rem;
        padding: 6px 12px;
        margin: 8px auto;
        display: inline-block;
        background: #007bff;
        color: white;
        border-radius: 15px;
        font-weight: 600;
    }
    
    .offer-remaining {
        font-size: 0.8rem;
        padding: 6px 12px;
        margin: 4px auto;
        display: inline-block;
    }
    
    .offer-action {
        gap: 8px;
        justify-content: center;
        width: 100%;
        margin-top: 8px;
    }
    
    .apply-offer-btn, .remove-offer-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        border-radius: 20px;
        font-weight: 600;
        min-width: 100px;
    }
    
    .offer-disabled-status {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    /* تم حذف offers-modal-footer */
    
    .no-offers-message {
        padding: 25px 15px;
    }
    
    .no-offers-message i {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }
    
    .no-offers-message p {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }
    
    .no-offers-message small {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .offers-modal-content {
        margin: 0;
        border-radius: 20px 20px 0 0;
    }
    
    .offers-modal-header {
        padding: 10px 10px 6px;
    }
    
    .offers-modal-header h3 {
        font-size: 1rem;
    }
    
    .offers-modal-header p {
        font-size: 0.8rem;
    }
    
    .offers-modal-close {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
    }
    
    .offers-list {
        padding: 10px;
        gap: 8px;
    }
    
    .offer-item {
        padding: 12px;
        gap: 10px;
        border-radius: 10px;
    }
    
    .offer-icon {
        width: 45px;
        height: 45px;
        min-width: 45px;
        margin: 0 auto;
    }
    
    .offer-icon i {
        font-size: 1.1rem;
    }
    
    .offer-title {
        font-size: 0.95rem;
        font-weight: 700;
        margin-bottom: 6px;
    }
    
    .offer-description {
        font-size: 0.8rem;
        line-height: 1.3;
        margin-bottom: 6px;
    }
    
    .offer-code {
        font-size: 0.75rem;
        padding: 5px 10px;
        margin: 6px auto;
        background: #007bff;
        color: white;
        border-radius: 12px;
        font-weight: 600;
        display: inline-block;
    }
    
    .offer-remaining {
        font-size: 0.75rem;
        padding: 5px 10px;
        margin: 3px auto;
        display: inline-block;
    }
    
    .apply-offer-btn, .remove-offer-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
        border-radius: 18px;
        font-weight: 600;
        min-width: 90px;
    }
    
    .offer-disabled-status {
        padding: 5px 8px;
        font-size: 0.75rem;
    }
    
    /* تم حذف offers-modal-footer */
}

/* الشريط الثابت للهواتف المحمولة */
.mobile-fixed-bottom {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--light);
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 15px 20px;
    padding-bottom: calc(15px + env(safe-area-inset-bottom));
}

.mobile-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.mobile-total {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mobile-total-label {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 500;
}

.mobile-total-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
}

.mobile-checkout-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    min-width: 140px;
    justify-content: center;
}

.mobile-checkout-btn:hover {
    background: #28a745;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

/* إظهار الشريط الثابت للهواتف */
@media (max-width: 768px) {
    .mobile-fixed-bottom {
        display: block;
    }
    
    /* إضافة مساحة في الأسفل لتجنب تداخل الشريط الثابت */
    .cart-main {
        padding-bottom: 100px;
    }
    
    /* إخفاء المجموع النهائي وزر إتمام الشراء الأصلي في الهواتف */
    .summary-total,
    .checkout-btn {
        display: none;
    }
}

@media (max-width: 576px) {
    /* تحسين الشريط الثابت للهواتف الصغيرة */
    .mobile-fixed-bottom {
        display: block;
        padding: 12px 15px;
    }
    
    .mobile-summary {
        gap: 12px;
    }
    
    .mobile-total-amount {
        font-size: 1.2rem;
    }
    
    .mobile-checkout-btn {
        padding: 10px 16px;
        font-size: 0.95rem;
        min-width: 120px;
    }
    
    /* إضافة مساحة في الأسفل */
    .cart-main {
        padding-bottom: 90px;
    }
}


/* ============================================= */
/*  مؤشر التحميل لزر الحذف (الإضافة الجديدة)  */
/* ============================================= */

/* ----- 1. تجهيز الزر ----- */
.remove-btn {
    position: relative; /* ضروري لتحديد موضع مؤشر التحميل */
    transition: background-color 0.2s, border-color 0.2s;
}

/* ----- 2. حالة التحميل (عندما نضيف كلاس .loading) ----- */
.remove-btn.loading {
    cursor: wait; /* تغيير شكل المؤشر للإشارة إلى الانتظار */
}

/* إخفاء أيقونة سلة المهملات أثناء التحميل */
.remove-btn.loading i {
    visibility: hidden;
    opacity: 0;
}

/* ----- 3. تصميم مؤشر التحميل (Spinner) ----- */
.remove-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;

    /* الأبعاد */
    width: 20px;
    height: 20px;
    margin-top: -10px;  /* نصف الارتفاع (للتوسيط العمودي) */
    margin-left: -10px; /* نصف العرض (للتوسيط الأفقي) */
    
    /* الشكل والحركة */
    border: 3px solid rgba(220, 53, 69, 0.2); /* لون خلفية الدائرة (أحمر باهت) */
    border-top-color: #dc3545; /* لون الجزء المتحرك (أحمر واضح) */
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ----- 4. تعريف حركة الدوران ----- */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== قسم الإضافات ===== */
/* .cart-addons {
    margin-top: 40px;
    padding: 30px 0;
}

.addons-header {
    text-align: center;
    margin-bottom: 30px;
}

.addons-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.addons-title i {
    color: var(--primary);
}

.addons-subtitle {
    color: var(--gray);
    font-size: 1rem;
    margin: 0;
}

.addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
} */

/* تصميم متجاوب للشبكة */
/* @media (max-width: 768px) {
    .addons-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .addons-title {
        font-size: 1.5rem;
    }
} */

.products-slider-wrapper {
    /* overflow-x: auto; */
    overflow-y: hidden;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: #97755b4f #f8f9fa;
    -webkit-overflow-scrolling: touch;
}


/* =================================================================== */
/*            التحكم في ظهور وإخفاء القائمة المنبثقة                   */
/* =================================================================== */

/* عند إضافة كلاس .is-visible، تبدأ القائمة بالظهور */
.offers-modal.is-visible {
    display: block; /* للهواتف، ستظهر من الأسفل بفضل القواعد التالية */
}

@keyframes slideUpFromBottom {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =================================================================== */
/*   تعديلات القائمة المنبثقة للشاشات الكبيرة (أكبر من 768px)         */
/* =================================================================== */
@media (min-width: 769px) {
    
    /* تغيير طريقة عرض الحاوية الرئيسية لتوسيط المحتوى */
    .offers-modal.is-visible {
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    /* إعادة تعريف شكل المحتوى ليتناسب مع الشاشات الكبيرة */
    .offers-modal-content {
        /* *** أهم التعديلات هنا *** */
        position: relative !important; /* إزالة التثبيت لتستجيب للتوسيط */
        bottom: auto !important;       /* إلغاء التموضع في الأسفل */
        left: auto !important;         /* إلغاء التموضع في اليسار */
        
        width: 100%;
        max-width: 650px;   /* تحديد عرض مناسب */
        
        border-radius: 16px !important; /* تطبيق حواف دائرية على كل الزوايا */
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
        
        max-height: 90vh;   /* تحديد أقصى ارتفاع */
        display: flex;
        flex-direction: column;

        /* تطبيق أنيميشن الظهور الخاص بالشاشات الكبيرة */
        animation: fadeInAndScale 0.4s ease-out !important;
    }

    /* جعل قائمة العروض قابلة للتمرير بشكل مستقل */
    .offers-list {
        overflow-y: auto;
        flex-grow: 1;
    }

    /* تعريف أنيميشن الظهور الجديد */
    @keyframes fadeInAndScale {
        from {
            opacity: 0;
            transform: scale(0.95);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }
}

/* =================================================================== */
/*   تعديلات إضافية للشاشات الكبيرة جداً (أكبر من 1200px)           */
/* =================================================================== */
@media (min-width: 1200px) {
    .offers-modal-content {
        max-width: 700px;   /* عرض أكبر للشاشات الكبيرة جداً */
    }
}
