/**
 * Barbie Shop — Luxury Beauty Ecommerce Template
 * Organized: tokens → base → layout → components → sections → utilities → responsive
 */

/* -------------------------------------------------------------------------- */
/* Design tokens                                                               */
/* -------------------------------------------------------------------------- */
:root {
  --pink-primary: #f8b6c8;
  --rose-soft: #fce4ec;
  --pink-hot: #ec4899;
  --cream: #fffafc;
  --beige-light: #f7f1ee;
  --text-dark: #2b2b2b;
  --text-muted: #7c7c7c;
  --white: #ffffff;
  --shadow-sm: 0 4px 20px rgba(236, 72, 153, 0.08);
  --shadow-md: 0 12px 40px rgba(43, 43, 43, 0.08);
  --shadow-lg: 0 24px 60px rgba(236, 72, 153, 0.12);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-heading: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --font-display-alt: "Cormorant Garamond", Georgia, serif;
  --font-body: "Poppins", "Inter", system-ui, sans-serif;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --header-h: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* -------------------------------------------------------------------------- */
/* Reset & base                                                                */
/* -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--cream);
  overflow-x: hidden;
}

body.is-cursor-custom {
  cursor: none;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

/* -------------------------------------------------------------------------- */
/* Layout utilities                                                            */
/* -------------------------------------------------------------------------- */
.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .container {
    width: min(1120px, 100% - 3rem);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 10000;
  padding: var(--space-3) var(--space-4);
  background: var(--pink-hot);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: top 0.25s var(--ease-out);
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--text-dark);
  outline-offset: 2px;
}

/* -------------------------------------------------------------------------- */
/* Page loader & particles                                                     */
/* -------------------------------------------------------------------------- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--cream) 0%, var(--rose-soft) 50%, var(--beige-light) 100%);
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

.page-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader__inner {
  text-align: center;
  position: relative;
}

.page-loader__brand {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, var(--pink-hot), var(--pink-primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-loader__shimmer {
  margin-top: var(--space-6);
  height: 3px;
  width: 160px;
  margin-inline: auto;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--pink-primary),
    var(--pink-hot),
    var(--pink-primary),
    transparent
  );
  background-size: 200% 100%;
  animation: shimmer-bar 1.2s ease-in-out infinite;
}

@keyframes shimmer-bar {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.particles {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 182, 200, 0.5), transparent 70%);
  animation: float-particle linear infinite;
  opacity: 0.35;
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) scale(0.6);
    opacity: 0;
  }
  10% {
    opacity: 0.35;
  }
  90% {
    opacity: 0.25;
  }
  100% {
    transform: translateY(-20vh) scale(1);
    opacity: 0;
  }
}

/* Custom cursor */
.custom-cursor,
.custom-cursor-dot {
  display: none;
}

@media (pointer: fine) and (min-width: 1024px) {
  body.is-cursor-custom .custom-cursor,
  body.is-cursor-custom .custom-cursor-dot {
    display: block;
    position: fixed;
    pointer-events: none;
    z-index: 10001;
    mix-blend-mode: normal;
  }

  .custom-cursor {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(236, 72, 153, 0.35);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.2s var(--ease-out), height 0.2s var(--ease-out), border-color 0.2s;
  }

  .custom-cursor.is-active {
    width: 48px;
    height: 48px;
    border-color: rgba(236, 72, 153, 0.55);
    background: rgba(252, 228, 236, 0.25);
  }

  .custom-cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--pink-hot);
    border-radius: 50%;
    transform: translate(-50%, -50%);
  }
}

