/*
Theme Name: Little Remy
Theme URI: https://recipe.projectspace.ge
Author: ProjectSpace
Description: ქართული რეცეპტების დამგეგმავი მაღაზიების, ბიუჯეტის, პორციებისა და ტექნიკის მიხედვით.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: little-remy
*/

@font-face {
  font-family: "Noto Sans Georgian";
  src: url("assets/fonts/noto-georgian-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans Georgian";
  src: url("assets/fonts/noto-georgian-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans Georgian";
  src: url("assets/fonts/noto-georgian-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans Georgian";
  src: url("assets/fonts/noto-georgian-800.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans Georgian";
  src: url("assets/fonts/noto-georgian-900.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  --lr-bg: #fffaf2;
  --lr-surface: #ffffff;
  --lr-ink: #173f32;
  --lr-text: #40564d;
  --lr-muted: #718078;
  --lr-line: rgba(23, 63, 50, 0.1);
  --lr-primary: #e45735;
  --lr-primary-dark: #c9472a;
  --lr-green: #248064;
  --lr-green-dark: #1d6651;
  --lr-cream: #f6f2ea;
  --lr-yellow: #f0c76b;
  --lr-shadow: 0 16px 45px rgba(31, 57, 46, 0.08);
  --lr-shadow-lg: 0 24px 70px rgba(31, 57, 46, 0.13);
}

html {
  background: var(--lr-bg);
  scroll-behavior: smooth;
}

body.little-remy-body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(244, 201, 93, 0.12), transparent 30rem),
    radial-gradient(circle at 100% 10%, rgba(36, 128, 100, 0.08), transparent 34rem),
    var(--lr-bg);
  color: var(--lr-ink);
  font-family: "Noto Sans Georgian", Arial, sans-serif;
  font-size: 16px;
}

.lr-app,
.lr-app * {
  box-sizing: border-box;
}

.lr-app button,
.lr-app input,
.lr-app textarea,
.lr-app select {
  font: inherit;
}

.lr-app button,
.lr-app a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.lr-app button {
  border: 0;
  cursor: pointer;
}

.lr-app a {
  color: inherit;
  text-decoration: none;
}

.lr-app img {
  max-width: 100%;
}

.lr-app ::selection {
  background: rgba(228, 87, 53, 0.22);
}

.lr-container {
  width: min(100% - 32px, 1240px);
  margin-inline: auto;
}

.lr-page {
  min-height: calc(100vh - 76px);
  padding-block: 36px 96px;
}

.lr-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid rgba(23, 63, 50, 0.08);
  background: rgba(255, 253, 248, 0.91);
  backdrop-filter: blur(18px);
}

body.admin-bar .lr-header { top: 32px; }

.lr-header-inner {
  display: flex;
  height: 76px;
  align-items: center;
  justify-content: space-between;
}

.lr-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border-radius: 16px;
  outline: none;
}

.lr-brand:focus-visible,
.lr-icon-button:focus-visible,
.lr-button:focus-visible,
.lr-store:focus-visible,
.lr-equipment-button:focus-visible,
.lr-card-link:focus-visible {
  box-shadow: 0 0 0 4px rgba(228, 87, 53, 0.2);
}

.lr-brand-symbol {
  position: relative;
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 15px;
  background: var(--lr-ink);
  color: var(--lr-yellow);
  font-size: 22px;
  box-shadow: 0 8px 20px rgba(23, 63, 50, 0.17);
}

.lr-brand-symbol::after {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 13px;
  height: 13px;
  border: 3px solid #fffdf8;
  border-radius: 50%;
  background: var(--lr-primary);
  content: "";
}

.lr-brand-copy {
  display: grid;
  line-height: 1;
}

.lr-brand-copy strong {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.lr-brand-copy span {
  margin-top: 5px;
  color: var(--lr-muted);
  font-size: 10px;
  font-weight: 700;
}

.lr-favorites-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--lr-line);
  border-radius: 999px;
  background: white;
  padding: 0 16px;
  color: var(--lr-ink);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(31, 57, 46, 0.05);
  transition: 0.2s ease;
}

.lr-favorites-link:hover {
  border-color: rgba(228, 87, 53, 0.28);
  background: #fff3ed;
  color: #b44027;
}

