/* --- Global Styles & Variables --- */
:root {
  --primary-color: #ff6b6b; /* Coral */
  --secondary-color: #ffd166; /* Sunny Yellow */
  --tertiary-color: #06bee1; /* Sky Blue */
  --dark-text: #333333;
  --muted-text: #475467; /* Softer neutral for paragraphs */
  --light-grey: #F0F2F5;
  --bg-soft: #F5F7FA; /* Page background */
  --white: #FFFFFF;
  --heading-font: 'Poppins', 'Quicksand', sans-serif;
  --body-font: 'Nunito Sans', sans-serif;
  --card-radius: 16px;
}

/* Dark theme overrides */
html[data-theme='dark'] {
  --bg-soft: #0B1220;
  --light-grey: #0F172A;
  --white: #111827; /* Surfaces */
  --dark-text: #E5E7EB;
  --muted-text: #9CA3AF;
}

html[data-theme='dark'] .btn-secondary {
  background: linear-gradient(180deg, #4A5568 0%, #2D3748 100%);
  color: #F7FAFC;
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

* { box-sizing: border-box; }

html { font-size: 16px; }
html.text-lg { font-size: 18px; }

body {
  font-family: var(--body-font);
  margin: 0;
  color: var(--dark-text);
  background-color: var(--bg-soft);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-family: var(--heading-font);
  font-weight: 700;
  letter-spacing: 0.2px;
}

p { color: var(--muted-text); }

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

section { padding: 60px 0; }

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 40px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.btn-primary { background: linear-gradient(180deg, #ff7f7f 0%, #ff6b6b 100%); color: var(--white); box-shadow: 0 6px 14px rgba(255,107,107,0.3); }
.btn-secondary { background: linear-gradient(180deg, #ffe29a 0%, #ffd166 100%); color: var(--dark-text); box-shadow: 0 6px 14px rgba(255,209,102,0.3); }
.btn-tertiary { background: linear-gradient(180deg, #34c9ea 0%, #06bee1 100%); color: var(--white); box-shadow: 0 6px 14px rgba(6,190,225,0.25); }
.btn-block { width: 100%; }

.icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: inherit;
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.icon-btn:hover { background: #EEF2F6; }

.small-msg { margin-top: 10px; min-height: 20px; font-size: 0.9rem; }

/* --- Header --- */
header {
  background: var(--white);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo {
  font-family: var(--heading-font);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}
.logo .heart { color: #7C3AED; margin-left: 6px; }
nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}
nav a { text-decoration: none; color: var(--dark-text); font-weight: 600; }
nav a { padding: 8px 12px; border-radius: 999px; }
nav a:hover { color: var(--dark-text); background: #EEF2F6; }

.header-icons { display: flex; gap: 20px; font-size: 1.2rem; align-items: center; }

.cart-count {
  background: var(--primary-color);
  color: var(--white);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 0.75rem;
  margin-left: 6px;
}

/* --- Hero Section --- */
.hero { background-color: transparent; padding: 40px 0; }
.hero-container { display: flex; align-items: center; gap: 40px; }
.hero-image { flex: 1; }
.hero-content { flex: 1; }
.hero .hero-container { background: var(--white); border-radius: var(--card-radius); box-shadow: 0 20px 40px rgba(16,24,40,0.08); padding: 24px; }
.hero-images { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-images img { border-radius: 12px; width: 100%; height: 260px; object-fit: cover; }
.hero-single { border-radius: 12px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.hero-content h1 { font-size: 3rem; color: var(--primary-color); line-height: 1.2; }
.hero-content p { font-size: 1.2rem; margin-bottom: 20px; }

.stock-counter {
  margin-bottom: 30px;
}
.stock-counter p {
  font-size: 1rem;
  margin: 10px 0 0;
}
.stock-bar-background {
  background-color: var(--light-grey);
  border-radius: 50px;
  height: 16px;
  overflow: hidden;
}
.stock-bar-level {
  background: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  height: 100%;
  border-radius: 50px;
  transition: width 0.5s ease-out;
}

/* --- Meet Sania Section --- */
.meet-sania-container { display: flex; align-items: center; gap: 50px; }
.meet-sania .meet-sania-container { background: var(--white); border-radius: var(--card-radius); box-shadow: 0 12px 24px rgba(16,24,40,0.06); padding: 24px; }
.sania-image { flex: 1; text-align: center; }
.sania-image img { border-radius: 15px; max-width: 350px; }
.sania-content { flex: 1; }
.sania-content h2 { color: var(--secondary-color); font-size: 2.5rem; }

/* --- Featured Kits --- */
.featured-kits { background-color: var(--light-grey); }
.kits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.kit-card {
  background: var(--white);
  border: 1px solid #eef2f6;
  border-radius: var(--card-radius);
  text-align: center;
  padding: 20px;
  box-shadow: 0 16px 32px rgba(16,24,40,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.kit-card img {
  border-radius: 10px;
  margin-bottom: 15px;
  width: 100%;
  height: 190px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.kit-card img:hover {
  transform: scale(1.03);
}
.kit-card h3 { color: var(--primary-color); margin: 10px 0; }
.kit-card .price { font-weight: 600; font-size: 1.1rem; margin-bottom: 10px; }
.kit-card .card-actions { margin-top: auto; }

/* --- Newsletter --- */
.newsletter { background-color: var(--white); color: var(--muted-text); text-align: center; border-radius: var(--card-radius); box-shadow: 0 12px 24px rgba(16,24,40,0.06); }
.newsletter h2 { color: var(--tertiary-color); font-size: 2.2rem; }
.newsletter-form { margin-top: 20px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.newsletter-form input {
  width: 300px;
  max-width: 100%;
  padding: 12px;
  border: none;
  border-radius: 50px;
  font-family: var(--body-font);
}

/* --- Footer --- */
footer { background-color: var(--light-grey); text-align: center; padding: 40px 0; font-size: 0.9rem; }
.footer-links { margin-bottom: 20px; }
.footer-links a { margin: 0 15px; color: var(--dark-text); text-decoration: none; font-weight: 600; }
.social-icons { margin-bottom: 20px; }
.social-icons a { margin: 0 10px; font-size: 1.5rem; color: var(--tertiary-color); }

/* --- Cart Drawer --- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.cart-overlay.active { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 380px;
  max-width: 92vw;
  background: var(--white);
  box-shadow: -4px 0 12px rgba(0,0,0,0.1);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex; flex-direction: column;
  z-index: 200;
}
.cart-drawer.active { transform: translateX(0); }
.cart-header { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid #eee; }
.cart-items { padding: 12px 16px; overflow-y: auto; flex: 1; }
.cart-footer { border-top: 1px solid #eee; padding: 16px; background: #fafafa; }
.cart-total-row { display: flex; justify-content: space-between; margin: 12px 0 16px; font-size: 1.1rem; }
.cart-email input { width: 100%; padding: 10px 14px; border-radius: 10px; border: 1px solid #ddd; font-family: var(--body-font); }

.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.cart-item:last-child { border-bottom: 0; }
.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.cart-item .title { font-weight: 700; color: var(--dark-text); }
.cart-item .meta { font-size: 0.9rem; color: #666; }
.cart-item .qty { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #ddd; border-radius: 999px; padding: 4px 8px; }
.cart-item .qty button { background: none; border: none; font-size: 1rem; cursor: pointer; }
.cart-item .price { font-weight: 600; }
.cart-item .remove { background: none; border: none; color: #999; cursor: pointer; font-size: 0.9rem; }

/* --- Product Page --- */
.product-container { display: flex; align-items: flex-start; gap: 40px; }
.product-gallery { flex: 1; }
.product-gallery img { border-radius: 12px; width: 100%; max-width: 560px; }
.product-info { flex: 1; }
.product-info h1 { color: var(--primary-color); font-size: 2rem; margin: 0 0 10px; }
.product-price-row { font-size: 1.5rem; margin: 10px 0 20px; }
.qty-row { margin: 10px 0; }
.actions { margin: 15px 0; }
.qty-control { display: inline-flex; gap: 10px; align-items: center; border: 1px solid #ddd; border-radius: 999px; padding: 6px 10px; }
.qty-control button { background: none; border: none; font-size: 1rem; cursor: pointer; }

/* --- Image Modal --- */
.image-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.image-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.image-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}
.image-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  z-index: 1;
}
.image-modal-content img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  border-radius: 12px;
}
.image-modal-close {
  position: absolute;
  top: -15px;
  right: -15px;
  background: white;
  color: #333;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 24px;
  line-height: 36px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.insta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-items: center;
  margin-top: 30px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .hero-container, .meet-sania-container { flex-direction: column; text-align: center; }
  .hero-images { grid-template-columns: 1fr; }
  .product-container { flex-direction: column; }
  .product-gallery { text-align: center; }
  .product-gallery img { max-width: 100%; }
  nav { display: none; } /* Simple responsive solution, could be replaced with a hamburger menu */

  .insta-grid {
    grid-template-columns: 1fr; /* Switch to a single column on mobile */
  }
}