/* -------------------------------------------------------------------------- */
/* Header / navbar                                                             */
/* -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), backdrop-filter 0.35s;
}

.site-header.is-scrolled {
  background: rgba(255, 250, 252, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  z-index: 2;
}

.logo__text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(120deg, var(--text-dark), var(--pink-hot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo__tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--text-muted);
  font-weight: 500;
}

.logo--footer .logo__text {
  font-size: 1.5rem;
}

.nav--desktop {
  display: none;
}

@media (min-width: 1024px) {
  .nav--desktop {
    display: block;
    flex: 1;
    justify-content: center;
  }

  .nav__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2) var(--space-5);
  }

  .nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: var(--space-2) 0;
    position: relative;
  }

  .nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--pink-primary), var(--pink-hot));
    transition: width 0.3s var(--ease-out);
  }

  .nav__link:hover::after,
  .nav__link:focus-visible::after {
    width: 100%;
  }

  .nav__link:focus-visible {
    outline: 2px solid var(--pink-hot);
    outline-offset: 4px;
    border-radius: 2px;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  z-index: 2;
}

@media (min-width: 1024px) {
  .header-actions {
    gap: var(--space-2);
  }
}

.icon {
  width: 22px;
  height: 22px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text-dark);
  transition: background 0.25s, color 0.25s, transform 0.2s var(--ease-spring);
}

.icon-btn:hover,
.icon-btn:focus-visible {
  background: rgba(248, 182, 200, 0.25);
  color: var(--pink-hot);
}

.icon-btn:focus-visible {
  outline: 2px solid var(--pink-hot);
  outline-offset: 2px;
}

.icon-btn--cart {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  color: var(--white);
  background: var(--pink-hot);
  border-radius: 999px;
  animation: badge-pop 2.5s ease-in-out infinite;
}

@keyframes badge-pop {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-sm);
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle__bar {
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.25s;
}

.menu-toggle.is-open .menu-toggle__bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-open .menu-toggle__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.is-open .menu-toggle__bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 250, 252, 0.97);
  backdrop-filter: blur(12px);
  padding: var(--space-8) var(--space-6);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.45s var(--ease-out), visibility 0.45s;
}

.mobile-menu.is-open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mobile-menu__link {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(248, 182, 200, 0.35);
  transition: color 0.2s, padding-left 0.25s var(--ease-out);
}

.mobile-menu__link:hover,
.mobile-menu__link:focus-visible {
  color: var(--pink-hot);
  padding-left: var(--space-2);
}

/* -------------------------------------------------------------------------- */
/* Buttons & eyebrow                                                           */
/* -------------------------------------------------------------------------- */
.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--pink-hot);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.eyebrow--on-dark {
  color: var(--rose-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.85rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.3s, background 0.3s, color 0.3s;
}

.btn:focus-visible {
  outline: 2px solid var(--pink-hot);
  outline-offset: 3px;
}

.btn--primary {
  background: linear-gradient(120deg, var(--pink-hot), #f472b6);
  color: var(--white);
  box-shadow: 0 8px 28px rgba(236, 72, 153, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(236, 72, 153, 0.45);
}

.btn--glow {
  position: relative;
  overflow: hidden;
}

.btn--glow::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.45), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.btn--glow:hover::before {
  opacity: 1;
}

.btn--ghost {
  border: 1px solid rgba(236, 72, 153, 0.35);
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.5);
}

.btn--ghost:hover {
  border-color: var(--pink-hot);
  color: var(--pink-hot);
  transform: translateY(-2px);
}

.btn--outline {
  border: 1px solid rgba(43, 43, 43, 0.12);
  background: var(--white);
  color: var(--text-dark);
}

.btn--outline:hover {
  border-color: var(--pink-primary);
  color: var(--pink-hot);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

/* -------------------------------------------------------------------------- */
/* Hero                                                                        */
/* -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + var(--space-10));
  padding-bottom: var(--space-16);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 20%, rgba(248, 182, 200, 0.45), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(252, 228, 236, 0.9), transparent 50%),
    linear-gradient(180deg, var(--cream) 0%, var(--rose-soft) 45%, var(--beige-light) 100%);
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}

.hero__orb--1 {
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  background: var(--pink-primary);
  top: -10%;
  right: -15%;
}

.hero__orb--2 {
  width: min(320px, 55vw);
  height: min(320px, 55vw);
  background: #fbcfe8;
  bottom: 10%;
  left: -10%;
}

.hero__mesh {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(236, 72, 153, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
}

.hero__shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.floating-shape {
  position: absolute;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(248, 182, 200, 0.25));
  animation: float-shape 8s ease-in-out infinite;
}

.floating-shape--1 {
  width: 80px;
  height: 80px;
  top: 22%;
  left: 8%;
  animation-delay: 0s;
}

.floating-shape--2 {
  width: 48px;
  height: 48px;
  top: 55%;
  right: 12%;
  animation-delay: -2s;
}

.floating-shape--3 {
  width: 64px;
  height: 64px;
  bottom: 18%;
  left: 20%;
  animation-delay: -4s;
}

@keyframes float-shape {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-18px) rotate(8deg);
  }
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}

.hero__content {
  max-width: 34rem;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.hero__subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: var(--space-8);
  font-weight: 400;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(248, 182, 200, 0.35);
}

.hero__stat {
  text-align: left;
}

.hero__stat dd {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 var(--space-1);
  color: var(--text-dark);
}

.hero__stat dt:not(.sr-only) {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.hero__visual {
  position: relative;
  justify-self: center;
  width: min(100%, 420px);
}

@media (min-width: 900px) {
  .hero__visual {
    justify-self: end;
    width: min(100%, 440px);
  }
}

.hero__image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: perspective(800px) rotateY(-4deg);
  transition: transform 0.5s var(--ease-out);
}

.hero__visual:hover .hero__image-wrap {
  transform: perspective(800px) rotateY(0deg) scale(1.02);
}

.hero__image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
  transform: translateY(var(--hero-parallax, 0px)) scale(1);
}

.hero__visual:hover .hero__image {
  transform: translateY(var(--hero-parallax, 0px)) scale(1.05);
}

.hero__image-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.35), transparent 45%);
  pointer-events: none;
}

.hero__badge {
  position: absolute;
  bottom: -1rem;
  left: -0.5rem;
  padding: var(--space-4) var(--space-5);
  max-width: 200px;
  animation: float-badge 5s ease-in-out infinite;
}

@keyframes float-badge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.hero__badge-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--pink-hot);
  font-weight: 600;
}

.hero__badge-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-top: var(--space-1);
}

.hero__badge-price {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--space-1);
}

.glass-card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.section-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  pointer-events: none;
}

.section-divider--wave {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23fffafc' d='M0 40L60 35C120 30 240 20 360 25C480 30 600 50 720 55C840 60 960 50 1080 40C1200 30 1320 20 1380 15L1440 10V80H0Z'/%3E%3C/svg%3E")
    center bottom / 100% 100% no-repeat;
}

/* -------------------------------------------------------------------------- */
/* Sections shared                                                             */
/* -------------------------------------------------------------------------- */
.section {
  position: relative;
  z-index: 1;
  padding-block: var(--space-16);
}

.section-header {
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
  margin-bottom: var(--space-10);
}

.section-header--row {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
  text-align: left;
  max-width: none;
}

@media (min-width: 768px) {
  .section-header--row {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal--delay {
  transition-delay: 0.12s;
}

/* -------------------------------------------------------------------------- */
/* Categories                                                                  */
/* -------------------------------------------------------------------------- */
.categories {
  background: var(--cream);
}

.categories__grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .categories__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .categories__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cat-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}

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

.cat-card__link {
  display: block;
  color: inherit;
}

.cat-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.cat-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease-out);
}

.cat-card:hover .cat-card__media img {
  transform: scale(1.08);
}

.cat-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(43, 43, 43, 0.55));
  opacity: 0.85;
  transition: opacity 0.35s;
}

