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

:root {
  --color-primary: #E91E8C;
  --color-primary-dark: #C4177A;
  --color-primary-light: #FF6BB5;
  --color-navy: #1A1A4E;
  --color-navy-light: #2D2D6B;
  --color-accent: #9B4DFF;
  --color-bg: #FFFFFF;
  --color-text: #1A1A4E;
  --color-text-muted: #6B6B8A;
  --color-border: #E8E8F0;
  --color-sale: #E32402;
  --font-heading: 'Fredoka', sans-serif;
  --font-body: 'Nunito', sans-serif;
  --header-height: 72px;
  --announcement-height: 40px;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(26, 26, 78, 0.08);
  --shadow-lg: 0 8px 32px rgba(26, 26, 78, 0.12);
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary); }

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

ul { list-style: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Announcement Bar */
.announcement-bar {
  background: var(--color-navy);
  color: #fff;
  height: var(--announcement-height);
  overflow: hidden;
  position: relative;
}

.announcement-track {
  display: flex;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

.announcement-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 48px;
  font-size: 13px;
  font-weight: 600;
  height: var(--announcement-height);
  line-height: var(--announcement-height);
}

.announcement-item .dot {
  width: 4px;
  height: 4px;
  background: var(--color-primary-light);
  border-radius: 50%;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 24px;
}

.logo img, .logo svg { height: 44px; width: auto; }

.header-nav {
  display: none;
  align-items: center;
  gap: 4px;
}

.header-nav a {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

.header-nav a:hover,
.header-nav a.active {
  background: rgba(233, 30, 140, 0.08);
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background var(--transition);
  position: relative;
}

.icon-btn:hover { background: rgba(233, 30, 140, 0.08); }

.icon-btn svg { width: 22px; height: 22px; }

.cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--color-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle { display: flex; }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  opacity: 0;
  transition: visibility var(--transition), opacity var(--transition);
}

.mobile-menu.open { visibility: visible; opacity: 1; }

.mobile-menu-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 78, 0.5);
}

.mobile-menu-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: min(360px, 85vw);
  height: 100%;
  background: #fff;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 24px;
}

.mobile-menu.open .mobile-menu-panel { transform: translateX(0); }

.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav .submenu { padding-left: 16px; }
.mobile-nav .submenu a { font-size: 14px; font-weight: 500; color: var(--color-text-muted); }

/* Hero Slider */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--color-navy);
}

.hero-slides {
  display: flex;
  transition: transform 0.6s ease;
}

.hero-slide {
  min-width: 100%;
  position: relative;
}

.hero-slide img {
  width: 100%;
  height: clamp(280px, 45vw, 520px);
  object-fit: cover;
}

.hero-slide a { display: block; }

.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 2px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
}

.hero-dot.active {
  background: var(--color-primary);
  border-color: #fff;
  transform: scale(1.2);
}

.hero-arrows button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: background var(--transition);
}

.hero-arrows button:hover { background: #fff; }
.hero-arrows .prev { left: 16px; }
.hero-arrows .next { right: 16px; }

/* Collections Grid */
.section { padding: 64px 0; }
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--color-navy);
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.collection-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.collection-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.collection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.collection-card:hover img { transform: scale(1.05); }

.collection-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,78,0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.collection-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

/* Promo Banner */
.promo-section {
  padding: 0;
  background: var(--color-navy);
}

.promo-banner img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  opacity: 0.9;
}

.promo-text {
  text-align: center;
  padding: 48px 24px;
  color: #fff;
}

.promo-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 4vw, 32px);
  margin-bottom: 16px;
}

.promo-text p {
  max-width: 640px;
  margin: 0 auto 24px;
  font-size: 16px;
  opacity: 0.9;
  line-height: 1.7;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.product-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
  color: inherit;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f8f8fc;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image img { transform: scale(1.05); }

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.badge-sale { background: var(--color-sale); color: #fff; }
.badge-soldout { background: var(--color-navy); color: #fff; }

.product-info { padding: 16px; }

.product-info h3 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.price-current {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-navy);
}

.price-compare {
  font-size: 14px;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--color-navy);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--color-navy-light);
  color: #fff;
}

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

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-sm { padding: 10px 20px; font-size: 13px; }

.add-to-cart {
  width: 100%;
  margin-top: 12px;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: #fff;
  text-align: center;
  padding: 64px 24px;
}

.cta-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 36px);
  margin-bottom: 12px;
}

.cta-section p { opacity: 0.9; margin-bottom: 24px; font-size: 16px; }

.cta-section .btn {
  background: #fff;
  color: var(--color-primary);
}

.cta-section .btn:hover {
  background: var(--color-navy);
  color: #fff;
}

/* Footer */
.site-footer {
  background: var(--color-navy);
  color: #fff;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand .logo svg { height: 48px; }
.footer-brand p { margin-top: 12px; opacity: 0.7; font-size: 14px; }

.footer-contact h4,
.footer-links h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  margin-bottom: 16px;
}

.footer-contact p,
.footer-links a {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 8px;
  display: block;
}

