/* ===================== Reset ===================== */
* {
    box-sizing: border-box;
    margin:0;
    padding:0;
    font-family:'Arial', sans-serif;
}
body {
    line-height:1.6;
    color:#333;
}

/* ===================== Header ===================== */
header {
  background: transparent;
  color: #ffffff;
  position: fixed;
  top:0;
  width: 100%;
  display:flex;
  justify-content: space-between;
  align-items:center;
  padding: .80rem 2rem;
  z-index: 100;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

/* ===================== Header Scrolled ===================== */
header.scrolled {
  background: #ee3131;
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ===================== Logo ===================== */
header .logo img {
  height: 90px;
  width: auto;
  border: solid 2px #ffffff;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.3s;
}
header .logo img:hover{
    transform: scale(1.15);
}

/* ===================== Navigation ===================== */
header nav a {
    display: inline-block;
    margin-left:1.5rem;
    font-weight: 700;
    text-decoration:none;
    color: inherit;
    transition: color 0.3s, transform 0.3s;
}
header nav a:hover{
    color:#333;
    transform: scale(1.15);
}

header nav a.active {
  color: #ffcccc;
  border-bottom: 2px solid #fff;
}


/* ===================== Hero Section ===================== */
.hero {
  background: linear-gradient(rgba(204,0,0,0.6), rgba(255,51,51,0.6)), url('image/hero-bg.jpg') no-repeat center/cover;
  height:80vh;
  display:flex;
  justify-content:center;
  align-items:center;
  text-align:center;
  color:#ffffff;
  position: relative;
}

.hero h1 { font-size:3rem; margin-bottom:1rem; text-shadow: 2px 2px 6px rgba(0,0,0,0.5); }
.hero p { font-size:1.2rem; margin-bottom:2rem; text-shadow: 1px 1px 4px rgba(0,0,0,0.5); }

.hero small {
  display:block;
  font-size:1rem;
  font-weight: 700;
  margin-bottom:1.5rem;
  color: #660000;
}

.hero button {
  padding:0.8rem 2rem;
  border:none;
  background: #ffffff;
  color:#ff3333;
  font-size:1rem;
  font-weight: 700;
  border-radius:6px;
  cursor:pointer;
  transition: transform 0.3s, background 0.3s;
}
.hero button:hover {
    transform: scale(1.1);
    background:#cc0000;
    color: #ffffff;
}

/* ===================== Offers Section ===================== */

.offers-section { padding:4rem 2rem; text-align:center; background:#fff0f0; }
.offers-section h2 { font-size:2.2rem; margin-bottom:0.5rem; color:#990000; }
.offers-section p { font-size:1rem; color:#660000; margin-bottom:3rem; }

.offers-cards {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:2rem;
}

.offer-card {
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 10px 25px rgba(0,0,0,0.1);
  padding:1rem;
  transition: transform 0.4s, box-shadow 0.4s;
  opacity:0;
  transform:translateY(50px);
}

.offer-card:hover {
  transform:translateY(-10px);
  box-shadow:0 15px 30px rgba(255,51,51,0.4);
}

.offer-card img {
  width:100%;
  height:180px;
  object-fit:cover;
  border-bottom:2px solid #ff3333;
  margin-bottom:1rem;
}

.offer-card h3 { font-size:1.2rem; margin-bottom:0.5rem; color:#cc0000; }
.offer-card p { font-size:0.95rem; color:#660000; }
.offer-card button {
  margin-top:1rem;
  padding:0.6rem 1.4rem;
  border:none;
  background:#ff3333;
  color:#fff;
  border-radius:6px;
  cursor:pointer;
}
.offer-card button:hover { transform:scale(1.05); background:#cc0000; }
.offer-card:hover { transform:translateY(-10px); box-shadow:0 15px 30px rgba(0,0,0,0.15); }

/* ===================== About Section ===================== */
.about {
  padding: 6rem 2rem;
  background: #fff0f0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  gap: 2rem;
  align-items: center;
}

.about-image {
  flex: 1 1 400px;
  text-align: center;
}

.about-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(255,51,51,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.about-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(255,51,51,0.3);
  cursor: pointer;
}

.about-text {
  flex: 1 1 400px;
  padding: 1rem;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #cc0000;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #660000;
  line-height: 1.8;
}

.about-text button {
  padding: 0.8rem 2rem;
  border: none;
  background: #ff3333;
  color: #fff;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
}

.about-text button:hover {
  background: #cc0000;
  transform: scale(1.05);
}

/* ===================== Features Section ===================== */
.features {
  padding: 6rem 2rem;
  background: #fff0f0;
  text-align: center;
}

.features .section-title h2 {
  font-size: 2.5rem;
  color: #cc0000;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  justify-items: center;
  align-items: start;
}

.feature {
  background: #fff;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(255,51,51,0.15);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.feature:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(255,51,51,0.25);
}

.feature img {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
  transition: transform 0.3s;
}

.feature img:hover {
  transform: scale(1.2);
}

.feature h3 {
  font-size: 1.5rem;
  color: #cc0000;
  margin-bottom: 0.8rem;
}

.feature p {
  font-size: 1rem;
  color: #660000;
  line-height: 1.6;
}

/* ===================== Featured Section ===================== */
.featured {
  padding: 6rem 2rem;
  background: #fff0f0;
}

.featured-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}

.featured-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(255,51,51,0.25);
  transition: transform 0.4s, box-shadow 0.4s;
}

.featured-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 45px rgba(255,51,51,0.35);
}

.featured-info {
  max-width: 500px;
  text-align: left;
}

.featured-info h2 {
  font-size: 2.5rem;
  color: #cc0000;
  margin-bottom: 1rem;
}

.featured-info p {
  font-size: 1.1rem;
  color: #660000;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.featured-info button {
  padding: 0.8rem 2rem;
  border: none;
  background: #ff3333;
  color: #fff;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
}

.featured-info button:hover {
  background: #cc0000;
  transform: scale(1.05);
}

/* ===================== CTA Section ===================== */
.cta {
  padding:4rem 2rem;
  background:#cc0000;
  color:#fff;
  text-align:center;
}
.cta h2 {
  font-size:2rem;
  margin-bottom:1rem;
  font-weight: 700;
}
.cta p {
  margin-bottom:2rem;
  font-weight: 600;
}
.cta button {
  padding:0.8rem 2rem;
  font-weight: 700;
  border:none;
  background:#fff;
  color:#cc0000;
  border-radius:6px;
  cursor:pointer;
}
.cta button:hover {
  background:#ff3333;
  font-weight: 700;
  color:#fff;
  transform:scale(1.2);
}

/* ===================== Footer ===================== */
footer {
  background: #990000; /* نفس اللون */
  color: #fff;
  text-align: center;
  padding: 2rem;
}

footer p {
  margin-left: 10px; /* مسافة خفيفة من اليسار */
}


footer a {
  display: inline-block;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  margin-left: 15px;
  transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
}

footer a:hover {
  color: #ffcccc;
  transform: scale(1.08);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}



/* ===================== Animations ===================== */
@keyframes fadeInDown { 0%{opacity:0; transform:translateY(-50px);} 100%{opacity:1; transform:translateY(0);} }

/* ===================== Responsive (Mobile & Tablet) ===================== */
@media (max-width: 1024px) {
  .about-container, .featured-container {
    flex-direction: column;
  }
    #cartCount {
    top: -5px;
    right: -5px;
    transform: scale(0.9);
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 1rem;
  }

  header nav {
    margin-top: 1rem;
  }

  .cart-icon i {
    margin-top: 2rem;
  }

  #cartCount {
    top: -5px;
    right: -5px;
    transform: scale(0.9);
  }

  .hero h1 {
    font-size: 2rem;
    margin-top: 13rem;
  }
  .hero p { font-size: 1rem; }
  .hero small { font-size: 0.9rem; }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .offers-cards {
    grid-template-columns: 1fr;
  }

  .about-text h2,
  .featured-info h2 {
    font-size: 2rem;
  }
}

/* Fade-in Animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll to Top Button */
#scrollTopBtn {
  display: none; /* Hidden by default */
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 99;
  font-size: 24px;
  background-color: #ff3333;
  color: white;
  border: none;
  font-weight: 700;
  border-radius: 50%;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

#scrollTopBtn:hover {
  background-color: #ffffff;
  color: #cc0000;
  transform: scale(1.3);
}

/* Tablets */
@media (max-width: 1024px) {
  .about-container,
  .featured-container {
    flex-direction: column;
    text-align: center;
  }

  .featured-info, .about-text {
    text-align: center;
  }

    #cartCount {
    top: -5px;
    right: -5px;
    transform: scale(0.9);
  }
}

/* Mobile */
@media (max-width: 768px) {
  header nav a {
    margin-left: 1rem;
    font-size: 0.9rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p, .hero small {
    font-size: 0.9rem;
  }

  .offers-cards {
    grid-template-columns: 1fr;
  }

    #cartCount {
    top: -5px;
    right: -5px;
    transform: scale(0.9);
  }
}

/* ========== Compact Modal Styles ========== */
.modal {
  display: none;
  position: fixed;
  z-index: 300;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  overflow-y: auto;
}

.modal-content {
  background: #fffafc;
  display: flex;
  max-width: 700px;
  border-radius: 20px;
  padding: 15px;
  position: relative;
  gap: 15px;
}

.modal-left, .modal-right {
  flex: 1;
  min-width: 200px;
}

.modal-left img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 8px;
}

