/* ===== الهيدر ===== */
.store-header {
  width: 100%;
  background: linear-gradient(270deg, #ffffff, #ffe4e1, #ffffff, #ffebcd);
  background-size: 800% 800%;
  color: #1a1a1a;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  animation: gradientMove 12s ease infinite;
  transition: all 0.3s ease;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* الشريط العلوي */
.store-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  flex-wrap: wrap;
}

.store-logo {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.store-logo img {
  width: 120px;
  border-radius: 50%;
}

.store-logo:hover img {
  transform: scale(1.1) rotate(-5deg);
}

/* صندوق البحث */
.store-search {
  flex: 1;
  display: flex;
  margin: 10px 20px;
}

.store-search input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 4px 0 0 4px;
  border: 1px solid #ccc;
  transition: box-shadow 0.3s ease;
}

.store-search input:focus {
  outline: none;
  box-shadow: 0 0 8px #ff4d6d;
}

.store-search button {
  background: #ff4d6d;
  border: none;
  padding: 8px 14px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  color: white;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

.store-search button:hover {
  background: #ff1a50;
  transform: scale(1.05);
}

/* حساب وسلة */
.store-account-cart {
  display: flex;
  gap: 15px;
}

.store-account a, .store-orders a, .store-cart a {
  color: #ff4d6d;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.store-account a:hover, .store-orders a:hover, .store-cart a:hover {
  color: #ff1a50;
  text-decoration: underline;
}

/* شريط الأقسام */
.store-nav {
  background: #ff4d6d;
  padding: 15px 20px;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 4px 8px rgba(231, 227, 4, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.store-nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.store-nav li {
  position: relative;
}

.store-nav a {
  display: inline-block;
  color: white;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  padding: 5px 10px;
  transition: all 0.3s ease;
}

.store-nav a:hover {
  color: #1a1a1a;
  transform: scale(1.3);
}

/* قائمة منسدلة */
.store-nav li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ff4d6d;
  list-style: none;
  padding: 10px 0;
  border-radius: 0 0 10px 10px;
  min-width: 180px;
  z-index: 100;
}

.store-nav li:hover ul {
  display: block;
}

.store-nav li ul li {
  padding: 5px 20px;
}

.store-nav li ul li a {
  font-size: 15px;
  display: block;
}

/* أيقونات السوشيال */
.store-nav .socials {
  display: flex;
  gap: 15px;
}

.store-nav .socials a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background-color: white;
  color: #ff4d6d;
  border-radius: 50%;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.store-nav .socials a:hover {
  background-color: #f0819b;
  color: white;
  transform: scale(1.3);
}

/* ===== Responsive Tablet & Mobile Unified ===== */

/* تابلت كبير (1024px وما أقل) */
@media (max-width: 1024px) {
  .store-top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .store-search {
    width: 100%;
    margin: 10px 0;
  }
  .store-nav {
    justify-content: center;
  }
  .store-nav ul {
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
  }
}

/* تابلت متوسط / موبايل كبير (768px وما أقل) */
@media (max-width: 768px) {
  .store-top-bar {
    gap: 8px;
  }
  .store-logo img {
    width: 100px;
  }
  .store-search {
    width: 100%;
  }
  .store-search input {
    padding: 6px 10px;
    font-size: 14px;
  }
  .store-search button {
    padding: 6px 10px;
    font-size: 14px;
  }
  .store-nav a {
    font-size: 15px;
    padding: 4px 8px;
  }
  .store-nav li ul {
    min-width: 140px;
  }
  .store-nav .socials a {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
}

/* موبايل صغير (480px وما أقل) */
@media (max-width: 480px) {
  .store-top-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
  }
  .store-logo img {
    width: 90px;
  }
  .store-search {
    flex-direction: column;
    width: 100%;
    margin: 10px 0;
  }
  .store-search input,
  .store-search button {
    width: 100%;
    border-radius: 8px;
    margin: 5px 0;
  }
  .store-nav {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  .store-nav ul {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: center;
  }
  .store-nav li ul {
    position: static;
    min-width: 100%;
    border-radius: 10px;
  }
  .store-nav .socials {
    justify-content: center;
  }
}

