/* chambelli.com — same palette as the Chambelli product and checkout pages (no yellow text).
   Contrast: white on #cc0000 5.9:1, ink #26215c on #f6f5ff 13:1, muted #55526e on white 7.4:1,
   white on accent #534ab7 6.9:1. Check: https://webaim.org/resources/contrastchecker/ */
:root {
  --red: #cc0000;
  --ink: #26215c;
  --muted: #55526e;
  --accent: #534ab7;
  --accent-dark: #3c3489;
  --bg: #f6f5ff;
  --card: #ffffff;
  --line: #dcd9f5;
  --sale: #993c1d;
  --radius: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
a {
  color: var(--accent-dark);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
header.top {
  background: var(--red);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.brand {
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.search {
  flex: 1 1 260px;
  display: flex;
  max-width: 640px;
}
.search input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px 0 0 10px;
  font-size: 1rem;
}
.search button {
  border: 0;
  padding: 0 16px;
  border-radius: 0 10px 10px 0;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.market select {
  padding: 9px 10px;
  border-radius: 10px;
  border: 0;
  font-size: 0.95rem;
  color: var(--ink);
}
nav.depts {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
nav.depts::-webkit-scrollbar {
  display: none;
}
nav.depts a {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
}
nav.depts a[aria-current="page"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 16px 40px;
}
.status {
  color: var(--muted);
  padding: 30px 0;
  text-align: center;
}
.hero {
  background: linear-gradient(120deg, var(--accent-dark), var(--accent));
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 22px;
}
.hero h1 {
  margin: 0 0 6px;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}
.hero p {
  margin: 0;
  opacity: 0.95;
}
h2 {
  margin: 26px 0 12px;
}
.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 14px;
}
.dept {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.dept:hover,
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(38, 33, 92, 0.12);
}
.dept img,
.card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
  display: block;
}
.dname {
  font-weight: 700;
  padding: 10px 12px 0;
}
.dcount {
  color: var(--muted);
  font-size: 0.85rem;
  padding: 0 12px 12px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
@media (max-width: 520px) {
  .grid,
  .dept-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.card .title {
  padding: 10px 12px 4px;
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
}
.card .price {
  padding: 0 12px 12px;
  font-weight: 800;
}
.card .price s {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.85rem;
}
.crumbs {
  margin: 0 0 6px;
  font-size: 0.9rem;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 14px;
  color: var(--muted);
}
.toolbar select {
  margin-left: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.more {
  text-align: center;
  margin-top: 22px;
}
.more button {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 12px 28px;
  font-weight: 700;
  cursor: pointer;
}
.other-markets li {
  margin: 6px 0;
}
footer.foot {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 20px 16px;
  text-align: center;
}
footer .small {
  color: var(--muted);
  font-size: 0.85rem;
}
.page {
  max-width: 820px;
}
