:root {
  --primary-color: #2e3746;
  --secondary-color: #2e3746;
  --card-min-width: 220px;
  --header-height: 90px;
}

/* تنسيقات عامة */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: #fff;
}

/* تنسيق السكرول العام */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #666;
}

/* تنسيقات الرأس */
.header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  background: white;
  padding: 10px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.site-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
}

/* تنسيقات المنتجات */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--card-min-width), 1fr));
  gap: 15px;
  padding: 15px;
  max-width: 1200px;
  margin: 0 auto;
}

/* تحديث تنسيقات كروت المنتجات */
.product-card {
  background: white;
  border-radius: 15px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 300px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.product-image-container {
  width: 100%;
  height: 65%;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 10px;
}

.product-image {
  width: 100%;
  border-radius: 12px;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 0;
}

.product-card h3 {
  font-size: 1rem;
  color: var(--primary-color);
  margin: 0;
  line-height: 1.4;
  max-height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.price {
  font-size: 1.1rem;
  font-weight: bold;
  color: #034200;
  margin-top: 8px;
}

/* تنسيقات عداد المنتجات */
.products-counter {
  text-align: center;
  padding: 15px;
  margin: 20px auto;
  max-width: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--primary-color);
}

.products-counter span {
  font-weight: bold;
  color: var(--secondary-color);
}

/* تنسيقات البحث */
.search-section {
  background: white;
  padding: 20px;
  margin-top: 90px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* تحسينات البحث والاقتراحات */
.search-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 15px 45px;
  border: 2px solid #ddd;
  border-radius: 25px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  cursor: pointer;
}

.clear-search {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  cursor: pointer;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
}

.clear-search:hover {
  color: #dc3545;
}

.suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-top: 5px;
  display: none;
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
}

.suggestion-item {
  padding: 10px 15px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 10px;
}

.suggestion-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
}

.suggestion-item:hover {
  background: #f8f9fa;
}

.no-results {
  text-align: center;
  padding: 40px 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin: 20px auto;
  margin-bottom: 300px;
  max-width: 600px;
  display: none;
}

/* أضف هذه الأنماط للمودال */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
  display: block;
}

/* تحسينات المودال */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal.show {
  display: flex !important;
}

.modal-content {
  background: white;
  width: 95%;
  max-width: 450px;
  max-height: 90vh;
  position: relative;
  border-radius: 20px;
  overflow-y: scroll;
  overflow-x: hidden;
  -ms-overflow-style: none;
  /* إخفاء السكرول في IE و Edge */
  scrollbar-width: none;
  /* إخفاء السكرول في Firefox */
}

.modal-content::-webkit-scrollbar {
  display: none;
  /* إخفاء السكرول في Chrome و Safari */
}

.modal-header {
  padding: 15px 20px;
  background: white;
  border-bottom: 1px solid #eee;
}

.modal-header h2 {
  margin: 0;
  padding-left: 40px;
}

.close {
  position: absolute;
  left: 15px;
  top: 13px;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2100;
  font-size: 30px;
  font-weight: 700;
  border-radius: 50%;
}

.story-viewer {
  width: 100%;
  height: 300px;
  position: relative;
  background: #000;
}

.modal-scroll-content {
  padding: 20px;
}

.product-details {
  padding: 0;
}

/* تخصيص شريط التمرير */
.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: #666;
}

@media (max-width: 768px) {
  .modal {
    padding: 0;
  }

  .modal-content {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .story-viewer {
    height: 250px;
  }
}

/* تحسين تنظيم المحتوى */
.product-details {
  padding: 20px;
}

.options-content {
  padding: 5px;
}

.add-to-cart {
  margin: 20px 0 10px 0;
  position: relative;
  bottom: auto;
  width: 100%;
}

@media (max-width: 768px) {
  .modal-scroll-content {
    max-height: calc(100vh - 400px);
  }
}

@media (max-width: 768px) {
  .modal-header {
    border-radius: 0;
  }

  .modal-scroll-content {
    padding: 15px;
  }
}

/* تحسينات عرض الاستوري في المودال */
.story-viewer {
  width: 100%;
  height: 260px;
  position: relative;
  background: #000;
  border-radius: 0;
  overflow: hidden;
}

.story-media {
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background: #000;
}

.story-media.active {
  display: flex;
}

.story-media img,
.story-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.story-progress {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  gap: 5px;
  z-index: 10;
  padding: 0 10px;
}

.progress-bar {
  height: 3px;
  flex: 1;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: white;
  width: 0;
  transition: width 0.1s linear;
}

/* تحسين أزرار التنقل في الاستوري */
.story-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.story-nav button {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  margin: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.story-nav button:first-child {
  margin-right: 0;
  padding-right: 5px;
}

.story-nav button:last-child {
  margin-left: 0;
  padding-left: 5px;
}

.story-nav button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* إزالة عرض الفيديو خارج المودال */
.video-modal {
  display: none;
}

.product-details {
  padding: 20px;
}

.product-description {
  color: #606060;
  background: rgb(248, 249, 250);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.1);
  padding: 15px 10px;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* تحسين قسم الخيارات */
.options-section {
  background: #fff;
  border-radius: 15px;
  margin-bottom: 10px;
  border: 2px solid #eee;
  transition: all 0.3s ease;
}

.options-section:hover {
  border-color: var(--secondary-color);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.1);
}

.options-title {
  background: #f8f9fa;
  padding: 15px 20px;
  border-radius: 13px 13px 0 0;
  font-size: 0.9rem;
  color: var(--primary-color);
  border-bottom: 2px solid #eee;
}

.options-content {
  padding: 20px;
}

.sizes-container,
.colors-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 10px;
  margin: 10px 0;
}

