/* Pinboard Theme - Masonry Inspiration Board Style */
/* Clean aesthetic, soft colors, organized creativity */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Lato:wght@300;400;700&display=swap');

:root {
  --primary: #E60023;
  --primary-rgb: 230, 0, 35;
  --primary-dark: #BD081C;
  --hov-primary: #BD081C;
  --soft-primary: rgba(230, 0, 35, 0.1);
  --secondary: #BD081C;
  --accent: #EFEFEF;
  --success: #0076D3;
  --warning: #FFB900;
  --danger: #E60023;
  --light: #FFFFFF;
  --dark: #211922;
  --gray: #767676;
  --gray-light: #D1D5DB;
  --background: #F5F5F5;
  --card-bg: #FFFFFF;
  --border-color: #EFEFEF;
  --border-radius: 24px;
  --font-primary: 'Lato', sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 32px;
}

body {
  font-family: var(--font-primary);
  background: var(--background);
  color: var(--dark);
  font-weight: 400;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--dark);
}

.btn-primary {
  background: var(--primary);
  border: none;
  border-radius: 24px;
  font-weight: 700;
  padding: 0.875rem 1.5rem;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--secondary);
  transform: scale(1.02);
}

.card {
  background: var(--card-bg);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: none;
  overflow: hidden;
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Masonry-style grid for products */
.products-grid {
  column-count: 4;
  column-gap: 16px;
}

@media (max-width: 1200px) {
  .products-grid { column-count: 3; }
}

@media (max-width: 768px) {
  .products-grid { column-count: 2; }
}

.product-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  break-inside: avoid;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Pin-style save button */
.save-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 24px;
  padding: 0.5rem 1rem;
  font-weight: 700;
  font-size: 0.875rem;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.2s ease;
}

.product-card:hover .save-btn {
  opacity: 1;
  transform: scale(1);
}

.save-btn:hover {
  background: var(--secondary);
}

/* Image overlay on hover */
.product-card .image-wrapper {
  position: relative;
  overflow: hidden;
}

.product-card .image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.4) 100%);
  opacity: 0;
  transition: opacity 0.2s;
}

.product-card:hover .image-wrapper::after {
  opacity: 1;
}

/* Clean product info */
.product-card .card-body {
  padding: 12px 16px 16px;
}

.product-card .product-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
  line-height: 1.3;
}

.product-card .product-price {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--dark);
}

/* Board categories */
.board-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  padding: 8px 16px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--dark);
  transition: background 0.2s;
}

.board-category:hover {
  background: #E0E0E0;
}

/* Search bar styling */
.search-input {
  background: var(--accent);
  border: none;
  border-radius: 24px;
  padding: 1rem 1.5rem;
  font-size: 1rem;
}

.search-input:focus {
  background: white;
  box-shadow: 0 0 0 4px rgba(230,0,35,0.1);
}

/* Soft rounded images */
img {
  border-radius: var(--radius-md);
}

/* Links */
a {
  color: var(--dark);
  text-decoration: none;
}

a:hover {
  color: var(--primary);
}


/* ── Storefront navbar tokens (auto-added: contrast-correct header) ── */
:root {
  --header-bg: #FFFFFF;
  --header-fg: #211922;
  --header-muted: var(--gray, #6B7280);
  --header-border: var(--border-color, #E5E7EB);
}
