:root {
  --brand-pink: #ff69b4;
  --deep-pink: #d82f7d;
  --ink: #2f2f36;
  --muted: #66636f;
  --soft-pink: #fff0f6;
  --soft-mint: #eefaf3;
  --line: #f3cfdd;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  font-family: "Poppins", Arial, sans-serif;
  background: #fffafc;
  color: var(--ink);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, #ffb6c1, var(--brand-pink));
  padding: 15px 25px;
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  color: #fff;
  text-decoration: none;
}

.brand-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-right: 12px;
  object-fit: cover;
  flex: 0 0 auto;
}

.site-header h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(#fff, #ffe6f0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-info {
  margin: 0;
  text-align: right;
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.4;
}

.contact-info a {
  text-decoration: none;
}

.page-main {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 56px;
}

.product-section {
  text-align: center;
}

.product-section h2 {
  margin: 0 0 24px;
  color: var(--brand-pink);
  font-size: 2rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}

.product {
  display: block;
  width: 100%;
  border: 1px solid #f7dce7;
  border-radius: 14px;
  background-color: #fff;
  box-shadow: 0 10px 28px rgba(216, 47, 125, 0.08);
  overflow: hidden;
  text-align: center;
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product:hover,
.product:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(216, 47, 125, 0.14);
}

.brand:focus-visible,
.product:focus-visible,
.footer-link:focus-visible,
.page-action:focus-visible,
.contact-item:focus-visible,
.floating-category-link:focus-visible,
.help-button:focus-visible,
.help-close:focus-visible,
.help-actions a:focus-visible {
  outline: 3px solid #8a1f56;
  outline-offset: 3px;
}

.product img {
  width: 100%;
  height: 210px;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #fff7fb;
}

.product-title {
  display: block;
  margin: 12px 0 5px;
  color: #ff4081;
  font-size: 1.1rem;
  font-weight: 700;
}

.product-summary {
  display: block;
  min-height: 50px;
  margin: 0;
  padding: 0 12px 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.content-shell {
  display: grid;
  gap: 28px;
}

.page-hero,
.content-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 240, 246, 0.82), rgba(238, 250, 243, 0.72)),
    #fff;
  box-shadow: 0 18px 54px rgba(102, 45, 77, 0.12);
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.85fr);
  align-items: center;
  gap: clamp(24px, 5vw, 58px);
  padding: clamp(28px, 6vw, 64px);
}

.page-hero-full {
  grid-template-columns: 1fr;
}

.page-hero-text {
  max-width: 760px;
}

.page-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: #227451;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-hero h2,
.category-detail h2 {
  margin: 0;
  color: var(--deep-pink);
  font-size: clamp(2.3rem, 6vw, 4.7rem);
  line-height: 1.02;
}

.page-hero p,
.category-detail p,
.body-text {
  color: #45424d;
  font-size: 1.08rem;
  line-height: 1.7;
}

.page-hero p,
.category-detail p {
  margin: 18px 0 0;
}

.hero-media {
  min-height: 300px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #f5dbe6;
  box-shadow: inset 0 0 0 8px #fff7fb;
}

.hero-media img {
  width: 100%;
  height: min(44vh, 430px);
  object-fit: contain;
  object-position: center;
  display: block;
}

.content-panel {
  padding: clamp(24px, 5vw, 46px);
}

.catalog-section {
  display: grid;
  gap: 32px;
}

.catalog-header {
  max-width: 760px;
}

.catalog-header h2 {
  margin: 0;
  color: var(--deep-pink);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
}

.catalog-header p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.catalog-group {
  display: grid;
  gap: 16px;
}

.catalog-group h3 {
  margin: 0;
  color: #227451;
  font-size: 1.35rem;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.catalog-card {
  display: grid;
  grid-template-rows: 170px 1fr;
  overflow: hidden;
  border: 1px solid #f4d8e4;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(216, 47, 125, 0.08);
}

.catalog-card img {
  width: 100%;
  height: 100%;
  padding: 12px;
  object-fit: contain;
  object-position: center;
  background: #fff7fb;
}

.catalog-card-content {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 16px;
}

.catalog-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

.catalog-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.catalog-price {
  margin-top: 4px;
  color: var(--deep-pink);
  font-size: 1.05rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.info-card {
  min-height: 150px;
  padding: 20px;
  border: 1px solid #f4d8e4;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(216, 47, 125, 0.08);
}

.info-card h3 {
  margin: 0 0 10px;
  color: #227451;
  font-size: 1.05rem;
}

.info-card p,
.body-text {
  margin: 0;
  color: var(--muted);
}

.body-text + .body-text {
  margin-top: 16px;
}

.detail-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  padding: 13px 14px;
  border-left: 4px solid var(--brand-pink);
  border-radius: 10px;
  background: #fff;
  color: #4f4c58;
  box-shadow: 0 8px 22px rgba(216, 47, 125, 0.08);
}

.page-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 26px;
  padding: 0 18px;
  border-radius: 999px;
  background: #227451;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.contact-list {
  display: grid;
  gap: 14px;
}