.size-option,
.color-option {
  position: relative;
  padding: 6px;
  border: 2px solid #eee;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  background: #fff;
}

.size-option:hover,
.color-option:hover {
  transform: translateY(-2px);
  border-color: var(--secondary-color);
}

.size-option.selected,
.color-option.selected {
  background: #2e3746;
  border-color: #2e3746;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
  color: white;
}

.size-option.selected::after,
.color-option.selected::after {
  content: "✓";
  position: absolute;
  top: -8px;
  right: -8px;
  background: #2ecc71;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border: 2px solid #fff;
}

.error-message {
  color: #dc3545;
  font-size: 0.9rem;
  margin-top: 5px;
  display: none;
}

.add-to-cart {
  font-weight: 700;
  background: #2e3746;
  background: linear-gradient(45deg, #2e3746, #3d4859);
  padding: 10px 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(46, 204, 113, 0.2);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
  margin-bottom: 50px;
  color: white;
}

.add-to-cart:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.add-to-cart:not(:disabled):hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(46, 55, 70, 0.3);
}

@keyframes modalOpen {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* التجاوب مع الشاشات */
@media (min-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    max-width: 1400px;
  }

  .product-card {
    height: 340px;
  }
}

@media (max-width: 768px) {
  :root {
    --card-min-width: 160px;
    --header-height: 70px;
  }

  .header {
    padding: 8px 15px;
  }

  .header-logo {
    width: 50px;
    height: 50px;
  }

  .site-title {
    font-size: 1.2rem;
  }

  .product-card {
    height: 260px;
  }

  .product-image-container {
    height: 60%;
  }

  .product-card h3 {
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
    margin: 5px 0;
  }

  .price {
    font-size: 1rem;
    margin-top: 5px;
  }

  .search-section {
    margin-top: var(--header-height);
    padding: 15px;
  }

  .search-input {
    padding: 12px 40px;
    font-size: 14px;
  }

  .suggestion-item img {
    width: 35px;
    height: 35px;
  }

  .suggestion-item {
    padding: 8px 12px;
    font-size: 14px;
  }

  .story-nav button {
    width: 35px;
    height: 35px;
  }

  .modal-scroll-content {
    padding: 15px;
  }

  .options-content {
    padding: 15px;
  }

  .sizes-container,
  .colors-container {
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 8px;
  }

  .size-option,
  .color-option {
    padding: 10px;
    font-size: 0.9rem;
  }

  .options-section {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    gap: 10px;
    padding: 10px;
  }

  .product-card {
    height: 230px;
  }

  .product-image-container {
    height: 58%;
  }

  .product-card h3 {
    font-size: 0.85rem;
    height: 36px;
  }
}

/* تحسينات تنقل الأقسام للموبايل */
@media (max-width: 768px) {
  .categories-nav {
    margin-top: 70px;
  }

  .categories-list {
    padding: 5px;
    gap: 8px;
    scrollbar-width: none;
    mask-image: linear-gradient(
      to right,
      transparent,
      black 20px,
      black 90%,
      transparent
    );
    -webkit-mask-image: linear-gradient(
      to right,
      transparent,
      black 20px,
      black 90%,
      transparent
    );
  }

  .categories-list::-webkit-scrollbar {
    display: none;
  }

  .categories-list li a {
    padding: 6px 12px;
    font-size: 0.85rem;
    white-space: nowrap;
    min-width: max-content;
  }
}

