.site-header .cart-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.15rem;
  border-radius: 10px;
  background: #ff9100;
  color: #1a1206 !important;
  font-family: "Audiowide", "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35), 0 8px 20px rgba(0, 0, 0, 0.28);
}

.site-header .cart-link:hover,
.site-header .cart-link:focus-visible {
  background: #ffb347;
  color: #1a1206 !important;
}

.site-header .home-link {
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.site-header .cart-count {
  min-width: 1.7rem;
  height: 1.7rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #1a1206;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.site-header .cart-link--has-items {
  background: #80d63f;
  box-shadow: 0 0 0 2px #fff, 0 0 18px rgba(128, 214, 63, 0.85);
}

.local-shop-banner {
  background: #f4f1ea;
  border-bottom: 1px solid #e4dccb;
  color: #3d3426;
  font-size: 0.95rem;
  padding: 0.7rem 0;
}

.local-shop-banner p {
  margin: 0;
}

.shop-page {
  padding: 2rem 0 4rem;
}

.shop-page.has-matrix {
  position: relative;
}

.shop-page.has-matrix::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(rgba(128, 214, 63, 0.06), rgba(128, 214, 63, 0.06)),
    url("/pcb-pattern.svg");
  background-repeat: no-repeat, repeat;
  background-size: auto, 340px 340px;
  opacity: 0.2;
  pointer-events: none;
}

.shop-page.has-matrix > .container {
  position: relative;
  z-index: 1;
}

.shop-page h1 {
  margin: 0 0 0.4rem;
}

.shop-lead {
  margin: 0 0 1rem;
  max-width: 42rem;
}

.shop-search {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 1rem;
  max-width: 28rem;
}

.shop-search input {
  border: 1px solid #d7d0c4;
  border-radius: 999px;
  font: inherit;
  padding: 0.55rem 0.9rem;
  width: 100%;
}

.shop-static-list {
  grid-column: 1 / -1;
  list-style: none;
  margin: 0;
  padding: 0;
}

.shop-static-list li {
  border-bottom: 1px solid #e6e0d6;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.45rem 0;
}

.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}

.category-bar a {
  border: 1px solid #d7d0c4;
  border-radius: 999px;
  color: inherit;
  padding: 0.4rem 0.85rem;
  text-decoration: none;
}

.category-bar a[aria-current="page"] {
  background: #1f6b4a;
  border-color: #1f6b4a;
  color: #fff;
}

.shop-status {
  margin: 0 0 1rem;
}

.local-product-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.local-product-grid .product-card {
  display: flex;
  flex-direction: column;
  height: auto;
}

.local-product-grid .product-card h2 {
  font-size: 1.05rem;
  margin: 0.6rem 0 0.25rem;
}

.local-product-grid .product-image,
.product-layout img {
  background: #fff;
  height: 190px;
  object-fit: contain;
  object-position: center;
}

.product-image-empty {
  background: #f7f4ee;
}

.local-product-grid .product-meta,
.product-detail-meta {
  color: #5c564c;
  margin: 0.15rem 0;
}

.local-product-grid .product-specs {
  color: #3d3832;
  font-size: 0.92rem;
  line-height: 1.35;
  margin: 0.15rem 0 0.2rem;
}

.product-price {
  font-weight: 700;
  margin: 0.45rem 0;
}

.stock-flag {
  display: inline-block;
  font-size: 0.85rem;
  margin: 0 0 0.4rem;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: auto;
}

.product-actions .btn,
.cart-actions .btn {
  text-align: center;
}

.product-layout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(180px, 320px) 1fr;
}

.product-layout img {
  border-radius: 14px;
  height: auto;
  width: 100%;
}

.spec-block {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
}

.related-cases {
  grid-column: 1 / -1;
  margin-top: 1.5rem;
}

.related-cases h2 {
  font-size: 1.25rem;
  margin: 0 0 0.8rem;
}

.spec-source {
  color: #5c564c;
  margin: 0 0 0.8rem;
  max-width: 46rem;
}

.spec-table {
  border-collapse: collapse;
  max-width: 46rem;
  width: 100%;
}

.spec-table th,
.spec-table td {
  border-bottom: 1px solid #e4dccb;
  padding: 0.55rem 0.45rem;
  text-align: left;
  vertical-align: top;
}

.spec-table th {
  color: #3d3426;
  width: 9.5rem;
}

.cart-table {
  border-collapse: collapse;
  width: 100%;
}

.cart-table th,
.cart-table td {
  border-bottom: 1px solid #e4dccb;
  padding: 0.75rem 0.4rem;
  text-align: left;
  vertical-align: middle;
}

.cart-table img {
  border-radius: 8px;
  height: 64px;
  object-fit: contain;
  width: 64px;
}

.cart-total {
  font-size: 1.2rem;
  margin: 1rem 0;
}

.payment-note {
  background: #fff8e8;
  border: 1px solid #ead7a1;
  border-radius: 12px;
  margin: 1rem 0 0;
  padding: 1rem 1.1rem;
}

.payment-note h2 {
  margin-top: 0;
}

.checkout-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
  max-width: 36rem;
}

.checkout-form label {
  display: grid;
  gap: 0.25rem;
  font-weight: 600;
}

.checkout-form input {
  font: inherit;
  font-weight: 400;
  padding: 0.55rem 0.7rem;
}

.fulfilment {
  border: 1px solid #e4dccb;
  border-radius: 12px;
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0.9rem 1rem;
}

.fulfilment legend {
  font-weight: 700;
  padding: 0 0.3rem;
}

.fulfilment .choice {
  font-weight: 500;
  align-items: start;
  grid-template-columns: auto 1fr;
}

.fulfilment input {
  margin-top: 0.25rem;
}

.site-header .cart-link {
  font-weight: 700;
}

@media (max-width: 700px) {
  .product-layout {
    grid-template-columns: 1fr;
  }
}