.cat-card:hover .cat-card__overlay {
  opacity: 1;
}

.cat-card__title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--white);
  z-index: 1;
}

/* -------------------------------------------------------------------------- */
/* Products                                                                    */
/* -------------------------------------------------------------------------- */
.products {
  background: linear-gradient(180deg, var(--cream) 0%, var(--rose-soft) 100%);
}

.products__grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .products__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(248, 182, 200, 0.2);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}

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

.product-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--beige-light);
}

.product-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.45s var(--ease-out), transform 0.55s var(--ease-out);
}

.product-card__img--hover {
  opacity: 0;
  transform: scale(1.05);
}

.product-card:hover .product-card__img--primary {
  opacity: 0;
  transform: scale(1.05);
}

.product-card:hover .product-card__img--hover {
  opacity: 1;
  transform: scale(1);
}

.product-card__badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 2;
  padding: 0.35rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  background: var(--pink-hot);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.35);
  animation: badge-glow 3s ease-in-out infinite;
}

.product-card__badge--soft {
  background: linear-gradient(120deg, var(--pink-primary), #f9a8d4);
  color: var(--text-dark);
}

@keyframes badge-glow {
  0%,
  100% {
    box-shadow: 0 4px 14px rgba(236, 72, 153, 0.35);
  }
  50% {
    box-shadow: 0 6px 22px rgba(236, 72, 153, 0.5);
  }
}

.product-card__quick {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 250, 252, 0.35);
  opacity: 0;
  transition: opacity 0.35s;
  z-index: 2;
}

.product-card:hover .product-card__quick {
  opacity: 1;
}

.product-card__body {
  padding: var(--space-5);
}

.product-card__cat {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--pink-hot);
  margin-bottom: var(--space-1);
}

