/* Front styles */
.rsh-h2 { font-size: 22px; margin: 0 0 6px; }
.rsh-h3 { font-size: 18px; margin: 14px 0 10px; }
.rsh-muted { color: #666; margin: 0; }

.rsh-simulator, .rsh-filters { border: 1px solid #e5e5e5; border-radius: 14px; padding: 16px; background: #fff; }

.rsh-sim-controls, .rsh-filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-top: 12px; }
.rsh-filter-bar { justify-content: space-between; }

.rsh-filter-group { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }

.rsh-field { display: flex; flex-direction: column; gap: 6px; min-width: 220px; }
.rsh-label { font-size: 12px; color: #444; }
.rsh-select, .rsh-input { border: 1px solid #d1d5db; border-radius: 10px; padding: 10px 12px; background: #fff; min-height: 42px; }

.rsh-btn { border: 1px solid #111; border-radius: 999px; padding: 10px 14px; background: #111; color: #fff; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 42px; }
.rsh-btn:hover { opacity: .9; }
.rsh-btn--secondary { background: #fff; color: #111; }

.rsh-sim-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
@media (max-width: 780px) { .rsh-sim-results { grid-template-columns: 1fr; } .rsh-field { min-width: 100%; } }

.rsh-result-card { border: 1px solid #e5e5e5; border-radius: 14px; padding: 12px; background: #fafafa; }
.rsh-result-title { font-weight: 700; margin-bottom: 8px; }
.rsh-result-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px dashed #e5e5e5; }
.rsh-result-row:first-of-type { border-top: none; }
.rsh-result-label { color: #555; font-size: 13px; }
.rsh-result-value { font-weight: 700; }

.rsh-light { width: 14px; height: 14px; border-radius: 999px; display: inline-block; border: 1px solid rgba(0,0,0,.15); vertical-align: middle; }
.rsh-green { background: #22c55e; }
.rsh-orange { background: #f59e0b; }
.rsh-red { background: #ef4444; }

.rsh-ing-badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 780px) { .rsh-ing-badges { grid-template-columns: 1fr; } }

.rsh-badge { display: flex; gap: 10px; border: 1px solid #e5e5e5; border-radius: 14px; padding: 10px; align-items: center; background: #fff; }
.rsh-badge__img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; border: 1px solid #eee; }
.rsh-badge__img--placeholder { background: #f3f4f6; }
.rsh-badge__name { font-weight: 700; font-size: 14px; line-height: 1.2; }
.rsh-badge__qty { font-size: 12px; color: #555; margin-top: 2px; }

.rsh-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
@media (max-width: 980px) { .rsh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .rsh-grid { grid-template-columns: 1fr; } }

.rsh-card { border: 1px solid #e5e5e5; border-radius: 16px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.rsh-thumb { width: 100%; height: 160px; object-fit: cover; display: block; background: #f3f4f6; }
.rsh-thumb--placeholder { width: 100%; height: 160px; background: #f3f4f6; }
.rsh-card-body { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.rsh-title { margin: 0; font-size: 16px; line-height: 1.2; }

.rsh-lights { display: flex; flex-direction: column; gap: 8px; }
.rsh-light-row { display: flex; align-items: center; gap: 10px; }
.rsh-light-label { width: 58px; font-size: 12px; color: #555; }
.rsh-metric { font-size: 12px; color: #333; font-weight: 700; }

.rsh-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.rsh-pagination { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; }
.rsh-page-btn { border: 1px solid #d1d5db; border-radius: 999px; padding: 8px 12px; background: #fff; cursor: pointer; }
.rsh-page-btn[disabled] { opacity: .5; cursor: not-allowed; }
.rsh-page-info { font-size: 12px; color: #555; }

.rsh-loading, .rsh-empty { padding: 14px; border: 1px dashed #e5e5e5; border-radius: 14px; background: #fafafa; color: #555; }

/* Modal */
.rsh-sim-modal { position: fixed; inset: 0; display: none; z-index: 9999; }
.rsh-sim-modal.is-open { display: block; }
.rsh-sim-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.rsh-sim-modal__panel { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(980px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow: auto; background: #fff; border-radius: 18px; padding: 16px; }
.rsh-sim-modal__close { position: absolute; top: 10px; right: 12px; border: none; background: #111; color: #fff; border-radius: 999px; width: 34px; height: 34px; cursor: pointer; font-size: 18px; line-height: 34px; }

/* Term chips (flags/icons) */
.rsh-term-chips-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; margin-bottom: 10px; }
@media (max-width: 780px) { .rsh-term-chips-wrap { grid-template-columns: 1fr; } }
.rsh-term-chips-block { border: 1px solid #e5e5e5; border-radius: 14px; padding: 12px; background: #fafafa; }
.rsh-term-chips-title { font-weight: 700; margin-bottom: 10px; }
.rsh-term-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.rsh-chip { display: inline-flex; gap: 8px; align-items: center; border: 1px solid #d1d5db; background: #fff; border-radius: 999px; padding: 8px 12px; cursor: pointer; }
.rsh-chip:hover { opacity: .9; }
.rsh-chip.is-active { border-color: #111; box-shadow: 0 0 0 2px rgba(17,17,17,.08); }
.rsh-chip__img { width: 18px; height: 18px; border-radius: 999px; object-fit: cover; border: 1px solid #eee; }
.rsh-chip__text { font-size: 13px; }

/* Simulator search field */
.rsh-field--search { min-width: 280px; }

/* Single recipe page */
.rsh-recipe-page { max-width: 1100px; margin: 0 auto; padding: 16px; }
.rsh-recipe-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; align-items: start; }
@media (max-width: 980px) { .rsh-recipe-hero { grid-template-columns: 1fr; } }

.rsh-recipe-main-photo__img { width: 100%; height: auto; border-radius: 18px; display: block; border: 1px solid #e5e5e5; }
.rsh-recipe-gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
@media (max-width: 980px) { .rsh-recipe-gallery { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .rsh-recipe-gallery { grid-template-columns: repeat(3, 1fr); } }
.rsh-recipe-gallery__item img { width: 100%; height: 72px; object-fit: cover; border-radius: 14px; border: 1px solid #e5e5e5; display: block; }

.rsh-recipe-title { margin: 0 0 12px; font-size: 28px; line-height: 1.15; }
.rsh-info-blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 980px) { .rsh-info-blocks { grid-template-columns: 1fr; } }

.rsh-info-block { border: 1px solid #e5e5e5; border-radius: 16px; padding: 12px; background: #fff; }
.rsh-info-block__label { font-size: 12px; color: #555; margin-bottom: 8px; font-weight: 700; }
.rsh-info-block__value { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.rsh-info-icon { width: 22px; height: 22px; border-radius: 999px; object-fit: cover; border: 1px solid #eee; }
.rsh-info-metric { font-size: 13px; color: #111; }
.rsh-info-light .rsh-light { margin-right: 4px; }

.rsh-recipe-sections { margin-top: 18px; display: grid; gap: 16px; }
.rsh-section { border: 1px solid #e5e5e5; border-radius: 18px; padding: 16px; background: #fff; }
.rsh-section__title { margin: 0 0 12px; font-size: 18px; }

.rsh-content { color: #222; line-height: 1.65; }

.rsh-recipe-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 10px; }
.rsh-chip.is-static { cursor: default; }

/* Keep selects for accessibility but hide visually when chips are present */
.rsh-filter-bar select#rsh_filter_season, .rsh-filter-bar select#rsh_filter_country { display: none; }


.rsh-nutrition__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.rsh-nutrition__card{background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:12px;padding:12px;box-shadow:0 1px 3px rgba(0,0,0,.06);}
.rsh-nutrition__cardtitle{font-weight:700;margin-bottom:8px;}
.rsh-nutrition__rows{display:flex;flex-direction:column;gap:6px;}
.rsh-nutrition__row{display:flex;justify-content:space-between;align-items:center;font-size:14px;}
@media (max-width: 640px){.rsh-nutrition__grid{grid-template-columns:1fr;}}
