@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --bg: #fdfbff;
  --panel: #ffffff;
  --ink: #2d2a32;
  --muted: #6a6475;
  --accent: #ff6b9d;
  --accent-2: #b990ff;
  --border: #efe7f7;
  --shadow: 0 20px 40px rgba(0,0,0,0.08);
  --radius-lg: 20px;
  --radius-sm: 12px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(255,107,157,0.06) 0, transparent 28%),
              radial-gradient(circle at 80% 10%, rgba(185,144,255,0.08) 0, transparent 30%),
              var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Emoji support across all devices */
* {
  font-family: 'Poppins', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}

header {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
}

.header-content {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-family: 'Dancing Script', cursive;
  font-size: 34px;
  color: var(--ink);
  margin: 0;
  letter-spacing: 1px;
  text-decoration: none;
  display: inline-block;
}

nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, rgba(255,107,157,0.95), rgba(185,144,255,0.95));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 100px 24px 32px;
  transition: right 0.3s ease;
  z-index: 1100;
  box-shadow: -5px 0 25px rgba(0,0,0,0.25);
  gap: 8px;
}

#nav-menu.active {
  right: 0;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.18);
  transition: all 0.25s ease;
  text-align: left;
  border: 1px solid rgba(255,255,255,0.25);
}

nav a:hover {
  background: rgba(255,255,255,0.5);
  transform: translateY(0);
}

#sale-banner {
  max-width: var(--container);
  margin: 14px auto;
  background: linear-gradient(135deg, rgba(255,107,157,0.12), rgba(185,144,255,0.12));
  color: var(--ink);
  padding: 14px 16px;
  text-align: center;
  letter-spacing: 0.5px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 24px rgba(0,0,0,0.05);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  padding: 32px 20px 56px;
  max-width: var(--container);
  margin: 0 auto;
}


.product-card {
  background: var(--panel);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  position: relative;
  border: 1px solid var(--border);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 46px rgba(0,0,0,0.12);
}

.product-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.product-card:hover img {
  transform: scale(1.03);
  filter: saturate(1.05);
}

.product-info {
  padding: 14px 16px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.product-title {
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  margin: 0;
}

.product-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 179, 217, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1000;
}

.modal-content {
  background: #fff;
  max-width: 500px;
  margin: 10vh auto;
  border-radius: 20px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.modal h3 {
  font-family: 'Dancing Script', cursive;
  font-size: 28px;
  margin: 20px 0 10px;
  color: #4a4a4a;
}

.modal p {
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 600;
  color: #ff6b9d;
}

#buy-btn {
  background: linear-gradient(45deg, #ff6b9d, #c44569);
  color: white;
  border: none;
  width: 100%;
  padding: 16px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0 0 20px 20px;
}

#buy-btn:hover {
  background: linear-gradient(45deg, #c44569, #ff6b9d);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 157, 0.4);
}

footer {
  background: #111015;
  color: #f5f2fa;
  text-align: center;
  padding: 36px 20px 42px;
  margin-top: 40px;
}

footer h3 {
  font-family: 'Dancing Script', cursive;
  font-size: 24px;
  margin-bottom: 8px;
}

footer p {
  margin: 6px 0;
  font-weight: 400;
}

.social-links {
  margin-top: 15px;
}

.social-links a {
  color: #f5f2fa;
  text-decoration: none;
  margin: 0 12px;
  font-size: 18px;
  transition: transform 0.25s ease, color 0.25s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  color: var(--accent);
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px;
  padding: 8px;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hamburger span {
  display: block;
  height: 2.5px;
  background: var(--ink);
  border-radius: 999px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(12px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-12px);
}

.product-shell {
  max-width: var(--container);
  margin: 32px auto 48px;
  padding: 0 20px;
}

#product-details {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}

.carousel-container {
  width: 100%;
  min-width: 320px;
}

.carousel {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 30px rgba(0,0,0,0.14);
  touch-action: pan-y;
  background: #f6f2fb;
}

.carousel-images {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
  touch-action: pan-y;
}

.carousel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  flex-shrink: 0;
}

.carousel video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.8);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  color: #ff6b9d;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.carousel-btn:hover {
  background: rgba(255,255,255,1);
  transform: translateY(-50%) scale(1.1);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  margin: 0 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.indicator.active {
  background: #ff6b9d;
}

.reviews-section {
  margin-top: 40px;
  background: var(--panel);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 22px;
  display: grid;
  gap: 16px;
}

.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.reviews-header h3 {
  margin: 2px 0 0;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 12px;
  color: var(--muted);
}

.reviews-summary {
  font-weight: 700;
  color: #f5a524;
}

.reviews-list {
  display: grid;
  gap: 12px;
}

.review-card {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.review-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.review-name {
  font-weight: 600;
}

.review-stars {
  color: #f5a524;
  font-size: 14px;
}

.review-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 15px;
}

