/* assets/css/style.css */
body {
    background: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-brand {
    font-weight: bold;
    color: #f0a500 !important;
}

.card {
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    background: #fff;
}
.card:hover {
    transform: scale(1.02);
}
.card-img-top {
    border-radius: 8px 8px 0 0;
}

.btn-warning {
    background-color: #f0a500;
    border-color: #f0a500;
    color: #1a1a2e;
}
.btn-warning:hover {
    background-color: #d49400;
    border-color: #d49400;
    color: #fff;
}

.hero-section {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 60px 0;
    margin-bottom: 30px;
}

.table-dark {
    background-color: #1a1a2e;
}

/* تحسينات للجوال */
@media (max-width: 800px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    .card .card-body h6 {
        font-size: 0.9rem;
    }
}
/* ===== تنسيق جدول السلة للجوال ===== */

.cart-table {

    width: 100%;

    font-size: 0.85rem; /* حجم خط مناسب للجوال */

    border-collapse: collapse;

}

.cart-table th {

    background: #1a1a2e;

    color: #fff;

    padding: 8px 5px;

    text-align: center;

    font-size: 0.75rem;

    white-space: nowrap; /* منع التفاف النص في الرأس */

}

.cart-table td {

    padding: 10px 5px;

    text-align: center;

    vertical-align: middle;

    border-bottom: 1px solid #eee;

}

/* عمود الصورة - يصغر على الجوال */

.cart-table .col-image {

    width: 60px;

}

.cart-table .col-image img {

    width: 50px;

    height: 50px;

    object-fit: cover;

    border-radius: 8px;

}

/* عمود الكمية (الأزرار) */

.cart-table .qty-btn {

    display: inline-flex;

    align-items: center;

    gap: 5px;

}

.cart-table .qty-btn button {

    width: 28px;

    height: 28px;

    border-radius: 50%;

    border: 1px solid #ddd;

    background: #f8f9fa;

    font-size: 1rem;

    font-weight: bold;

    cursor: pointer;

}

.cart-table .qty-btn span {

    min-width: 20px;

    font-weight: bold;

}

/* ===== جعل الجدول قابل للتمرير أفقيًا للشاشات الصغيرة جداً ===== */

.table-responsive {

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;

    margin-bottom: 15px;

}

/* ===== تحسين الأزرار في الأسفل ===== */

.cart-actions {

    display: flex;

    flex-wrap: wrap;

    justify-content: space-between;

    align-items: center;

    gap: 10px;

    margin-top: 15px;

}

.cart-actions .total {

    font-size: 1.2rem;

    font-weight: bold;

    color: #1a1a2e;

}

.cart-actions .btn {

    padding: 10px 20px;

    border-radius: 25px;

    font-size: 0.9rem;

}