:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --border: rgba(15, 23, 42, 0.06);
  --text: #111827;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --danger: #dc2626;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 14px 28px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 12px 24px rgba(15, 23, 42, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #f3f4f6;
  color: var(--text);
  min-height: 100vh;
}

/* HEADER – MOBILE FIRST */

.icc-header {
  padding: 16px 14px 4px;
}

.icc-header-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.icc-wordmark {
  margin: 0 0 6px;
  font-size: 1.6rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.icc-wordmark span {
  color: #2563eb;
  position: relative;
}

.icc-wordmark span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #4f46e5);
  opacity: 0.7;
}

.icc-tagline {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* MAIN CONTAINER */

.icc-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 10px 24px;
}

/* FILTRI – MOBILE FIRST */

.icc-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 12px;
  margin-bottom: 14px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.icc-filters-left,
.icc-filters-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.icc-filter {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.icc-filter label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 3px;
}

.icc-filter input,
.icc-filter select {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 9px 12px;
  font-size: 0.9rem;
  outline: none;
  background: #f9fafb;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease;
}

.icc-filter input:focus,
.icc-filter select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
  background: #ffffff;
}

.icc-filters-right {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding-top: 8px;
}

.icc-filters-right .icc-btn {
  width: 100%;
}

/* BOTTONI */

.icc-btn {
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 9px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.icc-btn.primary {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.4);
}

.icc-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.45);
}

.icc-btn.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.icc-btn.ghost:hover {
  background: #f9fafb;
}

.icc-btn.small {
  font-size: 0.85rem;
  padding: 7px 14px;
}

/* STATO / ERRORI */

.icc-status {
  margin: 0 2px 4px;
  font-size: 0.82rem;
  color: var(--muted);
}

.icc-error {
  margin: 0 2px 12px;
  font-size: 0.85rem;
  color: var(--danger);
}

/* GRID PRODOTTI – MOBILE FIRST */

.icc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* CARD PRODOTTO */

.icc-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s;
}

.icc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
  border-color: rgba(37, 99, 235, 0.3);
}

.icc-card-thumb {
  width: 100%;
  padding: 10px 10px 0;
}

.icc-card-thumb img {
  width: 100%;
  height: 170px;
  object-fit: contain;
  display: block;
  border-radius: var(--radius-md);
  background: #f3f4f6;
}

.icc-card-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.icc-card-title {
  font-size: 0.93rem;
  font-weight: 600;
  margin: 0;
}

.icc-card-category {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.icc-card-desc {
  margin: 4px 0;
  font-size: 0.83rem;
  color: #4b5563;
}

.icc-card-footer {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.icc-card-price {
  font-weight: 600;
  font-size: 0.9rem;
}

.icc-card-price--na {
  color: var(--muted);
}

/* FOOTER */

.icc-footer {
  margin-top: 18px;
  padding: 10px 14px 16px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* BREAKPOINT: TABLET */

@media (min-width: 640px) {
  .icc-main {
    padding: 14px 16px 28px;
  }

  .icc-filters {
    padding: 14px 16px;
  }

  .icc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

/* BREAKPOINT: DESKTOP */

@media (min-width: 960px) {
  .icc-header {
    padding: 28px 16px 8px;
  }

  .icc-wordmark {
    font-size: 2.1rem;
  }

  .icc-main {
    padding: 16px 16px 32px;
  }

  .icc-filters {
    flex-direction: row;
    align-items: flex-end;
  }

  .icc-filters-left,
  .icc-filters-right {
    flex: 1 1 0;
    flex-direction: row;
    align-items: flex-end;
  }

  .icc-filters-right {
    border-top: none;
    padding-top: 0;
    justify-content: flex-end;
  }

  .icc-filters-right .icc-btn {
    width: auto;
  }

  .icc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .icc-card-thumb img {
    height: 190px;
  }
}