.lr-heart {
  color: var(--lr-primary);
  font-size: 19px;
  line-height: 1;
}

.lr-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: #f8e6dc;
  padding: 7px 12px;
  color: #b44027;
  font-size: 12px;
  font-weight: 800;
}

.lr-eyebrow {
  margin: 0;
  color: var(--lr-primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.lr-title {
  max-width: 780px;
  margin: 14px 0 0;
  color: var(--lr-ink);
  font-size: clamp(2rem, 5vw, 4.35rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.058em;
}

.lr-title-small {
  font-size: clamp(2rem, 4.5vw, 3.7rem);
}

.lr-lead {
  max-width: 680px;
  margin: 16px 0 0;
  color: #65736b;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.75;
}

.lr-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  align-items: start;
  gap: 28px;
  margin-top: 36px;
}

.lr-stack {
  display: grid;
  gap: 22px;
}

.lr-panel {
  border: 1px solid rgba(23, 63, 50, 0.08);
  border-radius: 28px;
  background: var(--lr-surface);
  padding: 24px;
  box-shadow: var(--lr-shadow);
}

.lr-panel-sticky {
  position: sticky;
  top: 98px;
}

body.admin-bar .lr-panel-sticky { top: 130px; }

.lr-step-heading {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 20px;
}

.lr-step-number {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: var(--lr-ink);
  color: white;
  font-size: 14px;
  font-weight: 900;
}

.lr-step-heading h2 {
  margin: 0;
  color: var(--lr-ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.lr-step-heading p {
  margin: 5px 0 0;
  color: var(--lr-muted);
  font-size: 13px;
  line-height: 1.6;
}

.lr-stores {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.lr-store {
  position: relative;
  display: flex;
  min-height: 92px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--lr-line) !important;
  border-radius: 18px;
  background: #fff;
  padding: 11px 7px;
  color: #263e35;
  text-align: center;
  transition: 0.2s ease;
}

.lr-store:hover {
  transform: translateY(-2px);
  border-color: rgba(228, 87, 53, 0.45) !important;
  box-shadow: 0 9px 24px rgba(31, 57, 46, 0.08);
}

.lr-store.is-selected {
  border-color: var(--lr-primary) !important;
  box-shadow: 0 8px 24px rgba(228, 87, 53, 0.13);
}

.lr-store-check {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--lr-primary);
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.lr-store-logo {
  display: flex;
  width: 68px;
  height: 37px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  background: white;
}

.lr-store-logo img {
  display: block;
  max-width: 100%;
  max-height: 34px;
  object-fit: contain;
}

.lr-store-all {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: var(--lr-ink);
  color: white;
  font-size: 18px;
}

.lr-store-name {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.lr-counter {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--lr-line);
  border-radius: 18px;
  background: var(--lr-cream);
}

.lr-counter button {
  display: grid;
  min-height: 56px;
  place-items: center;
  background: transparent;
  color: var(--lr-ink);
  font-size: 25px;
  font-weight: 700;
}

.lr-counter button:hover { background: rgba(228, 87, 53, 0.08); }
.lr-counter button:disabled { cursor: not-allowed; opacity: 0.32; }

.lr-counter-value {
  color: var(--lr-ink);
  text-align: center;
  font-size: 15px;
  font-weight: 900;
}

.lr-counter-value strong {
  margin-right: 6px;
  font-size: 23px;
}

.lr-budget-value {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.lr-budget-value strong {
  color: var(--lr-green-dark);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.lr-budget-value span {
  color: var(--lr-muted);
  font-size: 11px;
  font-weight: 700;
}

.lr-range {
  width: 100%;
  height: 7px;
  margin: 9px 0;
  border: 0;
  border-radius: 999px;
  appearance: none;
  background: linear-gradient(90deg, var(--lr-primary) 0 var(--range-progress, 0%), #e8e2d9 var(--range-progress, 0%) 100%);
  outline: 0;
}

.lr-range::-webkit-slider-thumb {
  width: 25px;
  height: 25px;
  border: 4px solid #fff;
  border-radius: 50%;
  appearance: none;
  background: var(--lr-primary);
  box-shadow: 0 4px 12px rgba(228, 87, 53, 0.3);
}

.lr-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--lr-primary);
  box-shadow: 0 4px 12px rgba(228, 87, 53, 0.3);
}

.lr-range-labels {
  display: flex;
  justify-content: space-between;
  color: #87938d;
  font-size: 10px;
  font-weight: 700;
}

.lr-equipment-scene {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--lr-line);
  border-radius: 27px;
  background: #e9e0d3;
  box-shadow: 0 18px 50px rgba(39, 52, 43, 0.12);
}

.lr-equipment-scene > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.lr-equipment-scene::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(23, 63, 50, 0.12), transparent 45%, rgba(255,255,255,0.06));
  content: "";
}

.lr-equipment-button {
  position: absolute;
  z-index: 2;
  border: 2px dashed rgba(255,255,255,0.86) !important;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  transition: 0.2s ease;
}

.lr-equipment-button:hover { transform: scale(1.025); background: rgba(255,255,255,0.15); }
.lr-equipment-button.is-selected { transform: scale(1.03); border-color: #fff !important; background: rgba(228,87,53,0.25); box-shadow: 0 0 0 3px rgba(228,87,53,0.55); }
.lr-equipment-button[data-equipment="oven"] { left: 4%; top: 47%; width: 23%; height: 39%; }
.lr-equipment-button[data-equipment="air-fryer"] { left: 23%; top: 22%; width: 14%; height: 29%; }
.lr-equipment-button[data-equipment="gas-stove"] { left: 38%; top: 35%; width: 24%; height: 18%; }
.lr-equipment-button[data-equipment="blender"] { left: 64%; top: 20%; width: 12%; height: 31%; }
.lr-equipment-button[data-equipment="microwave"] { left: 75%; top: 25%; width: 19%; height: 27%; }

.lr-equipment-plus {
  position: absolute;
  top: -8px;
  right: -8px;
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--lr-primary);
  color: white;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(23,63,50,0.2);
}

.lr-equipment-button.is-selected .lr-equipment-plus { background: var(--lr-green); }

.lr-equipment-name {
  position: absolute;
  bottom: 6px;
  left: 50%;
  border-radius: 999px;
  background: rgba(23,63,50,0.9);
  padding: 4px 9px;
  transform: translateX(-50%);
  color: white;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.lr-selected-box {
  margin-top: 18px;
  border: 1px solid var(--lr-line);
  border-radius: 21px;
  background: #fffdf8;
  padding: 15px;
}

.lr-selected-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}

.lr-selected-head strong { font-size: 14px; }
.lr-selected-head span { color: #849087; font-size: 11px; font-weight: 700; }

.lr-selected-empty {
  margin: 0;
  border-radius: 14px;
  background: #f2ede5;
  padding: 12px 14px;
  color: var(--lr-muted);
  font-size: 13px;
  font-weight: 600;
}

.lr-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.lr-chip {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(36,128,100,0.18) !important;
  border-radius: 999px;
  background: #e9f4ef;
  padding: 7px 12px;
  color: var(--lr-green-dark);
  font-size: 12px;
  font-weight: 800;
}

.lr-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 16px;
  padding: 0 22px;
  background: var(--lr-primary);
  color: white !important;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  transition: 0.2s ease;
}

.lr-button:hover { transform: translateY(-1px); background: var(--lr-primary-dark); box-shadow: 0 12px 26px rgba(228,87,53,0.22); }
.lr-button-block { width: 100%; margin-top: 18px; }
.lr-button-dark { background: var(--lr-ink); }
.lr-button-dark:hover { background: #0f3228; }
.lr-button-soft { background: #edf4f0; color: var(--lr-green-dark) !important; }
.lr-button-soft:hover { background: #dfeee7; box-shadow: none; }
.lr-button-small { min-height: 42px; border-radius: 13px; padding-inline: 16px; font-size: 12px; }

.lr-summary-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 28px;
  border: 1px solid var(--lr-line);
  border-radius: 22px;
  background: rgba(255,255,255,0.78);
  padding: 14px;
  box-shadow: 0 9px 30px rgba(31,57,46,0.05);
}

.lr-summary-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.lr-summary-chip {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--lr-line);
  border-radius: 999px;
  background: white;
  padding: 7px 11px;
  color: #4d6359;
  font-size: 11px;
  font-weight: 800;
}

.lr-results-tools {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 28px;
}

.lr-search {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--lr-line);
  border-radius: 16px;
  background: white;
  padding: 0 16px;
  color: var(--lr-ink);
  outline: 0;
  box-shadow: 0 8px 24px rgba(31,57,46,0.05);
}

.lr-search:focus { border-color: rgba(228,87,53,0.55); box-shadow: 0 0 0 4px rgba(228,87,53,0.12); }

.lr-results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.lr-results-meta h2 { margin: 0; font-size: 20px; font-weight: 900; letter-spacing: -0.03em; }
.lr-results-meta p { margin: 3px 0 0; color: var(--lr-muted); font-size: 12px; }

.lr-price-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lr-green-dark);
  font-size: 11px;
  font-weight: 800;
}