.footer-links a:hover { opacity: 1; color: var(--color-primary-light); }

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.social-links a:hover { background: var(--color-primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  opacity: 0.6;
}

.payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

.payment-icons span {
  background: rgba(255,255,255,0.1);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

/* Shop Page */
.page-header {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  color: #fff;
  padding: 48px 0;
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5vw, 42px);
}

.page-header p { opacity: 0.8; margin-top: 8px; }

.shop-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 48px 0;
}

.shop-filters {
  background: #f8f8fc;
  border-radius: var(--radius);
  padding: 24px;
}

.shop-filters h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  margin-bottom: 16px;
}

.filter-group { margin-bottom: 20px; }

.filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 14px;
  cursor: pointer;
}

.filter-group input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 16px;
  height: 16px;
}

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: gap;
  gap: 12px;
}

.shop-toolbar select {
  padding: 10px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  background: #fff;
}

.product-count { font-size: 14px; color: var(--color-text-muted); }

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding: 48px 0;
}

.contact-info-card {
  background: #f8f8fc;
  border-radius: var(--radius);
  padding: 32px;
}

.contact-info-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-item svg { width: 24px; height: 24px; color: var(--color-primary); flex-shrink: 0; margin-top: 2px; }

.contact-form .form-group { margin-bottom: 20px; }

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.contact-form textarea { min-height: 140px; resize: vertical; }

/* Cart Drawer */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 300;
  visibility: hidden;
  opacity: 0;
  transition: visibility var(--transition), opacity var(--transition);
}

.cart-drawer.open { visibility: visible; opacity: 1; }

.cart-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 78, 0.5);
}

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100%;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.cart-header h2 {
  font-family: var(--font-heading);
  font-size: 20px;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.cart-empty {
  text-align: center;
  padding: 48px 0;
  color: var(--color-text-muted);
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: #f8f8fc;
  border-radius: var(--radius);
}

.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 14px; margin-bottom: 4px; }
.cart-item-info .price { font-weight: 700; color: var(--color-navy); }

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--color-border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

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

/* Responsive */
@media (min-width: 640px) {
  .collections-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .menu-toggle { display: none; }
  .header-nav { display: flex; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1.2fr; }
}

@media (min-width: 1024px) {
  .collections-grid { grid-template-columns: repeat(6, 1fr); gap: 20px; }
  .products-grid { grid-template-columns: repeat(4, 1fr); }
  .shop-layout { grid-template-columns: 260px 1fr; }
}

@media (max-width: 767px) {
  .header-nav { display: none !important; }
}

/* Product Detail Page */
.product-page { padding: 32px 24px 64px; }

.breadcrumb {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

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

.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.product-main-image {
  position: relative;
  background: #f8f8fc;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
}

.product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
}

.product-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.product-thumb {
  width: 72px;
  height: 72px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: #f8f8fc;
}

.product-thumb.active { border-color: var(--color-primary); }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; }

.product-detail-info h1 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 4vw, 32px);
  line-height: 1.3;
  margin-bottom: 8px;
}

.product-vendor { color: var(--color-text-muted); font-size: 14px; margin-bottom: 16px; }

.product-price-lg .price-current { font-size: 28px; }

.stock-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin: 16px 0;
}

.stock-badge.in { background: #D1FAE5; color: #065F46; }
.stock-badge.out { background: #FEE2E2; color: #991B1B; }

.quantity-selector { margin: 20px 0; }
.quantity-selector label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }

.qty-controls {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.qty-controls button {
  width: 40px;
  height: 40px;
  font-size: 18px;
  background: #f8f8fc;
  transition: background var(--transition);
}

.qty-controls button:hover { background: var(--color-border); }

.qty-controls input {
  width: 60px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  font-size: 16px;
  font-weight: 600;
  padding: 8px;
  -moz-appearance: textfield;
}

.qty-controls input::-webkit-outer-spin-button,
.qty-controls input::-webkit-inner-spin-button { -webkit-appearance: none; }

.product-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.product-tag {
  background: #f8f8fc;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.product-meta { margin-top: 24px; font-size: 14px; color: var(--color-text-muted); }
.product-meta p { margin-bottom: 6px; }

.product-desc-section {
  border-top: 1px solid var(--color-border);
  padding-top: 40px;
}

.product-description { max-width: 800px; line-height: 1.8; }
.product-description p { margin-bottom: 12px; }

.product-loading { text-align: center; padding: 80px 0; color: var(--color-text-muted); }

/* Checkout */
.checkout-page { padding-bottom: 64px; }

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.checkout-line {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}

.order-success {
  text-align: center;
  padding: 64px 24px;
  background: #f0fdf4;
  border-radius: var(--radius);
  margin-top: 32px;
}

.order-success h2 { font-family: var(--font-heading); color: #065F46; margin-bottom: 12px; }

@media (min-width: 768px) {
  .product-detail { grid-template-columns: 1fr 1fr; }
  .checkout-grid { grid-template-columns: 1.2fr 1fr; }
}