:root {
  --primary-red: #e63946;
  --primary-white: #f8f9fa;
  --primary-black: #212529;
  --light-red: #ffccd5;
  --dark-red: #c1121f;
  --light-gray: #e9ecef;
  --gray: #adb5bd;
  --dark-gray: #495057;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Tajawal", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--primary-white);
  color: var(--primary-black);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 60px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header Styles - محسنة للجوال مع الحفاظ على الألوان */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 10px 0;
  transition: transform 0.3s ease;
}

header.hide {
  transform: translateY(-100%);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.logo h1 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-red);
}

.logo span {
  color: var(--primary-black);
}
.img-logo{
  width: 136px;
  height: auto;
}
/* تحسين القائمة للجوال */
nav {
  position: relative;
}

nav ul {
  display: flex;
  list-style: none;
  transition: all 0.3s ease;
}

nav ul li {
  margin-left: 15px;
}

nav ul li a {
  color: var(--primary-black);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 4px;
  display: block;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--primary-red);
  background-color: rgba(230, 57, 70, 0.1);
}

.admin-link {
  background-color: rgba(230, 57, 70, 0.1);
  color: var(--primary-red) !important;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--light-gray);
  color: var(--primary-black);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  font-size: 16px;
}

.header-action:hover {
  background-color: var(--primary-red);
  color: white;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--primary-red);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background-color: var(--primary-black);
  margin: 2px 0;
  transition: all 0.3s ease;
  transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation Bottom Bar - جديد للجوال */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 998;
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--dark-gray);
  font-size: 11px;
  padding: 5px 0;
  flex: 1;
  transition: all 0.3s ease;
}

.nav-item i {
  font-size: 18px;
  margin-bottom: 3px;
}

.nav-item.active {
  color: var(--primary-red);
}

/* Hero Section - محسنة للجوال */
.hero {
  background: linear-gradient(
      to left,
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.8)
    ),
    url("https://images.unsplash.com/photo-1584818352667-613ac8ec2d3a?ixlib=rb-4.0.3") center/cover no-repeat;
  padding: 40px 0;
  position: relative;
  margin-bottom: 25px;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background-color: var(--primary-red);
  color: white;
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 15px;
}

.hero-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 15px;
  color: var(--primary-black);
}

.hero-title span {
  color: var(--primary-red);
}

.hero-description {
  font-size: 15px;
  color: var(--dark-gray);
  margin-bottom: 20px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-red);
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 15px;
  box-shadow: 0 4px 10px rgba(230, 57, 70, 0.3);
  text-align: center;
  min-width: 140px;
}

.btn:hover {
  background-color: var(--dark-red);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(230, 57, 70, 0.4);
}

.btn i {
  margin-right: 8px;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-red);
  color: var(--primary-red);
  box-shadow: none;
}

.btn-outline:hover {
  background-color: var(--primary-red);
  color: white;
}

/* Products Section - محسنة للجوال */
.section-title {
  text-align: center;
  margin-bottom: 25px;
  color: var(--primary-black);
  font-size: 24px;
  font-weight: 800;
  position: relative;
  padding-bottom: 12px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-red);
  border-radius: 2px;
}

.section-actions {
  text-align: center;
  margin-top: 25px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.product-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--primary-red);
  color: white;
  padding: 3px 8px;
  border-radius: 30px;
  font-size: 10px;
  font-weight: 600;
  z-index: 2;
}

.product-image {
  height: 300px;
  width: 100%;
  background: linear-gradient(45deg, #f8f9fa, #e9ecef);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-image i {
  font-size: 50px;
  color: var(--gray);
  z-index: 1;
}

.product-info {
  padding: 15px;
}

.product-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary-black);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-description {
  font-size: 13px;
  color: var(--dark-gray);
  margin-bottom: 12px;
  overflow: hidden;
  position: relative;
  line-height: 1.4em;
  height: 2.8em;
}

.product-description:after {
  content: "...";
  position: absolute;
  bottom: 0;
  right: 0;
  padding-left: 10px;
  background: linear-gradient(to right, transparent, white 50%);
}

.product-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.price {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--primary-red);
}

.old-price {
  font-size: 14px;
  color: var(--gray);
  text-decoration: line-through;
  margin-left: 6px;
}

.add-to-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--primary-red);
  color: white;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.add-to-cart:hover {
  background-color: var(--dark-red);
  transform: scale(1.1);
}

