.shop-page {
  padding: 2rem 0 3rem;
}

.shop-hero {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.shop-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: start;
}

.shop-left {
  display: grid;
  gap: 1rem;
}

.shop-right {
  position: sticky;
  top: 1rem;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.7rem;
}

.search-row input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #101010;
  color: var(--text);
  padding: 0.8rem 0.9rem;
  font: inherit;
}

.category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.8rem;
  margin-bottom: 0.4rem;
}

.shop-cat-btn.is-active {
  border-color: rgba(197, 154, 82, 0.75);
  background: rgba(197, 154, 82, 0.12);
  color: var(--text);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.category-row button {
  white-space: nowrap;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.shop-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  margin: 1.1rem 0 0.2rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.10);
}

.shop-pagination .page-info {
  color: var(--muted);
  font-weight: 800;
  min-width: 110px;
  text-align: center;
}

.shop-pagination button {
  white-space: nowrap;
}

.product-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.14);
  padding: 1rem;
  display: grid;
  gap: 0.6rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 154, 82, 0.55);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.product-top {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.7rem;
  align-items: start;
}

.product-img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0e0e0e;
  object-fit: contain;
  padding: 8px;
}

.product-name {
  font-weight: 800;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.qty-control {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.qty-control button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0e0e0e;
  color: var(--text);
  cursor: pointer;
  font-size: 1.05rem;
}

.qty-control input {
  width: 70px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #101010;
  color: var(--text);
  padding: 0.45rem 0.5rem;
  font: inherit;
}

.cart-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.15);
  padding: 1rem;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.14);
}

.cart-lines {
  display: grid;
  gap: 0.75rem;
  margin: 0.8rem 0;
}

.cart-line {
  display: grid;
  gap: 0.25rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  padding-bottom: 0.6rem;
}

.cart-line:last-child {
  border-bottom: none;
}

.cart-line-top {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
}

.cart-line-name {
  font-weight: 800;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-top: 0.6rem;
}

.cart-total strong {
  color: var(--gold);
  font-size: 1.25rem;
}

.checkout-form {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #101010;
  color: var(--text);
  padding: 0.8rem 0.9rem;
  font: inherit;
}

.checkout-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--text);
  font-size: 0.95rem;
}

.shop-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }

  .shop-right {
    position: static;
  }
}

