:root {
  --ink: #2a1f2e;
  --ink-soft: #5a4a58;
  --mist: #9a8796;
  --line: rgba(42, 31, 46, 0.1);
  --blush: #f7e8ef;
  --blush-2: #f0d5e4;
  --lilac: #e8d4f0;
  --lilac-deep: #c9a8d8;
  --rose: #e8a0b8;
  --rose-deep: #c97896;
  --cream: #fff8fb;
  --white: #ffffff;
  --sale: #c45a7a;
  --serif: "Great Vibes", "Segoe Script", cursive;
  --display: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "DM Sans", "Avenir Next", system-ui, sans-serif;
  --shell: 1180px;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  min-height: 100vh;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.shell {
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

/* —— Header (MyBudgette-like overlay) —— */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
}

.site-header .bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  width: min(100% - 2rem, var(--shell));
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  justify-self: start;
}

.brand svg {
  width: 34px;
  height: 34px;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.85rem;
  line-height: 1;
  color: var(--white);
  letter-spacing: 0.02em;
}

.nav-main {
  display: flex;
  gap: 1.35rem;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-main a {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

.nav-main a:hover {
  color: #fff;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-actions a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-variant-numeric: tabular-nums;
}

.cart-bag {
  width: 1.35rem;
  height: 1.35rem;
  border: 1.5px solid currentColor;
  border-radius: 0.2rem 0.2rem 0.35rem 0.35rem;
  position: relative;
}

.cart-bag::before {
  content: "";
  position: absolute;
  width: 0.55rem;
  height: 0.35rem;
  border: 1.5px solid currentColor;
  border-bottom: 0;
  border-radius: 0.35rem 0.35rem 0 0;
  left: 50%;
  top: -0.28rem;
  transform: translateX(-50%);
}

.cart-count {
  min-width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 600;
  display: grid;
  place-items: center;
  padding: 0 0.3rem;
}

/* —— Hero —— */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  display: grid;
  place-items: end stretch;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 70% at 70% 40%, #f3c4d8 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 20% 70%, #d8b8ec 0%, transparent 50%),
    linear-gradient(160deg, #f7d5e6 0%, #e8c4f0 45%, #d4b0e8 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(42, 31, 46, 0.18) 0%, transparent 28%),
    linear-gradient(0deg, rgba(42, 31, 46, 0.35) 0%, transparent 42%);
  pointer-events: none;
}

.hero-visual {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.hero-stack {
  width: min(92vw, 920px);
  aspect-ratio: 16 / 11;
  position: relative;
  margin-top: 4rem;
}

.hero-card {
  position: absolute;
  border-radius: 1.1rem;
  box-shadow: 0 28px 60px rgba(80, 40, 70, 0.28);
  background: linear-gradient(145deg, #f8e4ee, #e8c8f0);
  border: 1px solid rgba(255, 255, 255, 0.45);
  overflow: hidden;
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  opacity: 0.92;
}

.hero-card-a {
  width: 42%;
  height: 68%;
  left: 8%;
  top: 18%;
  transform: rotate(-8deg);
  background: linear-gradient(160deg, #f4c8d8, #e0b0e4);
  animation: float-a 7s var(--ease) infinite alternate;
}

.hero-card-b {
  width: 44%;
  height: 72%;
  left: 30%;
  top: 10%;
  transform: rotate(2deg);
  z-index: 2;
  background: linear-gradient(160deg, #e8d0f4, #d4b0e8);
  animation: float-b 8s var(--ease) infinite alternate;
}

.hero-card-c {
  width: 40%;
  height: 66%;
  right: 6%;
  top: 22%;
  transform: rotate(9deg);
  background: linear-gradient(160deg, #f0c0d4, #c9a0d8);
  animation: float-c 6.5s var(--ease) infinite alternate;
}

.hero-elle {
  position: absolute;
  right: 4%;
  bottom: 0;
  height: min(58vh, 520px);
  z-index: 3;
  filter: drop-shadow(0 18px 30px rgba(60, 30, 50, 0.25));
  animation: rise 1.1s var(--ease) both;
}

.hero-copy {
  position: relative;
  z-index: 5;
  padding: 0 0 3.5rem;
  color: var(--white);
  max-width: 28rem;
}

.hero-copy .kicker {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 0.65rem;
}

.hero-copy h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin-bottom: 0.75rem;
}

.hero-copy p {
  font-size: 1.02rem;
  opacity: 0.92;
  max-width: 26rem;
  margin-bottom: 1.35rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-light {
  background: var(--white);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

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

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

/* —— Catalog —— */
.catalog {
  padding: 4.5rem 0 5rem;
  background: var(--cream);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 3.25rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.85rem;
}

.section-head:first-child {
  margin-top: 0;
}

.section-head h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.section-head span {
  color: var(--mist);
  font-size: 0.85rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem 1.25rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(160deg, var(--blush), var(--lilac));
}

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

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--white);
  color: var(--sale);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
}

.product-body h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.2;
}

.product-body .meta {
  color: var(--mist);
  font-size: 0.82rem;
  margin-top: 0.2rem;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-top: 0.45rem;
  font-variant-numeric: tabular-nums;
}

.price-row .now {
  font-weight: 600;
}

.price-row .was {
  color: var(--mist);
  text-decoration: line-through;
  font-size: 0.9rem;
}

.product-actions {
  margin-top: 0.65rem;
  display: flex;
  gap: 0.5rem;
}

.product-actions .btn {
  flex: 1;
  padding: 0.7rem 0.9rem;
  font-size: 0.72rem;
}

/* —— Product page —— */
.page-hero-pad {
  padding-top: calc(var(--header-h) + 1.5rem);
}

.solid-header .site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 248, 251, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.solid-header .brand-name,
.solid-header .nav-main a,
.solid-header .header-actions a {
  color: var(--ink);
}

.solid-header .cart-count {
  background: var(--ink);
  color: var(--white);
}

.product-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  padding: 2rem 0 4rem;
  align-items: start;
}

.product-gallery {
  aspect-ratio: 1;
  border-radius: 1.25rem;
  overflow: hidden;
  background: linear-gradient(160deg, var(--blush-2), var(--lilac));
}

.product-info h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
}

.product-info .lede {
  margin: 1rem 0 1.25rem;
  color: var(--ink-soft);
  max-width: 34rem;
}

.feature-list {
  list-style: none;
  margin: 1.25rem 0 1.75rem;
  display: grid;
  gap: 0.55rem;
}

.feature-list li {
  padding-left: 1.1rem;
  position: relative;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--rose-deep);
}

/* —— Cart / contact —— */
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 1.5rem;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.5rem;
  padding: 2rem 0 4rem;
  align-items: start;
}

.cart-line {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.cart-thumb {
  width: 88px;
  height: 88px;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--blush);
}

.cart-line h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 500;
}

