:root {
  --purple: #6b21a8;
  --light-purple: #f3e8ff;
  --gold: #ffd700;
  --white: #ffffff;
  --gray: #444;
  --black: #000000;
}

/* Reset and base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  line-height: 1.6;
  background: linear-gradient(to bottom right, var(--gray), var(--purple));
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1.5rem;
  background: var(--white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.brand {
  display: flex;
  align-items: center;
  font-weight: bold;
  color: var(--purple);
  font-size: 1.3rem;
}

.brand-logo {
  height: 100px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-links a {
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sections */
section {
  padding: 3rem 1.5rem;
  color: var(--white);
}

.hero {
  text-align: center;
  padding: 4rem 1.5rem;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about,
.order-steps,
.contact {
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.about p {
  max-width: 800px;
  margin: 1rem auto 0;
  text-align: justify;
}

.collections {
  text-align: center;
}

.collection-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.collection-card {
  width: 400px;
  height: 300px;
  border: 2px solid var(--gold);
  border-radius: 10px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  color: var(--purple);
  transition: transform 1s;
}

h1,
h2 {
  color: var(--gold);
}

.order-steps ol {
  text-align: left;
  margin-top: 1rem;
  padding-left: 1.5rem;
}

/* Testimonials */

.testimonials {
  padding: 3rem 1.5rem;
  text-align: center;
}

.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial-card {
  border: 1px solid var(--gold);
  padding: 1.5rem;
  max-width: 300px;
  border-radius: 8px;
  font-style: italic;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 1s;
}

.testimonial-card span {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
}

/* stars */
.stars {
  color: var(--gold);
  margin: 0.5rem 0;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 1.5rem;
  margin-top: 1rem;
}

.social-icons > a > i {
  color: var(--white);
}

footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  background-color: var(--white);
  color: var(--purple);
}

/* Loader */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 5px solid var(--light-purple);
  border-top: 5px solid var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Popup Overlay For Crochet and Coming Soon Pages */
#popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.popup-box {
  background: #fff;
  color: #333;
  padding: 2rem;
  border-radius: 10px;
  max-width: 300px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.popup-box h2 {
  margin-bottom: 1rem;
  color: #6a0dad; /* purple brand color */
}

.popup-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #a46ee5, #6a0dad);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
}

.popup-btn:hover {
  background: linear-gradient(135deg, #6a0dad, #a46ee5);
}

/* WIGSSS */
/* Products Section */
.products {
  padding: 3rem 1rem;
  text-align: center;
}

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

.product-card {
  background-color: var(--purple);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.product-card img {
  width: 100%;
  height: 250px; /* uniform height */
  object-fit: cover; /* ensures consistent sizing */
  border-radius: 8px;
  margin-bottom: 1rem;
}

.quality button {
  background-color: var(--gold);
  padding: 5px;
  border-radius: 10px;
  border: none;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 3000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0, 0, 0, 0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80vh;
  border-radius: 10px;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* Responsive Nav */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: var(--white);
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem;
  }

  .brand {
    font-size: 1rem;
    margin: 0 -1.5rem;
  }

  .nav-links.show {
    display: flex;
  }

  .hamburger {
    display: block;
  }
}

@media (min-width: 768px) {
  .order-steps ol {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 20px;
    list-style-position: inside;
  }

  .collection-card:hover {
    transform: translateY(-20px);
    color: var(--white);
  }

  .testimonial-card:hover {
    transform: translateY(-15px);
    color: var(--gold);
  }

  .product-card:hover {
    transform: translateY(-5px);
  }
}