/* Features Section - محسنة للجوال */
.features {
  background-color: white;
  padding: 40px 0;
  margin: 30px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature-card {
  text-align: center;
  padding: 25px 15px;
  border-radius: 10px;
  background-color: var(--primary-white);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: rgba(230, 57, 70, 0.1);
  color: var(--primary-red);
  border-radius: 50%;
  font-size: 20px;
  margin-bottom: 15px;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary-black);
}

.feature-description {
  font-size: 14px;
  color: var(--dark-gray);
  line-height: 1.5;
}

/* Footer - محسنة للجوال */
footer {
  background-color: var(--primary-black);
  color: white;
  padding: 40px 0 15px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 800;
  color: white;
  margin-bottom: 15px;
}

.footer-logo span {
  color: var(--primary-red);
}

.footer-description {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 15px;
  line-height: 1.6;
}

.footer-heading {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 35px;
  height: 2px;
  background: var(--primary-red);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links li a {
  color: var(--gray);
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
  font-size: 14px;
}

.footer-links li a:hover {
  color: var(--primary-red);
  transform: translateX(-3px);
}

.footer-contact {
  list-style: none;
}

.footer-contact li {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  color: var(--gray);
  font-size: 14px;
}

.footer-contact li i {
  margin-left: 10px;
  color: var(--primary-red);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
  font-size: 14px;
}

.social-link:hover {
  background-color: var(--primary-red);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray);
  font-size: 13px;
}

/* Page Header - محسنة للجوال */
.page-header {
  background: linear-gradient(
    to right,
    rgba(230, 57, 70, 0.9),
    rgba(193, 18, 31, 0.8)
  );
  color: white;
  padding: 40px 0;
  text-align: center;
  margin-bottom: 30px;
}

.page-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 12px;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  list-style: none;
  flex-wrap: wrap;
  font-size: 14px;
}

.breadcrumb li {
  margin: 0 5px;
}

.breadcrumb li a {
  color: white;
  text-decoration: none;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-right: 8px;
  color: var(--light-red);
}

/* Form Styles - محسنة للجوال */
.form-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 25px 0;
}

.form-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary-black);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.form-group {
  margin-bottom: 15px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--primary-black);
  font-size: 14px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary-red);
  outline: none;
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

/* Cart Styles - محسنة للجوال */
.cart-item {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.cart-item-image {
  width: 100%;
  height: 150px;
  background: var(--light-gray);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.cart-item-info {
  width: 100%;
}

.cart-item-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary-black);
}

.cart-item-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-red);
  margin-bottom: 12px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.quantity-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  overflow: hidden;
}

.quantity-btn {
  width: 35px;
  height: 35px;
  background: var(--light-gray);
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quantity-btn:hover {
  background: var(--primary-red);
  color: white;
}

.quantity-input {
  width: 40px;
  height: 35px;
  border: none;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
}

.remove-item {
  color: var(--dark-gray);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.3s ease;
  padding: 8px 12px;
}

.remove-item:hover {
  color: var(--primary-red);
}

.cart-totals {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  margin-top: 25px;
}

.cart-totals-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--light-gray);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 15px;
}

.cart-total-final {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid var(--light-gray);
  color: var(--primary-red);
}

/* Modal Styles - محسنة للجوال */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 15px;
}

.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 22px;
  cursor: pointer;
  color: var(--dark-gray);
  z-index: 2;
}

.modal-content h3 {
  text-align: center;
  margin-bottom: 15px;
  color: var(--primary-black);
  font-size: 20px;
}

.product-info {
  text-align: center;
  margin-bottom: 20px;
}

.product-info h4 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--primary-black);
}

.product-info .price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-red);
}

.options-group {
  margin-bottom: 15px;
}

.options-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--primary-black);
  font-size: 14px;
}

.size-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.size-option {
  padding: 8px 12px;
  border: 2px solid var(--light-gray);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.size-option:hover,
.size-option.selected {
  border-color: var(--primary-red);
  background-color: rgba(230, 57, 70, 0.1);
}

.quantity-selector {
  margin-bottom: 20px;
}

.quantity-selector label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--primary-black);
  font-size: 14px;
}

.quantity-control {
  display: flex;
  align-items: center;
  border: 2px solid var(--light-gray);
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
}

.quantity-btn {
  width: 35px;
  height: 35px;
  background: var(--light-gray);
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quantity-btn:hover {
  background: var(--primary-red);
  color: white;
}

#modal-quantity {
  width: 45px;
  height: 35px;
  border: none;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
}

.add-to-cart-modal {
  width: 100%;
  justify-content: center;
}

