/* ============================================================
   LOOPS BY BEA - Stylesheet
   Dreamy pastel boutique aesthetic - pinks, peaches, golds
   ============================================================ */

:root {
  /* Brand palette — match Loops by Bea logo & site */
  --baby-pink: #F8E1E7;
  --soft-pink: #F2C4CE;
  --blush: #EDB6C2;
  --rose: #D4848F;
  --gold: #C5A572;
  --gold-light: #D4BC8E;
  --gold-dark: #A88B5E;
  --charcoal: #2C2C2C;
  --cream: #F9F3EF;
  --off-white: #FDF9F7;

  /* Convenience aliases */
  --pink: var(--blush);
  --pink-soft: var(--baby-pink);
  --peach: #F4D4BC;
  --lavender: #E8D5E8;
  --text: #4a3a36;
  --shadow: 0 4px 20px rgba(180, 130, 130, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: 0.01em;
}

h1 em, h2 em, h3 em, h4 em, .italic {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
}

/* ========== TOP BAR ========== */
.top-bar {
  background: linear-gradient(90deg, var(--pink-soft), var(--peach));
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--charcoal);
  font-weight: 500;
}

/* ========== NAVIGATION ========== */
nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(180, 130, 130, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--charcoal);
}

.logo em {
  font-style: italic;
  color: var(--pink);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--charcoal);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--pink);
  color: white !important;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--gold);
  color: white !important;
}

/* Cart icon button */
.cart-btn {
  background: none;
  border: none;
  position: relative;
  cursor: pointer;
  font-size: 1.3rem;
  color: var(--charcoal);
  padding: 0.3rem;
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--pink);
  color: white;
  font-size: 0.65rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* ========== HERO ========== */
.hero {
  min-height: 80vh;
  background: linear-gradient(135deg, var(--baby-pink) 0%, var(--peach) 50%, var(--lavender) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 4rem 2rem;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.4), transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(255,255,255,0.3), transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-badge {
  display: inline-block;
  border: 1px solid var(--charcoal);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  color: var(--charcoal);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 1rem;
  font-style: italic;
}

.hero h1 em {
  color: var(--pink);
  font-style: italic;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--charcoal);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 0.9rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-family: inherit;
  display: inline-block;
}

.btn-primary {
  background: var(--pink);
  color: white;
}

.btn-primary:hover {
  background: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

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

.btn-outline:hover {
  background: var(--charcoal);
  color: white;
}

/* ========== STATS ========== */
.stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 3rem 2rem;
  background: white;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--pink);
  font-style: italic;
}

.stat-label {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

/* ========== SECTIONS ========== */
section {
  padding: 5rem 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-style: italic;
}

.section-subtitle {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== PRODUCTS ========== */
.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--pink);
  background: transparent;
  color: var(--charcoal);
  border-radius: 50px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}

.filter-btn:hover {
  background: var(--pink-soft);
}

.filter-btn.active {
  background: var(--pink);
  color: white;
  border-color: var(--pink);
}

.category-title {
  text-align: center;
  margin: 3rem 0 1.5rem;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--gold-dark);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(180, 130, 130, 0.25);
}

.product-img {
  background: linear-gradient(135deg, var(--pink-soft), var(--peach));
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-emoji {
  font-size: 4.5rem;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  background: white;
  color: var(--gold-dark);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-info {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.product-info p {
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--pink);
}

.add-to-cart-btn {
  background: var(--charcoal);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  letter-spacing: 0.05em;
}

.add-to-cart-btn:hover {
  background: var(--pink);
}

.empty-section {
  text-align: center;
  color: var(--text);
  font-style: italic;
  grid-column: 1 / -1;
  padding: 2rem;
}

/* ========== HOW IT WORKS ========== */
.how-it-works {
  background: linear-gradient(180deg, var(--cream) 0%, var(--pink-soft) 100%);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

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

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  color: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 1rem;
  font-style: italic;
}

.step h4 {
  margin-bottom: 0.5rem;
  font-style: italic;
}

.step p {
  font-size: 0.9rem;
  color: var(--text);
}

/* ========== TESTIMONIALS ========== */
.testimonials {
  background: white;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial {
  background: var(--cream);
  padding: 2rem;
  border-radius: 16px;
  border-left: 3px solid var(--pink);
}

.testimonial-stars {
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--charcoal);
}

.testimonial-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-dark);
}

/* ========== FOOTER ========== */
footer {
  background: var(--charcoal);
  color: white;
  text-align: center;
  padding: 3rem 2rem;
}

footer h3 {
  color: white;
  font-style: italic;
  margin-bottom: 0.5rem;
}

footer p {
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.5;
  margin-top: 1.5rem;
}

/* ========== CART DRAWER ========== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: white;
  z-index: 201;
  box-shadow: -5px 0 30px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  transition: right 0.3s;
}

.cart-drawer.open {
  right: 0;
}

.cart-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--pink-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  font-style: italic;
  font-size: 1.3rem;
}

.cart-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--charcoal);
  padding: 0;
  line-height: 1;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text);
}

.cart-empty small {
  display: block;
  margin-top: 0.5rem;
  opacity: 0.7;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(180, 130, 130, 0.1);
}

.cart-item-img {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--pink-soft), var(--peach));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.cart-item-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--pink);
  font-weight: 600;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.cart-item-qty button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--pink-soft);
  background: white;
  cursor: pointer;
  font-weight: bold;
  color: var(--charcoal);
  font-family: inherit;
  font-size: 0.9rem;
}

.cart-item-qty button:hover {
  background: var(--pink-soft);
}

.cart-item-qty span {
  min-width: 20px;
  text-align: center;
  font-weight: 600;
}

.cart-item-remove {
  margin-left: auto;
  border: none !important;
  color: #cc6666 !important;
  background: transparent !important;
}

.cart-customer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--pink-soft);
  background: var(--cream);
}

.cart-customer h4 {
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 0.8rem;
}

.cart-customer input,
.cart-customer textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--pink-soft);
  border-radius: 8px;
  margin-bottom: 0.6rem;
  font-family: inherit;
  font-size: 0.85rem;
  background: white;
}

.cart-customer input:focus,
.cart-customer textarea:focus {
  outline: none;
  border-color: var(--pink);
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--pink-soft);
  background: white;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 1rem;
  font-style: italic;
}

.cart-total-row span:last-child {
  color: var(--pink);
}

.cart-checkout-btn {
  width: 100%;
  padding: 1rem;
  background: var(--pink);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.05em;
  transition: background 0.2s;
}

.cart-checkout-btn:hover {
  background: var(--gold);
}

/* ========== TOAST ========== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--charcoal);
  color: white;
  padding: 0.9rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  z-index: 999;
  opacity: 0;
  transition: all 0.3s;
  box-shadow: var(--shadow);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  nav {
    padding: 0.8rem 1rem;
  }
  .nav-links {
    gap: 0.8rem;
    font-size: 0.8rem;
  }
  .nav-links a {
    font-size: 0.75rem;
  }
  .hero {
    min-height: 70vh;
  }
  .stats {
    gap: 1.5rem;
  }
  section {
    padding: 3rem 1rem;
  }
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }
  .product-img {
    height: 140px;
  }
  .product-emoji {
    font-size: 3.5rem;
  }
}