.product-panel {
  background: var(--panel);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
  border: 1px solid var(--border);
  display: grid;
  gap: 12px;
  align-content: start;
  max-height: 520px;
  overflow: auto;
}

.product-panel h2 {
  font-size: 30px;
  margin: 0;
}

.product-panel .product-price {
  font-size: 20px;
  color: var(--accent);
}

.product-panel .product-description {
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
}

.product-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 15px;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255,107,157,0.12);
  color: var(--accent);
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  border: 1px solid rgba(255,107,157,0.25);
}

#buy-now-btn {
  background: linear-gradient(120deg, #ff6b9d, #b990ff);
  color: white;
  border: none;
  padding: 15px 18px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 10px 25px rgba(255, 107, 157, 0.25);
  width: 100%;
}

#buy-now-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(255, 107, 157, 0.35);
}

/* Review Form Styles */
.review-form-section {
  margin-top: 60px;
  margin-bottom: 40px;
  padding: 40px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
}

.review-form-header {
  margin-bottom: 25px;
}

.review-form-header .eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.review-form-header h3 {
  margin: 8px 0 0 0;
  font-size: 28px;
  color: var(--ink);
}

.review-form {
  max-width: 600px;
}

.form-group {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  padding: 14px 16px;
  border: 2px solid rgba(255, 107, 157, 0.4);
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  transition: all 0.25s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(255, 107, 157, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Rating Picker */
.rating-picker {
  display: flex;
  gap: 20px;
  font-size: 36px;
  justify-content: center;
  padding: 20px 0;
}

.star-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.rating-picker .star {
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--muted);
  user-select: none;
  display: block;
  line-height: 1;
  pointer-events: auto;
}

.rating-picker .star:hover,
.rating-picker .star.active {
  color: var(--accent);
  transform: scale(1.3);
  filter: drop-shadow(0 0 8px rgba(255, 107, 157, 0.5));
}

.star-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.star-container:has(.star.active) .star-label {
  color: var(--accent);
  font-weight: 700;
}

.submit-btn {
  background: linear-gradient(120deg, #ff6b9d, #b990ff);
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 10px 25px rgba(255, 107, 157, 0.25);
}

#buy-now-btn.is-compact {
  width: auto;
  padding: 12px 16px;
  white-space: nowrap;
}
.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(255, 107, 157, 0.35);
}

.submit-btn:active {
  transform: translateY(0);
}

.buy-now-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.copy-toast {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(52, 211, 153, 0.14);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.35);
  font-weight: 700;
  font-size: 13px;
  opacity: 0;
  transform: translateX(16px);
  transition: all 0.25s ease;
  pointer-events: none;
}

.copy-toast.show {
  opacity: 1;
  transform: translateX(0);
}

.form-message {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(76, 175, 80, 0.15);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.form-message.error {
  display: block;
  background: rgba(244, 67, 54, 0.15);
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

/* Responsive design */
@media (max-width: 768px) {
  header {
    padding: 14px 16px;
  }

  .header-content {
    padding: 0;
  }

  .brand {
    font-size: 32px;
    letter-spacing: 1px;
  }

  #nav-menu.active {
    right: 0;
  }

  #nav-menu a {
    margin: 15px 20px;
    padding: 12px 20px;
    border-radius: 25px;
    background: rgba(255,255,255,0.3);
    text-align: center;
    font-size: 16px;
  }

  #nav-menu a:hover {
    background: rgba(255,255,255,0.5);
    transform: translateY(0);
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    padding: 20px;
    gap: 15px;
  }

  .product-card {
    border-radius: 12px;
  }

  .product-info {
    padding: 12px;
  }

  .product-title {
    font-size: 18px;
  }

  .product-price {
    font-size: 16px;
  }

  #sale-banner {
    padding: 12px;
    font-size: 14px;
  }

  footer {
    padding: 20px;
  }

  footer h3 {
    font-size: 20px;
  }

  .social-links a {
    margin: 0 10px;
    font-size: 18px;
  }

  .product-shell {
    padding: 0 14px;
  }

  #product-details {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .carousel {
    height: 260px;
  }

  .product-panel {
    max-height: none;
    overflow: visible;
  }

  .review-form-header h3 {
    font-size: 24px;
  }

  .review-form {
    max-width: 100%;
  }

  .form-group input,
  .form-group textarea {
    font-size: 16px;
  }

  .rating-picker {
    font-size: 28px;
    gap: 16px;
  }

  .star-label {
    font-size: 12px;
  }

  .submit-btn {
    width: 100%;
  }

  .modal-content {
    max-width: 90%;
    margin: 20vh auto;
  }

  .modal img {
    height: 200px;
  }

  .modal h3 {
    font-size: 22px;
  }

  .modal p {
    font-size: 20px;
  }
}