.lr-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(36,128,100,0.2);
  border-top-color: var(--lr-green);
  border-radius: 50%;
  animation: lr-spin 0.75s linear infinite;
}

@keyframes lr-spin { to { transform: rotate(360deg); } }

.lr-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.lr-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(23,63,50,0.09);
  border-radius: 24px;
  background: white;
  box-shadow: 0 12px 36px rgba(35,59,49,0.07);
  transition: 0.22s ease;
}

.lr-card:hover { transform: translateY(-4px); box-shadow: 0 18px 48px rgba(35,59,49,0.13); }
.lr-card-link { display: flex; height: 100%; flex-direction: column; outline: 0; }

.lr-recipe-image {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #ece7dd;
}

.lr-recipe-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.08), transparent 48%);
  content: "";
}

.lr-recipe-image-square { aspect-ratio: 4 / 3; }
.lr-recipe-image-hero { min-height: 390px; height: 100%; }

.lr-sprite-frame {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  transform: translateY(-50%);
}

.lr-sprite-frame img {
  position: absolute;
  width: 400%;
  height: 300%;
  max-width: none;
  pointer-events: none;
  user-select: none;
}

.lr-meal-label {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
  padding: 6px 10px;
  color: var(--lr-ink);
  font-size: 10px;
  font-weight: 900;
  box-shadow: 0 3px 10px rgba(23,63,50,0.1);
  backdrop-filter: blur(8px);
}

