@font-face {
  font-family: 'GendersBoIdv4';
  src: url('./fonts/GendersBoIdv4.otf') format('truetype');

}

@font-face {
  font-family: 'alfont3';
  src: url('./fonts/alfont3.otf') format('opentype');
}

:root {
  --main-orange: #E67000;
  --main-dark: #2b2b2b;
  --badge-green: #1ab31a;
  --default-font: 'GendersBoIdv4', sans-serif; /* تعيين الخط الجديد كخط افتراضي */
  --badge-green2: #2f7d33;
}

body {
  font-family: var(--default-font); /* تطبيق الخط في الجسم بالكامل */
  background: #fff;
  margin: 0;
  padding: 0;
  direction: rtl;
}

.topbar {
  background-color: var(--main-dark);
  padding: 6px 12px 0;
  display: flex;
  flex-direction: column;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.menu-icon {
  width: 28px;
  height: 28px;
}

.small-logo {
  width: 34px;
  height: 34px;
}

.search-container {
  flex: 1;
  display: flex;
  align-items: center;
  background-color: var(--main-orange);
  border-radius: 30px;
  padding: 5px 12px;
  flex-direction: row-reverse;
}

.search-container input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  color: white;
  font-size: 14px;
  padding: 6px;
  font-family: 'alfont3';
}

.search-container input::placeholder {
  color: white;
}

.search-icon {
  width: 20px;
  height: 20px;
}

.categories {
  display: flex;
  overflow-x: auto;
  padding: 10px;
  gap: 10px;
  background: var(--main-dark);

  scrollbar-width: none;   /* لإخفاء السكرول في فايرفوكس */
  -ms-overflow-style: none; /* لإخفاء السكرول في إنترنت إكسبلورر وإيدج القديم */
}

.categories::-webkit-scrollbar {
  display: none; /* لإخفاء السكرول في كروم/سفاري/إيدج الحديث */
}


.categories button {
  background: var(--main-orange);
  color: white;
  padding: 5px 14px;
  border-radius: 20px;
  border: none;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  font-family: 'alfont3';
}

.welcome-box {
  background-color: #2b2b2b;
  padding: 12px;
  border-radius: 0 0 50px 50px;
  border-left: 3px solid #E67000;   /* إضافة حد برتقالي يسار */
  border-right: 3px solid #E67000;  /* إضافة حد برتقالي يمين */
  display: flex;
  align-items: center;
  text-align: right;
  color: #fff; /* للتأكد من وضوح النص */
}

.big-logo {
  width: 100px;
  margin-left: 14px;
}

.welcome-box p {
  font-size: 14px;
  color: #e67000;
  margin: 0;
}

.slider-section {
  width: 100%;
  text-align: center;
  position: relative;
  margin-top: 12px;
}

.slider-container {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.slider-container img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  max-height: 200px;
}

.dots {
  text-align: center;
  margin-top: 8px;
}

.dot {
  height: 10px;
  width: 10px;
  margin: 0 4px;
  background-color: #ccc;
  border-radius: 50%;
  display: inline-block;
  transition: background 0.3s ease;
}

.dot.active {
  background-color: var(--main-orange);
}

.brands {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 12px 10px;
  gap: 20px;
}

.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
  text-align: center;
}

.brand-card img {
  height: 50px;
  width: 50px;
  border-radius: 25%;
  background-color: #fff2e6;
  padding: 5px;
  object-fit: contain;
  cursor: pointer;
}

.brand-card span {
  margin-top: 5px;
  font-size: 12px;
  color: #333;
  font-weight: bold;
}

.products{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap:16px;
  padding:20px;
  margin-bottom:120px;
}

/* شكل الكارد العام */
.product-card {
  cursor: pointer;
  position: relative;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,.05);
  transition: transform .25s ease, box-shadow .25s ease;
  padding: 0; /* نلغي الهوامش الداخلية لأن الجسم صار مقسوم */
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

/* عنوان القسم أعلى الكارد مثل التطبيق */
.product-card .section-name {
  font-size: 13px;
  color: var(--main-orange);
  font-weight: 800;
  padding: 10px 12px 0 12px;
}

