.nav-cart {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-cart-count {
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.25rem;
  text-align: center;
}
.nav-cart-count[hidden] { display: none; }

.shop-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}
.hero-cta.secondary {
  background: var(--surface);
  color: var(--heading);
  border: 1px solid var(--border);
}

.shop-page {
  max-width: 1080px;
  padding-top: 1.35rem;
  padding-bottom: 2rem;
}
.shop-page .contact-kicker { margin: 0; }
.shop-page h1 { margin: 0.15rem 0 0.35rem; }
.shop-page .contact-lead { margin-bottom: 0.75rem; }
.shop-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin: 0 0 1rem;
}
.shop-category-nav a {
  color: var(--heading);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.shop-category-nav a:hover { border-bottom-color: var(--accent); }
.shop-category {
  margin: 0 0 0.85rem;
  padding: 0;
  border-bottom: 0;
}
.shop-category:last-child { margin-bottom: 0; }
.shop-category-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.5rem;
  row-gap: 1.25rem;
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: 1fr; }
}
.product-options {
  border: 0;
  padding: 0;
  margin: 0.35rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.product-options legend {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 0.25rem;
  padding: 0;
}
.product-option {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
}
.product-option input { margin-top: 0.2rem; }
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.product-card-media {
  display: block;
  position: relative;
  border: 0;
  border-radius: 0;
}
.product-card-media img,
.product-gallery-main.product-card-media img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: #e8eef5;
}
.product-card h2 a {
  color: inherit;
  text-decoration: none;
}
.product-card h2 a:hover { color: var(--accent); }
.product-page {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.5rem;
  align-items: start;
}
.product-gallery-main {
  position: relative;
  background: #e8eef5;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.product-gallery-main img {
  width: 100%;
  height: min(520px, 62vw);
  object-fit: contain;
  background: #e8eef5;
  display: block;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  color: var(--heading);
  font-size: 1.4rem;
  cursor: pointer;
  left: 0.6rem;
}
.gallery-nav-next { left: auto; right: 0.6rem; }
.product-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
}
.gallery-thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: none;
  cursor: pointer;
}
.gallery-thumb.is-active { border-color: var(--accent); }
.gallery-thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  display: block;
}
.product-page-copy .hero-cta { margin-top: 1rem; }
@media (max-width: 800px) {
  .product-page { grid-template-columns: 1fr; }
}
.product-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.85rem 1rem 1rem;
  flex: 1;
}
.product-card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.product-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.product-price {
  margin-top: auto;
  padding-top: 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
}
.product-shipping {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}
.product-card .hero-cta {
  margin-top: 0.5rem;
  justify-content: center;
}

.cart-table {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}
.cart-row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 1rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}
.cart-row img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 10px;
  background: #e8eef5;
}
.cart-row h3 {
  font-size: 1rem;
  color: var(--heading);
  margin-bottom: 0.35rem;
}
.cart-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.cart-qty button {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--heading);
  cursor: pointer;
}
.cart-qty input {
  width: 3rem;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.35rem;
  font: inherit;
}
.cart-remove {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--heading);
  margin: 1.5rem 0;
}
.cart-ship {
  max-width: 520px;
  margin: 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.cart-ship h2 {
  font-size: 1.15rem;
  color: var(--heading);
  margin: 0 0 0.25rem;
}
.cart-ship-grid {
  display: grid;
  grid-template-columns: 1fr 5rem 7rem;
  gap: 0.65rem;
}
.cart-ship input[type="text"],
.cart-ship input:not([type="checkbox"]) {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.ship-rates {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.35rem;
}
.cart-coupon {
  max-width: 420px;
  margin: 1.5rem 0 0;
}
.cart-coupon label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 0.45rem;
}
.cart-coupon-row {
  display: flex;
  gap: 0.65rem;
}
.cart-coupon-row input {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.cart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.shop-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1rem;
}
.shop-empty { color: var(--muted); margin: 2rem 0; }

@media (max-width: 640px) {
  .cart-row { grid-template-columns: 72px 1fr; }
  .cart-row .cart-line-total { grid-column: 2; }
  .cart-ship-grid { grid-template-columns: 1fr 1fr; }
}
