
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&display=swap');

:root {
    --primary: #c5a021;
    --primary-dark: #a6851a;
    --dark: #050f1f;
    --footer-bg: #0b1320;
    --light: #f8f9fa;
    --text: #333;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--white);
    color: var(--text);
    direction: rtl;
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }

/* --- Top Bar --- */
.top-bar { background-color: var(--dark); color: var(--white); padding: 8px 0; font-size: 0.85rem; }

/* --- Header --- */
.header {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar-brand { font-weight: 800; font-size: 1.5rem; color: #000 !important; }
.navbar-brand span { color: var(--primary); }
.nav-link { font-weight: 700; color: #333 !important; padding: 15px !important; }
.nav-link:hover, .nav-link.active { color: var(--primary) !important; }

/* --- Breadcrumbs --- */
.breadcrumb-section { background: var(--light); padding: 12px 0; border-bottom: 1px solid #eee; margin-bottom: 0; }
.breadcrumb-item a { color: #6c757d; font-weight: 600; font-size: 0.9rem; }
.breadcrumb-item.active { color: var(--primary); font-weight: 700; font-size: 0.9rem; }
.breadcrumb-item + .breadcrumb-item::before { float: right; padding-left: 0.5rem; color: #6c757d; content: var(--bs-breadcrumb-divider, "/"); }

/* --- Cart Badge --- */
.cart-btn { position: relative; background: var(--light); width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid #eee; }
.cart-badge { position: absolute; top: -5px; right: -5px; background: #e63946; color: white; font-size: 0.7rem; padding: 2px 6px; border-radius: 50%; font-weight: 800; }

/* --- Category Cards --- */
.category-card { position: relative; display: block; border-radius: 12px; overflow: hidden; height: 220px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.category-card:hover img { transform: scale(1.1); }
.category-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.4);
    display: flex; align-items: center; justify-content: center;
    color: #fff; text-align: center; padding: 10px; transition: var(--transition);
}
.category-card:hover .category-overlay { background: rgba(0,0,0,0.5); }

/* --- Product Cards --- */
.product-card { border: 1px solid #eee; border-radius: 12px; overflow: hidden; height: 100%; display: flex; flex-direction: column; background: #fff; transition: var(--transition); }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
.product-img { height: 200px; padding: 15px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.order-btn { background: var(--primary); color: #fff !important; text-align: center; padding: 12px; font-weight: 800; margin-top: auto; border: none; width: 100%; }


/* --- Section Titles --- */
.section-title { font-weight: 800; font-size: 1.5rem; text-align: center; margin-bottom: 30px; position: relative; padding-bottom: 10px; }
.section-title::after { content: ''; position: absolute; bottom: 0; right: 50%; transform: translateX(50%); width: 40px; height: 3px; background: var(--primary); }



/* --- Footer --- */
.footer { background: var(--footer-bg); color: #fff; padding: 50px 0 20px; border-top: 4px solid var(--primary); }
.footer-title { color: var(--primary); font-weight: 800; margin-bottom: 20px; font-size: 1.1rem; }
.footer p, .footer-links li a { font-size: 0.9rem; opacity: 0.9; }

/* --- Sidebar Mobile --- */
/* --- Mobile Sidebar --- */
.mobile-sidebar { position: fixed; top: 0; right: -280px; width: 260px; height: 100%; background: #fff; z-index: 2000; transition: 0.3s; padding: 30px 20px; box-shadow: -5px 0 15px rgba(0,0,0,0.1); }
.mobile-sidebar.active { right: 0; }
.sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1999; display: none; backdrop-filter: blur(2px); }
.sidebar-overlay.active { display: block; }

/* --- Floating Actions --- */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background: #25d366; color: #fff !important; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; z-index: 1000; box-shadow: 0 4px 15px rgba(0,0,0,0.3); transition: transform 0.3s; }
.whatsapp-float:hover { transform: scale(1.1); }

/* --- Utilities --- */
.section-title { position: relative; padding-bottom: 15px; margin-bottom: 40px; font-weight: 800; }
.section-title::after { content: ''; position: absolute; bottom: 0; right: 50%; transform: translateX(50%); width: 60px; height: 3px; background: var(--primary); }

/* Responsive adjustments for tiny screens */
@media (max-width: 400px) {
    .container { padding-left: 15px; padding-right: 15px; }
    .product-img { height: 140px; }
    .navbar-brand { font-size: 1.1rem; }
}
