/* =============================================================================
   assets/css/icons.css — система иконок Drinkit (SVG через CSS mask).
   Иконки — одноцветные, наследуют currentColor. data URI без внешних файлов.
   Использование: <span class="ico" data-ico="menu"></span>
   ========================================================================== */

/* Базовый контейнер иконки */
.ico {
    display: inline-block;
    width: 24px; height: 24px;
    background-color: currentColor;
    -webkit-mask-position: center;
            mask-position: center;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-size: contain;
            mask-size: contain;
    flex: none;
}

/* Каждый data-ico задаёт форму через --svg. SVG нарисованы вручную,
   stroke-width 2, currentColor обнуляем (заливка маской берёт background-color). */
.ico[data-ico="menu"]      { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 19h10M4 12h10M4 5h10' stroke='%23000' stroke-width='2.2' stroke-linecap='round' fill='none'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 19h10M4 12h10M4 5h10' stroke='%23000' stroke-width='2.2' stroke-linecap='round' fill='none'/></svg>"); }

.ico[data-ico="coffee"]    { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 8h13v5a4 4 0 0 1-4 4H8a4 4 0 0 1-4-4V8Z' stroke='%23000' stroke-width='2' fill='none' stroke-linejoin='round'/><path d='M17 9h2.5a2.5 2.5 0 0 1 0 5H17' stroke='%23000' stroke-width='2' fill='none'/><path d='M8 2.5c-.6.8-.6 1.7 0 2.5M12 2.5c-.6.8-.6 1.7 0 2.5' stroke='%23000' stroke-width='1.6' stroke-linecap='round' fill='none'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 8h13v5a4 4 0 0 1-4 4H8a4 4 0 0 1-4-4V8Z' stroke='%23000' stroke-width='2' fill='none' stroke-linejoin='round'/><path d='M17 9h2.5a2.5 2.5 0 0 1 0 5H17' stroke='%23000' stroke-width='2' fill='none'/><path d='M8 2.5c-.6.8-.6 1.7 0 2.5M12 2.5c-.6.8-.6 1.7 0 2.5' stroke='%23000' stroke-width='1.6' stroke-linecap='round' fill='none'/></svg>"); }

.ico[data-ico="orders"]    { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 3h9l3 3v15H6V3Z' stroke='%23000' stroke-width='2' fill='none' stroke-linejoin='round'/><path d='M9 9h5M9 13h5M9 17h3' stroke='%23000' stroke-width='1.8' stroke-linecap='round'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 3h9l3 3v15H6V3Z' stroke='%23000' stroke-width='2' fill='none' stroke-linejoin='round'/><path d='M9 9h5M9 13h5M9 17h3' stroke='%23000' stroke-width='1.8' stroke-linecap='round'/></svg>"); }

.ico[data-ico="profile"]   { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='8' r='4' stroke='%23000' stroke-width='2' fill='none'/><path d='M4 21c0-4 3.5-6 8-6s8 2 8 6' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='8' r='4' stroke='%23000' stroke-width='2' fill='none'/><path d='M4 21c0-4 3.5-6 8-6s8 2 8 6' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round'/></svg>"); }

.ico[data-ico="heart"]     { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 20s-7-4.3-9.3-9C1.3 8 3 4.5 6.2 4.5c2 0 3.2 1.1 3.8 2.2.6-1.1 1.8-2.2 3.8-2.2C20.9 4.5 22.7 8 21.3 11 19 15.7 12 20 12 20Z' fill='%23000'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 20s-7-4.3-9.3-9C1.3 8 3 4.5 6.2 4.5c2 0 3.2 1.1 3.8 2.2.6-1.1 1.8-2.2 3.8-2.2C20.9 4.5 22.7 8 21.3 11 19 15.7 12 20 12 20Z' fill='%23000'/></svg>"); }

.ico[data-ico="heart-o"]   { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 20s-7-4.3-9.3-9C1.3 8 3 4.5 6.2 4.5c2 0 3.2 1.1 3.8 2.2.6-1.1 1.8-2.2 3.8-2.2C20.9 4.5 22.7 8 21.3 11 19 15.7 12 20 12 20Z' stroke='%23000' stroke-width='2' fill='none' stroke-linejoin='round'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 20s-7-4.3-9.3-9C1.3 8 3 4.5 6.2 4.5c2 0 3.2 1.1 3.8 2.2.6-1.1 1.8-2.2 3.8-2.2C20.9 4.5 22.7 8 21.3 11 19 15.7 12 20 12 20Z' stroke='%23000' stroke-width='2' fill='none' stroke-linejoin='round'/></svg>"); }

.ico[data-ico="plus"]      { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 5v14M5 12h14' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 5v14M5 12h14' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/></svg>"); }

.ico[data-ico="minus"]     { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12h14' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12h14' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/></svg>"); }

.ico[data-ico="trash"]     { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 7h14M9 7V5h6v2M6 7l1 13h10l1-13' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 7h14M9 7V5h6v2M6 7l1 13h10l1-13' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }

.ico[data-ico="search"]    { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='11' cy='11' r='6' stroke='%23000' stroke-width='2' fill='none'/><path d='m20 20-4-4' stroke='%23000' stroke-width='2' stroke-linecap='round'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='11' cy='11' r='6' stroke='%23000' stroke-width='2' fill='none'/><path d='m20 20-4-4' stroke='%23000' stroke-width='2' stroke-linecap='round'/></svg>"); }

.ico[data-ico="close"]     { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 6l12 12M18 6 6 18' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 6l12 12M18 6 6 18' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/></svg>"); }

.ico[data-ico="check"]     { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 13l4 4L19 7' stroke='%23000' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 13l4 4L19 7' stroke='%23000' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }

.ico[data-ico="cart"]      { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 4h2l2.2 11.2a1.5 1.5 0 0 0 1.5 1.2h8.4a1.5 1.5 0 0 0 1.5-1.2L21 8H6' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/><circle cx='9' cy='20' r='1.4' fill='%23000'/><circle cx='17' cy='20' r='1.4' fill='%23000'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 4h2l2.2 11.2a1.5 1.5 0 0 0 1.5 1.2h8.4a1.5 1.5 0 0 0 1.5-1.2L21 8H6' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/><circle cx='9' cy='20' r='1.4' fill='%23000'/><circle cx='17' cy='20' r='1.4' fill='%23000'/></svg>"); }

.ico[data-ico="trophy"]    { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 4h10v4a5 5 0 0 1-10 0V4Z' stroke='%23000' stroke-width='2' fill='none' stroke-linejoin='round'/><path d='M7 5H4v2a3 3 0 0 0 3 3M17 5h3v2a3 3 0 0 1-3 3M9 21h6M12 13v8' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 4h10v4a5 5 0 0 1-10 0V4Z' stroke='%23000' stroke-width='2' fill='none' stroke-linejoin='round'/><path d='M7 5H4v2a3 3 0 0 0 3 3M17 5h3v2a3 3 0 0 1-3 3M9 21h6M12 13v8' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round'/></svg>"); }

.ico[data-ico="logout"]    { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M14 4h4a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-4' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round'/><path d='M10 8l4 4-4 4M4 12h10' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M14 4h4a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-4' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round'/><path d='M10 8l4 4-4 4M4 12h10' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }

.ico[data-ico="bell"]      { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 16V11a6 6 0 0 1 12 0v5l1.5 2H4.5L6 16Z' stroke='%23000' stroke-width='2' fill='none' stroke-linejoin='round'/><path d='M10 20a2 2 0 0 0 4 0' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 16V11a6 6 0 0 1 12 0v5l1.5 2H4.5L6 16Z' stroke='%23000' stroke-width='2' fill='none' stroke-linejoin='round'/><path d='M10 20a2 2 0 0 0 4 0' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round'/></svg>"); }

.ico[data-ico="chef"]      { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 14a4 4 0 0 1-1-7.9A4 4 0 0 1 13 4.5 4 4 0 0 1 18 6.1 4 4 0 0 1 17 14H7Z' stroke='%23000' stroke-width='2' fill='none' stroke-linejoin='round'/><path d='M7 14v5h10v-5' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 14a4 4 0 0 1-1-7.9A4 4 0 0 1 13 4.5 4 4 0 0 1 18 6.1 4 4 0 0 1 17 14H7Z' stroke='%23000' stroke-width='2' fill='none' stroke-linejoin='round'/><path d='M7 14v5h10v-5' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round'/></svg>"); }

.ico[data-ico="arrow-left"]{ -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M15 6l-6 6 6 6' stroke='%23000' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M15 6l-6 6 6 6' stroke='%23000' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }

.ico[data-ico="sparkle"]   { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3l1.8 5.2L19 10l-5.2 1.8L12 17l-1.8-5.2L5 10l5.2-1.8L12 3Z' fill='%23000'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3l1.8 5.2L19 10l-5.2 1.8L12 17l-1.8-5.2L5 10l5.2-1.8L12 3Z' fill='%23000'/></svg>"); }

.ico[data-ico="settings"]  { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='3.2' stroke='%23000' stroke-width='2' fill='none'/><path d='M12 2v3M12 19v3M2 12h3M19 12h3M5 5l2 2M17 17l2 2M19 5l-2 2M7 17l-2 2' stroke='%23000' stroke-width='1.8' stroke-linecap='round'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='3.2' stroke='%23000' stroke-width='2' fill='none'/><path d='M12 2v3M12 19v3M2 12h3M19 12h3M5 5l2 2M17 17l2 2M19 5l-2 2M7 17l-2 2' stroke='%23000' stroke-width='1.8' stroke-linecap='round'/></svg>"); }

/* Иконки навигации: сопоставление data-icon (из nav.php) → форма */
.bottom-nav__icon[data-icon="menu"]    { -webkit-mask: var(--ico-menu) center/contain no-repeat; mask: var(--ico-menu) center/contain no-repeat; }
.bottom-nav__icon[data-icon="orders"]  { -webkit-mask: var(--ico-orders) center/contain no-repeat; mask: var(--ico-orders) center/contain no-repeat; }
.bottom-nav__icon[data-icon="profile"] { -webkit-mask: var(--ico-profile) center/contain no-repeat; mask: var(--ico-profile) center/contain no-repeat; }

:root {
    --ico-menu:    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 19h10M4 12h10M4 5h10' stroke='%23000' stroke-width='2.2' stroke-linecap='round' fill='none'/></svg>");
    --ico-orders:  url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 3h9l3 3v15H6V3Z' stroke='%23000' stroke-width='2' fill='none' stroke-linejoin='round'/><path d='M9 9h5M9 13h5M9 17h3' stroke='%23000' stroke-width='1.8' stroke-linecap='round'/></svg>");
    --ico-profile: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='8' r='4' stroke='%23000' stroke-width='2' fill='none'/><path d='M4 21c0-4 3.5-6 8-6s8 2 8 6' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
}
