/* نجوم التقييم داخل كارت المنتج */
.product-card .fa-star,
.product-card .fa-star-o {
    font-size: 1.3rem;
    color: #ff9800;
    margin: 0 1px;
    vertical-align: middle;
.product-card .fa-star-o {
    color: #ccc;
/* تحسين بطاقات المنتجات على الجوال */
@media (max-width: 600px) {
    .product-card {
        min-height: 210px !important;
        border-radius: 12px !important;
        padding: 0.5rem 0.3rem !important;
    }
    .product-card .card-img-container {
        height: 80px !important;
    }
    .product-card .card-img-top {
        max-height: 80px !important;
        height: 80px !important;
    }
    .product-card .card-body {
        padding: 0.4rem 0.2rem 0.3rem 0.2rem !important;
    }
    .product-card .card-title {
        font-size: 0.95rem !important;
        margin-bottom: 0.2rem !important;
    }
    .product-card .product-price {
        font-size: 0.95rem !important;
        margin: 0.2rem 0 !important;
    }
    .product-card .price-currency {
        font-size: 0.8rem !important;
    }
    .product-card .btn {
        font-size: 0.95rem !important;
        padding: 0.4rem 0 !important;
    }
}
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;700;900&display=swap');
/* General styling */
body {
    font-family: 'Tajawal', Arial, sans-serif;
    background-color: #f8f9fa;
}

/* RTL specific adjustments */
.btn .fas,
.btn .fa {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* Card hover effect */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Product image styling */
.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Navbar brand */
.navbar-brand {
    font-weight: bold;
}

/* Table responsive on small screens */
.table-responsive {
    margin-bottom: 1rem;
}

/* Form controls */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25);
}

/* Button hover states */
.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-danger:hover {
    background-color: #bb2d3b;
    border-color: #b02a37;
}

/* Modal animations */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: none;
}

/* Cart badge */
.badge {
    transition: transform 0.2s;
}

.badge:hover {
    transform: scale(1.1);
}

/* Cart Styles */
.cart-item {
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    align-items: stretch;
    flex-direction: column;
}

.cart-item:hover {
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

/* ضمان ظهور المنتجات بجانب بعض في نفس الصف داخل السلة */
.cart-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.cart-row .col-md-6 {
    flex: 0 0 48%;
    max-width: 48%;
}
.cart-item .placeholder-image {
    width: 100%;
    padding-bottom: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dee2e6;
    font-size: 2rem;
}

.cart-summary {
    background: #fff;
}

/* Product Card Styles */
.product-card {
    border: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    box-shadow: none !important;
    background: transparent !important;
    transition: none !important;
}
.product-card.no-shadow {
    box-shadow: none !important;
    border: none !important;
}
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.product-card .card-img-container {
    display: none;
}
.product-img-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
    border: 2px solid #eee;
    margin-bottom: 10px;
}
.product-img-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: none !important;
}
}

.product-card .card-img-top {
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.product-card .card-body {
    padding: 1.5rem;
}

.product-card .card-title {
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.product-card .product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0d6efd;
    margin: 1rem 0;
}

.product-card .price-currency {
    font-size: 1rem;
    font-weight: 400;
    color: #6c757d;
}

/* تحديث الألوان والخطوط الأساسية */
body {
    background: #f7f8fa;
    font-family: 'Tajawal', Arial, sans-serif;
}
.navbar, .bg-primary {
    background: linear-gradient(90deg, #ff6f00 0%, #ff9800 100%);
    color: #fff;
}
.btn-primary {
    background: linear-gradient(90deg, #ff9800 0%, #ff6f00 100%);
    border: none;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255,111,0,0.08);
}
.btn-primary:hover {
    background: linear-gradient(90deg, #ff6f00 0%, #ff9800 100%);
    color: #fff;
}
.category-card, .product-card, .card {
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    transition: none !important;
}
.category-card:hover, .product-card:hover, .card:hover {
    box-shadow: none !important;
    transform: none !important;
}
.product-card .card-img-container {
    height: 180px;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
}
.product-card .card-img-top {
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.product-card:hover .card-img-top {
    transform: scale(1.07);
}
.product-card .card-body {
    padding: 1.2rem;
}
.product-card .card-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #ff6f00;
}
.product-card .product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ff9800;
}
/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.07);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0.5rem 0;
}
.bottom-nav a {
    color: #ff9800;
    font-size: 1.3rem;
    text-align: center;
    flex: 1;
    transition: color 0.2s;
}
.bottom-nav a.active, .bottom-nav a:hover {
    color: #ff6f00;
}
/* قوائم جانبية */
.side-menu {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.07);
    padding: 1rem;
    margin-bottom: 1rem;
}
.side-menu .menu-title {
    font-weight: 700;
    color: #ff6f00;
    margin-bottom: 1rem;
}
.side-menu ul {
    list-style: none;
    padding: 0;
}
.side-menu ul li {
    margin-bottom: 0.7rem;
}
.side-menu ul li a {
    color: #333;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.side-menu ul li a:hover {
    color: #ff9800;
}
/* سلايدر الإعلانات */
.carousel-inner img {
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(255,111,0,0.08);
}
/* تحسينات عامة */
.alert-info {
    background: linear-gradient(90deg, #fffde4 0%, #ffe7c7 100%);
    color: #ff9800;
    border: none;
}
.footer {
    background: #fff3e0;
    color: #ff9800;
    padding: 1.5rem 0;
    border-top: 2px solid #ff9800;
    margin-top: 2rem;
}

/* تأثيرات إضافية للمؤثرات البصرية */
@keyframes cart-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 152, 0, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 152, 0, 0.8), 0 0 30px rgba(255, 152, 0, 0.6); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.btn-floating {
    animation: float 3s ease-in-out infinite;
}