/* منطقة الصورة */
.product-card .media {
  position: relative;
  margin: 8px 8px 0 8px;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  aspect-ratio: 1 / 1;           /* مربع (مثل الموبايل) */
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card .media img {
  width: 100%;
  height: 100%;
  object-fit: contain;           /* حتى ما تتمدد/تتشوه */
  display: block;
}

/* شارة الخصم فوق الصورة */
.product-card .media .badge-offer {
  position: absolute;
  top: 8px;
  left: 2px;
  background: var(--badge-green2);
  color: #fff;
  font-size: 11px;
  padding: 1px 3px;
  border-radius: 7px;
  font-weight: 600;
  z-index: 2;
}

.product-card .media .btn-fav {
  position: absolute;
  top: 8px;
  right: 6px;
  border: none;
  outline: none;
  background: transparent;   /* بدون خلفية */
  box-shadow: none;          /* بدون ظل */
  cursor: pointer;
  z-index: 2;
  padding: 0;
  width: auto;
  height: auto;
}

.product-card .media .btn-fav i {
  color: #bbb;
  font-size: 18px;
  transition: color 0.25s ease, transform 0.25s ease;
}

/* عند التفعيل */
.product-card .media .btn-fav.active i {
  color: #e53935;
}

/* عند الهوفر */
.product-card .media .btn-fav:hover i {
  color: #ff5a5a;        /* أحمر فاتح */
  transform: scale(1.2); /* تكبير خفيف */
}

/* جسم الكارد (السعر + الاسم + زر السلة) */
.product-card .card-body {
  padding: 10px 12px 14px;
  text-align: center;
}
.product-card .price {
  margin-top: 6px;
  font-size: 14px;
}
.product-card .price del {
  color: #888;
  margin-inline-start: 6px;
  font-size: 12px;
}
.product-card .price .new {
  color: var(--main-orange);
  font-weight: 800;
}
.product-card h4.title {
  margin: 6px 0 4px;
  font-size: 15px;
  font-weight: 800;
  color: #1d1d1d;
}

/* زر السلة */
.product-card .cart-button {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #1d1d1d, var(--main-dark));
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

/* أيقونة السلة داخل الزر */
.product-card .cart-button i {
  transition: transform 0.35s ease;
  font-size: 17px;
}

/* عند الهوفر: تغيير اللون + بريق + حركة أيقونة */
.product-card .cart-button:hover {
  background: linear-gradient(135deg, #2e7d32, #1b5e20);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25), inset 0 2px 4px rgba(255,255,255,0.1);
  transform: translateY(-3px) scale(1.03);
}

.product-card .cart-button:hover i {
  transform: translateX(3px) scale(1.1); /* الأيقونة تتحرك يمين وتكبر */
  color: #ffeb3b;
}

/* تأثير وميض (لمعة) */
.product-card .cart-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.6) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-25deg);
}

.product-card .cart-button:hover::after {
  left: 125%;
  transition: left 0.6s ease;
}

/* Skeleton داخل الصورة */
.product-card .media .skeleton.sk-image {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

/* (اختياري) عطّل القواعد القديمة إن وُجدت */
.product-card > .offer,
.product-card > .favorite { display: none !important; }

/* Style the favorite icon inside product cards */
.product-card .favorite {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 18px;
  color: #ccc;
  cursor: pointer;
  transition: color 0.3s, transform 0.2s ease;
  z-index: 10;
}

.product-card .favorite:hover {
  transform: scale(1.2);
}

.product-card .favorite.active i {
  color: red;
}

.product-card .favorite i {
  font-size: 20px;
  color: #ccc;
}


.favorite i.clicked {
  animation: pop 0.3s ease;
}

@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.5); }
  100% { transform: scale(1); }
}

.hidden {
  display: none !important;
}
.no-products {
  text-align: center;
  font-size: 18px;
  color: #777;
  padding: 20px;
}
#categoryButtons button.active {
  background-color: #ffffff;
  color: var(--main-orange);
  font-weight: bold;
  border: gold;
  border-width: 10px;
  font-family: 'GendersBoIdv4';
}




