:root {
  --font-display: "Fredoka One", cursive;
  --font-body: "Nunito", sans-serif;
  --background: #fdf8f2;
  --cream: #fbf7ef;
  --hero-pink: #f4dfe6;
  --accent: #f8cfd8;
  --primary: #d96b89;
  --primary-dark: #c95d7b;
  --foreground: #321d27;
  --muted: #7b6770;
  --border: #eadde0;
  --card: #ffffff;
  --shadow: 0 12px 26px rgba(50, 29, 39, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
}

body.cart-open,
body.modal-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 65px;
  padding: 0 32px;
  background: rgba(255, 251, 248, 0.95);
  border-bottom: 1px solid rgba(234, 221, 224, 0.7);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 20px;
}

.dog-icon {
  width: 26px;
  height: 26px;
  border: 2px solid currentColor;
  border-radius: 45% 45% 50% 50%;
  position: relative;
}

.dog-icon::before,
.dog-icon::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 9px;
  height: 9px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: var(--background);
}

.dog-icon::before {
  left: -4px;
}

.dog-icon::after {
  right: -4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #58474f;
  font-weight: 700;
  font-size: 14px;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-cta,
.button.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 16px rgba(217, 107, 137, 0.24);
}

.nav-cta {
  padding: 11px 18px;
  border-radius: 999px;
}

.mobile-menu {
  display: none;
  border: 0;
  background: transparent;
  color: var(--foreground);
  font-size: 26px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  min-height: calc(100svh - 65px);
  padding: 20px 32px;
  background:
    radial-gradient(circle at 10% 35%, rgba(245, 174, 193, 0.38), transparent 28%),
    linear-gradient(90deg, #f5dfe6 0%, #f6e5e5 50%, #f7f2e8 100%);
}

.hero-copy {
  max-width: 590px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border: 1px solid rgba(217, 107, 137, 0.28);
  border-radius: 999px;
  background: rgba(248, 207, 216, 0.52);
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 30px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0;
}

h1 {
  font-size: clamp(58px, 7vw, 88px);
  line-height: 0.92;
}

h2 {
  font-size: clamp(42px, 5vw, 58px);
  line-height: 1.04;
}

h3 {
  font-size: 28px;
}

.hero p {
  max-width: 580px;
  margin: 30px 0 34px;
  color: var(--muted);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 30px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

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

.button.ghost {
  min-width: 164px;
  background: transparent;
  border: 2px solid var(--border);
  color: var(--foreground);
}

.button.full {
  width: 100%;
  min-height: 48px;
}

.hero-badges {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 50px;
  color: var(--muted);
  font-weight: 700;
}

.hero-badges span:first-child {
  color: var(--primary);
}

.hero-image {
  justify-self: center;
  width: min(100%, 448px);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(50, 29, 39, 0.12);
}

.hero-image img {
  width: 100%;
  aspect-ratio: 0.92 / 1.26;
  object-fit: cover;
}

.section {
  padding: 96px 32px;
}

.story,
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  background: var(--cream);
}

.story-image,
.contact-image {
  justify-self: center;
  width: min(100%, 576px);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(50, 29, 39, 0.12);
}

.story-image img,
.contact-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.story-copy {
  position: relative;
  max-width: 590px;
}

.love-chip {
  position: absolute;
  right: 26px;
  top: -40px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 18px;
  border-radius: 18px;
  background: #fff;
  color: var(--muted);
  box-shadow: var(--shadow);
  font-weight: 700;
}

.love-chip > span:first-child {
  color: var(--primary);
  font-size: 24px;
}

.love-chip strong {
  color: var(--primary);
}

.section-rule {
  width: 64px;
  height: 4px;
  margin: 20px 0 22px;
  border-radius: 999px;
  background: var(--primary);
}

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px;
}

.section-heading .section-rule {
  margin-left: auto;
  margin-right: auto;
}

.section-heading p,
.story-copy p,
.contact-copy p {
  color: var(--muted);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.55;
}

.story-copy p + p {
  margin-top: 24px;
}

.story-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 42px;
}

.story-stats div {
  min-height: 82px;
  padding: 16px;
  border-radius: 14px;
  background: #fff;
  text-align: center;
  box-shadow: 0 8px 18px rgba(50, 29, 39, 0.07);
}

.story-stats strong {
  display: block;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 26px;
}

.story-stats span {
  color: var(--muted);
  font-size: 13px;
}

.products {
  background: #f8eef1;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1216px;
  margin: 0 auto;
}

.product-card {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.product-image {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 384px;
  padding: 40px 16px 16px;
  background: #f9c6d0;
}

.product-image img {
  width: 100%;
  max-height: 330px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.04);
}

.price-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 15px rgba(217, 107, 137, 0.25);
  font-weight: 800;
}

.product-body {
  padding: 24px 20px 20px;
  text-align: center;
}

.product-body h3 {
  font-size: 22px;
}

.product-body p {
  margin: 2px 0 16px;
  color: var(--muted);
  font-weight: 800;
}

select,
input,
textarea {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: 13px;
  background: #fff;
  color: var(--foreground);
  padding: 10px 12px;
  outline: none;
}

textarea {
  resize: vertical;
}