/* تنسيقات الفوتر */
.footer {
  background: var(--primary-color);
  padding: 30px 20px;
  margin-top: 50px;
  color: white;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #b70095;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-icon {
  width: 30px;
  height: 30px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.contact-link {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: #3498db;
}

.about-text {
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-section {
    width: 100%;
    padding: 10px 0;
  }

  .footer-title {
    font-size: 1rem;
  }

  .about-text {
    font-size: 13px;
  }
}

/* إضافة قسم حقوق النشر */
.copyright {
  text-align: center;
  padding: 15px 0;
  color: #95a5a6;
  font-size: 0.9rem;
  margin-top: 20px;
}

.copyright span {
  color: #3498db;
}

.back-to-all {
  background: #2e3746;
  color: #fff;
  font-weight: 900;
  padding: 2px 10px;
  border-radius: 12px;
}

.cart-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #2e3746;
  padding: 8px 15px;
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
}

.cart-icon i {
  font-size: 1rem;
  color: #fff;
}

.cart-count {
  background: #e74c3c;
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: bold;
  position: absolute;
  top: -8px;
  right: -8px;
  border: 2px solid #fff;
  transition: transform 0.3s ease;
}

.cart-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.cart-icon:hover .cart-count {
  transform: scale(1.1);
}

/* تحسينات حقول النموذج */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.7rem;
  color: #444;
  font-weight: 500;
  font-size: 1rem;
}

.required {
  color: #e74c3c;
  margin-right: 4px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 2px solid #e1e8f0;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  background: #f8fafc;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--secondary-color);
  background: white;
  box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
  outline: none;
}

.form-group input:invalid {
  border-color: #e74c3c;
}

.form-group input:invalid:focus {
  box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}

/* Cart Page Styles */
.cart-container {
  max-width: 1200px;
  margin: 100px auto 2rem;
  padding: 0 1rem;
}

.cart-title,
.item-name,
.item-meta,
.color-tag,
.size-tag,
.item-price,
.quantity,
.clear-cart,
.cart-summary h3,
.summary-row,
.checkout-btn,
.empty-cart p,
.continue-shopping {
  font-family: inherit;
}

.cart-title {
  text-align: center;
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  font-family: "Cairo", sans-serif !important;
}

.cart-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 1.5rem;
  align-items: start;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.cart-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.item-image img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
}

.item-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.item-name {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin: 0;
  font-weight: 600;
  font-family: "Cairo", sans-serif !important;
}

.item-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.item-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: "Cairo", sans-serif !important;
}

.color-tag,
.size-tag {
  background: #f8f9fa;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #666;
  font-family: "Cairo", sans-serif !important;
}

.item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.quantity-controls {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border-radius: 10px;
  padding: 0.5rem;
}

.quantity-btn {
  width: 35px;
  height: 35px;
  border: none;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
  font-family: "Cairo", sans-serif !important;
}

.quantity-btn:hover {
  background: var(--secondary-color);
  color: white;
}

.quantity {
  min-width: 40px;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  font-family: "Cairo", sans-serif !important;
}

.item-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2ecc71;
  font-family: "Cairo", sans-serif !important;
}

.remove-item {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 35px;
  height: 35px;
  border: none;
  background: #fff;
  border-radius: 50%;
  color: #e74c3c;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.remove-item:hover {
  background: #e74c3c;
  color: white;
  transform: rotate(90deg);
}

.clear-cart {
  align-self: flex-start;
  padding: 0.8rem 1.5rem;
  background: #f8f9fa;
  border: none;
  border-radius: 10px;
  color: #e74c3c;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Cairo", sans-serif !important;
}

.clear-cart:hover {
  background: #e74c3c;
  color: white;
}

.cart-summary {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.cart-summary h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  font-family: "Cairo", sans-serif !important;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
  font-size: 1.1rem;
  font-family: "Cairo", sans-serif !important;
}

.total-row {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary-color);
  border-bottom: none;
  margin-top: 1rem;
  font-family: "Cairo", sans-serif !important;
}