.contact-item {
  display: grid;
  gap: 5px;
  padding: 18px 20px;
  border: 1px solid #f4d8e4;
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.contact-item span {
  color: #227451;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-item strong {
  color: var(--ink);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.site-footer {
  background-color: #333;
  color: #fff;
  padding: 18px 20px;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer p {
  margin: 10px 0 0;
}

.footer-link {
  color: #ffb6c1;
  text-decoration: none;
  margin: 0 10px;
}

.footer-link:hover {
  text-decoration: underline;
}

.floating-category-menu {
  position: fixed;
  top: 50%;
  right: 14px;
  z-index: 20;
  display: grid;
  gap: 10px;
  transform: translateY(-50%);
}

.floating-category-link {
  width: 54px;
  min-height: 54px;
  display: grid;
  grid-template-columns: 38px 0;
  align-items: center;
  gap: 0;
  justify-self: end;
  overflow: hidden;
  border: 1px solid #f2c9dc;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(216, 47, 125, 0.18);
  color: var(--ink);
  text-decoration: none;
  transition: width 0.25s ease, grid-template-columns 0.25s ease, gap 0.25s ease, box-shadow 0.25s ease;
}

.floating-category-link:hover,
.floating-category-link:focus-visible {
  width: 210px;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  box-shadow: 0 16px 38px rgba(216, 47, 125, 0.24);
}

.floating-category-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-left: 7px;
  border-radius: 50%;
  background: #fff7fb;
  flex: 0 0 auto;
}

.floating-category-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.floating-category-name {
  min-width: 0;
  padding-right: 14px;
  color: var(--deep-pink);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.floating-category-link:hover .floating-category-name,
.floating-category-link:focus-visible .floating-category-name {
  opacity: 1;
  transform: translateX(0);
}

.help-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 25;
}

.help-button {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #227451;
  color: #fff;
  box-shadow: 0 14px 34px rgba(34, 116, 81, 0.28);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.help-button:hover {
  background: #1d6547;
}

.help-popup {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(340px, calc(100vw - 32px));
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 240, 246, 0.96), rgba(238, 250, 243, 0.92)),
    #fff;
  box-shadow: 0 20px 60px rgba(102, 45, 77, 0.2);
}

.help-popup[hidden] {
  display: none;
}

.help-popup h2 {
  margin: 0;
  color: var(--deep-pink);
  font-size: 1.45rem;
}

.help-popup p {
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.help-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--brand-pink);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.help-actions {
  display: grid;
  gap: 10px;
}

.help-actions a {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid #f4d8e4;
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.help-actions span {
  color: #227451;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.help-actions strong {
  color: var(--ink);
  font-size: 0.93rem;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .site-header {
    flex-direction: column;
    text-align: center;
  }

  .brand {
    justify-content: center;
    flex-wrap: wrap;
  }

  .site-header h1 {
    font-size: 1.5rem;
  }

  .contact-info {
    text-align: center;
  }

  .page-main {
    width: min(100% - 28px, 1160px);
    padding: 28px 0 38px;
  }

  .page-hero {
    display: block;
    padding: 24px 18px;
  }

  .hero-media {
    min-height: 230px;
    margin-top: 24px;
  }

  .hero-media img {
    height: 34vh;
  }

  .page-hero h2,
  .category-detail h2 {
    font-size: 2.1rem;
  }

  .site-footer {
    font-size: 0.84rem;
  }

  .catalog-card {
    grid-template-rows: 150px 1fr;
  }

  .floating-category-menu {
    right: 8px;
    gap: 8px;
  }

  .floating-category-link {
    width: 48px;
    min-height: 48px;
    grid-template-columns: 34px 0;
  }

  .floating-category-link:hover,
  .floating-category-link:focus-visible {
    width: min(188px, calc(100vw - 22px));
    grid-template-columns: 34px 1fr;
  }

  .floating-category-icon {
    width: 34px;
    height: 34px;
    margin-left: 6px;
  }

  .floating-category-icon img {
    width: 27px;
    height: 27px;
  }

  .help-widget {
    right: 12px;
    bottom: 12px;
  }

  .help-button {
    min-height: 44px;
    padding: 0 14px;
    font-size: 0.92rem;
  }
}
