/* ===== Fresh Maroc Catalog v1.4.6 ===== */
#fmc-catalog { font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; }
.fmc-wrap { max-width: 1200px; margin: 0 auto; padding: 24px; }
.fmc-head { display:flex; flex-wrap:wrap; align-items:end; gap:16px; justify-content:space-between; margin-bottom:16px; }
.fmc-title { font-size: 28px; font-weight: 700; margin: 0; }
.fmc-sub { color:#5b6770; margin: 4px 0 0; }
.fmc-search { position:relative; width: 100%; max-width: 380px; }
.fmc-search input { width:100%; padding:11px 12px; border-radius:10px; border:1px solid #e2e8f0; outline:none; }
.fmc-grid { display:grid; grid-template-columns: repeat(1, minmax(0,1fr)); gap:16px; }
@media (min-width:640px){ .fmc-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width:1024px){ .fmc-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width:1400px){ .fmc-grid{ grid-template-columns: repeat(4, minmax(0,1fr)); } }
.fmc-card { background:#fff; border:1px solid #e5e7eb; border-radius:14px; overflow:hidden; box-shadow:0 1px 2px rgba(0,0,0,.04); transition: box-shadow .2s, transform .2s; cursor:pointer; text-decoration:none; color:inherit; }
.fmc-card:hover { box-shadow:0 8px 20px rgba(0,0,0,.08); transform: translateY(-1px); }
.fmc-imgbox { position:relative; padding-top: 75%; overflow:hidden; }
.fmc-imgbox img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition: transform .35s; }
.fmc-card:hover .fmc-imgbox img { transform: scale(1.04); }
.fmc-body { padding:14px 16px 18px; }
.fmc-name { font-weight:800; margin:2px 0 0; font-size:18px; letter-spacing:.2px; }
.fmc-empty { text-align:center; color:#64748b; padding:40px 0; }

/* Modal layout */
.fmc-modal { position:fixed; inset:0; display:none; align-items:center; justify-content:center; background: rgba(15,23,42,.66); z-index: 99999; }
.fmc-modal[open] { display:flex; }
.fmc-dialog { background:#fff; width:min(1100px, 95vw); max-height: 94vh; border-radius:16px; overflow:hidden; display:grid; grid-template-columns: 1fr; }
@media (min-width: 980px){ .fmc-dialog{ grid-template-columns: 1.3fr 1fr; } }
.fmc-modal-img { max-height: 94vh; object-fit: cover; width: 100%; height: 100%; background:#f8fafc; }

.fmc-panel { padding:24px 24px 26px; overflow:auto; }
.fmc-modal-top { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.fmc-modal-title { font-size:36px; font-weight:800; margin:0 0 12px; letter-spacing:.3px; }
.fmc-logo { height:34px; max-width:180px; object-fit:contain; }

.fmc-section { margin-top:18px; }
.fmc-section .fmc-sec-title { display:flex; align-items:center; gap:10px; font-weight:700; color:#14532d; font-size:18px; margin:0 0 8px; }
.fmc-ico { width:22px; height:22px; }

.fmc-pack-table { width:100%; border-collapse:collapse; }
.fmc-pack-table th { text-align:left; font-weight:700; color:#14532d; border-bottom:3px solid #22c55e; padding:8px 6px; }
.fmc-pack-table td { padding:8px 6px; border-bottom:1px solid #e5e7eb; color:#334155; }

.fmc-month-head { display:grid; grid-template-columns: repeat(12, 1fr); gap:4px; margin-top:10px; }
.fmc-month-head span { text-align:center; font-size:12px; padding:6px 0; background:#fde68a; color:#92400e; border-radius:6px; }
.fmc-month-row { display:grid; grid-template-columns: repeat(12, 1fr); gap:4px; margin-top:6px; }
.fmc-month-cell { height:16px; border-radius:4px; background:#e5e7eb; }
.fmc-month-cell.on { background:#22c55e; }

.fmc-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:18px; }
.fmc-btn { appearance:none; border:none; border-radius:12px; padding:12px 16px; font-weight:700; cursor:pointer; }
.fmc-btn.whatsapp { background:#22c55e; color:#fff; }
.fmc-btn.close { background:#e2e8f0; }