.lr-card-body { display: flex; flex: 1; flex-direction: column; padding: 15px; }
.lr-card h3 { margin: 0; color: var(--lr-ink); font-size: 16px; font-weight: 900; line-height: 1.45; letter-spacing: -0.025em; }
.lr-card-description { display: -webkit-box; overflow: hidden; margin: 8px 0 0; color: var(--lr-muted); font-size: 12px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.lr-card-meta { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 12px; color: var(--lr-muted); font-size: 11px; font-weight: 700; }
.lr-card-price { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; border-radius: 16px; background: #eef5f1; padding: 11px 12px; }
.lr-card-price span { color: #5d7268; font-size: 10px; font-weight: 800; }
.lr-card-price strong { color: var(--lr-green-dark); font-size: 16px; font-weight: 900; white-space: nowrap; }

.lr-favorite-button {
  position: absolute;
  z-index: 4;
  top: 12px;
  right: 12px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  color: var(--lr-primary);
  font-size: 20px;
  box-shadow: 0 7px 20px rgba(23,63,50,0.18);
  backdrop-filter: blur(8px);
  transition: 0.18s ease;
}

.lr-favorite-button:hover { transform: scale(1.06); }
.lr-favorite-button.is-saved { background: var(--lr-primary); color: white; }

.lr-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 34px;
}

.lr-page-button {
  display: grid;
  min-width: 42px;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--lr-line) !important;
  border-radius: 13px;
  background: white;
  color: var(--lr-ink);
  font-size: 12px;
  font-weight: 900;
}

.lr-page-button:hover { border-color: rgba(228,87,53,0.4) !important; }
.lr-page-button.is-current { border-color: var(--lr-primary) !important; background: var(--lr-primary); color: white; }
.lr-page-button:disabled { cursor: not-allowed; opacity: 0.35; }

.lr-empty {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  border: 1px dashed rgba(23,63,50,0.2);
  border-radius: 28px;
  background: rgba(255,255,255,0.68);
  padding: 30px;
  text-align: center;
}

.lr-empty-icon { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 20px; background: #f8e6dc; font-size: 25px; }
.lr-empty h3 { margin: 16px 0 0; font-size: 19px; font-weight: 900; }
.lr-empty p { max-width: 500px; margin: 9px 0 0; color: var(--lr-muted); font-size: 13px; line-height: 1.7; }

.lr-detail-back {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 7px;
  border-radius: 13px;
  color: var(--lr-green-dark);
  font-size: 13px;
  font-weight: 900;
}

.lr-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid var(--lr-line);
  border-radius: 34px;
  background: white;
  box-shadow: var(--lr-shadow-lg);
}

.lr-detail-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
}

