/* Catalogue screens. Logical properties only (RTL-safe). */

.nav-heading {
    margin: 1rem .7rem .35rem;
    font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: #7c8597;
}
[dir="rtl"] .nav-heading { letter-spacing: 0; font-size: .8rem; }

.icon--tag { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12V4a1 1 0 0 1 1-1h8l9 9-9 9z'/%3E%3Ccircle cx='8' cy='8' r='1.5'/%3E%3C/svg%3E"); }
.icon--menu { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='2'/%3E%3Cpath d='M9 8h6M9 12h6M9 16h4'/%3E%3C/svg%3E"); }
.icon--folder { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6a1 1 0 0 1 1-1h5l2 2h9a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E"); }
.icon--grid { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E"); }
.icon--sliders { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h10M18 6h2M4 12h4M12 12h8M4 18h12'/%3E%3Ccircle cx='16' cy='6' r='2'/%3E%3Ccircle cx='10' cy='12' r='2'/%3E%3Ccircle cx='18' cy='18' r='2'/%3E%3C/svg%3E"); }
.icon--coins { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='9' cy='7' rx='6' ry='3'/%3E%3Cpath d='M3 7v5c0 1.7 2.7 3 6 3s6-1.3 6-3V7M9 15v2c0 1.7 2.7 3 6 3s6-1.3 6-3v-5c0-1.7-2.7-3-6-3'/%3E%3C/svg%3E"); }
.icon--cog { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9l2.1 2.1M17 17l2.1 2.1M4.9 19.1 7 17M17 7l2.1-2.1'/%3E%3C/svg%3E"); }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.25rem; align-items: start; }
.stack-xs { display: flex; flex-direction: column; gap: .35rem; }
.small { font-size: .85rem; }
.section-title { font-size: 1.15rem; margin-block-start: .5rem; }

textarea {
    font: inherit; color: inherit; inline-size: 100%;
    padding: .55rem .7rem; background: var(--surface);
    border: 1px solid #cfd4dc; border-radius: var(--radius-sm); resize: vertical;
}
input[type="file"] { font: inherit; }

/* Translated field: FR / ES / AR side by side */
.tfield { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .35rem; min-inline-size: 0; }
.tfield legend { font-weight: 600; font-size: .9rem; padding: 0; margin-block-end: .3rem; }
.tfield__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.tfield__item { display: flex; align-items: stretch; border: 1px solid #cfd4dc; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.tfield__item:focus-within { outline: 3px solid rgba(194, 65, 12, .25); border-color: var(--primary); }
.tfield__lang { display: grid; place-items: center; padding-inline: .55rem; background: var(--surface-2); color: var(--muted); font-size: .75rem; font-weight: 700; border-inline-end: 1px solid #cfd4dc; }
.tfield__item input, .tfield__item textarea { border: 0; border-radius: 0; outline: none !important; }
.tfield.has-error .tfield__item { border-color: var(--danger); }

.lang-pill { display: inline-block; font-size: .7rem; font-weight: 700; padding: .05rem .35rem; border-radius: 4px; background: var(--ok-soft); color: var(--ok); margin-inline-end: .2rem; }
.lang-pill.is-missing { background: var(--surface-2); color: #b0b7c3; }

.thumb { inline-size: 36px; block-size: 36px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--surface-2); }
.thumb--lg { inline-size: 88px; block-size: 88px; border-radius: 12px; }
.swatch { inline-size: 36px; block-size: 36px; border-radius: 8px; flex-shrink: 0; background: #cbd5e1; }
.name-cell { display: flex; align-items: center; gap: .65rem; }
.name-cell a { color: inherit; text-decoration: none; }
.name-cell a:hover { color: var(--primary); }
.depth-1 { padding-inline-start: 1.75rem; }
.depth-2 { padding-inline-start: 3.5rem; }
.depth-3, .depth-4, .depth-5 { padding-inline-start: 5.25rem; }
.image-field { display: flex; align-items: center; gap: 1rem; }

.tabs { display: flex; flex-wrap: wrap; gap: .25rem; margin-block-end: 1rem; border-block-end: 1px solid var(--border); }
.tab { padding: .5rem .85rem; color: var(--muted); text-decoration: none; border-block-end: 2px solid transparent; margin-block-end: -1px; font-weight: 600; font-size: .9rem; }
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--primary); border-color: var(--primary); }

.table--compact th, .table--compact td { padding: .45rem .75rem; }
.table-scroll { overflow-x: auto; }
.price-table th[scope="row"] { font-weight: 600; text-transform: none; letter-spacing: 0; font-size: .9rem; color: var(--text); background: transparent; }
.group-row th { background: var(--surface-2); color: var(--text); font-size: .85rem; text-transform: none; letter-spacing: 0; }
.money-input { inline-size: 110px !important; text-align: end; font-variant-numeric: tabular-nums; }
.money-input--sm { inline-size: 90px !important; }
.money-input.is-changed { border-color: var(--primary); background: var(--primary-soft); }

.sticky-actions { position: sticky; inset-block-end: 0; background: linear-gradient(transparent, var(--bg) 30%); padding-block: 1rem .5rem; z-index: 2; }

.checklist-filter { max-inline-size: 320px; margin-block-end: .5rem; }

.dish-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: .5rem 1.25rem; }
.dish { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .35rem .5rem; border-radius: var(--radius-sm); }
.dish:hover { background: var(--surface-2); }
.course { padding: 0; }
.course > form, .course > .course__delete { padding: 0 1.25rem 1.25rem; }
.course__summary { list-style: none; cursor: pointer; padding: 1rem 1.25rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.course__summary::-webkit-details-marker { display: none; }
.course[open] .course__summary { border-block-end: 1px solid var(--border); margin-block-end: 1rem; }

.badge-button { border: 0; font: inherit; font-size: .75rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); cursor: pointer; }
.badge-button.badge--ok { background: var(--ok-soft); color: var(--ok); }
.is-dimmed td { opacity: .6; }
.is-hidden-by-filter { display: none !important; }

@media (max-width: 900px) {
    .grid-3, .tfield__grid { grid-template-columns: 1fr; }
}

input[type="date"] { font: inherit; padding: .45rem .6rem; border: 1px solid #cfd4dc; border-radius: var(--radius-sm); background: var(--surface); }
.filters { justify-content: flex-start; }
.filters label { display: inline-flex; align-items: center; gap: .4rem; }
.badge--danger { background: var(--danger-soft); color: var(--danger); }
.icon--register { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='10' width='18' height='10' rx='2'/%3E%3Cpath d='M7 10V5h10v5M7 14h2M11 14h2M15 14h2M7 17h10'/%3E%3C/svg%3E"); }
.icon--receipt { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18l-3-2-3 2-3-2-3 2z'/%3E%3Cpath d='M9 8h6M9 12h6M9 16h3'/%3E%3C/svg%3E"); }

/* Product page (Ágora layout): product on the left, button and print style on the right */
.pf-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1rem; align-items: start; }
.pf-grid--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pf-side { min-inline-size: 0; }
.pf-side .tfield__grid { grid-template-columns: 1fr; }
.pf-actions { display: flex; justify-content: center; gap: .6rem; }
.pf-actions .btn { min-inline-size: 9rem; }
@media (max-width: 1000px) {
    .pf-grid, .pf-grid--even { grid-template-columns: minmax(0, 1fr); }
    .pf-side .tfield__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
