:root {
  --bg-body: #fff;
  --bg-card: #ffffff;
  --bg-hover: #eef1ec;
  --bg-sidebar: #ffffff;
  --text-primary: #1a2332;
  --text-secondary: #3d4a5c;
  --text-muted: #8592a3;
  --border-color: #e4e1d8;
  --border-light: #ebe8de;
  --border-input: #d7d3c6;
  --accent-color: #2d6a4f;
  --accent-dark: #1f4d38;
  --accent-tint: #eaf2ee;
  --danger-color: #a0442c;
  --danger-tint: #f7ece8;
  --text-white: #fff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0 !important;
}

body {
  font-family: 'DM Mono', monospace;
  background: var(--bg-body);
  color: var(--text-primary);
  min-height: 100vh;
}

a {
  color: inherit;
}

.shop-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.75rem 2rem 3rem;
}

.breadcrumb {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.breadcrumb span {
  color: var(--text-primary);
}

.page-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.page-heading h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.page-heading .heading-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.shop-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: start;
}

.filters-sidebar {
  position: sticky;
  top: 5.2rem;
  background: var(--bg-sidebar);
  padding: 1.25rem 1.25rem 0.5rem;
}

.filters-sidebar h2 {
  font-size: 20px;
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.filters-sidebar .btn-apply-wrap {
  padding: 1.1rem 0 1.25rem;
}

.filter-accordion+.filter-accordion {
  margin-top: 0;
}

.filter-accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.filter-accordion summary::-webkit-details-marker {
  display: none;
}

.filter-accordion summary .toggle-icon {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}

.filter-accordion summary .toggle-icon::before {
  content: '+';
}

.filter-accordion[open] summary .toggle-icon::before {
  content: '\2212';
}

.filter-accordion summary .active-count {
  margin-right: auto;
  margin-left: 0.5rem;
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--accent-color);
  text-transform: none;
  letter-spacing: 0;
}

.accordion-body {
  padding: 0.1rem 0 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.accordion-body.scrollable {
  max-height: 190px;
  overflow-y: auto;
  padding-right: 0.4rem;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.filter-option:hover {
  color: var(--text-primary);
}

.filter-option.is-active {
  color: var(--accent-color);
  font-weight: 500;
}

.filter-option input[type="radio"] {
  accent-color: var(--accent-color);
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  cursor: pointer;
}

.price-range {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.price-range input {
  width: 100%;
  font-family: inherit;
  font-size: 0.72rem;
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--border-input);
  background: var(--bg-card);
  color: var(--text-primary);
}

.price-range input:focus {
  outline: none;
  border-color: var(--accent-color);
}

.price-range span {
  color: var(--text-muted);
  font-size: 0.68rem;
}

.filters-sidebar .btn-apply {
  width: 100%;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.65rem 1rem;
  margin-top: 0.4rem;
  background: var(--accent-color);
  color: var(--text-white);
  border: none;
  cursor: pointer;
}

.filters-sidebar .btn-apply:hover {
  background: var(--accent-dark);
}

.filters-sidebar .clear-link {
  display: block;
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.68rem;
  color: var(--text-muted);
  text-decoration: underline;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.result-summary {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.result-summary strong {
  color: var(--text-primary);
  font-weight: 500;
}

.live-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 260px;
  max-width: 100%;
}

.live-search svg {
  position: absolute;
  left: 0.65rem;
  width: 13px;
  height: 13px;
  color: var(--text-muted);
  pointer-events: none;
}

.live-search input {
  width: 100%;
  font-family: inherit;
  font-size: 0.72rem;
  padding: 0.5rem 0.6rem 0.5rem 1.85rem;
  border: 1px solid var(--border-input);
  background: var(--bg-card);
  color: var(--text-primary);
}

.live-search input:focus {
  outline: none;
  border-color: var(--accent-color);
}

.live-search .live-clear {
  position: absolute;
  right: 0.5rem;
  font-size: 0.85rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.15rem;
  display: none;
}

.live-search.has-value .live-clear {
  display: block;
}

.live-no-match {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
  padding: 4rem 1.5rem;
  border: 1px dashed var(--border-input);
  background: var(--bg-card);
}

.live-no-match.is-visible {
  display: flex;
}

.live-no-match-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-tint);
  color: var(--accent-color);
}

.live-no-match-icon svg {
  width: 20px;
  height: 20px;
}

.live-no-match-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.live-no-match-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 320px;
}

.live-no-match-sub strong {
  color: var(--text-secondary);
  font-weight: 500;
}

.live-no-match-sub button {
  font-family: inherit;
  font-size: inherit;
  color: var(--accent-color);
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
}

.live-no-match-sub button:hover {
  color: var(--accent-dark);
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.4rem;
}

