:root {
  --bg: #fffaf6;
  --card: #ffffff;
  --text: #231f20;
  --muted: #756b66;
  --line: #eadbd2;
  --brand: #ef7d8f;
  --brand-dark: #cf4f69;
  --soft: #fff0ed;
  --shadow: 0 18px 50px rgba(70, 42, 30, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Noto Sans", "Segoe UI", Roboto, Helvetica, Arial, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(180deg, #fff1ec 0, var(--bg) 360px);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
.app-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 56px; }
.intro-card, .results {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 42px);
}
.intro-card { min-height: 88vh; display: grid; align-content: center; gap: 28px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 8px; }
.brand-mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 950; letter-spacing: -.03em; }
.brand-mark img { display: block; }
.language-switcher { display: inline-flex; gap: 6px; background: #fff7f3; border: 1px solid var(--line); padding: 5px; border-radius: 999px; }
.language-switcher a { min-width: 42px; text-align: center; padding: 8px 10px; border-radius: 999px; color: var(--muted); font-weight: 950; font-size: 13px; }
.language-switcher a.active { background: var(--brand); color: #fff; }
.eyebrow { margin: 0 0 8px; color: var(--brand-dark); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
h1 { font-size: clamp(42px, 9vw, 84px); line-height: .9; letter-spacing: -.07em; margin: 0 0 18px; }
h2 { font-size: clamp(30px, 5vw, 48px); line-height: 1; letter-spacing: -.05em; margin: 0 0 10px; }
.lead, #resultSummary, .disclosure { color: var(--muted); line-height: 1.65; max-width: 760px; }
.baby-form { display: grid; gap: 14px; max-width: 720px; }
.baby-form label, details summary { font-weight: 900; }
select, button {
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid var(--line);
  font: inherit;
}
select { padding: 0 14px; background: #fff; }
button {
  cursor: pointer;
  background: var(--brand);
  color: white;
  font-weight: 900;
  border-color: var(--brand);
}
button:hover { background: var(--brand-dark); }
.check-line { display: flex; gap: 10px; align-items: center; background: var(--soft); border: 1px solid var(--line); padding: 14px; border-radius: 16px; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--brand-dark); }
details { border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: #fffdfb; }
.category-checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.category-checks label { display: flex; gap: 8px; align-items: center; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-weight: 700; }
.results { margin-top: 28px; }
.hidden { display: none; }
.results-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
#changeAnswers { background: #fff; color: var(--brand-dark); min-height: 44px; padding: 0 16px; white-space: nowrap; }
.checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 22px 0; }
.checklist article, .empty { border: 1px solid var(--line); background: #fffdfb; border-radius: 18px; padding: 16px; }
.checklist ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); line-height: 1.6; }
.disclosure { background: #fff6d7; border: 1px solid #f2dda4; padding: 14px; border-radius: 16px; max-width: none; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.tab { background: #fff; color: var(--muted); border-color: var(--line); padding: 0 16px; min-height: 44px; }
.tab.active { background: var(--brand); color: white; border-color: var(--brand); }
.tab-panel { display: none; }
.tab-panel.active { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
#allByCategory.active { display: block; }
.category-section { padding: 0; margin: 0 0 24px; }
.category-section h3 { font-size: 24px; margin: 0 0 12px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.product-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  overflow: hidden;
}
.product-image {
  display: grid;
  place-items: center;
  width: calc(100% + 32px);
  height: 168px;
  margin: -16px -16px 4px;
  background: linear-gradient(135deg, #fff1ec, #fffaf6);
  border-bottom: 1px solid var(--line);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 950;
  text-align: center;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.product-image-fallback span {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 24px;
  background: var(--soft);
  border: 1px solid var(--line);
}
.product-image.is-loading { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .72; } 50% { opacity: 1; } }
.card-meta, .brand-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.card-meta span, .brand-row span { color: var(--brand-dark); background: var(--soft); border-radius: 999px; padding: 5px 8px; font-size: 12px; font-weight: 900; }
.card-meta strong { font-size: 12px; background: #edf8f1; color: #277143; border-radius: 999px; padding: 5px 8px; }
.product-card h3 { margin: 2px 0; font-size: 20px; letter-spacing: -.03em; }
.product-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.product-card .tip { font-size: 14px; }
.buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.buttons.one { grid-template-columns: 1fr; }
.buttons .primary-action { background: var(--brand); color: #fff; border-color: var(--brand); }
.buttons .primary-action:hover { background: var(--brand-dark); color: #fff; }
.buttons a { text-align: center; border: 1px solid var(--line); border-radius: 14px; padding: 11px 8px; font-weight: 900; background: #fffaf6; }
.buttons a:hover { border-color: var(--brand); color: var(--brand-dark); }
.small-link { font-size: 13px; color: var(--brand-dark); font-weight: 800; }
footer { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 20px 0 36px; display: flex; justify-content: space-between; color: var(--muted); }
.legal-page { min-height: 100vh; display: grid; place-content: center; max-width: 720px; margin: 0 auto; padding: 24px; }
.legal-page a { color: var(--brand-dark); font-weight: 900; }
@media (max-width: 900px) {
  .intro-card { min-height: auto; margin-top: 16px; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .category-checks, .tab-panel.active, .product-grid, .checklist { grid-template-columns: 1fr; }
  .results-head, footer { flex-direction: column; }
  #changeAnswers { width: 100%; }
}

/* Conversion-focused shopping list + safer image layout */
.result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: min(420px, 100%);
}
.result-actions button {
  min-height: 44px;
  padding: 0 15px;
  white-space: nowrap;
}
#addAllResults {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}
#openShoppingList {
  background: #fff7f3;
  color: var(--brand-dark);
  border-color: var(--line);
}
.product-card {
  min-width: 0;
  position: relative;
}
.product-image {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  height: auto;
  min-height: 148px;
  max-height: 190px;
  z-index: 0;
}
.product-image img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  position: relative;
  z-index: 1;
}
.product-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  position: relative;
  z-index: 2;
}
.card-actions {
  margin-top: auto;
}
.save-product {
  width: 100%;
  min-height: 44px;
  border-radius: 14px;
  background: #231f20;
  border-color: #231f20;
}
.save-product.is-saved,
.save-product:disabled {
  background: #edf8f1;
  color: #277143;
  border-color: #bfe8ce;
  cursor: default;
}
.floating-list-button {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 18px;
  box-shadow: 0 18px 45px rgba(70, 42, 30, .22);
}
.floating-list-button strong {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  font-size: 13px;
}
.floating-list-button.has-items {
  animation: listPop .32s ease-out;
}
@keyframes listPop { 0% { transform: scale(.96); } 100% { transform: scale(1); } }
.shopping-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  visibility: hidden;
}
.shopping-drawer.open {
  pointer-events: auto;
  visibility: visible;
}
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 31, 32, .42);
  opacity: 0;
  transition: opacity .22s ease;
}
.shopping-drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(560px, 100%);
  height: 100%;
  overflow-y: auto;
  background: #fff;
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px rgba(70, 42, 30, .20);
  padding: 22px;
  transform: translateX(100%);
  transition: transform .24s ease;
}
.shopping-drawer.open .drawer-panel { transform: translateX(0); }
.drawer-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}
.drawer-head h2 { font-size: clamp(28px, 5vw, 42px); }
.drawer-summary { color: var(--muted); margin: 8px 0 0; }
.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  border-radius: 999px;
  padding: 0;
  background: #fff7f3;
  color: var(--brand-dark);
  border-color: var(--line);
  font-size: 26px;
  line-height: 1;
}
.drawer-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.drawer-tools button {
  min-height: 46px;
  padding: 0 12px;
}
#clearShoppingList {
  background: #fff7f3;
  color: var(--brand-dark);
  border-color: var(--line);
}
.saved-category { margin: 0 0 22px; }
.saved-category h3 {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -.02em;
}
.saved-product {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffdfb;
  margin-bottom: 10px;
}
.saved-product.is-bought {
  opacity: .62;
}
.saved-product.is-bought strong {
  text-decoration: line-through;
}
.saved-image {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff1ec, #fffaf6);
  border: 1px solid var(--line);
  color: var(--brand-dark);
  font-weight: 950;
}
.saved-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  display: block;
}
.saved-info { min-width: 0; }
.saved-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.saved-title-row strong { line-height: 1.25; }
.saved-info p {
  margin: 5px 0 9px;
  color: var(--muted);
  font-size: 13px;
}
.text-button {
  min-height: auto;
  padding: 0;
  background: transparent;
  color: var(--brand-dark);
  border: 0;
  font-size: 13px;
}
.saved-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 9px;
}
.saved-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 900;
  font-size: 13px;
}
.bought-toggle {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  background: #231f20;
  border-color: #231f20;
  font-size: 14px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 120;
  transform: translate(-50%, 12px);
  opacity: 0;
  background: #231f20;
  color: #fff;
  padding: 12px 16px;
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(35,31,32,.2);
  font-weight: 900;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.drawer-open { overflow: hidden; }
@media (max-width: 900px) {
  .result-actions { width: 100%; justify-content: stretch; }
  .result-actions button { width: 100%; }
  .floating-list-button { left: 16px; right: 16px; justify-content: center; }
  .drawer-panel { padding: 18px; }
  .drawer-tools { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .saved-product { grid-template-columns: 64px 1fr; }
  .saved-image { width: 64px; height: 64px; border-radius: 14px; }
  .buttons { grid-template-columns: 1fr; }
}

/* Final conversion simplification + image hardening */
.product-card,
.saved-product,
.admin-product-row {
  isolation: isolate;
}
.product-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100%;
  overflow: hidden !important;
  contain: layout paint;
}
.product-image {
  width: calc(100% + 32px) !important;
  height: 180px !important;
  min-height: 180px !important;
  max-height: 180px !important;
  aspect-ratio: auto !important;
  flex: 0 0 180px !important;
  overflow: hidden !important;
  position: relative !important;
  z-index: 0 !important;
  display: grid !important;
  place-items: center !important;
}
.product-image img,
.saved-image img,
.admin-image-preview img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  position: static !important;
}
.product-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: visible;
}
.product-content h3,
.product-content p,
.product-content .tip {
  overflow-wrap: anywhere;
}
.buttons {
  margin-top: 10px;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
}
.buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  line-height: 1.2;
}
.intro-card {
  min-height: auto;
  margin-top: 18px;
}
.lead strong { color: var(--text); }
.simple-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 12px 0 0;
}
.simple-steps span {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffdfb;
  padding: 12px;
  color: var(--muted);
  font-weight: 800;
}
@media (max-width: 680px) {
  .simple-steps { grid-template-columns: 1fr; }
  .product-image {
    height: 165px !important;
    min-height: 165px !important;
    max-height: 165px !important;
    flex-basis: 165px !important;
  }
}