.checkout-btn {
  width: 100%;
  padding: 10px 0;
  background: #2e3746;
  background: linear-gradient(45deg, #2e3746, #3d4859);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: "Cairo", sans-serif !important;
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(46, 55, 70, 0.3);
}

/* تنسيق ملاحظة التأكيد */
.checkout-notice {
  background: #f8f9fa;
  border: 1px solid #e1e8f0;
  border-right: 4px solid var(--secondary-color);
  border-radius: 8px;
  padding: 15px;
  margin: 20px 0;
  display: flex;
  align-items: start;
  gap: 12px;
}

.checkout-notice i {
  color: var(--secondary-color);
  font-size: 1.2rem;
  margin-top: 3px;
}

.checkout-notice p {
  color: #666;
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0;
}

/* تعديل المسافة بين الملاحظة وزر التأكيد */
.submit-order {
  margin-top: 10px;
  background: #2e3746;
  background: linear-gradient(45deg, #2e3746, #3d4859);
}

.submit-order:hover {
  box-shadow: 0 5px 15px rgba(46, 55, 70, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .cart-item {
    grid-template-columns: 120px 1fr;
    padding: 1rem;
  }

  .item-image img {
    width: 120px;
    height: 120px;
  }

  .remove-item {
    top: 0.5rem;
    left: 0.5rem;
  }

  .cart-summary {
    padding: 1.5rem;
  }

  .copyright {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .cart-item {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .item-image img {
    width: 140px;
    height: 140px;
    margin: 0 auto;
  }

  .item-details {
    align-items: center;
  }

  .item-meta {
    justify-content: center;
  }

  .item-controls {
    align-items: center;
  }

  .quantity-controls {
    margin: 0 auto;
  }

  .clear-cart {
    align-self: center;
  }
}

/* تحسينات سلة المشتريات */
.cart-container {
  max-width: 1200px;
  margin: 100px auto 2rem;
  padding: 0 1rem;
}

.cart-content {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2rem;
  align-items: start;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.cart-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.item-image img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
}

.item-details {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.item-name {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin: 0;
}

.item-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.color-tag,
.size-tag {
  background: #f8f9fa;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #666;
}

.item-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.quantity-controls {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 0.3rem;
}

.quantity-btn {
  width: 30px;
  height: 30px;
  border: none;
  background: #2e3746;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.quantity-btn:hover {
  background: #2e3746;
  color: white;
}

.quantity {
  min-width: 40px;
  text-align: center;
  font-weight: 600;
}

.item-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2ecc71;
}

.remove-item {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 35px;
  height: 35px;
  border: none;
  background: #fff;
  border-radius: 50%;
  color: #e74c3c;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.remove-item:hover {
  background: #e74c3c;
  color: white;
  transform: rotate(90deg);
}

.clear-cart {
  margin-top: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border: none;
  border-radius: 10px;
  color: #e74c3c;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.clear-cart:hover {
  background: #e74c3c;
  color: white;
}

.cart-summary {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  position: sticky;
  top: 100px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* تحسين التجاوب مع الشاشات */
@media (max-width: 992px) {
  .cart-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .cart-item {
    grid-template-columns: 100px 1fr;
    padding: 1rem;
  }

  .item-controls {
    margin: 0 30px;
  }
}

@media (max-width: 480px) {
  .cart-item {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .item-image img {
    width: 100px;
    height: 100px;
    margin: 0 auto;
  }

  .item-details {
    align-items: center;
  }

  .item-meta {
    justify-content: center;
  }

  .item-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .item-controls {
    align-items: center;
  }

  .remove-item {
    top: 0.5rem;
    left: 0.5rem;
  }

  .quantity-btn {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    font-family: "Cairo", sans-serif !important;
  }

  .summary-row {
    font-size: 0.99rem;
  }

  .total-row {
    font-size: 1.1rem;
  }
}

/* تحسينات صفحة إتمام الطلب */
.checkout-container {
  max-width: 1200px;
  margin: 100px auto 2rem;
  padding: 0 1rem;
}

.checkout-title {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 2.5rem;
  font-size: 2rem;
  font-weight: 700;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

.checkout-form {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.form-section-title {
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-size: 1.4rem;
  font-weight: 600;
}

.form-group {
  margin-bottom: 1.8rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.8rem;
  color: #444;
  font-weight: 500;
  font-size: 1.1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 2px solid #e1e8f0;
  border-radius: 12px;
  font-size: 1.1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--secondary-color);
  background: white;
  box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
  outline: none;
}

/* ملخص الطلب */
.order-details {
  background: white;
  border-radius: 20px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 100px;
}

.summary-title {
  padding: 2rem;
  margin: 0;
  border-bottom: 2px solid #f0f3f8;
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 600;
}

.order-items {
  padding: 1.5rem;
  max-height: 450px;
  overflow-y: auto;
}

.order-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.2rem;
  padding: 1.2rem;
  border-bottom: 1px solid #f0f3f8;
  align-items: center;
}

.order-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
}

.item-info h3 {
  margin: 0 0 0.8rem 0;
  font-size: 1.1rem;
  color: var(--primary-color);
  font-weight: 600;
}

.item-meta span {
  background: #f8fafc;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  margin: 0.3rem;
  display: inline-block;
  font-size: 0.9rem;
}

.submit-order {
  background: #2e3746;
  background: linear-gradient(45deg, #2e3746, #3d4859);
  color: white;
  padding: 1.2rem;
  border: none;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  transition: all 0.3s ease;
  margin-top: 2rem;
}

.submit-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(46, 55, 70, 0.3);
}

/* التجاوب مع الشاشات المختلفة */
@media (max-width: 1200px) {
  .checkout-grid {
    gap: 2rem;
  }
}

@media (max-width: 992px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .order-details {
    position: static;
    margin-bottom: 2rem;
  }

  .checkout-form {
    order: 2;
  }
}

@media (max-width: 768px) {
  .checkout-container {
    margin-top: 80px;
  }

  .checkout-title {
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }

  .form-section-title {
    font-size: 1.3rem;
  }

  .checkout-form,
  .order-details {
    padding: 1.5rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.9rem;
    font-size: 1rem;
  }

  .order-item {
    grid-template-columns: 80px 1fr;
  }

  .order-item img {
    width: 80px;
    height: 80px;
  }

  .submit-order {
    padding: 1rem;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .checkout-title {
    font-size: 1.4rem;
  }

  .order-item {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .order-item img {
    width: 100px;
    height: 100px;
    margin: 0 auto;
  }

  .item-meta span {
    display: block;
    margin: 0.5rem auto;
  }

  .form-group label {
    font-size: 1rem;
  }
}

/* تنسيقات صفحة إتمام الطلب */
.checkout-page {
  background: #f8f9fa;
  min-height: 100vh;
}

.checkout-container {
  max-width: 1300px;
  margin: 100px auto 3rem;
  padding: 0 1rem;
}

.checkout-title {
  text-align: center;
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 3rem;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

/* نموذج الطلب */
.checkout-form-container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.checkout-form {
  padding: 2rem;
}

.section-title {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-weight: 600;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.7rem;
  color: #444;
  font-weight: 500;
  font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 2px solid #e1e8f0;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  background: #f8fafc;
  transition: all 0.3s ease;
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--secondary-color);
  background: white;
  box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
  outline: none;
}

/* ملخص الطلب */
.order-summary {
  background: white;
  border-radius: 20px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 100px;
}

.summary-title {
  padding: 1.5rem;
  margin: 0;
  font-size: 1.2rem;
  color: var(--primary-color);
  border-bottom: 1px solid #eee;
  font-weight: 600;
}

.order-items {
  padding: 1.5rem;
  max-height: 400px;
  overflow-y: auto;
}

.order-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

.order-item:last-child {
  border-bottom: none;
}

.order-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
}

.item-info h3 {
  font-size: 1rem;
  color: var(--primary-color);
  margin: 0 0 0.5rem 0;
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.item-meta span {
  background: #f8fafc;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #666;
}

.item-quantity {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.item-price {
  color: #2ecc71;
  font-weight: 600;
}

.order-totals {
  padding: 1.5rem;
  border-top: 1px solid #eee;
}

.total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  color: #666;
}

.total-row.final {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid #eee;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.1rem;
}

.submit-order {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 12px;
  background: #2e3746;
  background: linear-gradient(45deg, #2e3746, #3d4859);
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  font-family: inherit;
  margin-top: 2rem;
}

.submit-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(46, 55, 70, 0.3);
}

/* التجاوب مع الشاشات */
@media (max-width: 1200px) {
  .checkout-grid {
    gap: 1.5rem;
  }
}

@media (max-width: 992px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .order-summary {
    order: -1;
    position: static;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .checkout-container {
    margin: 80px auto 2rem;
  }

  .checkout-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .checkout-form {
    padding: 1.5rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .order-item {
    grid-template-columns: 80px 1fr;
  }

  .order-item img {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 480px) {
  .checkout-container {
    padding: 0 0.5rem;
  }

  .checkout-title {
    font-size: 1.3rem;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .form-group label {
    font-size: 0.9rem;
  }

  .product-image {
    width: 60%;
  }
}

.back-to-cart {
  background: #2e3746;
  color: #fff;
  font-weight: 900;
  padding: 5px 10px;
  border-radius: 12px;
}

/* تنسيقات السلة الفارغة */
.empty-cart {
  text-align: center;
  padding: 50px 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin: 20px auto;
  max-width: 500px;
}

.empty-cart i {
  font-size: 60px;
  color: #ddd;
  margin-bottom: 20px;
}

.empty-cart p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 20px;
}

.continue-shopping {
  display: inline-block;
  padding: 12px 30px;
  background: #2e3746;
  color: white;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.continue-shopping:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(46, 55, 70, 0.3);
}
