:root {
  --ink: #25211f;
  --muted: #766c66;
  --line: #e7ded7;
  --paper: #fffaf6;
  --soft: #f3ebe3;
  --petal: #f9dce2;
  --sage: #dfe9df;
  --rose: #be4f62;
  --leaf: #47715d;
  --sun: #e9b65e;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(61, 38, 31, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(249, 220, 226, 0.34), rgba(255, 250, 246, 0) 360px), var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 250, 246, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.top-strip { background: var(--ink); color: rgba(255, 255, 255, 0.88); font-size: 0.9rem; }
.top-strip-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 34px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; }
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose), #d98472);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(190, 79, 98, 0.28);
}
.brand-text { display: grid; line-height: 1.1; }
.brand-text strong { font-size: 1.25rem; letter-spacing: 0; }
.brand-text small { color: var(--rose); font-size: 0.75rem; font-style: italic; font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 24px; color: var(--muted); font-size: 0.96rem; }
.nav-links a { position: relative; padding: 8px 0; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--rose);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}
.nav-links a:hover { color: var(--rose); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.cart-button, .primary-action, .checkout-button, .contact-form button, .ghost-button, .secondary-action, .newsletter button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.cart-button {
  min-height: 42px;
  padding: 0 12px 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  background: var(--ink);
}
.cart-button strong {
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--sun);
  border-radius: 50%;
  font-size: 0.86rem;
}
.ghost-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  color: var(--rose);
  border: 1px solid rgba(190, 79, 98, 0.28);
  background: rgba(255, 255, 255, 0.72);
}
.hero {
  min-height: calc(100vh - 112px);
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero-slider, .slide {
  position: absolute;
  inset: 0;
  z-index: -3;
}
.slide {
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.04);
  animation: heroFade 18s infinite;
}
.slide-one { background-image: url("https://images.unsplash.com/photo-1490750967868-88aa4486c946?auto=format&fit=crop&w=1800&q=85"); }
.slide-two { background-image: url("https://images.unsplash.com/photo-1525310072745-f49212b5ac6d?auto=format&fit=crop&w=1800&q=85"); animation-delay: 6s; }
.slide-three { background-image: url("https://images.unsplash.com/photo-1508610048659-a06b669e3321?auto=format&fit=crop&w=1800&q=85"); animation-delay: 12s; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg, rgba(37, 33, 31, 0.78), rgba(37, 33, 31, 0.38), rgba(37, 33, 31, 0.04));
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 22vh;
  z-index: -1;
  background: linear-gradient(0deg, var(--paper), rgba(255, 250, 246, 0));
}
@keyframes heroFade {
  0%, 28% { opacity: 1; transform: scale(1); }
  34%, 100% { opacity: 0; transform: scale(1.05); }
}
.hero-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18vh;
  color: var(--white);
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}
.eyebrow { margin: 0 0 10px; color: var(--rose); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.hero .eyebrow { color: #ffd7a2; }
.hero h1 { margin: 0; font-size: clamp(4.5rem, 13vw, 9.5rem); line-height: 0.9; letter-spacing: 0; }
.hero p:not(.eyebrow) { max-width: 620px; margin: 24px 0 28px; color: rgba(255, 255, 255, 0.9); font-size: 1.18rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.primary-action, .secondary-action {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}
.secondary-action { color: var(--ink); background: var(--white); }
.hero-card {
  position: absolute;
  right: max(20px, calc((100% - 1180px) / 2));
  bottom: 12vh;
  width: min(260px, calc(100% - 40px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: var(--white);
  background: rgba(37, 33, 31, 0.48);
  backdrop-filter: blur(14px);
}
.hero-card span, .hero-card small { display: block; color: rgba(255, 255, 255, 0.82); }
.hero-card strong { display: block; margin: 4px 0; font-size: 2.2rem; }
.feature-row {
  width: min(1180px, calc(100% - 32px));
  margin: -46px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.feature-row div { padding: 18px; border-right: 1px solid var(--line); }
.feature-row div:last-child { border-right: 0; }
.feature-row strong { display: block; color: var(--rose); font-size: 1.25rem; }
.feature-row span { color: var(--muted); }
.flash-sale {
  width: min(1180px, calc(100% - 32px));
  margin: 72px auto 0;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose), #d98472 52%, var(--sun));
  box-shadow: 0 18px 44px rgba(190, 79, 98, 0.2);
}
.flash-sale .eyebrow { color: #fff3d8; }
.flash-sale h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.3rem); }
.flash-sale p { max-width: 640px; margin: 10px 0 0; color: rgba(255, 255, 255, 0.88); }
.sale-box {
  min-width: 240px;
  padding: 18px;
  border-radius: 8px;
  text-align: center;
  background: rgba(255, 255, 255, 0.18);
}
.sale-box span { display: block; color: rgba(255, 255, 255, 0.82); }
.sale-box strong { display: block; margin: 8px 0 12px; font-size: 2.1rem; }
.sale-box a { display: inline-flex; min-height: 38px; align-items: center; padding: 0 16px; border-radius: 999px; color: var(--ink); background: var(--white); }
.section { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 72px 0; }
.intro, .contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; letter-spacing: 0; }
.intro > p, .story-section p { color: var(--muted); font-size: 1.08rem; }
.shop {
  width: 100%;
  padding: 64px max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(247, 239, 233, 0.82)), radial-gradient(circle at 88% 8%, rgba(233, 182, 94, 0.16), transparent 26%), radial-gradient(circle at 8% 16%, rgba(190, 79, 98, 0.12), transparent 24%);
}
.shop-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.search-box { width: min(360px, 100%); display: grid; gap: 8px; color: var(--muted); font-size: 0.9rem; }
.search-box input, .contact-form input, .newsletter input, .checkout-form input, .checkout-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--white);
  outline: none;
}
.checkout-form textarea { min-height: 110px; padding-top: 12px; resize: vertical; }
.category-tabs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 18px; }
.category-tabs button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(61, 38, 31, 0.06);
}
.category-tabs button.active { color: var(--white); border-color: var(--leaf); background: linear-gradient(135deg, var(--leaf), #6f9a78); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(61, 38, 31, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.product-card:hover { border-color: rgba(190, 79, 98, 0.34); box-shadow: 0 18px 44px rgba(61, 38, 31, 0.14); transform: translateY(-4px); }
.product-image { aspect-ratio: 1 / 0.88; background: var(--soft) center / cover; }
.product-info { padding: 16px; }
.product-category {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-bottom: 10px;
  padding: 0 10px;
  color: var(--leaf);
  background: var(--sage);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.product-info h3 { margin: 0 0 8px; font-size: 1.18rem; }
.product-info p { min-height: 66px; margin: 0 0 16px; color: var(--muted); font-size: 0.95rem; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.price { color: var(--rose); font-weight: 800; }
.add-button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose), #d98472);
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(190, 79, 98, 0.18);
}
.empty-state { grid-column: 1 / -1; padding: 30px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); text-align: center; background: rgba(255, 255, 255, 0.6); }
.story-section { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 42px; align-items: center; }
.story-image {
  min-height: 420px;
  border-radius: 8px;
  background: url("https://images.unsplash.com/photo-1519378058457-4c29a0a2efac?auto=format&fit=crop&w=1000&q=85") center / cover;
  box-shadow: var(--shadow);
}
.mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.mini-grid span { padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.testimonials { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; align-items: stretch; }
.testimonials article { padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--muted); box-shadow: 0 12px 28px rgba(61, 38, 31, 0.08); }
.testimonials article strong { display: block; margin-top: 18px; color: var(--ink); }
.contact { border-top: 1px solid var(--line); background: var(--paper); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; }
.contact-form button { min-height: 46px; padding: 0 20px; color: var(--white); background: var(--ink); }
.site-footer { margin-top: 40px; color: var(--ink); background: #ffffff; border-top: 1px solid var(--line); }
.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 34px;
}
.site-footer h3 { margin: 0 0 16px; font-size: 1rem; text-transform: uppercase; }
.site-footer p, .site-footer a { color: var(--muted); }
.site-footer a { display: block; margin-bottom: 10px; }
.footer-brand p { max-width: 320px; }
.newsletter { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 14px; }
.newsletter button { min-height: 46px; padding: 0 14px; color: var(--white); background: var(--rose); }
.footer-bottom { min-height: 52px; padding: 0 max(16px, calc((100% - 1180px) / 2)); display: flex; justify-content: space-between; align-items: center; color: rgba(255, 255, 255, 0.82); background: var(--rose); }
.floating-contact {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 25;
  transform: translateX(-50%);
  display: flex;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  box-shadow: 0 -8px 24px rgba(61, 38, 31, 0.16);
}
.floating-contact a, .floating-contact button {
  min-height: 46px;
  min-width: 130px;
  border: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--rose);
  border-right: 1px solid rgba(255, 255, 255, 0.24);
  cursor: pointer;
}
.floating-contact a:nth-child(2) { background: #1473e6; }
.floating-contact button { background: var(--leaf); }
.cart-drawer { position: fixed; inset: 0; z-index: 40; display: none; justify-content: end; background: rgba(37, 33, 31, 0.42); }
.cart-drawer.open { display: flex; }
.cart-panel { width: min(420px, 100%); height: 100%; display: flex; flex-direction: column; background: var(--paper); box-shadow: var(--shadow); }
.cart-head { min-height: 72px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 1.4rem; }
.cart-head button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--white); cursor: pointer; }
.cart-items { flex: 1; overflow: auto; padding: 16px 20px; }
.cart-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.cart-item h3 { margin: 0 0 4px; font-size: 0.98rem; }
.cart-item p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.qty-controls { display: flex; align-items: center; gap: 8px; }
.qty-controls button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); cursor: pointer; }
.cart-total { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); font-size: 1.1rem; }
.checkout-button { min-height: 50px; margin: 0 20px 20px; color: var(--white); background: var(--ink); }
.checkout-page { background: linear-gradient(135deg, #fffaf6, #f9dce2 55%, #dfe9df); }
.checkout-header { width: min(1180px, calc(100% - 32px)); min-height: 84px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.checkout-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 80px; }
.checkout-title { max-width: 720px; margin-bottom: 24px; }
.checkout-title h1, .checkout-success h1 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 1; }
.checkout-title p, .checkout-success p { color: var(--muted); font-size: 1.08rem; }
.checkout-layout { display: grid; grid-template-columns: 1fr 420px; gap: 24px; align-items: start; }
.checkout-form, .checkout-summary, .checkout-success {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}
.checkout-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkout-form label { display: grid; gap: 6px; color: var(--muted); }
.checkout-form .full { grid-column: 1 / -1; }
.checkout-form button { width: max-content; }
.checkout-summary h2 { margin: 0 0 16px; }
.checkout-item { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.checkout-item img { width: 58px; height: 58px; object-fit: cover; border-radius: 8px; }
.checkout-item span { display: block; color: var(--muted); font-size: 0.9rem; }
.checkout-total { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; font-size: 1.15rem; }
.checkout-error { margin-top: 16px; padding: 12px 14px; border-radius: 8px; color: #9b2d2d; background: #ffe8e8; }
.checkout-success { max-width: 720px; margin: 80px auto; text-align: center; }
@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .top-strip-inner span:nth-child(2), .top-strip-inner span:nth-child(3), .nav-links, .ghost-button { display: none; }
  .intro, .contact, .shop-toolbar, .story-section, .flash-sale { grid-template-columns: 1fr; display: grid; }
  .feature-row { grid-template-columns: repeat(2, 1fr); }
  .feature-row div:nth-child(2) { border-right: 0; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-form, .testimonials { grid-template-columns: 1fr; }
  .hero-card { display: none; }
}
@media (max-width: 560px) {
  .nav, .top-strip-inner, .hero-content, .section, .checkout-header, .checkout-shell { width: min(100% - 24px, 1180px); }
  .brand-text small, .cart-button span { display: none; }
  .hero-content { padding-bottom: 14vh; }
  .hero h1 { font-size: clamp(3.6rem, 20vw, 5rem); }
  .feature-row, .product-grid, .footer-grid, .checkout-form, .mini-grid { grid-template-columns: 1fr; }
  .feature-row div { border-right: 0; border-bottom: 1px solid var(--line); }
  .feature-row div:last-child { border-bottom: 0; }
  .product-info p { min-height: 0; }
  .floating-contact { left: 0; right: 0; transform: none; border-radius: 0; }
  .floating-contact a, .floating-contact button { min-width: 0; flex: 1; }
  .footer-bottom { display: grid; gap: 6px; justify-content: start; padding: 12px 16px 58px; }
}