/* Admin panel */
.admin-body {
  background: #fffaf6;
}
.admin-shell {
  width: min(1380px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 60px;
}
.admin-hero,
.admin-login,
.admin-app,
.admin-editor,
.admin-product-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.admin-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 28px;
  margin-bottom: 18px;
}
.admin-hero h1 { font-size: clamp(38px, 7vw, 72px); }
.admin-view-site {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 14px;
  padding: 0 18px;
  background: var(--brand);
  color: #fff;
  font-weight: 950;
  white-space: nowrap;
}
.admin-login {
  padding: 22px;
  max-width: 640px;
}
.admin-login label,
.admin-editor label,
.admin-editor legend {
  display: grid;
  gap: 7px;
  font-weight: 900;
}
.admin-login-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 8px;
}
.admin-login input,
.admin-toolbar input,
.admin-toolbar select,
.admin-editor input,
.admin-editor select,
.admin-editor textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
  font: inherit;
}
.admin-editor textarea { resize: vertical; }
.admin-login code { background: #fff0ed; padding: 2px 6px; border-radius: 8px; }
.admin-app { padding: 18px; }
.admin-toolbar {
  display: grid;
  grid-template-columns: 1fr 190px 150px auto;
  gap: 10px;
  margin-bottom: 16px;
}
.admin-toolbar button,
.secondary-button {
  min-height: 46px;
  padding: 0 14px;
}
.admin-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 16px;
  align-items: start;
}
.admin-product-list {
  padding: 10px;
  max-height: 78vh;
  overflow: auto;
}
.admin-product-row {
  width: 100%;
  display: grid;
  gap: 5px;
  text-align: left;
  color: var(--text);
  background: #fffdfb;
  border-color: var(--line);
  padding: 12px;
  min-height: auto;
  margin-bottom: 8px;
}
.admin-product-row:hover,
.admin-product-row.active {
  background: var(--soft);
  color: var(--text);
  border-color: var(--brand);
}
.admin-product-row span {
  color: var(--muted);
  font-size: 13px;
}
.admin-editor {
  padding: 20px;
  display: grid;
  gap: 16px;
}
.editor-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}
.editor-head h2 { font-size: clamp(28px, 4vw, 44px); }
.editor-head button,
.editor-actions-bottom button { padding: 0 18px; }
.admin-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.admin-editor fieldset {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}
.admin-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.admin-checks label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdfb;
}
.admin-image-editor {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  align-items: start;
}
.admin-image-preview {
  width: 220px;
  height: 180px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff1ec, #fffaf6);
  color: var(--brand-dark);
  font-weight: 950;
}
.file-button {
  margin-top: 12px;
  border: 1px dashed var(--brand);
  border-radius: 14px;
  padding: 14px;
  background: #fff7f3;
  cursor: pointer;
}
.file-button input { display: none; }
.admin-help {
  color: var(--muted);
  margin: 0 0 14px;
}
.platform-rows { display: grid; gap: 8px; margin: 12px 0; }
.platform-row {
  display: grid;
  grid-template-columns: 150px 150px 110px 1fr auto;
  gap: 8px;
}
.platform-row button,
.secondary-button {
  background: #fff7f3;
  border-color: var(--line);
  color: var(--brand-dark);
}
.editor-actions-bottom {
  display: flex;
  gap: 12px;
  align-items: center;
}
#saveStatus { color: var(--brand-dark); font-weight: 900; }
@media (max-width: 980px) {
  .admin-toolbar,
  .admin-layout,
  .admin-grid-two,
  .admin-image-editor,
  .platform-row {
    grid-template-columns: 1fr;
  }
  .admin-product-list { max-height: 360px; }
  .admin-image-preview { width: 100%; }
  .admin-hero { flex-direction: column; }
}