select:focus,
input:focus,
textarea:focus {
  border-color: rgba(217, 107, 137, 0.6);
  box-shadow: 0 0 0 3px rgba(217, 107, 137, 0.12);
}

.quantity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 14px 0;
}

.quantity button,
.cart-quantity button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}

.quantity span {
  min-width: 24px;
  font-size: 20px;
  font-weight: 800;
}

.gallery {
  background: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1216px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: #f6eef1;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item span {
  position: absolute;
  inset: auto 0 0;
  padding: 28px 10px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
  color: #fff;
  font-weight: 800;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gallery-item:hover span {
  opacity: 1;
}

.reviews,
.contact {
  background: var(--cream);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: -24px auto 48px;
}

.review-card {
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.stars {
  color: #f8c33a;
  font-size: 18px;
  letter-spacing: 2px;
}

.review-card blockquote {
  margin: 14px 0;
  color: #604c55;
  font-style: italic;
  line-height: 1.5;
}

.review-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 800;
}

.review-card small {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(248, 207, 216, 0.55);
  color: var(--muted);
}

.card-form {
  display: grid;
  gap: 16px;
  padding: 32px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.review-form {
  max-width: 576px;
  margin: 0 auto;
}

.card-form h3 {
  text-align: center;
  font-size: 28px;
}

.card-form label {
  display: grid;
  gap: 8px;
  color: var(--foreground);
  font-size: 14px;
  font-weight: 800;
}

.rating-control {
  display: inline-flex;
  gap: 2px;
}

.rating-control button {
  border: 0;
  background: transparent;
  color: #cdd2db;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.rating-control button.active {
  color: #f8c33a;
}

.contact-copy {
  max-width: 576px;
}

.contact .card-form {
  margin-top: 28px;
}

.footer {
  padding: 48px 32px;
  background: var(--foreground);
  color: rgba(253, 248, 242, 0.78);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  max-width: 1216px;
  margin: 0 auto;
}

.footer nav {
  display: flex;
  gap: 32px;
}

.footer a:hover,
.footer span {
  color: var(--primary);
}

.copyright {
  max-width: 1216px;
  margin: 32px auto 0;
  padding-top: 26px;
  border-top: 1px solid rgba(253, 248, 242, 0.1);
  color: rgba(253, 248, 242, 0.42);
  text-align: center;
  font-size: 13px;
}

.cart-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 45;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-size: 26px;
  box-shadow: 0 16px 28px rgba(217, 107, 137, 0.36);
}

.cart-button span {
  position: absolute;
  top: -2px;
  right: -2px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--foreground);
  color: var(--background);
  font-size: 12px;
  font-weight: 800;
}

.cart-button span[hidden] {
  display: none;
}

.cart-panel,
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}

.cart-panel.open,
.modal.open {
  display: block;
}

.cart-backdrop,
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

.cart-drawer {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(390px, 100%);
  height: 100%;
  background: var(--background);
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.18);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.cart-header h2 {
  font-size: 28px;
}

.cart-header button,
.modal-close {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 28px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.empty-cart {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--muted);
  text-align: center;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 15px rgba(50, 29, 39, 0.07);
}

.cart-item + .cart-item {
  margin-top: 14px;
}

.cart-item img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(248, 207, 216, 0.45);
}

.cart-item h4 {
  margin: 0;
  font-size: 15px;
}

.cart-item p {
  margin: 2px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.cart-quantity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cart-quantity button {
  width: 24px;
  height: 24px;
}

.remove-item {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  color: var(--muted);
  font-weight: 800;
}

.cart-total strong {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 28px;
}

.checkout,
.gallery-lightbox {
  position: relative;
  max-width: 448px;
  max-height: 90vh;
  margin: 5vh auto;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  line-height: 1;
  opacity: 0.65;
}

.checkout h3 {
  text-align: left;
}

.checkout-summary {
  margin: -10px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.order-summary {
  padding: 12px;
  border-radius: 12px;
  background: rgba(248, 207, 216, 0.35);
  font-size: 14px;
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.order-summary-row.total {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-weight: 800;
}

.split-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cash-note {
  padding: 12px;
  border: 1px solid #f4d37c;
  border-radius: 12px;
  background: #fff8d9;
  color: #825d0d;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}

.gallery-lightbox {
  max-width: 680px;
  background: transparent;
  text-align: center;
}

.gallery-lightbox img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
}

.gallery-lightbox p {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.gallery-lightbox .modal-close {
  top: -18px;
  right: -18px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 120;
  min-width: 260px;
  max-width: calc(100vw - 32px);
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--foreground);
  color: #fff;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.25);
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: all 0.22s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 940px) {
  .site-header {
    padding: 0 18px;
  }

  .mobile-menu {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 65px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 12px;
  }

  .hero,
  .story,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 56px 24px;
  }

  .hero-image {
    width: min(100%, 440px);
  }

  .story-image {
    order: 2;
  }

  .product-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-row {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 72px 18px;
  }

  .hero-actions,
  .hero-badges,
  .footer nav {
    flex-direction: column;
  }

  .button.ghost,
  .hero-actions .button {
    width: 100%;
  }

  .story-stats,
  .split-fields {
    grid-template-columns: 1fr;
  }

  .product-image {
    min-height: 300px;
  }

  .card-form {
    padding: 24px;
  }
}
