:root {
  --bg: #0f1211;
  --ink: #f3f4f3;
  --muted: #a8b0ab;
  --panel: #131715;
  --panel-strong: #181d1a;
  --line: rgba(255, 255, 255, 0.1);
  --sea: #2d6e7e;
  --sea-deep: #153c45;
  --gold: #dfb260;
  --gold-dark: #b88d38;
  --gold-glow: rgba(223, 178, 96, 0.2);
  --coral: var(--gold);
  --coral-text: #f1c76f;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  line-height: 1.55;
  background: var(--bg);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
  border-radius: 6px;
}

.site-header,
.breadcrumbs,
main,
footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  padding: 20px 0 0;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.breadcrumbs {
  padding: 14px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.breadcrumbs a {
  text-decoration: none;
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--coral-text);
}

.breadcrumbs [aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

main {
  padding: 20px 0 64px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--coral-text);
  font-size: 0.78rem;
  font-weight: 800;
}

.catalog-intro {
  padding: 28px clamp(18px, 4vw, 34px);
  margin: 0 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(29, 35, 31, 0.98), rgba(16, 21, 18, 0.98));
  box-shadow: var(--shadow);
}

.catalog-intro h1 {
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.1;
  margin: 0.2em 0;
}

.catalog-intro p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 62ch;
}

.confirmation {
  display: inline-block;
  margin-top: 14px !important;
  padding: 10px 16px;
  border-left: 4px solid var(--coral);
  background: rgba(223, 178, 96, 0.1);
  color: var(--ink) !important;
  font-weight: 700;
  border-radius: 0 12px 12px 0;
}

/* Buttons: pill-shaped, matches the site's existing primary CTA */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0b0e0c;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.94rem;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-2px);
  background: #f0c974;
}

.button-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.button-ghost:hover {
  border-color: var(--coral);
  color: var(--coral-text);
}

/* Mobile category disclosure — collapsed by default, only shown under the breakpoint */
.catalog-sidebar-mobile {
  display: none;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.catalog-sidebar-mobile summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 18px;
  font-weight: 800;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.02em;
}

.catalog-sidebar-mobile summary::-webkit-details-marker {
  display: none;
}

.catalog-sidebar-mobile summary::after {
  content: "▾";
  float: right;
  color: var(--coral-text);
}

.catalog-sidebar-mobile[open] summary::after {
  content: "▴";
}

.catalog-sidebar-mobile-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 14px;
}

.catalog-sidebar-mobile-nav .category-link {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 0.86rem;
  text-decoration: none;
  color: var(--ink);
}

.catalog-sidebar-mobile-nav .category-link .category-count {
  color: var(--muted);
  margin-left: 4px;
}

/* Desktop shell: sidebar + main content */
.catalog-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.catalog-sidebar {
  position: sticky;
  top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 150ms ease, color 150ms ease;
}

.category-link:hover {
  background: rgba(223, 178, 96, 0.12);
  color: var(--coral-text);
}

.category-link.is-active,
.category-link[aria-current="true"] {
  background: var(--coral);
  color: #0b0e0c;
}

.category-link.is-active .category-count,
.category-link[aria-current="true"] .category-count {
  color: #0b0e0c;
}

.category-count {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.catalog-main {
  min-width: 0;
}

/* Quick filters */
.catalog-filters {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 4px 4px 14px;
  margin: 0 0 18px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.filter-chip {
  flex: 0 0 auto;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--coral);
  background: var(--panel-strong);
  color: var(--coral-text);
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.filter-chip:hover {
  transform: translateY(-1px);
}

.filter-chip[aria-pressed="true"] {
  background: var(--coral);
  color: #0b0e0c;
}

.catalog-empty {
  padding: 18px 20px;
  margin: 0 0 20px;
  border-radius: 16px;
  border: 1px dashed var(--line);
  background: var(--panel);
  color: var(--muted);
  font-weight: 600;
}

/* Category sections + product grid */
.catalog-category {
  margin: 0 0 40px;
  scroll-margin-top: 20px;
}

.catalog-category-title {
  font-family: "Oswald", sans-serif;
  font-size: 1.4rem;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
}

.catalog-category-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.catalog-category-toggle::after {
  content: "+";
  color: var(--coral-text);
  font-family: "Manrope", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.catalog-category.is-open .catalog-category-toggle::after {
  content: "−";
}

.catalog-category:not(.is-open) > .products-grid {
  display: none;
}

.products-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
}

.product-card[hidden] {
  display: none;
}

.product-card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, rgba(223, 178, 96, 0.2), rgba(45, 110, 126, 0.2));
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(223, 178, 96, 0.48);
}

.product-card-placeholder svg {
  width: 46%;
  height: 46%;
}

.product-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
}

.product-card-badge-new {
  background: var(--sea-deep);
}

.product-card-badge-sale {
  background: var(--coral);
  color: #0b0e0c;
}

.product-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
  flex: 1;
}

.product-card-title {
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.35;
}

.product-card-title:hover {
  color: var(--coral-text);
}

.product-card-price {
  margin: 2px 0 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--coral-text);
}

.product-card-availability {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.product-card-action {
  margin-top: 8px;
  align-self: flex-start;
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.86rem;
}

footer {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 40px;
  color: var(--muted);
}

footer a {
  color: var(--coral-text);
  text-decoration: none;
  font-weight: 700;
}

/* Tablet: sidebar becomes the collapsed disclosure above the grid */
@media (max-width: 960px) {
  .catalog-sidebar {
    display: none;
  }

  .catalog-sidebar-mobile {
    display: block;
  }

  .catalog-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 600px) {
  .site-header-inner {
    flex-wrap: wrap;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }

  .catalog-category-title {
    font-size: 1.2rem;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
