/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, "Arabic Typesetting", "Traditional Arabic",
    sans-serif;
}

:root {
  --primary: #95b39b;
  --secondary: #cc838a;
  --accent: #d4af37;
  --light: #f8f9fa;
  --dark: #cc838a;
  --text: #333333;
  --gray: #6c757d;
}

body {
  background-color: var(--light);
  color: var(--text);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--secondary);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

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

/* Header Styles */
header {
  background-color: white;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 25px;
}

nav ul li a {
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--secondary);
}

nav ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--secondary);
  transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  margin-left: 10px;
  border-radius: 10px;
  animation: float 3s ease-in-out infinite;
  box-shadow: 0 5px 15px #95b39b;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

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

.logo h1 {
  font-size: 24px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0;
}

.cart-icon {
  position: relative;
  cursor: pointer;
}

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

/* Perfect Slideshow Styles - 1200x600 with Full Transparency */
.slideshow-container {
  position: relative;
  width: 100%;
  height: 60vh; /* Perfect for 1200x600 ratio */
  min-height: 400px;
  max-height: 600px;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  margin: 0 auto;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* FULL TRANSPARENT Slide Content */
.slide-content {
  position: absolute;
  bottom: 15%;
  right: 10%;
  background: transparent !important; /* Completely transparent */
  padding: 0; /* Remove padding since we don't need background */
  max-width: 500px;
  text-align: right;
}

.slide-content h2 {
  color: white;
  margin-bottom: 15px;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5); /* Strong text shadow for readability */
}

.slide-content p {
  color: white;
  margin-bottom: 25px;
  font-size: 1.2rem;
  line-height: 1.6;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.5); /* Strong text shadow */
  font-weight: 500;
}