.product-card__name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.product-card__rating {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.stars {
  letter-spacing: 2px;
  color: #fbbf24;
  font-size: 0.85rem;
}

.product-card__rating-num {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.product-card__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.product-card__price {
  font-weight: 600;
  font-size: 1.05rem;
}

.product-card__price--old {
  text-decoration: line-through;
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.9rem;
  margin-right: var(--space-2);
}

.product-card__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.icon-btn--wish {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(43, 43, 43, 0.1);
  font-size: 1rem;
  line-height: 1;
}

.icon-btn--wish.is-active {
  color: var(--pink-hot);
  border-color: var(--pink-primary);
  background: rgba(252, 228, 236, 0.6);
}

/* -------------------------------------------------------------------------- */
/* Promo banner                                                                */
/* -------------------------------------------------------------------------- */
.promo-banner {
  position: relative;
  min-height: min(70vh, 560px);
  display: grid;
  align-items: center;
  overflow: hidden;
}

.promo-banner__media {
  position: absolute;
  inset: 0;
}

.promo-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(43, 43, 43, 0.55) 0%, rgba(236, 72, 153, 0.25) 55%, transparent 100%);
}

.promo-banner__content {
  position: relative;
  z-index: 1;
  max-width: 32rem;
  padding-block: var(--space-12);
  color: var(--white);
}

.promo-banner__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-4);
  line-height: 1.15;
}

.promo-banner__text {
  opacity: 0.92;
  margin-bottom: var(--space-8);
  font-size: 1.05rem;
}

/* -------------------------------------------------------------------------- */
/* Carousel                                                                    */
/* -------------------------------------------------------------------------- */
.new-arrivals {
  background: var(--cream);
  padding-bottom: var(--space-20);
}

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel__track-wrap {
  overflow: hidden;
  padding-inline: max(1rem, calc((100vw - 1120px) / 2 + 1rem));
}

.carousel__track {
  display: flex;
  gap: var(--space-5);
  list-style: none;
  margin: 0;
  padding: var(--space-2) 0 var(--space-4);
  will-change: transform;
  transition: transform 0.55s var(--ease-out);
}

.carousel__slide {
  flex: 0 0 calc(100% - 2.5rem);
  min-width: 0;
}

@media (min-width: 600px) {
  .carousel__slide {
    flex: 0 0 calc(50% - var(--space-5) / 2);
  }
}

@media (min-width: 900px) {
  .carousel__slide {
    flex: 0 0 calc(33.333% - var(--space-5) * 2 / 3);
  }
}

@media (min-width: 1200px) {
  .carousel__slide {
    flex: 0 0 calc(25% - var(--space-5) * 3 / 4);
  }
}

.carousel-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(248, 182, 200, 0.25);
  transition: transform 0.35s var(--ease-out);
}

.carousel-card:hover {
  transform: translateY(-6px);
}

.carousel-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.carousel-card__body {
  padding: var(--space-4) var(--space-5);
}

.carousel-card__name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
}

.carousel-card__price {
  color: var(--pink-hot);
  font-weight: 600;
  margin-top: var(--space-1);
}

.carousel-controls {
  display: flex;
  gap: var(--space-2);
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(248, 182, 200, 0.5);
  background: var(--white);
  color: var(--text-dark);
  transition: background 0.25s, color 0.25s, transform 0.2s var(--ease-spring);
}

.carousel-btn:hover,
.carousel-btn:focus-visible {
  background: var(--pink-hot);
  color: var(--white);
  transform: scale(1.05);
}

.carousel-btn:focus-visible {
  outline: 2px solid var(--pink-hot);
  outline-offset: 2px;
}

/* -------------------------------------------------------------------------- */
/* About strip                                                                 */
/* -------------------------------------------------------------------------- */
.about-strip {
  padding-block: var(--space-16);
  background: linear-gradient(135deg, var(--rose-soft), var(--beige-light));
  position: relative;
}

.about-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 20%, rgba(248, 182, 200, 0.35), transparent 45%);
  pointer-events: none;
}

.about-strip__grid {
  position: relative;
  display: grid;
  gap: var(--space-10);
  align-items: start;
}

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

.about-strip__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  font-weight: 500;
}

.about-strip__icon {
  color: var(--pink-hot);
  margin-right: var(--space-2);
}

/* -------------------------------------------------------------------------- */
/* Testimonials                                                                */
/* -------------------------------------------------------------------------- */
.testimonials {
  background: var(--cream);
}