.lr-detail-copy h1 {
  margin: 13px 0 0;
  color: var(--lr-ink);
  font-size: clamp(2rem, 4.2vw, 4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.058em;
}

.lr-detail-description { margin: 17px 0 0; color: var(--lr-muted); font-size: 15px; line-height: 1.75; }
.lr-detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.lr-meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

.lr-meta-pill {
  display: inline-flex;
  min-height: 41px;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--lr-line);
  border-radius: 999px;
  background: white;
  padding: 8px 12px;
  color: #496057;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 5px 16px rgba(31,57,46,0.05);
}

.lr-detail-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 25px;
  border-radius: 20px;
  background: var(--lr-cream);
  padding: 14px;
}

.lr-detail-controls > span { color: var(--lr-text); font-size: 12px; font-weight: 800; }
.lr-counter-compact { width: min(100%, 245px); grid-template-columns: 46px 1fr 46px; background: white; }
.lr-counter-compact button { min-height: 46px; }
.lr-counter-compact .lr-counter-value strong { font-size: 19px; }

.lr-nutrition {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.lr-nutrition-card {
  display: grid;
  min-height: 105px;
  align-content: center;
  border: 1px solid rgba(23,63,50,0.08);
  border-radius: 20px;
  background: white;
  padding: 15px;
  box-shadow: 0 10px 30px rgba(31,57,46,0.055);
}

.lr-nutrition-card b { font-size: 20px; }
.lr-nutrition-card strong { margin-top: 6px; color: var(--lr-ink); font-size: 15px; font-weight: 900; }
.lr-nutrition-card span { margin-top: 2px; color: var(--lr-muted); font-size: 10px; font-weight: 700; }

.lr-ingredients-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(280px, 0.78fr);
  align-items: start;
  gap: 25px;
  margin-top: 38px;
}

.lr-section-title { margin: 4px 0 0; font-size: 25px; font-weight: 900; letter-spacing: -0.035em; }
.lr-ingredient-list { display: grid; gap: 11px; margin: 17px 0 0; padding: 0; list-style: none; }

.lr-ingredient {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--lr-line);
  border-radius: 20px;
  background: white;
  padding: 12px 14px;
  box-shadow: 0 7px 24px rgba(31,57,46,0.04);
}

