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

html, body {
  /* background-color: black; */
  height: 100%;
  margin: 0;
  padding: 0;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  flex: 1;
  display: flex;
}

.main-content {
  flex: 1;
  padding: 2rem;
}


/* Navbar */

.navbar {
  background: black;
  padding: 1rem 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color:  rgb(70, 130, 180);
  font-weight: 500;
}

  
.nav-links a:hover {
  text-decoration: none;
  color: #0896d8;
  font-weight: 500;
}


/* Dropdown */

.dropdown {
  position: relative;
  margin-left: .2rem;
}

.dropdown-trigger {
  background: none;
  border: none;
  font: inherit;
  color: rgb(70, 130, 180);
  display: flex;
  align-items: center;
  gap: .3rem;
  cursor: pointer;
}

.dropdown-trigger::before {
  content: '▼';
  font-size: .75rem;
  transition: 1s;
}

.dropdown:hover .dropdown-trigger::before {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 2.5rem;
  left: 0;
  display: none;
  flex-direction: row;
  gap: 2rem;
  padding: 1rem 1.5rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  margin-left: -12rem;
}

/* Show on hover */
.dropdown:hover .dropdown-menu {
  display: flex;
}

/* Each column */
.dropdown-column {
  display: flex;
  flex-direction: column;
  min-width: 160px;
}

.fa-chevron-down {
  font-size: 1.2rem;
}

.dropdown-column h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #444;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.25rem;
}

.dropdown-column a {
  text-decoration: none;
  color: #333;
  margin: .3rem 0;
  font-size: 1rem;
  transition: 1s;
}

.dropdown-column a:hover {
  color: #007bff;
}


/* Cart icon */
.cart-link i {
  font-size: 1.5rem;
  color: black;
}

.cart-icon {
  display: flex;
  font-size: 1.5rem;
  align-items: center;
  padding: 1rem;
  position: relative;
  margin-right: 1rem;
  background: linear-gradient(135deg, #667eea, #1119b3);
  color: white;
  border: none;
  border-radius: 1rem;
  padding: .75rem 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 0.5rem;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}


/* Hamburger */

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: relative;
}

.main-logo {
  font-size: 2.5rem;
  font-weight: bold;
  text-decoration: none;
  color:rgb(70, 130, 180);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}



/* Responsive view */

@media (max-width: 768px) {
  .navbar {
      height: 5.5rem;
  }

  .navbar-container {
    justify-content: center;
  }

  .hamburger {
    display: block;
    position: absolute;
    left: 1rem;
    margin-top: 1.4rem;
    font-size: 2rem;
  }

  .main-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 1.2rem;
    font-size: 2.5rem;
  }

  .nav-links {
      margin-top: 2rem;
      position: absolute;
      height: 20rem;
      top: 100%;
      left: 50%; /* center the menu */
      transform: translateX(-50%); /* shift back by 50% of width */
      background: black;
      color:rgb(70, 130, 180);
      flex-direction: column;
      width: 28rem; /* make it wider */
      max-width: 480px;
      display: none;
      padding: 1rem;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
      align-items: center; /* center text/items horizontally */
      text-align: center;
    }
    
    .nav-links.active {
      display: flex;
    }

    .fa-bars {
      color: white;
    }

    .cart-icon {
      margin-left: .5rem;
    }
}

@media (max-width: 768px) {
  .dropdown {
      margin-left: -.5rem;
  }
  .dropdown-menu {
    position: static;
    flex-direction: column;
    padding: 1rem;
    margin-left: 1.5rem;
  }

  .dropdown-column {
    margin-bottom: 1rem;
  }
}



/* Sidebar */

.sidebar {
  margin-top: 7.5rem;
  width: 280px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2rem 0;
  height: auto; /* let it grow with content */
  overflow-y: auto;
  position: relative; 
}


.sidebar.hidden {
  transform: translateX(-100%);
}

.logo {
  text-align: center;
  margin-bottom: 3rem;
  padding: 0 2rem;
}

.logo h1 {
  font-size: 2rem;
  color: #333;

  font-weight: 700;
}

.logo p {
  color: #333;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}


.category-section {
  margin-bottom: 2rem;
}

.category-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 1rem;
  padding: 0 2rem;
  font-weight: 600;
}

.category-list {
  list-style: none;
}

.category-item {
  margin-bottom: 0.5rem;
}