/* Turkish-only update */
.admin-mini-link { font-weight: 950; color: var(--brand-dark); background: #fff7f3; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; }
.product-media, .saved-image, .admin-image-preview { overflow: hidden; position: relative; flex-shrink: 0; }
.product-media img, .saved-image img, .admin-image-preview img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; max-width: 100%; max-height: 100%; }
.product-card, .saved-product { min-width: 0; }
.product-body, .saved-info { min-width: 0; overflow-wrap: anywhere; }

/* Public homepage: professional simple ecommerce flow */
.simple-shop-shell {
  max-width: 1180px;
}
.hero-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 44px);
  margin-top: 18px;
  overflow: hidden;
}
.hero-card .topbar {
  margin-bottom: clamp(24px, 4vw, 44px);
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .8fr);
  gap: clamp(22px, 4vw, 52px);
  align-items: center;
}
.hero-copy h1 {
  max-width: 760px;
  margin-bottom: 18px;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.trust-row span {
  background: #fff7f3;
  border: 1px solid var(--line);
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 10px 13px;
  font-weight: 900;
  font-size: 14px;
}
.stage-picker-card {
  display: grid;
  gap: 14px;
  background: #fffdfb;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(16px, 3vw, 24px);
}
.form-title {
  margin: 0;
  font-weight: 950;
  font-size: 20px;
  letter-spacing: -.03em;
}
.stage-options {
  display: grid;
  gap: 10px;
}
.stage-option {
  position: relative;
  display: grid;
  gap: 3px;
  padding: 14px 14px 14px 48px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.stage-option:hover {
  transform: translateY(-1px);
  border-color: rgba(239, 125, 143, .55);
  box-shadow: 0 12px 28px rgba(70, 42, 30, .07);
}
.stage-option input {
  position: absolute;
  left: 16px;
  top: 18px;
  width: 18px;
  height: 18px;
  accent-color: var(--brand-dark);
}
.stage-option:has(input:checked) {
  border-color: var(--brand);
  background: var(--soft);
  box-shadow: inset 0 0 0 1px rgba(239, 125, 143, .2);
}
.stage-option span {
  font-weight: 950;
  line-height: 1.2;
}
.stage-option small {
  color: var(--muted);
  line-height: 1.35;
}
.main-cta {
  min-height: 58px;
  font-size: 17px;
  box-shadow: 0 16px 30px rgba(207, 79, 105, .24);
}
.microcopy {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.simple-results {
  margin-top: 22px;
}
.simple-results-head {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.compact-checklist {
  grid-template-columns: repeat(3, 1fr);
  margin: 20px 0;
}
.compact-checklist article {
  padding: 14px;
}
.compact-checklist ul {
  font-size: 14px;
}
.priority-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.section-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.section-title-row h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.04em;
}
.section-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #edf8f1;
  color: #277143;
  font-weight: 950;
  font-size: 13px;
  white-space: nowrap;
}
.priority-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.optional-products {
  margin-top: 28px;
  background: #fffdfb;
}
.optional-products > summary {
  cursor: pointer;
  font-size: 18px;
  color: var(--brand-dark);
}
.category-list-section .category-section {
  margin-top: 24px;
}
.category-list-section .category-section h3 {
  font-size: 22px;
}
.category-list-section .product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Stronger universal product image safety */
.product-card {
  padding: 0 !important;
  border-radius: 22px;
  background: #fff;
  overflow: hidden !important;
  min-height: 100%;
}
.product-image {
  width: 100% !important;
  height: 190px !important;
  min-height: 190px !important;
  max-height: 190px !important;
  margin: 0 !important;
  padding: 12px !important;
  border-bottom: 1px solid var(--line);
  background: #fffaf6;
  overflow: hidden !important;
  flex: 0 0 190px !important;
  contain: strict;
}
.product-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
  background: transparent !important;
  border: 0 !important;
  transform: none !important;
}
.product-content {
  padding: 16px;
  background: #fff;
  width: 100%;
}
.product-card h3 {
  font-size: 19px;
  line-height: 1.18;
}
.product-card p {
  font-size: 14px;
}
.card-actions {
  order: 5;
}
.buttons {
  order: 6;
}
.save-product {
  min-height: 46px;
}

@media (max-width: 980px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }
  .compact-checklist,
  .priority-grid,
  .category-list-section .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .app-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }
  .hero-card,
  .results {
    border-radius: 22px;
    padding: 18px;
  }
  h1 {
    font-size: clamp(40px, 14vw, 60px);
  }
  .compact-checklist,
  .priority-grid,
  .category-list-section .product-grid {
    grid-template-columns: 1fr;
  }
  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .product-image {
    height: 176px !important;
    min-height: 176px !important;
    max-height: 176px !important;
    flex-basis: 176px !important;
  }
}