.testimonials__grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .testimonials__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
  animation: testimonial-float 6s ease-in-out infinite;
}

.testimonial:nth-child(2) {
  animation-delay: -2s;
}

.testimonial:nth-child(3) {
  animation-delay: -4s;
}

@keyframes testimonial-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.testimonial:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.testimonial__head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.testimonial__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--pink-primary);
}

.testimonial__name {
  font-weight: 600;
  display: block;
}

.testimonial__role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.testimonial__stars {
  color: #fbbf24;
  letter-spacing: 2px;
  margin-bottom: var(--space-3);
  font-size: 0.9rem;
}

.testimonial__quote {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* -------------------------------------------------------------------------- */
/* Instagram grid                                                              */
/* -------------------------------------------------------------------------- */
.insta__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  max-width: 1120px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .insta__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .insta__grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.insta__item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.insta__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-out);
}

.insta__item:hover img,
.insta__item:focus-visible img {
  transform: scale(1.08);
}

.insta__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(236, 72, 153, 0.45));
  opacity: 0;
  display: grid;
  place-items: center;
  transition: opacity 0.35s;
}

.insta__item:hover .insta__overlay,
.insta__item:focus-visible .insta__overlay {
  opacity: 1;
}

.insta__icons {
  color: var(--white);
  transform: translateY(8px);
  transition: transform 0.35s var(--ease-out);
}

.insta__item:hover .insta__icons {
  transform: translateY(0);
}

.insta__item:focus-visible {
  outline: 3px solid var(--pink-hot);
  outline-offset: 2px;
}

/* -------------------------------------------------------------------------- */
/* Newsletter                                                                  */
/* -------------------------------------------------------------------------- */
.newsletter {
  position: relative;
  padding-block: var(--space-20);
  overflow: hidden;
}

.newsletter__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--rose-soft), var(--pink-primary), #fbcfe8);
  opacity: 0.65;
}

.newsletter__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.5), transparent 50%);
}

.newsletter__inner {
  position: relative;
  z-index: 1;
}

.newsletter__card {
  max-width: 520px;
  margin-inline: auto;
  padding: var(--space-10) var(--space-8);
  text-align: center;
  border-radius: var(--radius-xl);
}

.newsletter__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: var(--space-3);
}

.newsletter__text {
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 520px) {
  .newsletter__form {
    flex-direction: row;
    align-items: stretch;
  }
}

.newsletter__input {
  flex: 1;
  padding: 0.9rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.newsletter__input::placeholder {
  color: var(--text-muted);
}

.newsletter__input:focus {
  outline: none;
  border-color: var(--pink-hot);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.2);
}

.newsletter__btn {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.newsletter__btn-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.45) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: btn-shimmer 2.5s ease-in-out infinite;
}

@keyframes btn-shimmer {
  0% {
    transform: translateX(-100%);
  }
  40%,
  100% {
    transform: translateX(100%);
  }
}

.newsletter__fineprint {
  margin-top: var(--space-4);
  font-size: 0.85rem;
  color: var(--text-muted);
  min-height: 1.25em;
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                      */
/* -------------------------------------------------------------------------- */
.site-footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.85);
  padding-top: var(--space-16);
}

.site-footer__grid {
  display: grid;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.site-footer__about {
  margin-top: var(--space-4);
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  max-width: 28rem;
}

.site-footer__social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.social-link {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(248, 182, 200, 0.35);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.social-link:hover,
.social-link:focus-visible {
  background: var(--pink-hot);
  border-color: var(--pink-hot);
  color: var(--white);
}

.site-footer__heading {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: var(--space-4);
  color: var(--white);
}

.site-footer__links a {
  display: block;
  padding: var(--space-1) 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s, padding-left 0.2s;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  color: var(--pink-primary);
  padding-left: 4px;
}

.site-footer__payments {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.pay-badge {
  display: inline-block;
  padding: 0.4rem 0.65rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: var(--space-5);
}

.site-footer__bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.site-footer__legal a {
  color: rgba(255, 255, 255, 0.65);
  margin: 0 var(--space-1);
}

.site-footer__legal a:hover {
  color: var(--pink-primary);
}

.logo--footer .logo__text {
  background: linear-gradient(120deg, var(--white), var(--pink-primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo--footer .logo__tag {
  color: rgba(255, 255, 255, 0.45);
}

/* Main content spacing for fixed header */
main {
  position: relative;
  z-index: 1;
}