.category-link {
  display: flex;
  align-items: center;
  padding: 0.8rem 2rem;
  color: #555;
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.category-link:hover,
.category-link.active {
  background: rgba(102, 126, 234, 0.1);
  border-left-color: #667eea;
  color: #667eea;
}

.category-icon {
  margin-right: 0.8rem;
  font-size: 1.1rem;
}

@media(max-width: 768px) {
  .sidebar {
      display: none;
  }
}

/* Main Content */

.main-content.expanded {
  margin-left: 0;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #667eea;
  cursor: pointer;
}

.user-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.action-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  color: white;
  padding: 0.8rem 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

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



/* Products Grid */

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  padding: 1.5rem 2rem;
  border-radius: 15px;
}

.products-title {
  color: black;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: -2rem ;
  margin-left: -1.4rem;
}

.filter-sort {
  display: flex;
  gap: 1rem;
}

.filter-btn, .sort-select {
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(102, 126, 234, 0.2);
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover, .sort-select:hover {
  border-color: #667eea;
  background: white;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.product-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  position: relative;
}

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

.product-image {
  position: relative;
  height: 300px;
  background: linear-gradient(45deg, #f0f2f5, #e1e8ed);
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: 1s;
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.wishlist-btn {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wishlist-btn:hover {
  background: #ff4757;
  color: white;
  transform: scale(1.1);
}

.product-info {
  padding: 1.5rem;
}

.product-category {
  color: #667eea;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #333;
}

.product-description {
  color: #333;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.stars {
  color: #ffd700;
}

.rating-text {
  color: #333;
  font-size: 0.9rem;
}

.product-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
}

.old-price {
  color: #999;
  text-decoration: line-through;
  margin-left: 0.5rem;
  font-size: 1rem;
}

.add-to-cart {
  width: 100%;
  background: black;
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.add-to-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.add-to-cart:active {
  transform: translateY(0);
}

@media (max-width:768px) {
  .products-title {
     font-size: 2.5rem;
  }
  
}


/* Footer */

.footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #ffffff;
  padding: 60px 0 30px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #6366f1 50%, transparent 100%);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  animation: slideInLeft 0.8s ease-out;
}

.footer-brand h2 {
  font-size: 30px;
  font-weight: 700;
  background: rgb(70, 130, 180);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.footer-brand p {
  color: #a1a1aa;
  line-height: 1.6;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: #6366f1;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.footer-column {
  animation: slideInUp 0.8s ease-out;
}

.footer-column:nth-child(2) { animation-delay: 0.1s; }
.footer-column:nth-child(3) { animation-delay: 0.2s; }
.footer-column:nth-child(4) { animation-delay: 0.3s; }

.footer-column h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #ffffff;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #a1a1aa;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  position: relative;
}

.footer-links a::before {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-links a:hover::before {
  width: 100%;
}

.newsletter {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.newsletter h3 {
  margin-bottom: 12px;
}

.newsletter p {
  color: #a1a1aa;
  font-size: 14px;
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

.newsletter-input::placeholder {
  color: #71717a;
}

.newsletter-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.newsletter-btn {
  padding: 12px 20px;
  background: linear-gradient(135deg, #0896d8, #062173);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.newsletter-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  color: #71717a;
  font-size: 14px;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: #71717a;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: #ffffff;
}

@keyframes slideInLeft {
  from {
      opacity: 0;
      transform: translateX(-30px);
  }
  to {
      opacity: 1;
      transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
      opacity: 0;
      transform: translateY(30px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .footer-grid {
      grid-template-columns: 1fr;
      gap: 30px;
  }

  .footer-brand h2 {
      font-size: 24px;
  }

  .newsletter-form {
      flex-direction: column;
  }

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

  .footer-legal {
      justify-content: center;
  }
}

  

/* Responsive design */

@media (max-width: 768px) {
  .footer-content {
     grid-template-columns: 1fr;
     gap: 24px;
     padding: 40px 16px 32px;
}

  .footer-section {
     padding: 24px;
}

  .social-links {
      justify-content: start;
  }
}

/* Responsive Design */

@media (max-width: 768px) {
  .main-content {
      margin-left: 0;
      padding: 1rem;
  }

  .products-title {
      margin-bottom: 1rem;
  }

  .search-bar {
      width: auto;
      flex: 1;
      margin: 0 1rem;
  }

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

  .products-header {
      flex-direction: column;
      gap: 1rem;
      align-items: flex-start;
  }

  .filter-sort {
      width: 100%;
      justify-content: space-between;
      margin-left: -1.5rem;
  }

  .sort-select {
      margin-right: 3rem;
  }
}

/* Loading Animation */
@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(30px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.product-card {
  animation: fadeInUp 0.6s ease forwards;
}

.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }
.product-card:nth-child(4) { animation-delay: 0.3s; }
.product-card:nth-child(5) { animation-delay: 0.4s; }
.product-card:nth-child(6) { animation-delay: 0.5s; }
