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

:root {
  --primary: #006994;
  --secondary: #00a8d8;
  --accent: #ff6b35;
  --light: #f0f9ff;
  --dark: #0a2540;
  --gray: #e0e0e0;
  --text: #333;
  --white: #fff;
}

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

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

/* NAVBAR */
.navbar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  padding: 1rem 0;
  box-shadow: 0 4px 12px rgba(0, 105, 148, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s;
}

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

.logo-section i {
  font-size: 2rem;
}

.search-box {
  flex: 1;
  max-width: 400px;
  display: flex;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  overflow: hidden;
  padding: 0.5rem;
}

.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.5rem 1rem;
  color: var(--white);
  outline: none;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-box button {
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: all 0.3s;
}

.search-box button:hover {
  transform: scale(1.2);
}

.nav-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-btn {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

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

.nav-btn #cart-count {
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

.nav-btn-login {
  background: var(--accent);
  border-color: var(--accent);
}

/* Button styles for auth (login/register) */
.nav-btn-primary {
  background: var(--accent);
  border-color: var(--accent);
}

.nav-btn-primary:hover {
  background: var(--white);
  color: var(--accent);
  border-color: var(--white);
}

.nav-btn-secondary {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.nav-btn-secondary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  flex-direction: column;
  gap: 0.25rem;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Adding dropdown menu styles */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
}

.dropdown-toggle:hover {
  background: var(--white);
  color: var(--primary);
}

.dropdown-toggle img.profile-pic {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
}

.dropdown-menu {
  display: none;
  position: absolute;
  background-color: var(--white);
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
  z-index: 1000;
  border-radius: 8px;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  animation: slideDown 0.3s ease;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  color: var(--text);
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.3s;
  font-weight: 500;
}

.dropdown-item:hover {
  background-color: var(--light);
  color: var(--primary);
  padding-left: 2rem;
}

.dropdown-divider {
  height: 1px;
  background-color: var(--gray);
  margin: 0.5rem 0;
  border: none;
}

.dropdown-item i {
  width: 16px;
  text-align: center;
}

/* User dropdown specific styles */
.user-dropdown .dropdown-menu {
  right: 0;
  left: auto;
}

.user-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-toggle img.profile-pic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
  transition: transform 0.3s;
}

.user-toggle:hover img.profile-pic {
  transform: scale(1.1);
}

/* HERO SECTION */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 20px;
  gap: 2rem;
}

.hero-content {
  flex: 1;
  animation: slideInLeft 0.8s ease;
}

.hero-title {
  font-size: 3.5rem;
  color: var(--dark);
  margin-bottom: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

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

.hero-btn {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 30px;
}

.hero-image {
  flex: 1;
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-card {
  position: absolute;
  background: var(--white);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 105, 148, 0.15);
  text-align: center;
  animation: float 3s ease-in-out infinite;
}

.floating-card i {
  font-size: 2.5rem;
  color: var(--secondary);
  display: block;
  margin-bottom: 0.5rem;
}

.card-1 {
  top: 20px;
  left: 0;
  animation-delay: 0s;
}

.card-2 {
  top: 150px;
  right: 50px;
  animation-delay: 0.5s;
}

.card-3 {
  bottom: 20px;
  left: 100px;
  animation-delay: 1s;
}

/* BANNER SLIDER */
.banner-slider-container {
  position: relative;
  width: 100%;
  padding: 0;
  background: #f9f9f9;
  margin-top: 0;
  max-width: 100%;
  height: 500px;
}

.banner-slider {
  display: flex;
  height: 500px;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.banner-slide {
  min-width: 100%;
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  flex-shrink: 0;
}

.banner-slide img {
  width: 100%;
  height: 500px;
  display: block;
  object-fit: cover;
  background: white;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  color: white;
  text-align: left;
  padding: 10% 15%;
  width: 100%;
}

.banner-content h2 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  max-width: 600px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.banner-content p {
  font-size: 1.4rem;
  margin-bottom: 2.5rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  max-width: 500px;
  line-height: 1.5;
  opacity: 0.95;
}

.banner-btn {
  background: linear-gradient(135deg, #ff6b35, #ff5520);
  color: white;
  padding: 16px 45px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.3px;
  text-decoration: none;
}

.banner-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(255, 107, 53, 0.5);
  background: linear-gradient(135deg, #ff7a4a, #ff6535);
}

.slider-controls {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 10;
}

.slider-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid white;
}

.slider-dot.active {
  background: white;
  transform: scale(1.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 15px 20px;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10;
  border-radius: 50%;
  backdrop-filter: blur(5px);
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow-left {
  left: 30px;
}

.slider-arrow-right {
  right: 30px;
}

/* CATEGORIES SECTION */
.categories-section {
  padding: 80px 20px;
  background: #f9f9f9;
  max-width: 100%;
  margin: 0 auto;
}

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

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--dark);
  margin-bottom: 20px;
  font-weight: bold;
}

.section-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 50px;
  font-size: 1.1rem;
}

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

.category-card {
  background: var(--white);
  padding: 30px 20px;
  border-radius: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 105, 148, 0.2);
}