.modal-thumbnails {
  display: flex;
  gap: 8px;
}
.modal-thumbnails img {
  width: 40px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
}
.modal-thumbnails img:hover {
  border: 2px solid #ff3333;
}

.modal-right h2 {
  color: #cc0000;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.modal-price {
  color: #ff3333;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.modal-description {
  color: #660000;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.modal-info h3 {
  margin-top: 0.8rem;
  color: #cc0000;
  font-size: 1rem;
}

.modal-info p, .modal-info ul {
  margin-left: 8px;
  color: #660000;
  font-size: 0.9rem;
}

.modal-info ul li {
  margin-bottom: 4px;
}

.modal-info button {
  margin-top: 8px;
  padding: 0.6rem 1.5rem;
  background: #ff3333;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
}
.modal-info button:hover {
  background: #cc0000;
}

/* Close Button */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #cc0000;
}

.close:hover {
  color: #ff3333;
}



.cart-icon {
  position: relative;
  cursor: pointer;
}

.cart-icon i {
  font-size: 35px;
  color: #ffffff;
  transition: transform 0.3s ease;
}

.cart-icon i:hover {
  transform: scale(1.4);
}

#cartCount {
  position: absolute;
  top: -8px;
  right: -8px;
  background: red;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50%;
  padding: 2px 6px;
}

