
/* ==========================================
   PRODUCTS PAGE STYLES - Matching Login Theme
   ========================================== */

:root {
  --primary: #ffb6c1;
  --accent: #e75480;
  --bg: #fff5f7;
  --text: #333;
  --card-radius: 15px;
  --gradient-bg: linear-gradient(135deg, #ffd1dc 0%, #ffb6d9 50%, #ff85c0 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--gradient-bg);
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  min-height: 100vh;
}

/* ==========================================
   NAVBAR - Matching Login Page
   ========================================== */
nav {
  background: linear-gradient(135deg, var(--primary) 0%, #ffc9d4 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
}

nav .logo img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

nav ul li a {
  color: white;
  font-weight: 600;
  transition: all 0.3s;
  padding: 8px 15px;
  border-radius: 20px;
  text-decoration: none;
}

nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
  text-align: center;
  padding: 3rem 2rem 2rem;
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-section h1 {
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 2rem;
}

.discover {
  display: block;
  font-size: 4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.sheglam {
  color: var(--accent);
  font-weight: 700;
}

/* ==========================================
   HERO IMAGES
   ========================================== */
.hero-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto 2rem;
}

.hero-images img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-images img:nth-child(3) {
  grid-column: 1 / 3;
  width: 50%;
  justify-self: center;
}

.hero-images img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(231, 84, 128, 0.3);
}

/* ==========================================
   SEARCH SECTION
   ========================================== */
.search-section {
  text-align: center;
  margin: 2rem 0;
}

#searchInput {
  padding: 1rem 2rem;
  width: 100%;
  max-width: 400px;
  border: 2px solid var(--primary);
  border-radius: 25px;
  outline: none;
  font-size: 1rem;
  transition: all 0.3s;
  background: white;
  font-family: 'Poppins', sans-serif;
}

#searchInput:focus {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(231, 84, 128, 0.3);
  transform: translateY(-2px);
}

/* ==========================================
   FILTER SECTION
   ========================================== */
.filter-section {
  text-align: center;
  margin: 2rem 0;
}

.filter-btn {
  background: white;
  color: var(--text);
  border: 2px solid var(--primary);
  padding: 0.8rem 1.5rem;
  margin: 0.5rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(231, 84, 128, 0.3);
}

/* ==========================================
   PRODUCT GRID
   ========================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.product-card {
  background: white;
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(231, 84, 128, 0.3);
}

.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 1rem;
}

.product-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.product-card p {
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1rem;
}

.view-btn {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 4px 10px rgba(231, 84, 128, 0.3);
}

.view-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(231, 84, 128, 0.4);
}

/* ==========================================
   NO PRODUCTS MESSAGE
   ========================================== */
.no-products {
  text-align: center;
  grid-column: 1/-1;
  font-size: 1.2rem;
  color: var(--accent);
  padding: 2rem;
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 768px) {
  nav {
    padding: 15px 20px;
  }

  nav ul {
    gap: 10px;
  }

  nav ul li a {
    padding: 5px 10px;
    font-size: 0.9rem;
  }

  .discover {
    font-size: 3rem;
  }

  .hero-section h1 {
    font-size: 1.5rem;
  }

  .hero-images {
    grid-template-columns: 1fr;
  }

  .hero-images img {
    height: 200px;
  }

  .hero-images img:nth-child(3) {
    grid-column: 1;
    width: 100%;
  }

  #searchInput {
    width: 90%;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  nav {
    flex-direction: column;
    gap: 15px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .discover {
    font-size: 2.5rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
}
