:root {
  --main-bg: #f5f3f0;
  --card-bg: #dea7b9;
  --primary: #9c0d1a;
  --secondary: #6a1241;
  --accent: #ffb5aa;
  --text:#434343;
  --header: #dea7b9;
  --footer: #dea7b9;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --light-border: 1px solid rgba(139, 107, 74, 0.15);
  --transition: all 0.3s ease;
  --dark-bg: #000000 ;
  --dark-text: #ffb5aa;
  --dark-card:#510707 ;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  font-family: 'Tajawal', 'El Messiri', sans-serif;
  background: var(--main-bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  transition: background 0.5s ease, color 0.5s ease;
}

body.dark-mode {
  background: var(--dark-bg);
  color: var(--dark-text);
}

header {
  background: var(--header);
  box-shadow: var(--shadow);
  padding: 1.2rem 0;
  text-align: center;
  margin-bottom: 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.5s ease;
}

.dark-mode header {
  background: var(--dark-card);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  font-family: 'El Messiri', 'Tajawal', sans-serif;
  font-size: 2rem;
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  transition: color 0.5s ease;
}

.dark-mode .logo {
  color: var(--accent);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: var(--shadow);
  transition: background 0.5s ease;
}

.dark-mode .logo-icon {
  background: linear-gradient(135deg, var(--accent), var(--secondary));
}

.header-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.dark-mode-toggle {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
  transition: transform 0.3s ease, color 0.5s ease;
}

.dark-mode .dark-mode-toggle {
  color: var(--accent);
}

.dark-mode-toggle:hover {
  transform: rotate(30deg);
}

.cart-btn {
  position: relative;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
  transition: color 0.5s ease;
}

.dark-mode .cart-btn {
  color: var(--accent);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--secondary);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.announcement-bar {
  background: linear-gradient(90deg, #9c0d1a, #6a1241);
  color: white;
  padding: 10px 0;
  overflow: hidden;
  position: relative;
  font-weight: 500;
}

.announcement-container {
  width: 100%;
}

.announcement-content {
  display: inline-block;
  white-space: nowrap;
  animation: scrollText 25s linear infinite;
  transform: translateX(100%);
}

.announcement-text {
  display: inline-block;
  padding: 0 40px;
  font-size: 16px;
}

@keyframes scrollText {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 1.5rem;
  background-color: var(--main-bg);
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  max-width: 600px;
  margin-bottom: 2rem;
  z-index: 2;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  font-family: 'El Messiri', sans-serif;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

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

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

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

.hero-image {
  max-width: 600px;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  z-index: 2;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.hero-image:hover img {
  transform: scale(1.03);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(222,167,185,0.1) 0%, rgba(255,255,255,0) 70%);
  z-index: 1;
}

@media (min-width: 768px) {
  .hero-section {
    flex-direction: row;
    min-height: 500px;
    padding: 3rem;
  }
  
  .hero-content {
    text-align: right;
    margin-bottom: 0;
    flex: 1;
    padding-left: 2rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-cta {
    justify-content: flex-start;
  }
}

.dark-mode .hero-section {
  background-color: var(--dark-bg);
}

.dark-mode .hero-subtitle {
  color: var(--dark-text);
}

.dark-mode .btn-secondary {
  color: var(--accent);
  border-color: var(--accent);
}

.dark-mode .btn-secondary:hover {
  background: var(--accent);
  color: var(--dark-bg);
}

main {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem 1.5rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary);
  font-size: 1.8rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.5rem;
  transition: color 0.5s ease;
}

.dark-mode .section-title {
  color: var(--accent);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 3px;
  transition: background 0.5s ease;
}

.dark-mode .section-title::after {
  background: linear-gradient(to right, var(--accent), var(--secondary));
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  border: var(--light-border);
  transition: background 0.5s ease, transform 0.3s ease;
}

.dark-mode .product-card {
  background: var(--dark-card);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgba(139, 107, 74, 0.15);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--transition);
}

.dark-mode .product-card::before {
  background: linear-gradient(to right, var(--accent), var(--secondary));
}

.product-card:hover::before {
  opacity: 1;
}

.product-img-container {
  position: relative;
  overflow: hidden;
  padding-top: 100%;
}

.product-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.product-info {
  padding: 1.2rem 1rem;
  text-align: center;
}

.product-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-family: 'El Messiri', 'Tajawal', sans-serif;
  transition: color 0.5s ease;
}

.dark-mode .product-name {
  color: var(--accent);
}

.product-price {
  font-size: 1.1rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 2;
  transition: background 0.5s ease;
}

.dark-mode .product-badge {
  background: var(--accent);
  color: var(--dark-bg);
}

.designer-message {
  background: linear-gradient(90deg, #fff6f9 60%, #ffe6ef 100%);
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(156, 13, 26, 0.06);
  margin: 2.5rem auto;
  padding: 2rem 1.5rem;
  max-width: 600px;
  text-align: center;
  position: relative;
}

.designer-message-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.designer-message-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.designer-message-text {
  font-family: 'El Messiri', 'Tajawal', sans-serif;
  font-size: 1.15rem;
  color: #9c0d1a;
  margin: 0 0 1rem 0;
  background: none;
  border: none;
  line-height: 1.9;
}

.designer-signature {
  color: #6a1241;
  font-family: 'El Messiri', sans-serif;
  font-size: 1rem;
  margin-top: 0.5rem;
  letter-spacing: 1px;
}

.dark-mode .designer-message {
  background: linear-gradient(90deg, #3a0935 60%, #9c0d1a 100%);
  color: #ffb5aa;
}

.dark-mode .designer-message-text {
  color: #ffb5aa;
}

.dark-mode .designer-signature {
  color: #ffe6ef;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  max-width: 800px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: modalFadeIn 0.4s ease;
  max-height: 90vh;
  overflow-y: auto;
  transition: background 0.5s ease;
}

.dark-mode .modal-content {
  background: var(--dark-card);
}

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

.modal-close {
  position: absolute;
  right: 1.2rem;
  top: 1.2rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.3rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark-mode .modal-close {
  background: var(--accent);
  color: var(--dark-bg);
}

.modal-close:hover {
  background: var(--secondary);
  transform: rotate(90deg);
}

.modal-main-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .modal-main-content {
    flex-direction: row;
  }
}

.modal-images {
  flex: 1;
  min-width: 0;
}

.modal-main-img-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 1px solid rgba(139, 107, 74, 0.2);
}

.modal-main-img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.modal-gallery {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.modal-gallery img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: var(--transition);
}

.dark-mode .modal-gallery img {
  border: 2px solid var(--secondary);
}

.modal-gallery img.active {
  border: 2px solid var(--primary);
  transform: scale(1.05);
}

.dark-mode .modal-gallery img.active {
  border: 2px solid var(--accent);
}

.modal-details {
  flex: 1;
  min-width: 0;
}

.modal-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.8rem;
  font-family: 'El Messiri', 'Tajawal', sans-serif;
  transition: color 0.5s ease;
}

.dark-mode .modal-title {
  color: var(--accent);
}

.modal-price {
  font-size: 1.4rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.modal-desc {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  transition: color 0.5s ease;
}

.dark-mode .modal-desc {
  color: var(--dark-text);
}

.modal-features {
  margin-bottom: 1.5rem;
}

.modal-features h4 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 600;
  transition: color 0.5s ease;
}

.dark-mode .modal-features h4 {
  color: var(--accent);
}

.modal-features ul {
  list-style-type: none;
  padding-right: 1rem;
}

.modal-features li {
  margin-bottom: 0.4rem;
  position: relative;
  color: var(--text);
  transition: color 0.5s ease;
}

.dark-mode .modal-features li {
  color: var(--dark-text);
}

.modal-features li::before {
  content: '•';
  color: var(--secondary);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-right: 0.5em;
}

.whatsapp-btn {
  background: linear-gradient(90deg, #25d366, #128c7e);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 2.5rem;
  font-size: 1.1rem;
  font-family: 'Tajawal', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.whatsapp-btn:hover {
  background: linear-gradient(90deg, #128c7e, #25d366);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}

footer {
  background: var(--footer);
  text-align: center;
  padding: 2rem 0 1rem 0;
  margin-top: auto;
  border-top: var(--light-border);
  transition: background 0.5s ease;
}

.dark-mode footer {
  background: var(--dark-card);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.social-link {
  color: var(--primary);
  font-size: 1.5rem;
  transition: var(--transition);
  text-decoration: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 107, 74, 0.1);
}

.dark-mode .social-link {
  color: var(--accent);
}

.social-link:hover {
  color: #fff;
  background: var(--primary);
  transform: translateY(-3px);
}

.dark-mode .social-link:hover {
  background: var(--accent);
  color: var(--dark-bg);
}

.footer-text {
  font-size: 0.95rem;
  color: #666;
  margin-top: 0.5rem;
  transition: color 0.5s ease;
}

.dark-mode .footer-text {
  color: #aaa;
}

.footer-contact {
  margin-bottom: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  transition: color 0.5s ease;
}

.dark-mode .contact-item {
  color: var(--dark-text);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dark-mode .back-to-top {
  background: var(--accent);
  color: var(--dark-bg);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--secondary);
  transform: translateY(-5px);
}

.dark-mode .back-to-top:hover {
  background: var(--secondary);
}

/* أنماط قسم كيفية الطلب */
.how-to-order {
  padding: 4rem 1.5rem;
  background-color: var(--main-bg);
  text-align: center;
}

.how-to-order .section-title {
  margin-bottom: 3rem;
  position: relative;
}

.how-to-order .section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.step-card {
  background: white;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
}

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

.step-number {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 1.5rem;
  font-weight: bold;
  color: rgba(0,0,0,0.05);
}

.step-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 5px 15px rgba(156, 13, 26, 0.3);
}

.step-title {
  color: var(--primary);
  margin-bottom: 1rem;
  font-family: 'El Messiri', sans-serif;
  font-size: 1.3rem;
}

.step-description {
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
}

.order-notes {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.note-card {
  background: var(--accent);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.note-card i {
  color: var(--primary);
  font-size: 1.2rem;
}

.note-card p {
  margin: 0;
  font-weight: 500;
  color: var(--text);
}

.dark-mode .how-to-order {
  background-color: var(--dark-bg);
}

.dark-mode .step-card {
  background: var(--dark-card);
  border: 1px solid rgba(255,255,255,0.05);
}

.dark-mode .step-description {
  color: #ccc;
}

.dark-mode .note-card {
  background: rgba(233, 237, 201, 0.1);
  border: 1px solid rgba(233, 237, 201, 0.2);
}

.dark-mode .note-card p {
  color: var(--dark-text);
}

@media (max-width: 768px) {
  .steps-container {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto 3rem;
  }
  
  .order-notes {
    flex-direction: column;
    align-items: center;
  }
  
  .note-card {
    width: 100%;
    justify-content: center;
  }
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader {
  width: 48px;
  height: 48px;
  border: 5px solid var(--primary);
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Modern Toast Notification */
.toast-container {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.toast {
  background: white;
  color: #333;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  max-width: 90vw;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.toast.success {
  background: #4CAF50;
  color: white;
}

.toast.error {
  background: #f44336;
  color: white;
}

.toast.warning {
  background: #FF9800;
  color: white;
}

.toast.info {
  background: var(--primary);
  color: white;
}

.dark-mode .toast:not(.success):not(.error):not(.warning) {
  background: var(--dark-card);
  color: var(--dark-text);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast-icon {
  font-size: 1.2rem;
}

.toast-close {
  margin-right: -0.5rem;
  margin-left: 0.5rem;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.toast-close:hover {
  opacity: 1;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .logo {
    font-size: 1.6rem;
  }
  
  .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
  }
  
  .modal-content {
    padding: 1.5rem;
  }
  
  .modal-title {
    font-size: 1.4rem;
  }
  
  .modal-price {
    font-size: 1.2rem;
  }
  
  .back-to-top {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    bottom: 1.5rem;
    right: 1.5rem;
  }
  
  .announcement-content span {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  main {
    padding: 0 1rem 2rem 1rem;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-gallery img {
    width: 50px;
    height: 50px;
  }
  
  .whatsapp-btn, .add-to-cart-btn {
    width: 100%;
    justify-content: center;
  }
  
  .announcement-content {
    animation: scrollText 15s linear infinite;
  }
  
  .toast {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 8px;
}

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

.dark-mode ::-webkit-scrollbar-track {
  background: #2d2d2d;
}

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

.dark-mode ::-webkit-scrollbar-thumb {
  background: var(--accent);
}

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

.install-prompt {
  position: fixed;
  bottom: 20px;
  right: 20px;
  left: 20px;
  max-width: 500px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.15);
  z-index: 9999;
  padding: 15px;
  animation: slideIn 0.4s ease-out;
  border: 1px solid rgba(0,0,0,0.1);
  font-family: 'Tajawal', sans-serif;
}

.install-prompt.hide {
  animation: slideOut 0.3s ease-in forwards;
}

.install-prompt-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.install-icon {
  font-size: 24px;
  color: var(--primary);
  background: rgba(156, 13, 26, 0.1);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.install-text {
  flex: 1;
}

.install-text h3 {
  margin: 0 0 5px 0;
  color: var(--primary);
  font-size: 1.1rem;
}

.install-text p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

.install-buttons {
  display: flex;
  gap: 10px;
}

#installBtn, #dismissBtn {
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: 'Tajawal', sans-serif;
}

#installBtn {
  background: var(--primary);
  color: white;
}

#installBtn:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

#dismissBtn {
  background: #f5f5f5;
  color: #555;
}

#dismissBtn:hover {
  background: #e0e0e0;
}

/* تأثيرات الحركة */
@keyframes slideIn {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

/* التنسيق في وضع الليل */
.dark-mode .install-prompt {
  background: var(--dark-card);
  border: 1px solid rgba(255,255,255,0.1);
}

.dark-mode .install-text p {
  color: #ccc;
}

.dark-mode #dismissBtn {
  background: rgba(255,255,255,0.1);
  color: #eee;
}

.dark-mode #dismissBtn:hover {
  background: rgba(255,255,255,0.2);
}

@media (max-width: 480px) {
  .install-prompt {
    bottom: 10px;
    left: 10px;
    right: 10px;
  }
  
  .install-prompt-content {
    flex-direction: column;
    text-align: center;
  }
  
  .install-buttons {
    width: 100%;
  }
  
  #installBtn, #dismissBtn {
    flex: 1;
    padding: 10px;
  }
}