.category-icon {
  font-size: 3.5rem;
  color: var(--secondary);
  margin-bottom: 15px;
}

.category-name {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--dark);
  font-weight: 600;
}

.category-description {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* FEATURED PRODUCTS */
.featured-products {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 20px;
}

.featured-products .section-title {
  font-size: 2.5rem;
  color: var(--dark);
  text-align: center;
  margin-bottom: 3rem;
}

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

.product-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 105, 148, 0.25);
}

.product-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--white);
}

.product-info {
  padding: 1.5rem;
}

.product-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

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

.product-price {
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: bold;
  margin-bottom: 1rem;
}

.product-description {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.product-rating {
  color: #ffc107;
  margin-bottom: 1rem;
}

.product-buttons {
  display: flex;
  gap: 0.5rem;
}

.product-buttons button {
  flex: 1;
  padding: 0.7rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

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

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

.btn-add-cart {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
}

.btn-add-cart:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 105, 148, 0.4);
}

/* INFO SECTION */
.info-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 20px;
}

.info-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 105, 148, 0.2);
}

.info-card i {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.info-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.info-card p {
  color: #666;
  font-size: 0.95rem;
}

/* BUTTONS */
.btn {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 105, 148, 0.3);
}

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

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

/* FOOTER */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

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

.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--secondary);
}

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

.footer-section a:hover {
  color: var(--secondary);
}

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

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

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.social-icons a:hover {
  background: var(--accent);
  transform: scale(1.2) rotate(10deg);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaa;
}

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

.modal-content {
  background-color: var(--white);
  margin: 5% auto;
  padding: 2rem;
  border: none;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s;
}

.close {
  color: #aaa;
  float: right;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

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

/* Animation for dropdown slide down */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    margin: 2rem auto;
  }

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

  .search-box {
    max-width: 200px;
  }

  .nav-buttons {
    gap: 0.5rem;
  }

  .nav-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }

  .navbar .container-nav {
    gap: 1rem;
  }

  .menu-toggle {
    display: flex;
  }

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

  .product-image {
    height: 150px;
    font-size: 2.5rem;
  }

  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Dropdown menu responsive */
  .dropdown-menu {
    position: fixed;
    width: calc(100% - 40px);
    left: 20px;
    right: 20px;
  }

  .user-dropdown .dropdown-menu {
    right: 20px;
    left: auto;
  }

  .nav-buttons {
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .banner-content h2 {
    font-size: 2.8rem;
  }

  .banner-content p {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    margin: 2rem auto;
  }

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

  .search-box {
    max-width: 200px;
  }

  .nav-buttons {
    gap: 0.5rem;
  }

  .nav-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }

  .navbar .container-nav {
    gap: 1rem;
  }

  .menu-toggle {
    display: flex;
  }

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

  .product-image {
    height: 150px;
    font-size: 2.5rem;
  }

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

  /* Dropdown menu responsive */
  .dropdown-menu {
    position: fixed;
    width: calc(100% - 40px);
    left: 20px;
    right: 20px;
  }

  .user-dropdown .dropdown-menu {
    right: 20px;
    left: auto;
  }

  .nav-buttons {
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .banner-slider-container {
    height: 400px;
  }

  .banner-slider {
    height: 400px;
  }

  .banner-slide {
    height: 400px;
  }

  .banner-slide img {
    height: 400px;
  }

  .banner-overlay {
    padding: 8% 12%;
  }

  .banner-content h2 {
    font-size: 2.2rem;
  }

  .banner-content p {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

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

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }

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

  .search-box {
    display: none;
  }

  .nav-buttons {
    flex-wrap: wrap;
  }

  .products-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  /* Hide some buttons on very small screens */
  .nav-btn-secondary {
    display: none;
  }

  .dropdown-menu {
    min-width: 180px;
  }

  .dropdown-item {
    padding: 0.6rem 1.2rem;
  }

  .banner-slider-container {
    height: 350px;
  }

  .banner-slider {
    height: 350px;
  }

  .banner-slide {
    height: 350px;
  }

  .banner-slide img {
    height: 350px;
  }

  .banner-overlay {
    padding: 6% 10%;
  }

  .banner-content h2 {
    font-size: 1.8rem;
  }

  .banner-content p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }
}
