/* Catalog page styles — extends theme.css */

.nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--fg); }

.nav-cart-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  position: relative;
}
.cart-badge {
  display: none;
  position: absolute;
  top: -8px;
  right: -16px;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Catalog hero */
.catalog-hero {
  padding: 80px 40px 60px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
}
.catalog-hero-inner { max-width: 600px; margin: 0 auto; }
.catalog-eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
}
.catalog-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--fg);
  margin-bottom: 16px;
  line-height: 1.1;
}
.catalog-headline em {
  font-style: italic;
  color: var(--accent);
}
.catalog-sub {
  font-size: 16px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.7;
}

/* Catalog grid */
.catalog-grid-section { padding: 60px 40px 100px; }
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Product cards — enhanced from theme */
.catalog-grid .product-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
}
.catalog-grid .product-card:hover {
  box-shadow: 0 8px 32px rgba(200,149,107,0.12);
  transform: translateY(-2px);
}
.product-image-wrap {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--surface);
}
.product-image-placeholder {
  width: 100%;
  height: 100%;
  position: relative;
}
.placeholder-inner {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #E8DDD3 0%, #D4C4B5 50%, #C8B09A 100%);
}
.placeholder-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 35%, rgba(200,149,107,0.15) 0%, transparent 65%);
}
.product-info {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-name {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--fg);
  margin: 8px 0 6px;
}
.product-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.price-current {
  font-size: 22px;
  font-weight: 600;
  color: var(--fg);
}

/* Add to cart button */
.add-to-cart-btn {
  background: var(--fg);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.2px;
}
.add-to-cart-btn:hover { background: #333; }
.add-to-cart-btn:active { transform: scale(0.97); }
.add-to-cart-btn:disabled { background: var(--muted); cursor: not-allowed; }

/* Toast */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--fg);
  color: white;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.toast-visible { transform: translateX(-50%) translateY(0); }
.toast-error { background: #c0392b; }

/* Cart page */
.cart-page {
  min-height: 100vh;
  padding: 60px 40px 100px;
}
.cart-inner { max-width: 800px; margin: 0 auto; }
.cart-header { margin-bottom: 40px; }
.cart-title {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.5px;
}
.cart-empty {
  text-align: center;
  padding: 80px 40px;
}
.cart-empty p {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 32px;
}
.cart-empty a {
  display: inline-block;
  background: var(--fg);
  color: white;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}
.cart-empty a:hover { background: #333; }

.cart-item {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.cart-item-image {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  background: var(--surface);
  flex-shrink: 0;
  overflow: hidden;
}
.cart-item-image .placeholder-inner {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #E8DDD3 0%, #D4C4B5 50%, #C8B09A 100%);
}
.cart-item-details { flex: 1; }
.cart-item-name {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 4px;
}
.cart-item-category {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.cart-item-price {
  font-size: 16px;
  font-weight: 500;
  color: var(--fg);
}
.cart-item-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.cart-item-remove {
  background: none;
  border: none;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  text-decoration: underline;
  font-family: 'DM Sans', sans-serif;
}
.cart-item-remove:hover { color: #c0392b; }

.cart-summary {
  background: var(--surface);
  border-radius: 16px;
  padding: 32px;
  margin-top: 32px;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.cart-summary-row:last-of-type { margin-bottom: 24px; }
.cart-summary-label { font-size: 15px; color: var(--muted); }
.cart-summary-value { font-size: 15px; font-weight: 500; color: var(--fg); }
.cart-total-row {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 8px;
}
.cart-total-label { font-size: 16px; font-weight: 600; color: var(--fg); }
.cart-total-value { font-size: 22px; font-weight: 700; color: var(--fg); }

.checkout-btn {
  width: 100%;
  background: var(--accent);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.checkout-btn:hover { background: var(--accent-dark); }
.checkout-btn:disabled {
  background: var(--muted);
  cursor: not-allowed;
}

/* Success page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
}
.success-inner {
  text-align: center;
  max-width: 560px;
}
.success-mark {
  font-size: 64px;
  margin-bottom: 24px;
}
.success-headline {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.success-body {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 32px;
}
.success-items {
  background: var(--surface);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  text-align: left;
}
.success-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}
.success-item:last-child { border-bottom: none; }
.success-item-name { font-weight: 500; color: var(--fg); }
.success-item-price { color: var(--muted); }
.success-cta {
  display: inline-block;
  background: var(--fg);
  color: white;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}
.success-cta:hover { background: #333; }

/* Error page */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
}
.error-inner {
  text-align: center;
  max-width: 480px;
}
.error-headline {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 16px;
}
.error-body { font-size: 15px; color: var(--muted); line-height: 1.7; }

/* Responsive */
@media (max-width: 768px) {
  .catalog-hero { padding: 60px 24px 40px; }
  .catalog-grid-section { padding: 40px 24px 80px; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .product-info { padding: 16px; }
  .product-name { font-size: 16px; }
  .add-to-cart-btn { font-size: 12px; padding: 8px 14px; }
  .cart-page { padding: 40px 24px 80px; }
  .cart-item { gap: 16px; }
  .cart-item-image { width: 80px; height: 80px; }
}
@media (max-width: 480px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .product-footer { flex-wrap: wrap; gap: 8px; }
}