.lr-ingredient-emoji { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 14px; background: #f6f2ea; font-size: 21px; }
.lr-ingredient-main strong { display: block; font-size: 13px; font-weight: 900; }
.lr-ingredient-main span { display: block; margin-top: 3px; color: var(--lr-muted); font-size: 10px; font-weight: 600; }
.lr-ingredient-qty { text-align: right; }
.lr-ingredient-qty strong { display: block; color: var(--lr-green-dark); font-size: 13px; font-weight: 900; }
.lr-ingredient-qty span { display: block; margin-top: 4px; color: var(--lr-muted); font-size: 9px; }
.lr-live-link { color: var(--lr-primary) !important; text-decoration: underline !important; text-underline-offset: 3px; }

.lr-basket {
  position: sticky;
  top: 98px;
  border-radius: 28px;
  background: var(--lr-ink);
  padding: 24px;
  color: white;
  box-shadow: 0 20px 50px rgba(23,63,50,0.2);
}

body.admin-bar .lr-basket { top: 130px; }
.lr-basket-label { color: var(--lr-yellow); font-size: 10px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.lr-basket-total { display: block; margin-top: 11px; font-size: 38px; font-weight: 900; letter-spacing: -0.05em; }
.lr-basket-person { display: block; margin-top: 3px; color: rgba(255,255,255,0.7); font-size: 12px; font-weight: 600; }
.lr-basket-note { margin: 16px 0 0; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 15px; color: rgba(255,255,255,0.62); font-size: 10px; line-height: 1.65; }
.lr-basket-highlight { margin-top: 14px; border-radius: 16px; background: var(--lr-yellow); padding: 12px; color: var(--lr-ink); font-size: 11px; font-weight: 800; }

.lr-instructions {
  margin-top: 36px;
  border: 1px solid var(--lr-line);
  border-radius: 30px;
  background: white;
  padding: 30px;
  box-shadow: 0 14px 42px rgba(31,57,46,0.06);
}

.lr-steps { display: grid; gap: 19px; margin: 24px 0 0; padding: 0; list-style: none; }
.lr-step { display: grid; grid-template-columns: 46px 1fr; align-items: start; gap: 14px; }
.lr-step-index { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 15px; background: #f8e6dc; color: #b44027; font-size: 13px; font-weight: 900; }
.lr-step p { margin: 3px 0 0; color: var(--lr-text); font-size: 14px; line-height: 1.85; }

.lr-equipment-tags {
  margin-top: 20px;
  border: 1px solid var(--lr-line);
  border-radius: 24px;
  background: var(--lr-cream);
  padding: 20px;
}

.lr-equipment-tags h2 { margin: 0; font-size: 15px; font-weight: 900; }
.lr-equipment-tags .lr-chips { margin-top: 12px; }
.lr-equipment-tag { border-radius: 999px; background: white; padding: 8px 12px; color: var(--lr-text); font-size: 12px; font-weight: 800; box-shadow: 0 4px 12px rgba(31,57,46,0.04); }

.lr-favorites-section { margin-top: 42px; }
.lr-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 13px; }
.lr-section-head h2 { margin: 4px 0 0; font-size: 24px; font-weight: 900; letter-spacing: -0.03em; }

.lr-custom-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  align-items: start;
  gap: 24px;
  margin-top: 50px;
}

.lr-recipe-form {
  border-radius: 28px;
  background: var(--lr-ink);
  padding: 28px;
  color: white;
  box-shadow: 0 20px 50px rgba(23,63,50,0.17);
}

.lr-recipe-form h2 { margin: 4px 0 0; font-size: 24px; font-weight: 900; }
.lr-form-group { margin-top: 20px; }
.lr-form-group label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 800; }
.lr-input,
.lr-textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  background: white;
  padding: 13px 14px;
  color: var(--lr-ink);
  outline: 0;
}