.cart-content {
  max-width: 500px;
  width: 90%;
}
#cartItems div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cart-quantity input {
  width: 50px;
}

/* Cart Modal */
.cart-modal {
  display: none;
  position: fixed;
  z-index: 300;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}

.cart-content {
  background: #fff;
  width: 400px;
  max-height: 80%;
  overflow-y: auto;
  border-radius: 12px;
  padding: 20px;
  position: relative;
}

.cart-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.cart-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.cart-item img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  margin-right: 10px;
}

.cart-item-details {
  flex: 1;
}

.cart-item-details h4 {
  margin-bottom: 5px;
}

.cart-item-details p {
  font-size: 14px;
  color: #555;
}

.cart-item-quantity input {
  width: 50px;
  text-align: center;
}

.cart-total {
  margin-top: 20px;
  font-size: 18px;
  text-align: right;
}

#checkoutBtn {
  margin-top: 15px;
  width: 100%;
  padding: 10px;
  background: #ff3333;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}
#checkoutBtn:hover {
  background: #cc0000;
}

@media (max-width: 768px) {
  .cart-icon {
    position: relative !important;
  }

  .cart-icon i {
    margin-top: 2rem !important;
  }

  #cartCount {
    position: absolute !important;
    top: 17px !important;
    right: -6px !important;
    transform: scale(0.9) !important;
  }
}