.bottom-nav {
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  background-color: var(--main-dark);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px 0;
  z-index: 1000;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.add-img{
    width: 25px;
    height: 25px;
    padding: 0;
    margin: 0;
}
.nav-item {
  position: relative;
  text-align: center;
  flex: 0;
}

.nav-icon {
  width: 35px;
  height: 35px;
  opacity: 0.8;
  transition: 0.2s;
}

.nav-item.active .nav-icon {
  background-color: #f3e9ff;
  border-radius: 14px;
  padding: 6px;
  opacity: 1;
}

.nav-badge {
  position: absolute;
  top: -4px;
  right: 26px;
  background-color: var(--badge-green);
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
  line-height: 1;
}

.favorite {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 18px;
  color: #ccc;
  cursor: pointer;
  transition: 0.3s;
}

.favorite.active {
  color: red;
}


.cart-item {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 12px;
  padding: 10px;
  margin: 12px 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  gap: 12px;
}
.cart-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
}
.cart-info {
  flex: 1;
}
.cart-name {
  font-weight: bold;
  margin-bottom: 5px;
}
.cart-price {
  color: green;
  font-weight: bold;
  margin-bottom: 6px;
}
.qty-controls {
  display: flex;
  align-items: center;
  background: #fef1e9;
  border-radius: 30px;
  overflow: hidden;
  width: fit-content;
}
.qty-controls button {
  background: none;
  border: none;
  font-size: 20px;
  padding: 5px 12px;
  cursor: pointer;
  color: var(--main-orange);
}
.qty-controls span {
  padding: 0 10px;
  min-width: 20px;
  text-align: center;
}
.trash {
  color: red;
  font-size: 20px;
  cursor: pointer;
}
.cart-summary {
  text-align: center;
  padding: 16px;
  font-weight: bold;
  color: green;
}
.confirm-button {
  background-color: green;
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  display: block;
  margin: 0 auto 100px;
  width: 80%;
  text-align: center;
  font-size: 18px;
  cursor: pointer;
}


.cart-bottom-bar {
  position: fixed;
  bottom: 80px; /* push it ABOVE the bottom nav */
  right: 0;
  gap: 5%;
  left: 0;
  display: flex;
  justify-content: center;
  background-color: #f5fff1;
  border-top: 2px solid #239e57;
  padding: 10px 16px;
  z-index: 1100; /* higher than bottom-nav (1000) */
  font-family: 'Cairo', sans-serif;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.08);
  animation: slideUp 0.6s ease-in-out;
  align-items: baseline;
}


.cart-bottom-bar .cart-total {
  font-size: 18px;
  font-weight: bold;
  color: #239e57;
}

.checkout-btn {
  background-color: #239e57;
  color: white;
  border: none;
  /* display: flex; */
  padding: 14px 24px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.3s ease;
  animation: bounceIn 1.2s ease infinite;
  align-content: stretch;
  flex-wrap: wrap;
  flex-direction: column-reverse;
  transition: background-color 0.3s ease;
}

.checkout-btn:hover {
  background-color: #156a19;
}

/* Entrance slide animation */
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Button bounce effect */
@keyframes bounceIn {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.checkout-page {
  font-family: 'Cairo', sans-serif;
  padding: 20px;
  background-color: #fff;
}

.checkout-title {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #fff;
  background-color: #2B2B2B;
  padding: 10px;
  border-radius: 10px;
  font-family: 'GendersBoIdv4';
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.checkout-form input,
.checkout-form select {
  padding: 12px;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 8px;
  outline: none;
  direction: rtl;
  transition: border-color 0.3s;
  font-family: 'alfont3';
}

.checkout-form input.valid,
.checkout-form select.valid {
  border-color: #28a745;
}

.checkout-form input.invalid,
.checkout-form select.invalid {
  border-color: #dc3545;
}

.checkout-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  gap: 10px;
}

.continue-btn {
  flex: 1;
  background-color: #28a745;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-family: 'GendersBoIdv4';
}

.continue-btn:hover {
  background-color: #218838;
}

.cancel-btn {
  flex: 1;
  background-color: #dc3545;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  font-family: 'GendersBoIdv4';
}

.cancel-btn:hover {
  background-color: #c82333;
}
/* ✅ تصميم قائمة المناطق (Select Dropdown) */
.checkout-form select {
  padding: 10px;
  border-radius: 10px;
  border: 2px solid #ccc;
  background-color: #fff;
  color: #333;
  font-size: 16px;
  width: 100%;
  margin-bottom: 15px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23E67000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: left 10px center;
  background-size: 18px;
}

.checkout-form select:focus {
  border-color: #E67000;
  outline: none;
}

/* ✅ ألوان الحقول */
.valid {
  border-color: #28a745;
}
.invalid {
  border-color: #dc3545;
}


/* تصميم إطار للجدول بالكامل */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 0 2px #E67000;
}

