/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --purple: #c9a0dc;
  --purple-mid: #b07cc8;
  --purple-dark: #9b6bb8;
  --white: #ffffff;
  --off-white: #f9f8fa;
  --text: #2a2a2a;
  --text-light: #6b6b6b;
  --border: #e8e4ec;
  --radius: 10px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  border: none;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-align: center;
}

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

.btn-primary:hover {
  background: var(--purple-dark);
}

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

.btn-outline:hover {
  border-color: var(--purple-mid);
  color: var(--purple-dark);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo-img {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  object-fit: cover;
}

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

.nav-links a {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-toggle {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 4px;
  display: flex;
  align-items: center;
}

.cart-toggle:hover {
  color: var(--purple-dark);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--purple-mid);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ===== Marquee ===== */
.marquee {
  background: var(--text);
  color: var(--white);
  padding: 0.5rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  gap: 2rem;
  animation: scroll-marquee 25s linear infinite;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes scroll-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Sections ===== */
.section {
  padding: 4rem 0;
}

.section-light {
  background: var(--off-white);
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  color: var(--text);
  margin-bottom: 2rem;
}

/* ===== Store Header ===== */
.store-section {
  padding-top: 2.5rem;
}

.store-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.store-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
}

.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--purple-mid);
  color: var(--text);
}

.filter-btn.active {
  background: var(--purple);
  border-color: var(--purple);
  color: var(--text);
}

/* ===== Products Grid ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
  display: block;
}

.product-card:hover {
  border-color: var(--purple-mid);
}

.product-card.hidden {
  display: none;
}

.product-img {
  height: 220px;
  position: relative;
  background-size: cover;
  background-position: center;
}

/* Product placeholder colors */
.prod-1 { background: linear-gradient(160deg, #3a5a8c, #2a4a7c); }
.prod-5 { background: linear-gradient(160deg, #5a8abd, #4a7aad); }
.prod-8 { background: linear-gradient(160deg, #7a6aaa, #6a5a9a); }
.prod-9 { background: linear-gradient(160deg, #8a7aba, #7a6aaa); }
.prod-11 { background: linear-gradient(160deg, #8a8a8a, #6a6a6a); }
.prod-13 { background: linear-gradient(160deg, #9a8a7a, #8a7a6a); }

.product-info {
  padding: 1rem 1.2rem 1.2rem;
}

.product-info h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.product-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 0.6rem;
}

.product-price {
  font-size: 1.05rem;
  font-weight: 700;
}

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

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.product-detail-img {
  border-radius: var(--radius);
  height: 500px;
  background-size: cover;
  background-position: center;
}

.product-detail-info h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

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

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

.product-options {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.option-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.option-group select {
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  background: var(--white);
  min-width: 180px;
  cursor: pointer;
  outline: none;
}

.option-group select:focus {
  border-color: var(--purple-mid);
}

.quantity-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
}

.qty-btn:hover {
  border-color: var(--purple-mid);
}

.qty-input {
  width: 50px;
  height: 36px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  outline: none;
}

.product-detail-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.product-detail-extras {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.product-detail-extras ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-detail-extras li {
  font-size: 0.85rem;
  color: var(--text-light);
  padding-left: 1.2rem;
  position: relative;
}

.product-detail-extras li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
}

.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: var(--text-light);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--purple-dark);
}

/* ===== Cart Drawer ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  background: var(--white);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}

.cart-drawer.open {
  transform: translateX(0);
}

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

.cart-drawer-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
}

.cart-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-light);
  line-height: 1;
}

.cart-close:hover {
  color: var(--text);
}

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

.cart-empty {
  color: var(--text-light);
  font-size: 0.9rem;
  text-align: center;
  padding: 2rem 0;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

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

.cart-item-info strong {
  font-size: 0.9rem;
}

.cart-item-details {
  font-size: 0.78rem;
  color: var(--text-light);
}

.cart-item-price {
  font-size: 0.85rem;
  font-weight: 600;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

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

.cart-qty-btn {
  width: 28px;
  height: 28px;
  font-size: 0.9rem;
}

.cart-item-remove {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
}

.cart-item-remove:hover {
  color: #c44;
}

.cart-drawer-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  display: none;
}

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

.cart-checkout-btn {
  width: 100%;
}

/* ===== About ===== */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.8;
}

.about-logo-side {
  display: flex;
  justify-content: center;
}

.about-logo {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
}

/* ===== Banner / Newsletter ===== */
.section-banner {
  background: var(--purple);
  padding: 2.5rem 0;
}

.banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.banner-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
}

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

.banner-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.banner-form input {
  padding: 0.65rem 1rem;
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: 50px;
  background: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  outline: none;
  width: 240px;
  transition: border-color 0.2s;
}

.banner-form input:focus {
  border-color: var(--purple-dark);
}

.banner-msg {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.contact-item strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.contact-item p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  background: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--purple-mid);
}

.contact-form textarea {
  resize: vertical;
}

.form-msg {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple-dark);
  min-height: 1.2em;
}

/* ===== Policy Pages ===== */
.policy-page {
  padding: 3rem 0 5rem;
  max-width: 760px;
  margin: 0 auto;
}

.policy-page h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.policy-page .policy-updated {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.policy-page h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.policy-page p,
.policy-page li {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

.policy-page ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.policy-page a {
  color: var(--purple-dark);
}

.policy-page a:hover {
  text-decoration: underline;
}

/* ===== Footer ===== */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.65);
  padding: 3.5rem 0 1.5rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.5;
}

.footer-cols {
  display: flex;
  gap: 3rem;
}

.footer-col h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-col a {
  display: block;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.4rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.78rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.2rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    z-index: 999;
  }

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

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 3rem 0;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-logo {
    width: 200px;
    height: 200px;
  }

  .about-logo-side {
    order: -1;
  }

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

  .banner-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-brand {
    flex-direction: column;
  }

  .footer-cols {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-detail-img {
    height: 320px;
  }

  .store-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .footer-cols {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
}