/* Orders Page Styles - محسنة للجوال */
.orders-container {
  padding: 25px 0;
}

.order-filters {
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 25px;
}

.filter-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary-black);
}

.filter-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-option {
  padding: 6px 12px;
  background: var(--light-gray);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 13px;
}

.filter-option.active {
  background: var(--primary-red);
  color: white;
}

.orders-list {
  display: grid;
  gap: 15px;
}

.order-card {
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.order-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--light-gray);
}

.order-id {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-black);
}

.order-date {
  color: var(--dark-gray);
  font-size: 13px;
}

.order-status {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  width: fit-content;
}

.status-new {
  background: var(--light-red);
  color: var(--dark-red);
}

.status-processing {
  background: #fff3cd;
  color: #856404;
}

.status-completed {
  background: #d4edda;
  color: #155724;
}

.order-customer {
  margin-bottom: 12px;
}

.customer-name {
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 15px;
}

.customer-contact {
  color: var(--dark-gray);
  font-size: 13px;
}

.order-details {
  margin-bottom: 12px;
}

.order-items {
  margin-bottom: 8px;
}

.order-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 14px;
}

.order-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  border-top: 1px solid var(--light-gray);
  padding-top: 8px;
  margin-top: 8px;
  font-size: 15px;
}

.order-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Order Confirmation - محسنة للجوال */
.confirmation-container {
max-width: 800px;
margin: 0 auto;
padding: 20px;
text-align: center;
}

.confirmation-icon {
  font-size: 60px;
  color: #28a745;
  margin-bottom: 20px;
}

.confirmation-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 15px;
  color: var(--primary-black);
}

.confirmation-message {
  font-size: 16px;
  color: var(--dark-gray);
  margin-bottom: 30px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.order-details {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  max-width: 100%;
  margin: 0 auto 30px;
  text-align: right;
}

.order-details-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--light-gray);
}

.order-detail-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--light-gray);
  font-size: 14px;
}

.order-detail-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.order-detail-label {
  font-weight: 600;
  color: var(--dark-gray);
}

.order-detail-value {
  font-weight: 600;
  color: var(--primary-black);
}