.btn-glow {
    animation: glow 2s ease-in-out infinite;
}

/* تأثيرات النجاح */
.success-celebration {
    position: relative;
    overflow: hidden;
}

.success-celebration::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(76, 175, 80, 0.1), transparent);
    animation: success-sweep 1s ease-out;
}

@keyframes success-sweep {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* تأثيرات hover محسنة */
.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

/* تأثيرات الكونفيتي */
@keyframes confetti-1 {
    0% {
        transform: translateY(0px) rotateZ(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(1000px) rotateZ(720deg);
        opacity: 0;
    }
}

@keyframes confetti-2 {
    0% {
        transform: translateY(0px) rotateZ(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(1000px) rotateZ(-720deg);
        opacity: 0;
    }
}

/* تأثيرات النبضة للعناصر المهمة */
.pulse-on-hover:hover {
    animation: pulse 0.6s ease-in-out;
}

/* تأثيرات خاصة لصفحة النجاح */
.celebration-title {
    animation: rainbow-text 3s ease-in-out infinite, bounce 2s ease-in-out infinite;
}

@keyframes rainbow-text {
    0% { color: #ff6f00; }
    16% { color: #ff9800; }
    32% { color: #4caf50; }
    48% { color: #2196f3; }
    64% { color: #9c27b0; }
    80% { color: #e91e63; }
    100% { color: #ff6f00; }
}

/* تأثيرات متقدمة للكونفيتي */
.confetti-particle {
    position: fixed;
    pointer-events: none;
    z-index: 999999;
}

.confetti-square {
    width: 12px;
    height: 12px;
}

.confetti-circle {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.confetti-triangle {
    width: 0;
    height: 0;
    border-style: solid;
}

/* تأثيرات الإضاءة والوهج */
.screen-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    pointer-events: none;
    z-index: 999999;
    animation: flash 0.5s ease-out;
}

@keyframes flash {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* تحسينات للأزرار في صفحة النجاح */
.success-page .btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.success-page .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.success-page .btn:hover::before {
    left: 100%;
}

/* تأثيرات الاهتزاز المتقدمة */
.mega-celebration {
    animation: mega-bounce 1s ease-in-out, mega-glow 2s ease-in-out infinite;
}

@keyframes mega-bounce {
    0%, 20%, 60%, 100% {
        transform: translateY(0) scale(1);
    }
    40% {
        transform: translateY(-30px) scale(1.1);
    }
    80% {
        transform: translateY(-15px) scale(1.05);
    }
}

@keyframes mega-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 152, 0, 0.5);
        border-color: rgba(255, 152, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 152, 0, 0.8), 0 0 40px rgba(255, 152, 0, 0.6);
        border-color: rgba(255, 152, 0, 1);
    }
}
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Alert/Toast animations */
.alert {
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-width: 90%;
    width: 400px;
}

.alert.alert-success {
    background-color: #ffffff;
    border-color: #d1e7dd;
    color: #0f5132;
}

.alert .progress {
    background-color: #d1e7dd;
}

.alert .progress-bar {
    background-color: #198754;
    animation: progress 3s linear;
}

.alert .fa-check-circle {
    color: #198754;
    font-size: 1.25rem;
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to { 
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes progress {
    from { width: 100%; }
    to { width: 0; }
}

/* Location Section Styles */
.location-section {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.location-section:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.location-section .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1rem;
}

.location-section .card-header h5 {
    color: #0d6efd;
    margin-bottom: 0;
}

.location-section .card-body {
    padding: 1.5rem;
}

.location-section .alert {
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.location-section .btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.location-section .btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13,110,253,0.2);
}

.location-section .btn-lg:active {
    transform: translateY(0);
}

.location-section .spinner-border-sm {
    width: 1.2rem;
    height: 1.2rem;
}

.location-section .alert-info {
    background-color: #e7f5ff;
    border-color: #b6e0fe;
    color: #0c63e4;
}

.location-section .alert-success {
    background-color: #e8f5e9;
    border-color: #c8e6c9;
    color: #2e7d32;
}

.location-section .alert-danger {
    background-color: #ffebee;
    border-color: #ffcdd2;
    color: #c62828;
}

/* Footer Styles */
.footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.footer .copyright {
    color: #6c757d;
    font-size: 0.9rem;
}

.footer .developer-link {
    color: #0d6efd;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer .developer-link:hover {
    color: #0a58ca;
    text-decoration: underline;
}

/* ==== إعلانات وسلايدر ==== */
.carousel-inner img {
  height: 220px;
  object-fit: cover;
  border-radius: 1.5rem;
}
.ad-banner img {
  border-radius: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 15px rgba(0,0,0,0.07);
}
.ad-banner img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
}
