@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary-purple: #7B2CBF;
  --soft-purple: #9D4EDD;
  --lilac: #E0AAFF;
  --light-lilac: #F3E8FF;
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  --dark-text: #2D3748;
  --gray-text: #718096;
  --silver-accent: #C0C0C0;
  --holographic: linear-gradient(135deg, #E0AAFF 0%, #9D4EDD 50%, #7B2CBF 100%);
  --shadow-sm: 0 4px 6px rgba(123, 44, 191, 0.08);
  --shadow-md: 0 10px 20px rgba(123, 44, 191, 0.12);
  --shadow-lg: 0 20px 25px rgba(123, 44, 191, 0.15);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--off-white);
  color: var(--dark-text);
  line-height: 1.6;
}

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

ul {
  list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-purple);
  font-weight: 600;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--holographic);
  border-radius: 2px;
}

/* Navbar */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-purple);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--dark-text);
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-purple);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-purple);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

.nav-icons i {
  font-size: 1.2rem;
  color: var(--primary-purple);
  cursor: pointer;
  transition: var(--transition);
}

.nav-icons i:hover {
  transform: translateY(-2px);
  color: var(--soft-purple);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--holographic);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(157, 78, 221, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(157, 78, 221, 0.6);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-purple);
  color: var(--primary-purple);
}

.btn-outline:hover {
  background: var(--light-lilac);
}

/* Hero Section */
.hero {
  position: relative;
  height: 80vh;
  min-height: 600px;
  background-color: var(--light-lilac);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-img-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.8;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(243, 232, 255, 0.7) 50%, rgba(224, 170, 255, 0.2) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 600px;
  animation: fadeUp 1s ease-out;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: var(--holographic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  color: var(--dark-text);
  margin-bottom: 2rem;
}

/* Categories Highlight */
.categories {
  padding: 5rem 0;
  background-color: var(--white);
}

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

.category-card {
  text-align: center;
  padding: 2rem;
  background: var(--light-lilac);
  border-radius: 20px;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid rgba(224, 170, 255, 0.5);
}

.category-card i {
  font-size: 2.5rem;
  color: var(--primary-purple);
  margin-bottom: 1rem;
}

.category-card h3 {
  font-size: 1.2rem;
  color: var(--dark-text);
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  background: var(--white);
}

/* Product Cards */
.products {
  padding: 5rem 0;
  background-color: var(--off-white);
}

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

.product-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  border: 1px solid rgba(224, 170, 255, 0.2);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--holographic);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

.product-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

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

.product-info {
  padding: 1.5rem;
}

.product-category {
  font-size: 0.85rem;
  color: var(--gray-text);
  margin-bottom: 0.5rem;
  display: block;
}

.product-title {
  font-size: 1.1rem;
  color: var(--dark-text);
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-purple);
  margin-bottom: 1rem;
}

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

.add-to-cart {
  width: 100%;
  padding: 10px;
  background: var(--light-lilac);
  color: var(--primary-purple);
  border: none;
  border-radius: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.add-to-cart:hover {
  background: var(--primary-purple);
  color: var(--white);
}

/* Footer */
footer {
  background-color: var(--white);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--light-lilac);
}

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

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--dark-text);
}

.footer-col p {
  color: var(--gray-text);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--gray-text);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-purple);
  padding-left: 5px;
}

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

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--light-lilac);
  color: var(--primary-purple);
  border-radius: 50%;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary-purple);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--light-lilac);
  color: var(--gray-text);
}

/* Shop Layout */
.shop-container {
  display: flex;
  gap: 3rem;
  padding: 3rem 0;
}

.shop-sidebar {
  width: 250px;
  flex-shrink: 0;
}

.filter-group {
  margin-bottom: 2rem;
  background: var(--white);
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
}

.filter-group h4 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--light-lilac);
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--gray-text);
  cursor: pointer;
}

.filter-item input {
  accent-color: var(--primary-purple);
}

.shop-main {
  flex-grow: 1;
}

.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  background: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
}

.sort-select {
  padding: 8px 15px;
  border: 1px solid var(--light-lilac);
  border-radius: 8px;
  color: var(--dark-text);
  font-family: inherit;
  outline: none;
}

/* Product Detail */
.product-detail-section {
  padding: 4rem 0;
}

.product-detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  background: var(--white);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.detail-img-wrapper {
  border-radius: 20px;
  overflow: hidden;
  background: var(--light-lilac);
}

.detail-main-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.detail-info h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--dark-text);
}

.detail-price {
  font-size: 2rem;
  color: var(--primary-purple);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.detail-desc {
  color: var(--gray-text);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.variant-group {
  margin-bottom: 2rem;
}

.variant-group h4 {
  margin-bottom: 10px;
}

.variant-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.variant-btn {
  padding: 8px 16px;
  border: 1px solid var(--light-lilac);
  background: var(--white);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.variant-btn:hover, .variant-btn.active {
  background: var(--primary-purple);
  color: var(--white);
  border-color: var(--primary-purple);
}

.detail-actions {
  display: flex;
  gap: 15px;
}

.btn-large {
  padding: 15px 30px;
  font-size: 1.1rem;
  flex-grow: 1;
}

.btn-wishlist {
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--light-lilac);
  background: var(--white);
  color: var(--primary-purple);
  border-radius: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-wishlist:hover {
  background: var(--light-lilac);
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  /* Navigation */
  .mobile-menu-btn {
    display: block !important;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-purple);
  }
  
  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    box-shadow: var(--shadow-md);
  }
  
  .nav-links.active {
    max-height: 300px;
    padding: 1rem 0;
  }
  
  .nav-links li {
    text-align: center;
    padding: 10px 0;
  }
  
  .nav-links a::after {
    display: none;
  }

  /* Typography & Hero */
  .section-title {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero {
    height: auto;
    min-height: 500px;
    padding: 4rem 0;
  }
  
  /* Shop & Detail */
  .shop-container {
    flex-direction: column;
  }
  
  .shop-sidebar {
    width: 100%;
  }
  
  .product-detail-container {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 2rem;
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-links {
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .logo {
    font-size: 1.2rem;
  }
  
  .product-grid, .categories-grid {
    grid-template-columns: 1fr;
  }
}