/* Notification Styles - محسنة للجوال */
.notification {
  position: fixed;
  top: 15px;
  right: 15px;
  left: 15px;
  padding: 12px 15px;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  z-index: 10000;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(-20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notification.show {
  opacity: 1;
  transform: translateY(0);
}

.notification.success {
  background-color: #28a745;
  box-shadow: 0 3px 12px rgba(40, 167, 69, 0.3);
}

.notification.error {
  background-color: #dc3545;
  box-shadow: 0 3px 12px rgba(220, 53, 69, 0.3);
}

.notification i {
  margin-left: 8px;
  cursor: pointer;
}
/* Media Queries للاستجابة الأمثل */
@media (max-width: 768px) {
  /* تحسينات القائمة للجوال */
  nav ul {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 15px;
    z-index: 999;
    height: calc(100vh - 60px);
    overflow-y: auto;
  }
  
  nav ul.active {
    display: flex;
  }
  
  nav ul li {
    margin: 5px 0;
    width: 100%;
  }
  
  nav ul li a {
    padding: 12px 15px;
    border-radius: 8px;
    text-align: right;
    font-size: 16px;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  /* إخفاء بعض عناصر الهيدر في الجوال */
  .header-actions .header-action:nth-child(2) {
    display: none;
  }
  
  /* تحسين الهيدر للجوال */
  .header-container {
    padding: 5px 0;
  }
  
  .logo h1 {
    font-size: 18px;
  }
  
  /* تحسين الشريط السفلي للجوال */
  .mobile-nav {
    display: flex;
  }
  
  /* تحسينات عامة للجوال */
  .hero-title {
    font-size: 22px;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .filter-options {
    flex-direction: column;
  }
  
  .order-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .order-actions {
    flex-direction: column;
  }
  
  .order-actions .btn {
    width: 100%;
  }
  
  .cart-item {
    flex-direction: column;
  }
  
  .cart-item-image {
    margin-left: 0;
    margin-bottom: 15px;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 30px 0;
  }
  
  .hero-title {
    font-size: 20px;
  }
  
  .hero-description {
    font-size: 14px;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .cart-item-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .quantity-control {
    width: 100%;
    justify-content: space-between;
  }
  
  .remove-item {
    align-self: flex-end;
  }
  
  .notification {
    top: 10px;
    right: 10px;
    left: 10px;
    font-size: 14px;
  }
}

@media (min-width: 769px) {
  .mobile-nav {
    display: none;
  }
}

/* تحسينات للشاشات الكبيرة */
@media (min-width: 1200px) {
  .container {
    padding: 0;
  }
}

/* تحسينات للوضع الأفقي في الجوال */
@media (max-height: 500px) and (orientation: landscape) {
  nav ul {
    top: 50px;
  }
  
  .hero {
    padding: 25px 0;
  }
}
/* تحسينات للهواتف */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .product-card {
        margin-bottom: 15px;
    }
    
    .cart-item {
        flex-direction: column;
        padding: 15px;
    }
    
    .cart-item-image {
        width: 100%;
        margin-left: 0;
        margin-bottom: 15px;
    }
    
    .cart-item-info {
        width: 100%;
    }
    
    .cart-item-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .quantity-control {
        width: 100%;
        justify-content: center;
    }
}

/* تحسينات للأجهزة اللوحية */
@media (min-width: 769px) and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cart-item {
        flex-direction: row;
    }
    
    .cart-item-image {
        width: 120px;
        margin-left: 15px;
    }
    
    .cart-item-info {
        width: calc(100% - 135px);
    }
}

/* تحسينات لسلة التسوق على الشاشات الكبيرة */
@media (min-width: 1025px) {
    .cart-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 20px;
    }
    
    .cart-item-image {
        width: 150px;
        height: 150px;
        margin-left: 20px;
        flex-shrink: 0;
    }
    
    .cart-item-info {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .cart-item-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .cart-item-details {
        margin-bottom: 10px;
    }
    
    .cart-item-price {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .cart-item-actions {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .quantity-control {
        margin-bottom: 0;
    }
    
    .cart-totals {
        padding: 30px;
    }
}
/* إضافة هذه الأنماط إلى ملف style.css الحالي */

/* أنماط لأزرار الشراء */
.btn-buy-now {
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.btn-buy-now:hover {
    background: var(--dark-red);
}

/* تحسينات للصور */
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* القائمة السفلية للجوال */
.mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 998;
    justify-content: space-around;
    padding: 8px 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--dark-gray);
    font-size: 11px;
    padding: 5px 0;
    flex: 1;
}

.nav-item i {
    font-size: 18px;
    margin-bottom: 3px;
}

.nav-item.active {
    color: var(--primary-red);
}

/* تحسينات للاستجابة */
@media (max-width: 768px) {
    .mobile-nav {
        display: flex;
    }
    
    .header-actions .header-action:nth-child(1) {
        display: none;
    }
}

@media (min-width: 769px) {
    .mobile-nav {
        display: none;
    }
}
/* أنماط النافذة المنبثقة */
.modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    position: relative;
}

.close-modal {
    color: #aaa;
    float: left;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    left: 15px;
}

.close-modal:hover {
    color: black;
}

.size-options {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.size-option {
    padding: 8px 15px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-option:hover {
    border-color: #adb5bd;
}

.size-option.selected {
    border-color: #e63946;
    background-color: rgba(230, 57, 70, 0.1);
}

.quantity-control {
    display: flex;
    align-items: center;
    margin-top: 10px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    width: fit-content;
}

.quantity-btn {
    padding: 5px 12px;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.quantity-btn:hover {
    background: #e9ecef;
}

#modal-quantity {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 2px solid #e9ecef;
    border-right: 2px solid #e9ecef;
    padding: 8px 0;
}

.add-to-cart-modal {
    margin-top: 20px;
    width: 100%;
}

/* أزرار معطلة */
.btn-buy-now:disabled {
    background-color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-buy-now:disabled:hover {
    background-color: #adb5bd;
    transform: none;
    box-shadow: none;
}

/* رسائل الخطأ */
.error-message {
    color: #e63946;
    font-size: 12px;
    margin-top: 5px;
}

/* تحسينات للجوال */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 15px;
    }
    
    .size-option {
        padding: 6px 12px;
        font-size: 14px;
    }
}
/* أنماط إضافية للنافذة المنبثقة */
.form-group {
    margin-bottom: 15px;
    text-align: right;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--primary-black);
}

.form-input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--light-gray);
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    border-color: var(--primary-red);
    outline: none;
}

.form-hint {
    font-size: 12px;
    color: var(--dark-gray);
    margin-top: 5px;
}

/* تحسينات للجوال */
@media (max-width: 768px) {
    .form-input {
        padding: 8px 12px;
        font-size: 14px;
    }
}