* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #9b59b6;
  --primary-dark: #7d3c98;
  --accent: #ff6b81;
  --bg-light: #faf5fc;
  --text-dark: #2d2d2d;
  --border-color: #e5d4ee;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: #fff;
}

.container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* HEADER */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
.logo-link { display: flex; align-items: center; gap: 10px; }
.logo-img { width: 48px; height: 48px; border-radius: 50%; }
.site-name { font-size: 22px; font-weight: 700; color: var(--primary-dark); }

.main-nav ul { display: flex; gap: 22px; }
.main-nav a {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-dark);
  transition: color .2s;
}
.main-nav a:hover { color: var(--primary); }

.cart-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 15px;
}
.cart-count { font-weight: 700; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
}

/* CART DRAWER */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -380px;
  width: 360px;
  height: 100%;
  background: #fff;
  box-shadow: -4px 0 15px rgba(0,0,0,.15);
  z-index: 300;
  display: flex;
  flex-direction: column;
  transition: right .3s ease;
}
.cart-drawer.open { right: 0; }
.cart-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--border-color);
}
.close-btn { background: none; border: none; font-size: 26px; cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px; }
.empty-cart-msg { color: #888; text-align: center; margin-top: 40px; }
.cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}
.cart-item img { width: 56px; height: 56px; border-radius: 6px; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 14px; }
.cart-item-qty { font-size: 13px; color: #777; }
.remove-item-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #c0392b;
  cursor: pointer;
}
.cart-drawer-footer { padding: 16px; border-top: 1px solid var(--border-color); }
.cart-total { font-weight: 700; margin-bottom: 10px; font-size: 16px; }

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 250;
  display: none;
}
.cart-overlay.show { display: block; }

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s, opacity .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { opacity: .9; }
.btn-outline { background: #fff; border-color: var(--primary); color: var(--primary); }
.btn-outline.active { background: var(--primary); color: #fff; }
.btn-secondary { background: #eee; color: #333; }

/* PRODUCT ARTICLE */
.product-article { padding: 40px 0; }
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.main-image-wrap { position: relative; border-radius: 12px; overflow: hidden; background: var(--bg-light); }
.main-image { width: 100%; height: auto; }
.badge-sale {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
}
.thumbnail-row { display: flex; gap: 10px; margin-top: 14px; }
.thumb {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  object-fit: cover;
}
.thumb.active, .thumb:hover { border-color: var(--primary); }

.product-title { font-size: 26px; margin-bottom: 12px; color: var(--text-dark); }
.rating-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.stars { color: #f1c40f; font-size: 20px; }
.rating-count { color: #666; font-size: 14px; }

.price-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.current-price { font-size: 28px; font-weight: 800; color: var(--primary-dark); }
.original-price { text-decoration: line-through; color: #999; font-size: 18px; }
.discount-tag { background: #e8f8ee; color: #27ae60; padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: 700; }

.availability { color: #27ae60; font-weight: 600; margin-bottom: 14px; }

.feature-bullets { margin-bottom: 16px; }
.feature-bullets li { margin-bottom: 8px; font-size: 15px; }

.age-warning {
  background: #fff7e6;
  border: 1px solid #f5d98a;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 18px;
}

.purchase-box { margin-bottom: 14px; }
.qty-selector { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.qty-btn {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: #fff;
  font-size: 18px;
  cursor: pointer;
}
#qtyInput {
  width: 50px;
  text-align: center;
  padding: 6px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
}
.action-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.secure-note { margin-top: 14px; font-size: 13px; color: #888; }

/* SECTIONS */
.section-block { padding: 50px 0; }
.alt-bg { background: var(--bg-light); }
.section-block h2 { text-align: center; margin-bottom: 30px; color: var(--primary-dark); font-size: 28px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card { text-align: center; padding: 20px; background: #fff; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.feature-card img { margin: 0 auto 12px; width: 60px; height: 60px; border-radius: 50%; }
.feature-card h3 { margin-bottom: 8px; font-size: 17px; }
.feature-card p { font-size: 14px; color: #666; }

.specs-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; }
.specs-table tr { border-bottom: 1px solid var(--border-color); }
.specs-table th, .specs-table td { text-align: left; padding: 14px 18px; font-size: 15px; }
.specs-table th { width: 220px; color: var(--primary-dark); background: var(--bg-light); }

.gift-section { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.gift-image { border-radius: 12px; }
.gift-text h2 { text-align: left; }
.gift-text p { margin-bottom: 12px; color: #555; }

.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.review-card { background: #fff; padding: 20px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.review-stars { color: #f1c40f; margin-bottom: 8px; }
.review-text { font-style: italic; margin-bottom: 10px; color: #444; }
.review-author { font-weight: 600; font-size: 14px; color: var(--primary-dark); }

.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-color); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 16px 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-icon { font-size: 20px; color: var(--primary); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  padding: 0 4px;
  color: #555;
  font-size: 14px;
}
.faq-item.open .faq-answer { max-height: 200px; padding-bottom: 14px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* FOOTER */
.site-footer { background: #2d1b36; color: #eee; padding: 40px 0 0; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-bottom: 30px; }
.footer-col h4 { margin-bottom: 14px; color: #fff; }
.footer-col p, .footer-col a { color: #ccc; font-size: 14px; line-height: 1.8; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  padding: 16px 0;
  font-size: 13px;
  color: #aaa;
}

/* COOKIE CONSENT */
.cookie-consent {
  position: fixed;
  bottom: -200px;
  left: 0;
  right: 0;
  background: #1f1228;
  color: #fff;
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  z-index: 500;
  transition: bottom .4s ease;
}
.cookie-consent.show { bottom: 0; }
.cookie-consent p { flex: 1; min-width: 240px; font-size: 14px; }
.cookie-consent a { color: var(--primary); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 10px; }

/* TOAST */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--primary-dark);
  color: #fff;
  padding: 12px 22px;
  border-radius: 30px;
  font-size: 14px;
  opacity: 0;
  z-index: 999;
  transition: opacity .3s, transform .3s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* LEGAL PAGE */
.legal-article { padding: 50px 0; max-width: 850px; margin: 0 auto; }
.legal-article h1 { color: var(--primary-dark); margin-bottom: 8px; }
.legal-article .last-updated { color: #888; margin-bottom: 24px; font-size: 14px; }
.legal-article h2 { margin: 26px 0 10px; color: var(--primary-dark); font-size: 20px; }
.legal-article p { margin-bottom: 10px; color: #444; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .gift-section { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    display: none;
    border-top: 1px solid var(--border-color);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 16px; gap: 14px; }
  .mobile-menu-btn { display: block; }
  .features-grid { grid-template-columns: 1fr; }
  .cart-drawer { width: 90%; right: -100%; }
}