/* Final simplified ecommerce results layout */
.simple-results-head {
  align-items: center;
  gap: 18px;
}
.simple-results-head h2 {
  margin-bottom: 8px;
}
.simple-results-head #resultSummary {
  margin: 0;
  max-width: 680px;
}
.results .disclosure,
.compact-checklist,
.checklist {
  display: none !important;
}
.result-actions button {
  min-height: 48px;
}
#addAllResults {
  min-width: 190px;
}
.buy-first-section {
  margin-top: 12px;
  padding-top: 18px;
}
.priority-section {
  margin-top: 22px;
  padding-top: 20px;
}
.section-title-row .eyebrow {
  display: none;
}
.section-title-row h3 {
  font-size: clamp(22px, 2.5vw, 30px);
}
.optional-products > summary {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  border-radius: 16px;
  background: #fff7f3;
  border: 1px solid var(--line);
  font-size: 16px;
}
.optional-products > summary::-webkit-details-marker { display: none; }
@media (max-width: 700px) {
  .simple-results-head {
    align-items: stretch;
  }
  .result-actions {
    justify-content: stretch;
    min-width: 0;
  }
  .result-actions button {
    width: 100%;
  }
}

/* Conversion update: search, cart, tracking and image safety */
.topbar { gap: 16px; }
.cart-top-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.82);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(39, 33, 48, .08);
}
.cart-top-button strong,
.floating-list-button strong {
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--ink);
  color: white;
  font-size: 13px;
}
.cart-top-button.has-items strong,
.floating-list-button.has-items strong { background: var(--accent); }
.cart-icon { line-height: 1; }

