/* shop.css — generated by web-builder-mcp */

.shop-hero {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding: var(--spacing-2xl) var(--spacing-md);
  text-align: center;
}
.shop-hero h1 { font-size: 2rem; font-weight: 800; }
.shop-hero p { color: var(--color-text-muted); margin-top: var(--spacing-sm); }

/* Product grid */
.product-grid {
  display: grid;
  gap: var(--spacing-lg);
  grid-template-columns: 1fr;
  padding: var(--spacing-2xl) 0;
}
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.product-img {
  aspect-ratio: 1;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: var(--spacing-lg); flex: 1; display: flex; flex-direction: column; gap: var(--spacing-sm); }
.product-name { font-weight: 700; font-size: 1.05rem; }
.product-desc { color: var(--color-text-muted); font-size: 0.9rem; flex: 1; }
.product-price { font-weight: 700; color: var(--color-primary); font-size: 1.25rem; }
.product-tags { display: flex; flex-wrap: wrap; gap: var(--spacing-xs); }
.product-tag {
  font-size: 0.75rem;
  padding: 2px 8px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text-muted);
}
.btn-add-cart {
  width: 100%;
  margin-top: var(--spacing-md);
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition: background var(--transition);
}
.btn-add-cart:hover { background: var(--color-primary-dark, #1e40af); }

/* Cart drawer */
.cart-btn {
  position: fixed;
  bottom: var(--spacing-xl);
  right: var(--spacing-xl);
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  z-index: 200;
  transition: background var(--transition);
}
.cart-btn:hover { background: var(--color-primary-dark, #1e40af); }
.cart-count {
  background: #fff;
  color: var(--color-primary);
  border-radius: 999px;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -480px;
  width: min(480px, 100vw);
  height: 100%;
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
  z-index: 300;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
}
.cart-drawer.is-open { right: 0; }
.cart-drawer-header {
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-drawer-header h2 { font-size: 1.25rem; font-weight: 700; }
.cart-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--spacing-xs);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
}
.cart-items { flex: 1; overflow-y: auto; padding: var(--spacing-md); }
.cart-empty { text-align: center; color: var(--color-text-muted); padding: var(--spacing-2xl); }
.cart-item {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--color-border);
}
.cart-item-name { font-weight: 600; flex: 1; }
.cart-item-price { color: var(--color-primary); font-weight: 600; white-space: nowrap; }
.cart-item-qty { display: flex; align-items: center; gap: var(--spacing-sm); }
.qty-btn {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
}
.cart-footer {
  padding: var(--spacing-lg);
  border-top: 1px solid var(--color-border);
}
.cart-total { font-size: 1.125rem; font-weight: 700; margin-bottom: var(--spacing-md); display: flex; justify-content: space-between; }
.btn-checkout {
  width: 100%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-checkout:hover { background: var(--color-primary-dark, #1e40af); }

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 299;
  display: none;
}
.cart-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #dc2626;
  font-size: 1.25rem;
  padding: var(--spacing-xs);
  border-radius: var(--radius-sm);
  line-height: 1;
}
.cart-remove:hover { color: #b91c1c; }

.cart-overlay.is-open { display: block; }

@media (min-width: 768px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1280px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