.lr-input { min-height: 49px; }
.lr-textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.lr-input:focus,
.lr-textarea:focus { border-color: var(--lr-yellow); box-shadow: 0 0 0 4px rgba(240,199,107,0.2); }
.lr-form-error { margin: 15px 0 0; border-radius: 14px; background: #fff1ea; padding: 11px 13px; color: #9f3e26; font-size: 12px; font-weight: 800; line-height: 1.55; }

.lr-manual-list { display: grid; gap: 14px; margin-top: 18px; }
.lr-manual-card { position: relative; border: 1px solid var(--lr-line); border-radius: 23px; background: white; padding: 21px 64px 21px 21px; box-shadow: 0 10px 30px rgba(35,59,49,0.06); }
.lr-manual-card h3 { margin: 0; font-size: 17px; font-weight: 900; }
.lr-manual-meta { margin: 4px 0 0; color: var(--lr-primary); font-size: 10px; font-weight: 900; }
.lr-manual-ingredients { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 14px; margin: 14px 0 0; padding: 0; list-style: none; }
.lr-manual-ingredients li { color: var(--lr-text); font-size: 12px; line-height: 1.6; }
.lr-manual-instructions { margin-top: 17px; border-top: 1px solid var(--lr-line); padding-top: 16px; }
.lr-manual-instructions h4 { margin: 0; font-size: 13px; font-weight: 900; }
.lr-manual-instructions ol { display: grid; gap: 9px; margin: 11px 0 0; padding-left: 21px; }
.lr-manual-instructions li { color: var(--lr-text); font-size: 12px; line-height: 1.7; }
.lr-delete { position: absolute; top: 14px; right: 14px; display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: #fff1ea; color: #c4482c; font-size: 17px; }
.lr-delete:hover { background: #f8ddd1; }

.lr-toast {
  position: fixed;
  z-index: 2000;
  right: 18px;
  bottom: 18px;
  max-width: min(360px, calc(100vw - 36px));
  border-radius: 16px;
  background: var(--lr-ink);
  padding: 13px 16px;
  color: white;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 16px 45px rgba(23,63,50,0.25);
  animation: lr-toast-in 0.22s ease both;
}

@keyframes lr-toast-in { from { opacity: 0; transform: translateY(8px); } }

.lr-boot {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: var(--lr-ink);
}

.lr-boot-pot { font-size: 42px; animation: lr-pot 1.2s ease-in-out infinite; }
@keyframes lr-pot { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }
.lr-noscript { margin: 20px; border-radius: 16px; background: #fff1ea; padding: 18px; color: #9f3e26; text-align: center; }
.lr-error { width: min(100% - 32px, 680px); margin: 80px auto; border: 1px solid rgba(200,58,49,0.2); border-radius: 24px; background: white; padding: 28px; text-align: center; box-shadow: var(--lr-shadow); }
.lr-error h1 { margin: 0; font-size: 24px; }
.lr-error p { color: var(--lr-muted); line-height: 1.7; }

@media (max-width: 1050px) {
  .lr-home-grid,
  .lr-custom-grid { grid-template-columns: 1fr; }
  .lr-panel-sticky { position: static; }
  .lr-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lr-detail-hero { grid-template-columns: 1fr; }
  .lr-recipe-image-hero { min-height: 420px; }
  .lr-detail-copy { padding: 34px; }
}

@media (max-width: 782px) {
  body.admin-bar .lr-header { top: 46px; }
  .lr-ingredients-layout { grid-template-columns: 1fr; }
  .lr-basket { position: static; }
  .lr-nutrition { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .lr-container { width: min(100% - 24px, 1240px); }
  .lr-page { padding-block: 26px 74px; }
  .lr-header-inner { height: 68px; }
  .lr-brand-symbol { width: 39px; height: 39px; border-radius: 13px; }
  .lr-brand-copy strong { font-size: 16px; }
  .lr-brand-copy span { display: none; }
  .lr-favorites-link { min-height: 40px; padding-inline: 13px; }
  .lr-favorites-link .lr-fav-text { display: none; }
  .lr-title { margin-top: 12px; font-size: clamp(2rem, 10.5vw, 3.2rem); }
  .lr-lead { font-size: 15px; line-height: 1.65; }
  .lr-home-grid { margin-top: 27px; }
  .lr-panel { border-radius: 23px; padding: 17px; }
  .lr-stores { gap: 8px; }
  .lr-store { min-height: 85px; border-radius: 15px; padding-inline: 4px; }
  .lr-store-logo { width: 57px; }
  .lr-store-name { font-size: 10px; }
  .lr-equipment-name { display: none; }
  .lr-equipment-plus { width: 25px; height: 25px; font-size: 14px; }
  .lr-summary-bar { align-items: stretch; }
  .lr-summary-bar .lr-button { width: 100%; }
  .lr-results-tools { grid-template-columns: 1fr; }
  .lr-results-tools .lr-button { width: 100%; }
  .lr-results-meta { align-items: flex-start; flex-direction: column; }
  .lr-card-grid { grid-template-columns: 1fr; gap: 15px; }
  .lr-card { border-radius: 21px; }
  .lr-recipe-image-square { aspect-ratio: 16 / 10; }
  .lr-detail-hero { border-radius: 25px; }
  .lr-recipe-image-hero { min-height: 300px; }
  .lr-detail-copy { padding: 23px 18px 25px; }
  .lr-detail-copy h1 { font-size: clamp(1.9rem, 10vw, 3rem); }
  .lr-detail-controls { align-items: stretch; flex-direction: column; }
  .lr-counter-compact { width: 100%; }
  .lr-nutrition { gap: 9px; }
  .lr-nutrition-card { min-height: 93px; padding: 12px; }
  .lr-ingredient { grid-template-columns: 42px minmax(0,1fr); }
  .lr-ingredient-qty { grid-column: 2; text-align: left; }
  .lr-instructions { border-radius: 24px; padding: 21px 17px; }
  .lr-step { grid-template-columns: 39px 1fr; gap: 11px; }
  .lr-step-index { width: 39px; height: 39px; border-radius: 13px; }
  .lr-recipe-form { border-radius: 24px; padding: 20px 17px; }
  .lr-manual-ingredients { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lr-app *, .lr-app *::before, .lr-app *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
