:root {
  --primary-color: #ffc50f;
  --bg-color: #ffffff;
  --text-color: #333333;
  --card-bg: #f8f8f8;
  --border-color: #e0e0e0;
  --header-bg: #ffffff;
  --footer-bg: #f5f5f5;
}

.dark-mode {
  --primary-color: #f5c857;
  --bg-color: #121212;
  --text-color: #f0f0f0;
  --card-bg: #1e1e1e;
  --border-color: #333333;
  --header-bg: #1a1a1a;
  --footer-bg: #1a1a1a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color 0.3s, color 0.3s;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  background-color: var(--header-bg);
  box-shadow: 0 2px 10px 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;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  display: flex;
  align-items: center;
}

.logo i {
  margin-right: 10px;
}

.cart-icon {
  position: relative;
  font-size: 22px;
  cursor: pointer;
}

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

/* Hero Section */
.hero {
  position: relative;
  text-align: center;
  padding: 60px 20px;
  color: white;
  margin-bottom: 40px;
  overflow: hidden;
  height: 400px;
}
.opacity{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 0;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0; 
}

.text-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 100%;
  text-align: center;
  padding: 0 20px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  span{
    color: var(--primary-color);
  }
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 30px;
}



/* Products Section */
.products-section {
  padding: 40px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  color: var(--primary-color);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 25px;
}

.product-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  border: 1px solid #1e1e1e6d;
}

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

.product-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.product-info {
  padding: 15px;
}

.product-name {
  font-weight: bold;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
  margin-bottom: 5px;
}


.product-category {
  color: var(--primary-color);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.product-price {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.add-to-cart-btn {
  background-color: var(--primary-color);
  color: #3b3b3b;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

.add-to-cart-btn:hover {
  background-color: #db9d00;
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  padding: 40px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.footer-column h3 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a:hover {
  color: var(--primary-color);
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-icons a {
  font-size: 1.2rem;
}

.copyright {
  text-align: center;
  padding: 14px 10px;
  margin-top: 20px;
  font-family: "Poppins", "Cairo", sans-serif;
  font-size: 15px;
  opacity: 0.85;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
  margin: 6px 0;
  letter-spacing: 0.3px;
}

.copyright a {
  text-decoration: none;
  font-weight: 600;
  margin-left: 6px;
  transition: 0.3s ease;
}

.copyright a:hover {
  opacity: 1;
  text-shadow: 0 0 8px currentColor;
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary-color);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 100;
}

/* Product Details Page */
.product-details {
  display: none;
  margin-top:0px;
  padding: 30px 0;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  margin-bottom: 20px;
  color: var(--primary-color);
  cursor: pointer;
}

.back-btn i {
  margin-right: 5px;
}

.details-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}

.details-image {
  width: 80%;
  border-radius: 10px;
  overflow: hidden;
}

.details-image img {
  width: 100%;
  display: block;
}

.details-info h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.details-category {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.details-price {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.details-description {
  margin-bottom: 30px;
  direction: rtl; 
   text-align: right;
  line-height: 1.8;
}

.add-to-cart-large {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 1.1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.3s;
}

.add-to-cart-large:hover {
  background-color: #db9d00;
}

.add-to-cart-large i {
  margin-right: 10px;
}

/* Cart Modal */
.cart-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.cart-content {
  background-color: var(--bg-color);
  width: 90%;
  max-width: 800px;
  border-radius: 10px;
  padding: 30px;
  max-height: 90vh;
  overflow-y: auto;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.close-cart {
  font-size: 1.5rem;
  cursor: pointer;
}

.cart-items {
  margin-bottom: 30px;
}

.cart-item {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

.cart-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 5px;
  margin-right: 15px;
}

.cart-item-details {
  flex: 1;
}

.cart-item-name {
  font-weight: bold;
  margin-bottom: 5px;
}

.cart-item-price {
  color: var(--primary-color);
  font-weight: bold;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.quantity-btn {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.quantity-input {
  width: 40px;
  height: 30px;
  text-align: center;
  border: 1px solid var(--border-color);
  margin: 0 5px;
  background-color: var(--bg-color);
  color: var(--text-color);
}

.remove-item {
  color: #ff3333;
  cursor: pointer;
  margin-left: 15px;
}

.cart-total {
  text-align: right;
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.checkout-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 1.1rem;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s;
}

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

/* Checkout Form */
.checkout-form {
  display: none;
  margin-top: 20px;
  direction: rtl;
}

.form-group {
  margin-bottom: 15px;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  background-color: var(--bg-color);
  color: var(--text-color);
}

.form-group textarea {
  height: 100px;
  resize: vertical;
}

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

.submit-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 1.1rem;
  cursor: pointer;
  flex: 1;
  transition: background-color 0.3s;
}

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

.cancel-btn {
  background-color: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 1.1rem;
  cursor: pointer;
  flex: 1;
  transition: background-color 0.3s;
}

.cancel-btn:hover {
  background-color: var(--border-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .details-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}
@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  
}
