:root {
    --primary: #D84315;
    --secondary: #37474F;
    --accent1: #FFD600;
    --accent2: #43A047;
    --accent3: #fff3e0;
    --bg: #FFFDF7;
    --surface: #fff;
    --text: #222;
    --muted: #B0BEC5;
    --light: #ffffff;
    --dark: #222222;
}

/* General Styles */
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Tajawal', system-ui, sans-serif;
    overflow-x: hidden;
}

[lang="ar"] {
    font-family: 'Cairo', sans-serif;
}

[lang="en"] {
    font-family: 'Roboto', sans-serif;
}

/* Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand img {
    transition: all 0.3s ease;
}

.nav-link {
    color: var(--secondary) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary) !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--light);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('/images/pattern.png');
    opacity: 0.1;
    z-index: 1;
}

/* Services Section */
.service-card {
    border: none;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Portfolio Section */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20, 20, 71, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: var(--secondary);
    color: var(--light);
    padding-top: 60px;
}

.footer h5 {
    color: var(--accent3);
    margin-bottom: 20px;
}

.footer a {
    color: var(--light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--accent1);
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

/* Animation Classes */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
    }
    
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98);
        padding: 15px;
        border-radius: 10px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* بطاقات المنتجات */
.product-card, .product-list-item .bg-white {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(52, 52, 52, 0.07);
  border: none !important;
  padding: 18px 14px;
  margin-bottom: 22px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.product-card:hover, .product-list-item .bg-white:hover {
  box-shadow: 0 8px 32px rgba(52, 52, 52, 0.13);
  transform: translateY(-2px) scale(1.01);
}
.product-img, .product-list-item img {
  width: 90px !important;
  height: 90px !important;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(52,52,52,0.08);
  margin-inline-end: 16px;
}
.product-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.product-price {
  color: var(--primary);
  font-size: 1.12rem;
  font-weight: bold;
  margin-bottom: 6px;
}
.product-list-item .text-muted {
  color: var(--muted) !important;
  font-size: 0.98rem;
}
.product-list-item .btn-outline-primary, .product-list-item .btn-primary {
  border-radius: 50px;
  min-width: 44px;
  min-height: 44px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(216,67,21,0.07);
}

/* نافذة التفاصيل (Bottom Sheet) */
#productModal .modal-content {
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -4px 24px rgba(52,52,52,0.10);
  padding: 0 8px;
}
#productModal .modal-body {
  padding: 24px 8px 0 8px !important;
}
#productModal .form-check, #productModal .option-row {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(52,52,52,0.04);
  margin-bottom: 12px;
  padding: 10px 12px;
  border: none !important;
}
#productModal .option-btn-style {
  border-radius: 14px !important;
  font-size: 1.08rem;
  font-weight: 500;
  background: var(--surface) !important;
  box-shadow: 0 1px 6px rgba(52,52,52,0.04);
  border: 1.5px solid var(--muted) !important;
  margin-bottom: 8px;
}
#productModal .btn-check:checked + .option-btn-style {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 2px 10px rgba(216,67,21,0.10);
}
#productModal .modal-floating-bar {
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -2px 16px rgba(52,52,52,0.08);
  background: var(--surface);
  padding: 18px 12px 12px 12px;
}
#productModal .btn-primary {
  background: var(--primary);
  border-radius: 14px;
  font-size: 1.12rem;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(216,67,21,0.10);
  border: none;
}
#productModal .btn-outline-secondary {
  border-radius: 14px;
  font-weight: 500;
}
#productModal .btn-qty-plus, #productModal .btn-qty-minus {
  min-width: 44px;
  min-height: 44px;
  font-size: 1.3rem;
  border-radius: 50%;
  background: var(--accent1);
  color: var(--secondary);
  border: none;
  box-shadow: 0 1px 6px rgba(255,214,0,0.08);
}
#productModal .btn-qty-plus:hover, #productModal .btn-qty-minus:hover {
  background: var(--primary);
  color: #fff;
}
#productModal input[name="quantity"] {
  font-size: 1.18rem;
  font-weight: bold;
  color: var(--text);
  background: #fff;
  border-radius: 10px;
  border: 1.5px solid var(--muted);
  width: 60px;
  margin: 0 8px;
}

/* شريط السلة السفلي */
.bottom-bar {
  background: var(--surface);
  box-shadow: 0 -2px 16px rgba(52,52,52,0.08);
  padding: 16px 10px;
}
.cart-btn {
  background: var(--primary);
  color: #fff;
  border-radius: 50px;
  font-size: 1.12rem;
  font-weight: 600;
  padding: 16px 0;
  box-shadow: 0 2px 10px rgba(216,67,21,0.10);
  border: none;
}
.cart-btn .cart-count {
  background: var(--accent1);
  color: var(--secondary);
  font-weight: bold;
  border-radius: 16px;
  padding: 4px 12px;
  margin-inline-start: 8px;
}

/* سلة المشتريات (Sidebar) */
.cart-sidebar {
  background: var(--surface);
  box-shadow: -2px 0 24px rgba(52,52,52,0.10);
  border-left: none;
}
.cart-item {
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(52,52,52,0.06);
  margin-bottom: 14px;
  padding: 14px 10px;
  border: none !important;
}
.cart-item-actions .btn {
  border-radius: 12px;
  font-size: 1.08rem;
  min-width: 36px;
  min-height: 36px;
  margin-inline: 2px;
}
.cart-item-actions .edit-item i, .cart-item-actions .remove-item i {
  font-size: 1.25rem !important;
}
.cart-total {
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(52,52,52,0.06);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  padding: 14px 10px;
  margin-top: 10px;
}

/* Toast */
#toast-container, .toast-container {
  top: 18px;
  right: 50%;
  transform: translateX(50%);
}
.toast {
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(52,52,52,0.13);
  font-size: 1.08rem;
  font-weight: 500;
  padding: 14px 22px 14px 18px;
  min-width: 220px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.success { background: var(--accent2); color: #fff; }
.toast.error { background: var(--primary); color: #fff; }
.toast.warning { background: var(--accent1); color: var(--secondary); }
.toast.info { background: var(--secondary); color: #fff; }
.toast .toast-icon { font-size: 1.4rem; margin-inline-end: 8px; }

/* تباعد عام */
.container, .modal-body, .cart-items, .categories-bar, .footer, .bottom-bar {
  padding-right: 10px;
  padding-left: 10px;
}
@media (max-width: 576px) {
  .product-card, .product-list-item .bg-white {
    padding: 12px 6px;
    margin-bottom: 14px;
  }
  .product-img, .product-list-item img {
    width: 70px !important;
    height: 70px !important;
    margin-inline-end: 8px;
  }
  #productModal .modal-body {
    padding: 12px 2px 0 2px !important;
  }
  .cart-item {
    padding: 10px 4px;
    margin-bottom: 8px;
  }
  .cart-total {
    padding: 10px 4px;
    font-size: 1.05rem;
  }
  .cart-btn {
    padding: 12px 0;
    font-size: 1rem;
  }
}