.slide-content .btn {
  background: linear-gradient(135deg, #cc838a, #b86a71);
  color: white;
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.slide-content .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, #b86a71, #a55a62);
}

/* Slide Dots */
.slide-dots {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.dot.active {
  background: white;
  transform: scale(1.2);
  border-color: #cc838a;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.1);
}
/* Categories Section */
.section-title {
  text-align: center;
  margin: 50px 0 30px;
  font-size: 32px;
  color: var(--primary);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 3px;
  background-color: var(--secondary);
  bottom: -10px;
  right: 50%;
  transform: translateX(50%);
}

.categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.category-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.category-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.category-name {
  padding: 20px;
  text-align: center;
  font-weight: 600;
  font-size: 18px;
  color: var(--primary);
}

/* Products Page */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

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

.product-info {
  padding: 20px;
}

.product-name {
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 18px;
  color: var(--primary);
  text-align: right;
}

.product-price {
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 20px;
  text-align: right;
}

.quantity-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  direction: ltr;
}

.quantity-btn {
  background-color: #f0f0f0;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.quantity-btn:hover {
  background-color: #e0e0e0;
}

.quantity-display {
  font-weight: 600;
  width: 40px;
  text-align: center;
}

.add-to-cart {
  background-color: var(--secondary);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s;
  width: 100%;
}

.add-to-cart:hover {
  background-color: var(--primary);
}

/* Cart Page */
.cart-items {
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  overflow: hidden;
}

.cart-item {
  display: flex;
  padding: 20px;
  border-bottom: 1px solid #eee;
  align-items: center;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
  margin-left: 20px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.cart-item-img:hover {
  transform: scale(1.05);
}

.cart-item-details {
  flex: 1;
  text-align: right;
}

.cart-item-name {
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 18px;
}

.cart-item-price {
  color: var(--secondary);
  font-weight: 700;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  direction: ltr;
}

.cart-item-quantity input {
  width: 60px;
  text-align: center;
  margin: 0 10px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.remove-item {
  color: #e74c3c;
  background: none;
  border: none;
  cursor: pointer;
  margin-right: 15px;
  font-size: 16px;
}

.cart-summary {
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  margin-bottom: 30px;
  text-align: right;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.summary-total {
  font-weight: 700;
  font-size: 20px;
  color: var(--primary);
}

.customer-info {
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  margin-bottom: 30px;
  text-align: right;
}

.form-group {
  margin-bottom: 20px;
  text-align: right;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border 0.3s;
  text-align: right;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--secondary);
  outline: none;
}

.confirm-order {
  background-color: var(--secondary);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
  transition: background-color 0.3s;
  display: block;
  margin: 0 auto 30px;
}

.confirm-order:hover {
  background-color: var(--primary);
}

/* Footer */
footer {
  background-color: var(--dark);
  color: white;
  padding: 40px 0 20px;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 0;
}

.footer-links {
  display: flex;
  margin-bottom: 20px;
}

.footer-links a {
  margin: 0 15px;
  color: #ecf0f1;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary);
}

.social-icons {
  display: flex;
  margin-bottom: 20px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin: 0 10px;
  transition: background-color 0.3s;
}

.social-icons a:hover {
  background-color: var(--primary);
}

.copyright {
  font-size: 14px;
  color: #bdc3c7;
  text-align: center;
}

/* Product Image Modal */
.product-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s;
}

.modal-content {
  position: relative;
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  top: 50%;
  transform: translateY(-50%);
}

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

.modal-close {
  position: absolute;
  top: 15px;
  left: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  z-index: 1001;
}

.modal-close:hover {
  color: var(--secondary);
}

.modal-caption {
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  font-size: 18px;
}

/* Loading animation for modal */
.modal-content {
  animation: zoomIn 0.3s;
}

@keyframes zoomIn {
  from {
    transform: translateY(-50%) scale(0.8);
    opacity: 0;
  }
  to {
    transform: translateY(-50%) scale(1);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }

  nav ul {
    margin-top: 15px;
    justify-content: center;
  }

  .slide {
    height: 300px;
  }

  .slide-content {
    right: 20px;
    bottom: 20px;
  }

  .slide-content h2 {
    font-size: 24px;
  }

  .slide-content p {
    font-size: 16px;
  }

  .categories,
  .products {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .cart-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-item-img {
    margin-bottom: 15px;
    margin-left: 0;
  }

  .cart-item-quantity {
    margin-top: 15px;
  }

  .modal-content {
    width: 95%;
  }

  .modal-close {
    top: 10px;
    left: 20px;
    font-size: 30px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-links a {
    margin: 5px 10px;
  }

  /* Mobile Responsive - Full Transparency */
  @media (max-width: 768px) {
    .slideshow-container {
      height: 50vh; /* Slightly smaller on mobile */
      min-height: 350px;
      max-height: 500px;
    }

    .slide-content {
      bottom: 10%;
      right: 5%;
      left: 5%;
      text-align: center;
    }

    .slide-content h2 {
      font-size: 1.8rem;
      padding: 12px 18px;
      text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
      margin-bottom: 4px;
    }

    .slide-content p {
      font-size: 1.1rem;
      padding: 10px 15px;
      text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
      margin-bottom: 8px;
    }

    .slide-content .btn {
      padding: 10px 25px;
      font-size: 1rem;
    }

    .slide-dots {
      bottom: 20px;
    }
  }

  @media (max-width: 480px) {
    .slideshow-container {
      height: 45vh;
      min-height: 300px;
      max-height: 400px;
    }

    .slide-content {
      bottom: 8%;
      right: 3%;
      left: 3%;
    }

    .slide-content h2 {
      font-size: 1.5rem;
      padding: 10px 15px;
      margin-bottom: 6px;
    }

    .slide-content p {
      font-size: 1rem;
      padding: 8px 12px;
      margin-bottom: 3px;
    }

    .slide-content .btn {
      padding: 8px 20px;
      font-size: 0.9rem;
    }
  }

  /* Text center utility class */
  .text-center {
    text-align: center;
  }
}
