/* CustomMerch Storefront Styling */
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500;700&family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
  --ink: #111a24;
  --cream: #faf7f2;
  --paper: #ffffff;
  --coral: #ff5a43;
  --coral-soft: #fff0ee;
  --sun: #f5b025;
  --sky: #3b82f6;
  --teal: #0d9488;
  --purple: #8b5cf6;
  --line: #e2e6e3;
  --line-dark: #cbd5e1;
  --muted: #5f6b78;
  --text-dark: #1e293b;
  --amazon-orange: #ff9900;
  --amazon-dark: #131921;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 6px rgba(17, 26, 36, 0.05);
  --shadow-md: 0 10px 25px -4px rgba(17, 26, 36, 0.08), 0 4px 10px -2px rgba(17, 26, 36, 0.04);
  --shadow-lg: 0 20px 40px -6px rgba(17, 26, 36, 0.15);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
  height: 80px;
  padding: 0 clamp(20px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 247, 242, 0.95);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.brand {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1.2px;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 2px;
}
.brand span { font-weight: 500; }
.brand .dot { color: var(--coral); }
.brand-badge {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  background: var(--coral-soft);
  color: var(--coral);
  padding: 3px 8px;
  border-radius: 99px;
  margin-left: 8px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--coral); }
.main-nav a.nav-pill {
  background: var(--ink);
  color: #fff;
  padding: 8px 16px;
  border-radius: 99px;
  transition: transform 0.2s, background 0.2s;
}
.main-nav a.nav-pill:hover {
  background: #233547;
  transform: translateY(-1px);
}

/* Hero Section */
.store-hero {
  padding: 60px clamp(20px, 6vw, 90px) 40px;
  background: linear-gradient(135deg, #fef4e8 0%, #faf7f2 50%, #eef8f6 100%);
  border-bottom: 1px solid var(--line);
}

.hero-content {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--coral);
  background: var(--coral-soft);
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 18px;
}

.store-hero h1 {
  font-size: clamp(36px, 4.5vw, 62px);
  line-height: 1.08;
  letter-spacing: -2.2px;
  margin: 0 0 16px;
  font-weight: 800;
  color: var(--ink);
}
.store-hero h1 em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  color: var(--coral);
}

.hero-subtitle {
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 30px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 28px;
  font-size: 13px;
  color: var(--text-dark);
  font-weight: 600;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.trust-item svg { color: var(--teal); }

/* Filter & Search Bar */
.filter-sticky-bar {
  padding: 24px clamp(20px, 5vw, 80px);
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 80px;
  z-index: 90;
  box-shadow: 0 6px 15px rgba(0,0,0,0.02);
}

.filter-wrap {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 46px;
  padding: 0 16px 0 42px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(17, 26, 36, 0.08);
}

.select-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.custom-select {
  height: 46px;
  padding: 0 32px 0 14px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  background: var(--paper) url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6b78' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") no-repeat right 10px center;
  background-size: 14px;
  appearance: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  outline: none;
}
.custom-select:focus {
  border-color: var(--ink);
}

.category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.category-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cat-pill {
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.cat-pill:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.cat-pill.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.product-count {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--muted);
}

/* Products Section */
.products-section {
  padding: 40px clamp(20px, 5vw, 80px) 80px;
  max-width: 1440px;
  margin: 0 auto;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s;
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-dark);
}

.product-img-wrap {
  position: relative;
  width: 100%;
  height: 230px;
  background: #f1ede5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.04);
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 10px;
  border-radius: 99px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.badge-hot {
  background: #ff5a43;
  color: #fff;
}
.badge-viral {
  background: #0f172a;
  color: #38bdf8;
  border: 1px solid #38bdf8;
}
.badge-top {
  background: #f59e0b;
  color: #fff;
}

.product-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.product-cat {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
}

.product-rating {
  font-size: 12px;
  font-weight: 700;
  color: #eab308;
}
.product-rating small {
  color: var(--muted);
  font-weight: 500;
}

.product-title {
  font-size: 17px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-tagline {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: auto;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.current-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}

.orig-price {
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
}

.prime-tag {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #0284c7;
  background: #e0f2fe;
  padding: 3px 8px;
  border-radius: 4px;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.btn-amazon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--amazon-dark);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.15s;
}
.btn-amazon:hover {
  background: #232f3e;
  transform: translateY(-1px);
}

.btn-social-push {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--coral-soft);
  color: var(--coral);
  border: 1px solid #ffd4cd;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-social-push:hover {
  background: var(--coral);
  color: #fff;
  border-color: var(--coral);
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  background: var(--paper);
  border: 1px dashed var(--line-dark);
  border-radius: var(--radius-md);
}
.empty-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
}
.empty-state h3 {
  font-size: 20px;
  margin: 0 0 8px;
}
.empty-state p {
  color: var(--muted);
  margin: 0 0 20px;
}