.production-modal .modal-content {
  flex-direction: column;
  max-width: 900px;
  padding: 20px;
  border-radius: 20px;
  text-align: center;
}

.production-modal .production-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
}

.production-modal .production-gallery img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.3s;
}

.production-modal .production-gallery img:hover {
  transform: scale(1.05);
}


#lightboxModal img {
  display: block;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

#lightboxModal {
  display: none;
  position: fixed;
  z-index: 500;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}
/* ===================== Subscribe Modal ===================== */
.subscribe-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 15px;
}

.subscribe-content {
  background: #fff0f0;
  padding: 30px 25px;
  border-radius: 20px;
  text-align: center;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 12px 35px rgba(0,0,0,0.3);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.subscribe-content:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 45px rgba(0,0,0,0.35);
}

.subscribe-content h2 {
  font-size: 1.8rem;
  color: #cc0000;
  margin-bottom: 15px;
  font-weight: 700;
}

.subscribe-content p {
  font-size: 1rem;
  color: #660000;
  margin-bottom: 20px;
  line-height: 1.5;
}

.subscribe-content input[type="email"] {
  width: 80%;
  padding: 12px 15px;
  border-radius: 10px;
  border: 1.5px solid #cc0000;
  font-size: 1rem;
  margin-bottom: 15px;
  transition: border 0.3s, box-shadow 0.3s;
}

.subscribe-content input[type="email"]:focus {
  outline: none;
  border-color: #ff3333;
  box-shadow: 0 0 8px rgba(255, 51, 51, 0.5);
}

.subscribe-content button {
  padding: 12px 25px;
  background: #cc0000;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  transition: background 0.3s, transform 0.3s;
}

.subscribe-content button:hover {
  background: #ff3333;
  transform: scale(1.05);
}

.subscribe-content .close {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
  color: #cc0000;
  transition: color 0.3s, transform 0.3s;
}

.subscribe-content .close:hover {
  color: #ff3333;
  transform: scale(1.2);
}

/* Responsive */
@media (max-width: 480px) {
  .subscribe-content {
    padding: 20px 15px;
  }

  .subscribe-content input[type="email"] {
    width: 90%;
  }
}
@media (max-width: 768px) {
  .modal-content {
    width: 90%;
    max-width: 350px;
    aspect-ratio: 1 / 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    overflow-y: auto;
    border-radius: 15px;
    box-sizing: border-box;
    background: #fffafc;
  }

  .modal-left,
  .modal-right {
    width: 100%;
    text-align: center;
  }

  .modal-left img {
    max-width: 120px;
    height: auto;
    margin: 0 auto;
    border-radius: 12px;
  }

  .modal-thumbnails {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
  }

  .modal-thumbnails img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
  }

  .modal-right h2 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    font-weight: 700;
  }

  .modal-price {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #ff3333;
    font-weight: 700;
  }

  .modal-description,
  .modal-info p,
  .modal-info ul {
    font-size: 0.85rem;
    margin-bottom: 5px;
  }

  .modal-info ul {
    padding-left: 0;
    list-style: none;
  }

  .modal-info button {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border-radius: 10px;
    margin-top: 10px;
    background: #ff3333;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
  }

  .modal-info button:hover {
    background: #cc0000;
    transform: scale(1.05);
  }

  .close {
    top: 8px;
    right: 12px;
    font-size: 24px;
    color: #cc0000;
    cursor: pointer;
  }

  .close:hover {
    color: #ff3333;
  }
}
