/* ==================== BASE ==================== */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@400;500;700&display=swap');

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* ==================== UNDERLINE EFFECT ==================== */
.underline-effect {
  position: relative;
  display: inline-block;
}
.underline-effect::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #000;
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}
.underline-effect:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* ==================== PRODUCT HOVER ==================== */
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.group:hover .product-overlay {
  opacity: 1;
}

/* ==================== CART MODAL ==================== */
#cart-modal.hidden { display: none; }
#cart-modal { transition: opacity 0.3s ease; }
#cart-modal:not(.hidden) { opacity: 1; }
#cart-count.hidden { display: none; }

/* ==================== ANIMATIONS ==================== */
.animate-fadeIn {
  animation: fadeIn 0.8s ease-out forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== RESPONSIVE FIXES ==================== */

/* Mobile Navigation */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  nav a {
    font-size: 0.9rem;
    padding: 0.25rem 0;
  }
}

/* Hero Section */
@media (max-width: 768px) {
  section h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  section p {
    font-size: 1rem;
  }

  section .flex a {
    width: 100%;
  }
}

/* Product Grid */
@media (max-width: 640px) {
  #shop .grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  #shop h2 {
    font-size: 2rem;
  }
}

/* About Section */
@media (max-width: 640px) {
  #about p {
    font-size: 1rem;
    line-height: 1.6;
  }
}

/* Newsletter */
@media (max-width: 640px) {
  #newsletter-form {
    flex-direction: column;
    gap: 0.75rem;
  }

  #newsletter-form input,
  #newsletter-form button {
    width: 100%;
    border-radius: 6px;
  }
}

/* Footer */
@media (max-width: 640px) {
  footer ul {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  footer .w-10 {
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* Contact Success Modal Animation */
#success-modal {
  transition: opacity 0.3s ease;
}
#success-modal.hidden {
  opacity: 0;
  pointer-events: none;
}