/* Header and Footer Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --purple: #6B21A8;
  --purple-light: #7C3AED;
  --black: #111111;
  --dark: #1a1a1a;
  --gray: #6B7280;
  --gray-light: #F9F7F4;
  --white: #ffffff;
  --border: #E5E7EB;
  --font-display: 'Poppins', 'Inter', serif;
  --font-body: 'Poppins', 'Inter', sans-serif;
  --nav-height: 4.25rem;
  --transition: 0.25s ease;
}


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

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
}

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

/*HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
}

.header-inner {
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 0.875rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--black);
}

.logo svg {
  width: 1.375rem;
  height: 1.375rem;
  color: var(--purple);
}

/* Desktop Nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--black);
  transition: color var(--transition);
}

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

.nav-links a.active {
  color: var(--purple);
  font-weight: 600;
}

/* Header Icons */
.header-icons {
  display: flex;
  align-items: center;
  gap: 1.125rem;
}

.header-icons button,
.header-icons a {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--black);
  display: flex;
  align-items: center;
  transition: color var(--transition);
  position: relative;
}

.header-icons button:hover,
.header-icons a:hover {
  color: var(--purple);
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -7px;
  background: var(--purple);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 0.3125rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.25rem;
}

.hamburger span {
  display: block;
  width: 1.375rem;
  height: 0.125rem;
  background: var(--black);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 99;
  flex-direction: column;
  padding: 2rem 1.5rem;
  gap: 0.5rem;
  border-top: 1px solid var(--border);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--black);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}

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

/* Hamburger open state */
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/*FOOTER*/

.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 3.5rem 1.5rem 2rem;
}

.footer-inner {
  max-width: 75rem;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand .logo {
  margin-bottom: 0.875rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.7;
  max-width: 13.75rem;
}

.footer-social {
  display: flex;
  gap: 1.125rem;
  margin-top: 1.25rem;
}

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

.footer-social a:hover {
  color: var(--purple);
}

.footer-col h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--gray);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--purple);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--gray);
}

.footer-legal {
  display: flex;
  gap: 1.25rem;
}

.footer-legal a {
  font-size: 0.8rem;
  color: var(--gray);
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: var(--purple);
}

/*RESPONSIVE */

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

  .hamburger {
    display: flex;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

::view-transition-old(root) {
  animation: fade-out 0.2s ease;
}
::view-transition-new(root) {
  animation: fade-in 0.2s ease;
}
@keyframes fade-out { 
  from { 
    opacity: 1; 
  } 
  to {
     opacity: 0; 
    }
}

@keyframes fade-in  { 
  from { 
    opacity: 0; 
  } 
  to { 
    opacity: 1; 
  } 
}

 
 
/* =====================
   FORM FIELD ERROR
   ===================== */
 
.field-error {
  font-size: 0.78rem;
  color: #DC2626;
  margin-top: 5px;
}
 
 
/* =====================
   SUCCESS POPUP
   ===================== */
 
.success-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 24px;
}
 
.popup-inner {
  background: var(--white);
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  max-width: 400px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
 
.popup-inner h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--black);
}
 
.popup-inner p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.6;
}
 
.popup-close {
  margin-top: 8px;
  padding: 10px 28px;
  background: var(--purple);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background var(--transition);
}
 
.popup-close:hover {
  background: var(--purple-light);
}