.search-card {
  width: min(1120px, calc(100% - 32px));
  margin: 24px auto 0;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.9);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}
.search-card h2 { margin: 4px 0 6px; letter-spacing: -.04em; }
.search-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 18px;
}
.search-box input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0 16px;
  font: inherit;
  font-weight: 800;
  color: var(--ink);
  background: white;
  outline: none;
}
.search-box input:focus {
  border-color: rgba(239, 125, 143, .9);
  box-shadow: 0 0 0 4px rgba(239, 125, 143, .16);
}
.search-box button,
.drawer-tools button,
.bought-toggle {
  border: 0;
  border-radius: 16px;
  padding: 12px 16px;
  font-weight: 900;
  cursor: pointer;
  background: #fff3f5;
  color: var(--accent-strong);
}
.search-results { margin-top: 18px; }
.search-results-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  color: var(--muted);
}
.search-results-head strong { color: var(--ink); }
.search-grid { margin-top: 0; }

.save-product.is-saved {
  background: #fff;
  color: #b23a4c;
  border: 1px solid rgba(178,58,76,.28);
}
.save-product.is-saved::before { content: '✓ '; }

.product-card {
  display: grid !important;
  grid-template-rows: auto 1fr;
  align-content: start;
  overflow: hidden !important;
  min-width: 0;
}
.product-image {
  width: 100% !important;
  height: 190px !important;
  min-height: 190px !important;
  max-height: 190px !important;
  overflow: hidden !important;
  display: grid !important;
  place-items: center !important;
  position: relative !important;
  flex: none !important;
  background: linear-gradient(145deg, #fff7f8, #f8fbff);
}
.product-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  position: static !important;
}
.product-content {
  min-width: 0;
  overflow-wrap: anywhere;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-content h3,
.product-content p,
.product-content .tip { overflow-wrap: anywhere; }

.floating-list-button {
  gap: 9px;
  z-index: 80;
}
.drawer-tools {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.saved-product {
  overflow: hidden;
}
.saved-image {
  overflow: hidden !important;
  display: grid !important;
  place-items: center !important;
  flex: none !important;
}
.saved-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

@media (max-width: 720px) {
  .cart-top-button span:not(.cart-icon) { display: none; }
  .search-card { width: min(100% - 20px, 1120px); padding: 18px; border-radius: 22px; }
  .search-box { grid-template-columns: 1fr; }
  .search-results-head { align-items: flex-start; flex-direction: column; }
  .drawer-tools { grid-template-columns: 1fr; }
  .product-image { height: 160px !important; min-height: 160px !important; max-height: 160px !important; }
}

/* Final product-card and cart hardening */
.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  isolation: isolate;
}
.product-image {
  width: calc(100% + 32px);
  height: 190px;
  min-height: 190px;
  max-height: 190px;
  aspect-ratio: auto;
  overflow: hidden;
  align-self: stretch;
  contain: paint;
}
.product-image img,
.saved-image img,
.admin-image-preview img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
}
.product-content {
  min-height: 0;
  overflow: hidden;
}
.card-actions {
  display: grid;
  gap: 9px;
}
.save-product.is-saved {
  background: #fff5f5;
  color: #b42318;
  border-color: #ffd1d1;
  cursor: pointer;
}
.save-product.is-saved:hover {
  background: #ffe7e7;
  color: #8c1d13;
  border-color: #ffbbbb;
}
.inline-quantity,
.saved-row-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdfb;
  color: var(--muted);
  font-weight: 900;
  font-size: 13px;
}
.inline-quantity.hidden { display: none; }
.quantity-control {
  display: inline-grid;
  grid-template-columns: 34px 48px 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.quantity-control.small { grid-template-columns: 30px 44px 30px; }
.quantity-control button {
  min-height: 34px;
  height: 34px;
  border: 0;
  border-radius: 0;
  background: #fff7f3;
  color: var(--brand-dark);
  font-size: 18px;
  line-height: 1;
  padding: 0;
}
.quantity-control.small button {
  min-height: 30px;
  height: 30px;
}
.quantity-control input {
  width: 100%;
  height: 34px;
  min-height: 34px;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  font: inherit;
  font-weight: 950;
  color: var(--text);
  -moz-appearance: textfield;
}
.quantity-control.small input {
  height: 30px;
  min-height: 30px;
}
.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.saved-image {
  width: 82px;
  height: 82px;
  min-width: 82px;
  overflow: hidden;
  contain: paint;
}
.saved-row-tools {
  justify-content: flex-start;
  width: fit-content;
  max-width: 100%;
}
.saved-title-row {
  align-items: flex-start;
}
@media (max-width: 520px) {
  .product-image {
    height: 170px;
    min-height: 170px;
    max-height: 170px;
  }
  .inline-quantity,
  .saved-row-tools {
    align-items: stretch;
    flex-direction: column;
  }
  .quantity-control,
  .quantity-control.small {
    width: 100%;
    grid-template-columns: 44px 1fr 44px;
  }
}

/* Absolute final image containment: prevents downloaded images from overlapping product text */
.product-card,
.saved-item,
.drawer-product,
.admin-product-row {
  position: relative;
  overflow: hidden;
}
.product-card .product-image {
  position: relative !important;
  z-index: 0 !important;
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 190px !important;
  min-height: 190px !important;
  max-height: 190px !important;
  margin: 0 !important;
  padding: 10px !important;
  overflow: hidden !important;
  flex: 0 0 190px !important;
  background: #fff !important;
}
.product-card .product-image img,
.saved-image img,
.admin-image-preview img {
  position: static !important;
  z-index: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
}
.product-card .product-content,
.product-card .card-actions,
.saved-content {
  position: relative !important;
  z-index: 1 !important;
  background: transparent !important;
}
@media (max-width: 520px) {
  .product-card .product-image {
    height: 165px !important;
    min-height: 165px !important;
    max-height: 165px !important;
    flex-basis: 165px !important;
  }
}


/* Final ecommerce helper updates */
.drawer-tools {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.drawer-tools button:nth-child(3),
.drawer-tools button:nth-child(4),
.drawer-tools button:nth-child(5) {
  background: #fff7f0;
}
.product-card, .saved-product {
  overflow: hidden;
}
.product-card .product-image,
.product-image {
  position: relative;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  flex: 0 0 auto !important;
  isolation: isolate;
}
.product-card .product-image img,
.product-image img,
.saved-image img {
  display: block !important;
  max-width: 100% !important;
  max-height: 100% !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  position: static !important;
}
.product-content {
  min-width: 0;
  position: relative;
  z-index: 1;
}
.save-product.is-saved {
  background: #fff !important;
  color: #9f2f3f !important;
  border-color: #ef7d8f !important;
}
@media (max-width: 700px) {
  .drawer-tools { grid-template-columns: 1fr; }
}

/* SEO pages + permanent image containment */
.product-card,
.saved-product,
.seo-product-card { contain: layout paint; }
.product-image,
.saved-image,
.seo-product-image {
  overflow: hidden !important;
  isolation: isolate;
}
.product-image img,
.saved-image img,
.seo-product-image img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
}
.seo-links-card,
.seo-content-card,
.seo-hero {
  width: min(1120px, calc(100% - 32px));
  margin: 24px auto 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 42px);
}
.seo-links-card {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 24px;
  align-items: start;
}
.seo-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.seo-link-grid a,
.seo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff7f3;
  color: var(--brand-dark);
  font-weight: 900;
  text-align: center;
}
.seo-link-grid a:hover,
.seo-cta:hover { border-color: var(--brand); background: var(--soft); }
.seo-page { padding: 28px 0 56px; }
.seo-nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.seo-nav > a:last-child { color: var(--brand-dark); font-weight: 900; }
.seo-hero h1 { max-width: 900px; }
.seo-hero .lead { margin-bottom: 22px; }
.seo-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.seo-product-card {
  display: grid;
  grid-template-rows: 176px 1fr;
  gap: 14px;
  background: #fffdfb;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
  min-width: 0;
}
.seo-product-image {
  display: grid;
  place-items: center;
  height: 176px;
  background: linear-gradient(135deg, #fff1ec, #fffaf6);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--brand-dark);
  font-weight: 950;
}
.seo-product-card h3 { margin: 4px 0 8px; font-size: 20px; letter-spacing: -.03em; }
.seo-product-card p:not(.eyebrow) { color: var(--muted); line-height: 1.55; }
.seo-faq { margin-top: 10px; }
@media (max-width: 900px) {
  .seo-links-card { grid-template-columns: 1fr; }
  .seo-product-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .seo-link-grid,
  .seo-product-grid { grid-template-columns: 1fr; }
  .seo-nav { align-items: flex-start; flex-direction: column; }
}


/* SEO/content and crawl-friendly layout additions */
.seo-explainer-card {
  max-width: 1180px;
  margin: 18px auto;
  padding: 22px;
  border: 1px solid var(--line, #f0ddd6);
  border-radius: 28px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 16px 45px rgba(70, 42, 35, .06);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 20px;
}
.seo-explainer-card h2 { margin: 0 0 10px; letter-spacing: -.035em; }
.seo-explainer-card p { color: var(--muted, #6c5b56); line-height: 1.6; }
.seo-mini-faq details {
  background: #fffaf6;
  border: 1px solid var(--line, #f0ddd6);
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.seo-mini-faq summary { cursor: pointer; font-weight: 900; }
.seo-mini-faq p { margin-bottom: 0; }

/* Final image containment layer: prevents any product/admin/saved/SEO image from overlapping text */
.product-card, .saved-product, .seo-product-card, .admin-product-row { overflow: hidden; }
.product-image, .saved-image, .seo-product-image, .admin-image-preview {
  overflow: hidden !important;
  position: relative !important;
  flex: 0 0 auto !important;
  isolation: isolate;
  background: #fff7f3;
}
.product-image img, .saved-image img, .seo-product-image img, .admin-image-preview img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  position: static !important;
}
.product-card { display: flex; flex-direction: column; }
.product-card .product-body { min-width: 0; }

@media (max-width: 860px) {
  .seo-explainer-card { grid-template-columns: 1fr; }
}
