/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

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

}

/* Header Styles */ .header { background: linear-gradient(135deg, #ff6b35, #f7931e); color: white; padding: 0.7rem 1.5rem; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); } .header .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; padding-left:0} .brand-text{ display: flex; flex-direction: column; justify-content: center; align-items: flex-start;}.nav-brand { display: flex; align-items: center; gap: 12px; margin-right: auto; margin-left: 0; } .logo { width: auto; height: 60px; border-radius: 0;   background: transparent;  object-fit: contain; padding: 0px;  box-shadow: none; border: none;margin-left:0} .brand-text h1 { font-size: 2rem; font-weight: 600; margin: 0; line-height: 1.1;color: #ffffff;text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);} .brand-text p { font-size: 0.6rem; opacity: 0.95; margin-top: 4px ;font-style: italic; color: #f5f5f5;text-shadow: 0.5px 0.5px rgba(0, 0, 0, 0.2);letter-spacing: 0.5px;  } .nav-menu ul { display: flex; list-style: none; gap: 1.5rem; margin: 0;  padding: 0;} .nav-menu a { color: white; text-decoration: none; font-weight: 500; transition: opacity 0.3s; font-size: 1rem; } .user-name { font-weight: bold; color: #555; } #logout-btn { padding: 6px 12px; background-color: #e74c3c; color: white; border: none; cursor: pointer; border-radius: 4px; } .nav-menu a:hover { opacity: 0.8; } .nav-actions { display: flex; align-items: center; gap: 1rem; margin-left: auto; } .search-box { display: flex; background: white; border-radius: 25px; overflow: hidden; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1); } .search-box input { padding: 8px 15px; border: none; outline: none; width: 180px; font-size: 0.9rem; } .search-box button { background: #ff6b35; color: white; border: none; padding: 8px 12px; cursor: pointer; }

.cart-icon {
  position: relative;
  color: white;
  font-size: 1.2rem;
  text-decoration: none;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #fff;
  color: #ff6b35;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

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

.btn-login,
.btn-signup {
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 20px;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-login {
  color: white;
  border: 1px solid white;
}

.btn-signup {
  background: white;
  color: #ff6b35;
}

.btn-login:hover,
.btn-signup:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
  margin-left: 1rem;
}


@media (max-width: 480px) {
  .brand-text h1 {
    font-size: 1.1rem;
  }

  .brand-text p {
    font-size: 0.7rem;
  }

  .search-box input {
    width: 120px;
  }
}

/* ==== RESPONSIVE HEADER ==== */
@media (max-width: 992px) {
  .header .container {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .nav-menu {
    display: none;
    width: 100%;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
  }

  .nav-menu ul {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-actions {
    display: none;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin: 1rem 0;
  }

  .nav-actions.active {
    display: flex;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .search-box input {
    width: 150px;
  }

  .logo {
    width: 55px;
    height: 55px;
  }

  .brand-text h1 {
    font-size: 1.3rem;
  }

  .brand-text p {
    font-size: 0.75rem;
  }
}
/* Hero Container */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

/* Image fills background */
.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover full area without stretching */
  display: block;
}

/* Content stays on top */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
}

/* Optional overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay */
  z-index: 0;
}

/* Headings and text */
.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: #333; /* Dark gray */
}

.hero h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #555; /* Medium gray */
}

.hero-subtitle {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 2rem;
  color: #777; /* Lighter gray */
}


/* Buttons */
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Button styles */
.btn-primary,
.btn-secondary {
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn-primary {
  background: #ff6b35;
  color: #fff;
}

.btn-primary:hover {
  background: #e05520;
}

.btn-secondary {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.btn-secondary:hover {
  background: #fff;
  color: #000;
}

@media (max-width: 600px) {
  .hero {
    flex-direction: column;
    padding: 2rem 1rem;
    text-align: center;
  }

  .hero-image {
    position: relative; /* prevent image from overlapping hero content */
    height: 250px; /* Adjust this based on your design */
  }

  .hero-image img {
    object-fit: cover;
    height: 100%;
    border-radius: 12px;
  }

  .hero-content {
    padding: 1rem 0;
    z-index: 1;
  }

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

  .hero h2 {
    font-size: 1.1rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.8rem;
  }
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }
.delay-4 { animation-delay: 1.2s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
}

/* Featured Categories */
.featured-categories {
  padding: 4rem 0;
  background: #f8f9fa;
}

.featured-categories h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #ff6b35;
  margin-bottom: 3rem;
}

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

.category-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

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

.category-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.category-card h3 {
  color: #ff6b35;
  margin-bottom: 0.5rem;
}

.btn-explore {
  background: #ff6b35;
  color: white;
  padding: 8px 20px;
  text-decoration: none;
  border-radius: 20px;
  display: inline-block;
  margin-top: 1rem;
  transition: all 0.3s;
}

.btn-explore:hover {
  background: #e55a2b;
}

/* Featured Products */
.featured-products {
  padding: 4rem 0;
}

.featured-products h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #ff6b35;
  margin-bottom: 3rem;
}

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

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

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

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

.product-card h3 {
  padding: 1rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.price {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ff6b35;
  padding: 0 1rem;
}

.btn-add-cart {
  width: 100%;
  background: #ff6b35;
  color: white;
  border: none;
  padding: 12px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-add-cart:hover {
  background: #e55a2b;
}

/* Services Preview */
.services-preview {
  padding: 4rem 0;
  background: #f8f9fa;
}

.services-preview h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #ff6b35;
  margin-bottom: 3rem;
}

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

.service-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

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

.service-card i {
  font-size: 3rem;
  color: #ff6b35;
  margin-bottom: 1rem;
}

.service-card h3 {
  color: #333;
  margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

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

.cta-buttons .btn-primary {
  background: white;
  color: #ff6b35;
}

.cta-buttons .btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

/* Footer */
.footer {
  background: #333;
  color: white;
  padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
  color: #ff6b35;
  margin-bottom: 1rem;
}

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

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: #ff6b35;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: #ff6b35;
  color: white;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  transition: transform 0.3s;
}

.social-links a:hover {
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid #555;
  padding-top: 1rem;
  text-align: center;
  color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .nav-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .search-box input {
    width: 150px;
  }

  .hero {
    flex-direction: column;
    text-align: center;
  }

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

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .categories-grid,
  .products-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

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

  .featured-categories h2,
  .featured-products h2,
  .services-preview h2 {
    font-size: 2rem;
  }
}

.footer-links {
  text-align: center;
  margin-top: 15px;
}
.footer-links a {
  color: #fff;  /* white links for dark footer */
  text-decoration: none;
  margin: 0 5px;
}
.footer-links a:hover {
  text-decoration: underline;
}

