/* ===== Kaiwai Pop Studio — style pastel ===== */

:root {
  --pink-light: #FEEDF5;
  --pink: #FBDCE9;
  --pink-strong: #F27CA5;
  --pink-deep: #E8618F;
  --purple-light: #F1EBFB;
  --purple: #DCD0F4;
  --blue-light: #E4F7FB;
  --blue: #CDEEF5;
  --yellow: #FDE9C9;
  --yellow-strong: #F2C14E;
  --text-dark: #5B4048;
  --text-soft: #8A7480;
  --white: #FFFFFF;
  --shadow: 0 10px 30px rgba(232, 97, 143, 0.15);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  background: linear-gradient(180deg, var(--pink-light) 0%, var(--purple-light) 55%, var(--blue-light) 100%);
  background-attachment: fixed;
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--pink-deep);
  margin: 0 0 0.5em 0;
}

a {
  color: var(--pink-deep);
  text-decoration: none;
}

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

/* ===== Header ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 14px rgba(232, 97, 143, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.brand-name {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--pink-deep);
}

.main-nav {
  display: flex;
  gap: 22px;
}

.main-nav a {
  font-weight: 600;
  color: var(--text-dark);
}

.main-nav a:hover {
  color: var(--pink-deep);
}

.cart-button {
  position: relative;
  border: none;
  background: var(--pink);
  color: var(--pink-deep);
  font-size: 1.3rem;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.cart-button:hover {
  background: var(--pink-strong);
  color: var(--white);
  transform: translateY(-1px);
}

.cart-button.bounce {
  animation: cart-bounce 0.4s ease;
}

@keyframes cart-bounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--pink-deep);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ===== Hero ===== */

.hero {
  text-align: center;
  padding: 64px 20px 80px;
  max-width: 720px;
  margin: 0 auto;
}

.hero-logo {
  width: 420px;
  height: auto;
  max-width: 80vw;
  aspect-ratio: 1 / 1;
  margin: 0 auto 24px;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.hero-subtitle {
  color: var(--text-soft);
  font-size: 1.1rem;
  margin-bottom: 28px;
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--pink-strong);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(232, 97, 143, 0.28);
}

/* ===== Produits ===== */

.products-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  text-align: center;
}

.section-intro {
  color: var(--text-soft);
  max-width: 520px;
  margin: 0 auto 40px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  text-align: left;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  scroll-margin-top: 100px;
  transition: transform 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-image-wrap {
  background: var(--pink-light);
  padding: 20px;
}

.product-image-wrap img {
  border-radius: var(--radius-md);
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-info {
  padding: 20px 24px 26px;
}

.product-info h3 {
  font-size: 1.25rem;
}

.product-desc {
  color: var(--text-soft);
  font-size: 0.95rem;
  min-height: 3em;
}

.product-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--pink-deep);
  margin: 10px 0 18px;
}

.product-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.qty-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--pink-light);
  border-radius: 999px;
  padding: 6px 12px;
}

.qty-btn {
  border: none;
  background: var(--white);
  color: var(--pink-deep);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.qty-value {
  min-width: 18px;
  text-align: center;
  font-weight: 700;
}

.btn-add-cart {
  background: var(--yellow-strong);
  color: var(--white);
  flex: 1;
  padding: 12px 20px;
}

.btn-add-cart:hover {
  background: var(--pink-strong);
}

.btn-add-cart.added {
  background: #8FCB9A;
}

/* ===== A propos ===== */

.about-section {
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 24px 80px;
  text-align: center;
  color: var(--text-soft);
}

/* ===== Footer ===== */

.site-footer {
  background: var(--purple);
  text-align: center;
  padding: 48px 24px;
  color: var(--text-dark);
}

.footer-logo {
  width: 70px;
  height: 70px;
  margin: 0 auto 12px;
  border-radius: 50%;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 16px 0;
  font-weight: 600;
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-top: 20px;
}

/* ===== Panier (drawer) ===== */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(91, 64, 72, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 90;
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(400px, 100%);
  background: var(--white);
  box-shadow: -12px 0 40px rgba(91, 64, 72, 0.2);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
}

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

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cart-drawer-header button {
  border: none;
  background: var(--pink-light);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--pink-deep);
}

.cart-items {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--pink-light);
  border-radius: var(--radius-sm);
  padding: 10px;
}

.cart-item img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--white);
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.cart-item-price {
  color: var(--text-soft);
  font-size: 0.85rem;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.cart-item-qty button {
  border: none;
  background: var(--white);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-weight: 700;
  cursor: pointer;
  color: var(--pink-deep);
}

.cart-item-remove {
  border: none;
  background: none;
  color: var(--text-soft);
  cursor: pointer;
  font-size: 1rem;
  align-self: flex-start;
}

.cart-item-remove:hover {
  color: var(--pink-deep);
}

.cart-empty-msg {
  text-align: center;
  color: var(--text-soft);
  margin-top: 40px;
}

.shipping-section {
  border-top: 2px dashed var(--pink);
  padding-top: 18px;
  margin-top: 18px;
}

.shipping-title {
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.shipping-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.shipping-select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  border: 2px solid var(--pink);
  background: var(--pink-light);
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  appearance: auto;
}

.shipping-note {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin: 0 0 16px;
}

.shipping-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}

.shipping-method-option {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--pink-light);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.shipping-method-option:has(input:checked) {
  border-color: var(--pink-strong);
  background: var(--pink);
}

.shipping-method-option input {
  accent-color: var(--pink-deep);
  width: 16px;
  height: 16px;
}

.cart-footer {
  border-top: 2px dashed var(--pink);
  padding-top: 18px;
  margin-top: 18px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--pink-deep);
  margin-bottom: 16px;
}

.cart-subtotal-row {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.demo-notice {
  font-size: 0.78rem;
  color: var(--text-soft);
  text-align: center;
  margin-top: 12px;
}

.order-confirmation {
  background: #E9F7EC;
  color: #3C8452;
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  font-weight: 600;
  margin-top: 12px;
}

/* ===== Responsive ===== */

@media (max-width: 640px) {
  .site-header {
    padding: 10px 16px;
  }

  .main-nav {
    display: none;
  }

  .brand-name {
    font-size: 1rem;
  }

  .hero {
    padding: 44px 16px 60px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .products-section {
    padding: 24px 16px 60px;
  }
}
