﻿:root {
  --raspberry: #c43a6b;
  --rose: #e36a95;
  --blush: #f3a9c2;
  --petal: #f9d5e2;
  --milk: #fff7fb;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--raspberry);
  background: radial-gradient(circle at top, var(--petal), var(--milk) 60%),
    linear-gradient(135deg, var(--white), var(--petal));
  min-height: 100vh;
  cursor: url("../images/cursor-pointer.svg") 2 2, auto;
}

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

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

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.site-header {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  background: var(--white);
  border-radius: 24px;
  padding: 20px 22px;
  box-shadow: 0 20px 50px rgba(196, 58, 107, 0.12);
  position: sticky;
  top: 16px;
  z-index: 10;
}

.header-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--petal);
  background: var(--white);
  display: none;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--raspberry);
  border-radius: 999px;
}

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

.brand-mark {
  width: clamp(150px, 22vw, 220px);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--petal);
  padding: 6px 10px;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 14px;
}

.brand-title {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 22px;
}

.brand-sub {
  display: block;
  font-size: 12px;
  color: #9e2f56;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
}

.site-nav a {
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.site-nav a:hover,
.site-nav a:focus {
  border-color: var(--rose);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--raspberry);
  color: var(--white);
  font-weight: 600;
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 12px 30px rgba(196, 58, 107, 0.25);
}

.btn:hover,
.btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(196, 58, 107, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--raspberry);
  border: 2px solid var(--raspberry);
  box-shadow: none;
}

.btn-ghost {
  background: var(--white);
  color: var(--raspberry);
}

.btn-small {
  padding: 10px 16px;
  font-size: 14px;
}

.btn-large {
  padding: 14px 26px;
  font-size: 16px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 32px;
  align-items: center;
}

.hero-text h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(32px, 5vw, 52px);
  margin: 12px 0 16px;
}

.subtitle {
  font-size: 18px;
  color: #a33860;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--rose);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 24px 0;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badges span {
  background: var(--white);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--petal);
}

.hero-media {
  display: grid;
  justify-items: center;
}

.hero-card {
  background: var(--white);
  padding: 24px;
  border-radius: 32px;
  box-shadow: 0 25px 60px rgba(196, 58, 107, 0.18);
  display: grid;
  gap: 16px;
  max-width: 320px;
}

.hero-card-text p {
  margin: 0;
  font-weight: 600;
}

.section {
  padding: 72px 0;
}

.alt-section {
  background: var(--white);
  border-radius: 32px;
  padding: 72px 32px;
  box-shadow: 0 25px 60px rgba(196, 58, 107, 0.08);
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 12px;
}

.grid {
  display: grid;
  gap: 24px;
}

.card,
.product-card,
.testimonial-card {
  background: var(--white);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 18px 40px rgba(196, 58, 107, 0.1);
}

.card-media,
.product-media {
  height: 180px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--petal), var(--rose));
  display: grid;
  place-items: center;
  font-family: "Playfair Display", serif;
  font-size: 24px;
  color: var(--white);
  overflow: hidden;
}

.card-media img,
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 900px) {
  .card-media,
  .product-media {
    height: 200px;
  }
}

.featured-grid .card-media {
  background: var(--white);
  border: 1px solid var(--petal);
  padding: 12px;
  height: auto;
  aspect-ratio: 1 / 1;
}

.featured-grid .card-media img {
  object-fit: contain;
  object-position: center;
}

.card-body h3,
.product-body h3 {
  margin: 16px 0 10px;
}

.price {
  font-weight: 600;
  color: var(--raspberry);
}

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

.badges span {
  font-size: 12px;
  background: var(--petal);
  color: #983055;
  padding: 6px 10px;
  border-radius: 999px;
}

.store-grid,
.featured-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.product-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.about {
  display: grid;
  gap: 32px;
  align-items: center;
}

.about-text h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 4vw, 38px);
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.about-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--petal);
}

.about-card {
  background: var(--white);
  border-radius: 28px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(196, 58, 107, 0.12);
}

.testimonial-card {
  text-align: center;
  padding: 28px 22px;
}

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

.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.6s ease;
  will-change: transform;
}

.carousel .testimonial-card {
  min-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .carousel .testimonial-card {
    min-width: calc(50% - 12px);
  }
}

.stars {
  font-size: 20px;
  color: var(--rose);
  margin-bottom: 12px;
}

.contact {
  display: grid;
  place-items: center;
}

.contact-card {
  background: linear-gradient(135deg, var(--petal), var(--white));
  padding: 36px;
  border-radius: 30px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(196, 58, 107, 0.18);
}

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 40px;
  padding: 24px 0 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 900px) {
  .site-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .header-actions {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    width: auto;
  }

  .hero {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .about {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .product-meta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .site-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 720px) {
  .page {
    padding: 16px;
  }

  .site-header {
    position: static;
    padding: 18px;
  }

  .site-nav {
    gap: 10px;
    font-size: 13px;
  }

  .brand-mark {
    width: 140px;
  }

  .hero {
    gap: 24px;
  }

  .section {
    padding: 56px 0;
  }

  .alt-section {
    padding: 56px 20px;
  }

  .card-media,
  .product-media {
    height: 160px;
  }

  .site-footer {
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .header-actions {
    display: none;
  }

  .site-header.is-open .header-actions {
    display: flex;
  }

  .site-nav {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
}


:focus-visible {
  outline: 2px dashed var(--rose);
  outline-offset: 3px;
}

.cursor-star {
  position: fixed;
  left: 0;
  top: 0;
  width: 14px;
  height: 14px;
  background-image: url("../images/cupcake-mini.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  animation: star-float 700ms ease-out forwards;
  pointer-events: none;
  z-index: 9999;
}

@keyframes star-float {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -90%) scale(1.2);
  }
}


