/* ============================================================
   YUZU YATAI — line icons (1.6 stroke, currentColor)
   ============================================================ */
function Icon({
  d,
  size = 22,
  fill,
  stroke = "currentColor",
  sw = 1.6,
  children,
  vb = "0 0 24 24",
  style,
}) {
  return (
    <svg
      width={size}
      height={size}
      viewBox={vb}
      fill={fill || "none"}
      stroke={stroke}
      strokeWidth={sw}
      strokeLinecap="round"
      strokeLinejoin="round"
      style={{ display: "block", ...style }}
    >
      {d ? <path d={d} /> : children}
    </svg>
  );
}
const IcBag = (p) => (
  <Icon
    {...p}
    d="M6 8h12l-.8 12a1.5 1.5 0 0 1-1.5 1.4H8.3a1.5 1.5 0 0 1-1.5-1.4L6 8Zm3 0V6.5a3 3 0 0 1 6 0V8"
  />
);
const IcPlus = (p) => <Icon {...p} d="M12 5v14M5 12h14" />;
const IcMinus = (p) => <Icon {...p} d="M5 12h14" />;
const IcClose = (p) => <Icon {...p} d="M6 6l12 12M18 6L6 18" />;
const IcMenu = (p) => <Icon {...p} d="M4 7h16M4 12h16M4 17h16" />;
const IcArrow = (p) => <Icon {...p} d="M5 12h14M13 6l6 6-6 6" />;
const IcChevD = (p) => <Icon {...p} d="M6 9l6 6 6-6" />;
const IcPin = (p) => (
  <Icon {...p}>
    <path d="M12 21s7-5.6 7-11a7 7 0 1 0-14 0c0 5.4 7 11 7 11Z" />
    <circle cx="12" cy="10" r="2.6" />
  </Icon>
);
const IcClock = (p) => (
  <Icon {...p}>
    <circle cx="12" cy="12" r="8.5" />
    <path d="M12 7.5V12l3 1.8" />
  </Icon>
);
const IcPhone = (p) => (
  <Icon
    {...p}
    d="M6.5 4h3l1.4 4-2 1.4a11 11 0 0 0 5.2 5.2l1.4-2 4 1.4v3a2 2 0 0 1-2.2 2A16 16 0 0 1 4.5 6.2 2 2 0 0 1 6.5 4Z"
  />
);
const IcInsta = (p) => (
  <Icon {...p}>
    <rect x="4" y="4" width="16" height="16" rx="5" />
    <circle cx="12" cy="12" r="3.6" />
    <circle cx="17" cy="7" r="1" fill="currentColor" stroke="none" />
  </Icon>
);
const IcWhats = (p) => (
  <Icon
    {...p}
    d="M5 19l1.2-3.4A7 7 0 1 1 9 18.3L5 19Zm5-9.2c.2 1.2 1.8 2.8 3 3l.9-.9 1.6.7-.2 1.3c-1.9.5-4.8-1.9-5.3-4l1.2-1 .6 1.6-.9.9Z"
  />
);
const IcStar = (p) => (
  <Icon
    {...p}
    fill="currentColor"
    stroke="none"
    d="M12 3.5l2.5 5.2 5.7.6-4.3 3.8 1.3 5.6L12 21.5 6.8 18.3l1.3-5.6L3.8 8.9l5.7-.6L12 3.5Z"
  />
);
const IcLeaf = (p) => (
  <Icon {...p}>
    <path d="M20 4S8 4 6 12c-1 4 2 8 6 7 6-1.5 8-15 8-15Z" />
    <path d="M6 19c2-6 5-9 10-12" />
  </Icon>
);
const IcFlame = (p) => (
  <Icon
    {...p}
    d="M12 3c1 3-2 4-2 7 0 1.6 1 2.6 2 2.6S16 11 14 8c3 1.5 4 4 4 6a6 6 0 0 1-12 0c0-3 2.5-4 3-7 .4-2 3-2 3-4Z"
  />
);
const IcBike = (p) => (
  <Icon {...p}>
    <circle cx="6" cy="17" r="3" />
    <circle cx="18" cy="17" r="3" />
    <path d="M6 17l4-7h5l3 7M9 7h3" />
  </Icon>
);
const IcStore = (p) => (
  <Icon {...p}>
    <path d="M4 9l1-4h14l1 4M4 9v10h16V9M4 9h16" />
    <path d="M4 9a2 2 0 0 0 4 0 2 2 0 0 0 4 0 2 2 0 0 0 4 0 2 2 0 0 0 4 0" />
  </Icon>
);
const IcSmile = (p) => (
  <Icon {...p}>
    <circle cx="12" cy="12" r="8.5" />
    <path d="M8.5 14a4 4 0 0 0 7 0" />
    <circle cx="9" cy="10" r=".6" fill="currentColor" />
    <circle cx="15" cy="10" r=".6" fill="currentColor" />
  </Icon>
);
const IcCheck = (p) => <Icon {...p} d="M5 12.5l4.5 4.5L19 6.5" />;
const IcMail = (p) => (
  <Icon {...p}>
    <rect x="3.5" y="5.5" width="17" height="13" rx="2.5" />
    <path d="M4 7l8 6 8-6" />
  </Icon>
);
const IcCart = (p) => (
  <Icon {...p}>
    <path d="M2.5 4h2.1l1 4m0 0 1.5 7.2a1.6 1.6 0 0 0 1.56 1.27h7.86a1.6 1.6 0 0 0 1.56-1.24L21 8H5.6Z" />
    <circle cx="9.5" cy="20" r="1.5" fill="currentColor" stroke="none" />
    <circle cx="17.5" cy="20" r="1.5" fill="currentColor" stroke="none" />
  </Icon>
);
const IcGrid = (p) => (
  <Icon {...p}>
    <rect x="4" y="4" width="7" height="7" rx="1.6" />
    <rect x="13" y="4" width="7" height="7" rx="1.6" />
    <rect x="4" y="13" width="7" height="7" rx="1.6" />
    <rect x="13" y="13" width="7" height="7" rx="1.6" />
  </Icon>
);
const IcRows = (p) => (
  <Icon {...p}>
    <rect x="4" y="5" width="16" height="5.5" rx="1.6" />
    <rect x="4" y="13.5" width="16" height="5.5" rx="1.6" />
  </Icon>
);

Object.assign(window, {
  Icon,
  IcBag,
  IcPlus,
  IcMinus,
  IcClose,
  IcMenu,
  IcArrow,
  IcChevD,
  IcPin,
  IcClock,
  IcPhone,
  IcInsta,
  IcWhats,
  IcStar,
  IcLeaf,
  IcFlame,
  IcBike,
  IcStore,
  IcSmile,
  IcCheck,
  IcMail,
  IcCart,
  IcGrid,
  IcRows,
});