@media(max-width:768px){
  .item-grid {
    grid-template-columns: repeat(1,1fr);
  }
}

.item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.item-card:hover {
  border-color: var(--border-input);
  box-shadow: 0 6px 18px rgba(26, 35, 50, 0.06);
}

.item-image {
  width: 100%;
  height: 230px;
  background: linear-gradient(160deg, var(--accent-tint), var(--bg-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-image svg {
  width: 100px;
  height: 100px;
  color: var(--accent-color);
  opacity: 0.85;
}

.item-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--text-primary);
  color: var(--text-white);
  font-size: 0.58rem;
  padding: 0.25rem 0.55rem;
  letter-spacing: 0.03em;
}

.item-status {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.94);
  font-size: 0.58rem;
  color: var(--accent-color);
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--border-light);
}

.item-status-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-color);
  flex-shrink: 0;
}

.item-status.status-booked,
.item-status.status-on_service,
.item-status.status-deprecated,
.item-status.status-inactive {
  color: var(--danger-color);
}

.item-status.status-booked .item-status-dot,
.item-status.status-on_service .item-status-dot,
.item-status.status-deprecated .item-status-dot,
.item-status.status-inactive .item-status-dot {
  background: var(--danger-color);
}

.item-body {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1 1 auto;
}

.item-name {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 10px;
}

.item-brand {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.item-desc {
  font-size: 0.7rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: none;
}

.item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border-light);
}

.item-price {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
}

.item-price span {
  display: block;
  font-size: 0.58rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 0.1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.btn-primary {
  height: 34px;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 500;
  background: var(--accent-color);
  color: var(--text-white);
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.empty-state {
  padding: 3.5rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  border: 1px dashed var(--border-input);
  background: var(--bg-card);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 2.2rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  font-size: 0.72rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border-input);
  color: var(--text-primary);
  text-decoration: none;
  background: var(--bg-card);
}

.pagination a:hover {
  background: var(--bg-hover);
}

.pagination .current {
  background: var(--accent-color);
  color: var(--text-white);
  border-color: var(--accent-color);
}

.pagination .disabled {
  color: var(--text-muted);
  pointer-events: none;
}


@media (max-width: 900px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }

  .filters-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header {
    flex-wrap: wrap;
    padding: 0.8rem 1.2rem;
  }

  .header-search {
    order: 3;
    max-width: 100%;
  }

  .header-meta {
    display: none;
  }

  .shop-wrap {
    padding: 1.25rem 1.2rem 2.5rem;
  }

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

/*header section*/

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: 80px;
  background: var(--bg-body);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.logo img {
  width: 120px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: inline-block;
  padding: 10px 18px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: capitalize;
  transition: color 0.15s ease, background 0.15s ease;
  position: relative;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: var(--bg-elevated);
  outline: none;
}

.nav-links a.active {
  color: var(--accent-color);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 6px;
  height: 1.5px;
  background: var(--accent-color);
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s ease;
}

.contact-item svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  flex-shrink: 0;
}

.contact-item:hover,
.contact-item:focus-visible {
  color: var(--text);
  outline: none;
}

.contact-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
}

.contact-cta {
  display: inline-flex;
  align-items: center;
  padding: 11px 22px;
  background: var(--accent-color);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.02em;
  border: 1px solid var(--accent);
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.contact-cta:hover,
.contact-cta:focus-visible {
  background: transparent;
  color: var(--accent);
  outline: none;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-color);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent-color);
}

.menu-toggle .icon-close {
  display: none;
}

.site-header.menu-open .menu-toggle .icon-open {
  display: none;
}

.site-header.menu-open .menu-toggle .icon-close {
  display: block;
}

.mobile-panel {
  display: none;
}

@media (max-width: 960px) {

  .header-contact .contact-item.email-item,
  .contact-divider {
    display: none;
  }
}

@media (max-width: 860px) {
  .site-header {
    height: var(--header-height-mobile);
  }

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

  .nav-links,
  .header-contact {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-panel {
    display: block;
    position: fixed;
    top: var(--header-height-mobile);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-body);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    overflow-y: auto;
  }

  .site-header.menu-open .mobile-panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mobile-nav-links {
    list-style: none;
    border-top: 1px solid var(--border);
  }

  .mobile-nav-links a {
    display: block;
    padding: 18px 20px;
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    border-bottom: 1px solid var(--border);
  }

  .mobile-nav-links a.active {
    color: var(--accent);
  }

  .mobile-contact {
    padding: 24px 20px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .mobile-contact .contact-item {
    font-size: 14px;
  }

  .mobile-contact .contact-cta {
    justify-content: center;
    padding: 14px;
    margin-top: 8px;
  }
}