.qty-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.45rem;
}

.qty-form input {
  width: 3.5rem;
  padding: 0.35rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: var(--cream);
}

.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.field label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist);
}

.field input,
.field textarea {
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 0.75rem 0.9rem;
  background: var(--cream);
}

.field textarea {
  min-height: 6rem;
  resize: vertical;
}

.messages {
  width: min(100% - 2.5rem, var(--shell));
  margin: 1rem auto 0;
}

.msg {
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
}

.msg-success {
  background: #e8f6ee;
  color: #1f5a38;
}

.msg-error {
  background: #fdecef;
  color: #8a2f45;
}

/* —— Footer —— */
.site-footer {
  background: #3a2a3a;
  color: rgba(255, 255, 255, 0.85);
  padding: 2.75rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}

.site-footer .brand-name {
  color: #fff;
}

.site-footer h4 {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.site-footer a {
  display: block;
  margin-bottom: 0.45rem;
  color: rgba(255, 255, 255, 0.85);
}

.site-footer a:hover {
  color: #fff;
}

.footer-note {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

@keyframes float-a {
  from { transform: rotate(-8deg) translateY(0); }
  to { transform: rotate(-6deg) translateY(-12px); }
}

@keyframes float-b {
  from { transform: rotate(2deg) translateY(0); }
  to { transform: rotate(0deg) translateY(-16px); }
}

@keyframes float-c {
  from { transform: rotate(9deg) translateY(0); }
  to { transform: rotate(7deg) translateY(-10px); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .site-header .bar {
    grid-template-columns: 1fr auto;
  }

  .nav-main {
    display: none;
  }

  .product-layout,
  .cart-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-elle {
    height: min(42vh, 360px);
    right: -4%;
    opacity: 0.95;
  }

  .hero-copy {
    max-width: 100%;
    padding-bottom: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