/* رأس الجدول */
.cart-table thead {
  background-color: #E67000;
  color: white;
  font-weight: bold;
  text-align: center;
}

/* الخلايا */
.cart-table th,
.cart-table td {
  padding: 14px 10px;
  text-align: center;
  border-bottom: 1px solid #eee;
  font-family: 'alfont3';
}

/* صف hover */
.cart-table tbody tr:hover {
  background-color: #f9f9f9;
}

/* المجموع النهائي */
.total-text {
  font-size: 20px;
  font-weight: bold;
  margin: 15px 0;
  color: #E67000;
  text-align: center;
}

/* تنسيق معلومات الشحن */
.section-box {
  background-color: #fff;
  border: 2px solid #E67000;
  border-radius: 10px;
  padding: 15px 20px;
  margin-top: 30px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.section-title {
  background-color: #E67000;
  color: white;
  padding: 8px 12px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  font-size: 18px;
  margin: -15px -20px 10px -20px;
  font-family: 'GendersBoIdv4';
}

.section-box p {
  margin: 5px 0;
  padding: 10px;
  border-bottom: 1px solid #eee;
  font-size: 16px;
  font-family: 'alfont3';
}

/* إزالة آخر خط */
.section-box p:last-child {
  border-bottom: none;
}


.cart-empty-wrapper {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 30px 20px 100px;
  text-align: center;
}

.empty-cart {
  animation: fadeIn 0.6s ease-in;
}

.empty-cart .empty-logo {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  animation: pulse 1.5s infinite;
}

.empty-cart h3 {
  font-size: 24px;
  color: #e67000;
  margin-bottom: 10px;
}

.empty-cart p {
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
}

.bounce-arrow {
  font-size: 28px;
  color: #e67000;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}


.side-drawer {
  position: fixed;
  top: 0;
  right: -260px;
  width: 218px;
  height: 100%;
  /* color: white; */
  background-color: #2b2b2b;
  box-shadow: -2px 0 8px rgba(0,0,0,0.1);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 20px;
  direction: rtl;
}

.side-drawer.open {
  right: 0;
}

.side-drawer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-drawer li {
  margin: 30px 0;
  padding: 5px 0;
  /* font-size: 12px; */
  width: 100%;
  border-right:3px solid #e67000;
  border-radius: 6px;
}

.side-drawer a {
  text-decoration: none;
  color: #ffffff;
  font-size: 15px;
}

.side-drawer li.active {
  background-color: #e67000;
  border-right: 3px solid #ffffff;
}

.side-drawer li.active a {
  color: white;
  font-weight: bold;
}

.side-drawer li.active a i {
  color: white;
}

.side-drawer li.active .big-logo {
  filter: brightness(0) invert(1); /* يجعل اللوجو أبيض */
}



.side-drawer a i {
  margin-left: 8px;
  color: #E67000;
padding-right:8px;
}

.side-drawer li:hover {
background-color:#403e3e

}

.email-link {
  font-family: 'Pacifico', cursive;
  margin-left: 8px;
  color: #E67000;
padding-right:8px;
  transition: color 0.3s ease;

}

.email-link:hover {
color: #ddba14;
}
.email-link:active {
color: #9b4c00;
}



.favorites-empty-wrapper {
  grid-column: 1 / -1; /* يمتد على كل الأعمدة في grid */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 30px 20px 100px;
  text-align: center;
}


.empty-favorites {
  text-align: center;
  padding: 40px 20px 100px;
  animation: fadeIn 0.6s ease-in;
}

.empty-favorites .empty-logo {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  animation: pulse 1.5s infinite;
}

.empty-favorites h3 {
  font-size: 24px;
  color: #e67000;
  margin-bottom: 10px;
}

.empty-favorites p {
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
}

.bounce-arrow {
  font-size: 28px;
  color: #e67000;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}


.total-text {
  font-size: 20px;
  font-weight: bold;
  margin: 15px 0;
  color: #E67000;
  text-align: center;
}

.total-text {
  font-weight: bold;
  font-size: 18px;
  text-align: left;
  margin: 10px 0;
  font-family: 'GendersBoIdv4';
}
textarea {
  width: 98%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: inherit;
  font-size: 15px;
  resize: vertical;
}
.success-popup {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

.success-popup .popup-content {
  background-color: white;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  width: 90%;
  max-width: 350px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.success-popup .popup-content .success-icon {
  font-size: 50px;
  color: #2ecc71;
  margin-bottom: 15px;
}

.success-popup .popup-content h3 {
  color: #2ecc71;
  font-size: 22px;
  margin-bottom: 10px;
}

.success-popup .popup-content p {
  color: #333;
  font-size: 16px;
}



.contact-container {
  max-width: 89%;
  margin: 30px auto;
  padding: 20px;
  background-color: #2b2b2b;
  border-radius: 15px;
  color: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.contact-container h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.contact-container p {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  width: 97%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
}

.submit-btn {
  background-color: #e67000;
  color: white;
  padding: 10px 20px;
  font-weight: bold;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-btn:hover {
  background-color: #ff8400;
}






/* âœ… Desktop-specific styling */
@media (min-width: 1020px) {
  .bottom-nav,
  .slider-section {
    display: none;
  }
  .cart-bottom-bar {
  bottom: 0px; /* push it ABOVE the bottom nav */

}
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .desktop-nav a {
    color: white;
    position: relative;
    text-decoration: none;
  }

  .desktop-nav img {
    width: 30px;
    height: 30px;
  }

  .desktop-nav .nav-badge {
    position: absolute;
    top: -4px;
    right: -10px;
    background-color: var(--badge-green);
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    line-height: 1;
  }

  .search-container {
    width: 300px;
  }
}
.product-card-detail {
  border: 2px solid #e67000;
  border-radius: 10px;
  padding: 20px;
  padding-bottom: 69px;
  background-color: #fff;
  margin: 20px auto;
  max-width: 86%;
  position: relative;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.product-image {
  position: relative;
  text-align: center;
}

.product-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.favorite-icon {
  position: absolute;
  top: 10px;
  left: 10px; /* لأننا نستخدم dir="rtl" */
  color: gray;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
}

.favorite-icon.active {
  color: red;
}

.offer-banner {
  background-color: green;
  color: white;
  padding: 5px 15px;
  font-size: 16px;
  margin: 10px auto;
  display: inline-block;
  border-radius: 5px;
}

.product-info {
  margin-top: 20px;
}

.price {
  font-size: 22px;
  margin: 10px 0;
  font-weight: bold;
  color: #333;
}

.quantity-box {
  margin: 15px 0;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-controls button {
  background-color: #e67000;
  color: white;
  border: none;
  padding: 5px 12px;
  font-size: 18px;
  border-radius: 5px;
  cursor: pointer;
}

.buy-btn {
  background: linear-gradient(135deg, #11ad48, #0d7c34);
  color: #fff;
  padding: 14px;
  width: 80%;
  align-self: center;
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  margin-top: 15px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* أيقونة اختيارية داخل الزر */
.buy-btn i {
  margin-left: 8px;
  font-size: 18px;
}

/* تأثير البرق (دائم) */
.buy-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.6) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-25deg);
  animation: shine 2.5s infinite;
}

/* حركة اللمعة */
@keyframes shine {
  0% {
    left: -80%;
  }
  50% {
    left: 130%;
  }
  100% {
    left: 130%;
  }
}

/* تأثير hover إضافي: رفع + ظل أقوى */
.buy-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

section.separator {
  border-top: 1px solid #eee;
  margin: 20px 0;
  padding-top: 10px;
}

.share-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
}

.share-buttons i {
  font-size: 40px;
  cursor: pointer;
}

.share-buttons .fa-whatsapp {
  color: green;
transition: color 0.3s;
}
.share-buttons .fa-whatsapp:hover {
  color: #2a74ff;
}

.fa-share {
  color: #e67000;
  transition: color 0.3s;

}

.fa-share:hover {
  color: #2a74ff;
}
.share-buttons .fa-copy {
  color: #444;
}

.about-container {
  max-width: 700px;
  margin: 40px auto;
  background-color: #ffffff;
  padding: 25px;
  border-radius: 15px;
  color: #000000;
  font-size: 18px;
  line-height: 1.8;
    border-right: 5px solid #E67000;
    border-left: 5px solid #E67000;

  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.about-container h2 {
    margin-top: 25px;
    font-size: 25px;
    color: #444;
    border-right: 5px solid #E67000;
    padding-right: 10px;}
.about-container h3 {
    margin-top: 25px;
    font-size: 20px;
    color: #444;
    border-right: 5px solid #2196F3;
    padding-right: 10px;}

.about-container strong{
  color:#E67000;
}
/* ✅ صفحة سياسة الخصوصية */
.policy-page {
  background-color: #fff;
  color: #2b2b2b;
  font-family: 'Tajawal', sans-serif;
  padding: 0;
  margin: 0;
}

.policy-container {
  max-width: 900px;
  margin: 30px auto;
  padding: 20px;
  background-color: #fdfdfd;
  border: 1px solid #eee;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  line-height: 1.9;
}

.policy-container h2 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #E67000;
}

.policy-container h3 {
  margin-top: 25px;
  font-size: 20px;
  color: #444;
  border-right: 5px solid #E67000;
  padding-right: 10px;
  font-family: 'GendersBoIdv4';
}

.policy-container p {
  margin: 10px 0;
  font-size: 16px;
  color: #333;
  font-family: 'GendersBoIdv4';
}

.policy-container ul {
  list-style: disc;
  padding-right: 20px;
  margin-top: 10px;
}

.policy-container a {
  color: #E67000;
  text-decoration: none;
}

.policy-container a:hover {
  text-decoration: underline;
}



.product-detail-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  padding: 16px;
}

/* الحاوية اللي بداخلها الكرت */
.product-detail-container {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 1100px; /* حد أقصى لعرض المحتوى */
}

/* الكرت نفسه: وسط الصفحة وخليه يمتد عمود كامل لو الأب Grid */
.product-detail-page .product-card-detail {
  display: grid;            /* نحضّر للتقسيم على الديسكتوب */
  gap: 18px;
  width: 90%;
  max-width: 960px;         /* عرض مناسب */
  margin: 0 auto;           /* توسيط */
  grid-column: 1 / -1;      /* لو الأب Grid */
  justify-self: center;     /* لو الأب Grid */
}

/* صورتك ما تتشوه */
.product-detail-page .product-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* عمودين على الشاشات الكبيرة – صورة يسار/يمين والمعلومات */
@media (min-width: 900px) {
  .product-detail-page .product-card-detail {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

/* لو انحطت بالغلط داخل .products (Grid) في أي صفحة، خليه ياخذ عرض كامل */
.products #productDetail,
.products .product-card-detail {
  grid-column: 1 / -1 !important;
  justify-self: center;
}

/* أسعار مرتّبة (لو تبغى تضمن الألوان هنا أيضاً) */
.product-detail-page .price-detail {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 20px;
}
.product-detail-page .price-detail del { color: #9b9b9b; }
.product-detail-page .price-detail .new { color: #E67000; font-weight: 800; }




/* ==== Scroll reveal for product cards ==== */
#productList .product-card.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
#productList .product-card.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ==== Card & icon hovers ==== */
.product-card {
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}
.product-card img {
  transition: transform .35s ease;
}
.product-card:hover img {
  transform: scale(1.03);
}

/* Brand chip hover */
.brand-card {
  transition: transform .25s ease, filter .25s ease;
}
.brand-card:hover { transform: translateY(-4px) scale(1.03); filter: drop-shadow(0 6px 14px rgba(230,112,0,.25)); }

/* احترام تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
  #productList .product-card.reveal,
  #productList .product-card.reveal.visible { transition: none; }
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* Skeleton placeholder */
.skeleton {
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 8px;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* خصص حجم الصورة داخل المنتج */
.product-card .skeleton {
  width: 100%;
  height: 150px;   /* نفس ارتفاع الصورة */
  margin-bottom: 8px;
}

.pd-skel {
  border: 2px solid #e67000;
  border-radius: 10px;
  padding: 20px;
  background: #fff;
  margin: 20px auto;
  max-width: 86%;
  display: grid;
  gap: 18px;
}
.pd-skel .sk-image { width: 100%; height: 320px; }
.pd-skel .sk-title { height: 24px; width: 70%; }
.pd-skel .sk-line  { height: 14px; width: 90%; }
.pd-skel .sk-price { height: 26px; width: 40%; }
.pd-skel .sk-qty   { height: 44px; width: 220px; border-radius: 8px; }
.pd-skel .sk-btn   { height: 48px; width: 80%; }

/* ==== Fade-in when content replaces skeleton ==== */
.fade-in {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeInUp .5s ease-out forwards;
}
@keyframes fadeInUp {
  to { opacity: 1; transform: none; }
}



/* âœ… Mobile-specific styling */
@media (max-width: 1019px) {
  .desktop-nav {
    display: none;
  }
  

  .search-container {
    width: 100%;
  }
}



/* === App Download section === */
.app-download {
  background-color: var(--main-dark);
  border-top: 2px solid #3a3a3a;
  padding: 14px 16px;
}
.app-download__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.app-download__text {
  color: #fff;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.app-download__text strong {
  font-family: 'GendersBoIdv4';
  font-size: 16px;
}
.app-download__text span {
  font-family: 'alfont3';
  font-size: 13px;
  opacity: .9;
}
.app-download__badge img {
  height: 48px;
  width: auto;
  display: block;
  border-radius: 8px;
}
body.checkout-page-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* طول كامل للشاشة */
}

/* ✅ خلي الـ main يتمدد وياخذ المساحة */
body.checkout-page-body main.checkout-page {
  flex: 1;
}

/* ✅ الفوتر يبقى دائمًا بأسفل */
body.checkout-page-body #footer {
  margin-top: auto; /* يضغطه لأسفل */
}
/* Mobile tweaks */
@media (max-width: 1019px) {
  /* Add bottom padding so the section isn't hidden behind the fixed bottom-nav */
  .app-download { padding-bottom: 80px; }
  .app-download__badge img { height: 40px; }
}

/* Desktop tweaks (your .bottom-nav is hidden on desktop) */
@media (min-width: 1020px) {
  .app-download { padding: 16px 20px; }
}



/* === إصلاح اختفاء فقاعة عرض الحزمة عند hover === */

/* تأكد أن حاوية الميديا نسبية ولها طبقات مضبوطة */
.products .product-card .media {
  position: relative;
  overflow: hidden; /* لو عندك zoom على الصورة، ما تطلع برا */
  z-index: 1;       /* أساس للطبقات */
}

/* اجبر الصورة تكون تحت الفقاعة */
.products .product-card .media img {
  position: relative;
  z-index: 1; /* الصورة طبقة أقل من الفقاعة */
}

/* فقاعة الحزمة فوق كل شيء داخل media */
.bundle-chip {
  position: absolute;
  right: 0px;
  bottom: 0px;
  background: linear-gradient(135deg, #9333ea, #7c3aed);
  color: #fff;
  padding: 3px 10px;
  border-radius: 1px 12px 4px 12px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(124, 58, 237, 0.28);
  transform: translateY(10px);
  opacity: 0;
  transition: transform .35s cubic-bezier(.22,.61,.36,1), opacity .35s ease;
  pointer-events: none;
  white-space: nowrap;
  max-width: calc(100% - 16px);
  overflow: hidden;
  text-overflow: ellipsis;

  z-index: 3;          /* ⭐ أعلى من الصورة وأي overlay */
  will-change: transform, opacity;
}

/* لما الكرت يصير مرئي بالـ IntersectionObserver */
.products .product-card.visible .bundle-chip {
  transform: translateY(0);
  opacity: 1;
}

/* ⭐ إبقاء الفقاعة ظاهرة أثناء الـ hover أيضًا */
.products .product-card:hover .bundle-chip {
  transform: translateY(0);
  opacity: 1;
}

/* لو عندك أي overlay فوق الصورة بالـ :hover (تغميق/لمعة)، اجعل الفقاعة فوقه */
.products .product-card .media::after {
  z-index: 3; /* أي طبقة تغميق أو overlay تكون تحت الفقاعة */
}

body.cart-page    #categoryButtons,
body.checkout-page-body #categoryButtons,
body.confirm-page  #categoryButtons {
  display: none !important;
}