/* Learn Banner Callout */
.learn-cta-banner {
  margin: 60px clamp(20px, 5vw, 80px) 80px;
  padding: 60px clamp(24px, 6vw, 80px);
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.learn-cta-content h2 {
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing: -1.5px;
  margin: 12px 0 16px;
  font-weight: 800;
}
.learn-cta-content p {
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.6;
  max-width: 580px;
  margin: 0 0 24px;
}

.partner-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.partner-pill {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  background: rgba(255,255,255,0.1);
  color: #93c5fd;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,0.15);
}

.btn-learn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--coral);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 99px;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}
.btn-learn:hover {
  background: #e04b36;
  transform: translateY(-2px);
}

.learn-cta-visual {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 24px;
}
.feature-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
  color: #e2e8f0;
}
.feature-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.feature-checklist li span {
  color: #4ade80;
  font-weight: 800;
}

/* Modal Backdrop & Dialog */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.social-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.97);
  width: 90%;
  max-width: 680px;
  max-height: 90vh;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px -15px rgba(0,0,0,0.3);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.social-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--cream);
}

.modal-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-header-title h3 {
  font-size: 18px;
  margin: 0;
  font-weight: 800;
}

.modal-close {
  background: transparent;
  border: 0;
  font-size: 24px;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}
.modal-close:hover {
  color: var(--ink);
  background: rgba(0,0,0,0.05);
}

.modal-product-summary {
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
}
.modal-product-summary img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.modal-product-info {
  flex: 1;
}
.modal-product-info h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--ink);
}
.modal-product-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-product-meta span.price {
  font-weight: 800;
  color: var(--ink);
  font-size: 14px;
}

/* Tabs */
.social-tabs {
  display: flex;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.social-tab {
  flex: 1;
  min-width: 100px;
  padding: 12px 14px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}
.social-tab:hover {
  color: var(--ink);
  background: rgba(0,0,0,0.02);
}
.social-tab.active {
  color: var(--coral);
  border-bottom-color: var(--coral);
  background: #fff;
}

.modal-content-area {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.tab-pane {
  display: none;
}
.tab-pane.active {
  display: block;
}

.platform-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}

.caption-textarea {
  width: 100%;
  height: 140px;
  padding: 12px 14px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  resize: vertical;
  background: #fcfcfc;
}
.caption-textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
}

.hashtags-box {
  padding: 10px 14px;
  background: #f1f5f9;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: #3b82f6;
  font-family: 'DM Mono', monospace;
}

.platform-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-copy:hover {
  background: #233547;
}

.btn-post-direct {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid #1d9bf0;
  background: #1d9bf0;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s;
}
.btn-post-direct:hover {
  background: #1a8cd8;
}

.btn-fb-share {
  background: #1877f2;
  border-color: #1877f2;
}
.btn-fb-share:hover {
  background: #166fe5;
}

.direct-link-row {
  display: flex;
  gap: 8px;
}
.direct-link-input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--ink);
  background: #f8fafc;
}

/* Toast */
.custom-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0f172a;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 99px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.custom-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Footer */
.site-footer {
  padding: 60px clamp(20px, 5vw, 80px) 40px;
  background: var(--ink);
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.6;
}

.footer-top {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand h4 {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 12px;
}
.footer-brand p {
  margin: 0;
  max-width: 380px;
}

.footer-links h5 {
  color: #fff;
  font-size: 14px;
  margin: 0 0 16px;
  font-weight: 700;
}
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

.footer-compliance {
  max-width: 1400px;
  margin: 30px auto 0;
  font-size: 12px;
  color: #64748b;
}

@media (max-width: 900px) {
  .site-header { padding: 0 20px; }
  .main-nav { display: none; }
  .learn-cta-banner { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .filter-sticky-bar { top: 0; }
}
