/* CommercePilot - shop polish styles */
:root {
  --cp-ink: #0F172A;
  --cp-muted: #64748B;
  --cp-border: #E2E8F0;
  --cp-bg-soft: #F8FAFC;
  --cp-accent: #0F172A;
}

/* Typography refinement */
body { font-feature-settings: "ss01"; letter-spacing: -0.005em; }
h1, h2, h3 { letter-spacing: -0.015em; }

/* Header polish */
.site-header { border-bottom: 1px solid var(--cp-border); }
.main-navigation a { font-weight: 500; letter-spacing: 0.01em; }

/* Shop / loop title - hide on shop page since the hero already provides identity */
.home .woocommerce-products-header,
.woocommerce-shop .woocommerce-products-header,
.woocommerce-products-header__title { display: none !important; }

.woocommerce .page-title,
.shop-title,
.botiga-archive-header h1 {
  letter-spacing: -0.02em;
  font-weight: 600;
}

/* Header: keep menu on one line */
.main-navigation .menu { display: flex; flex-wrap: nowrap; gap: 4px; }
@media (max-width: 1024px) {
  .main-navigation .menu { flex-wrap: wrap; }
}

/* Product cards refinement */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button {
  border-radius: 999px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}
.woocommerce ul.products li.product .price {
  font-weight: 600;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-weight: 500;
  letter-spacing: -0.005em;
}

/* Sale badge in soft accent */
.woocommerce span.onsale {
  background: var(--cp-ink);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  min-height: 0;
  min-width: 0;
  line-height: 1.3;
}

/* Trust strip */
.cp-trust-strip {
  background: var(--cp-bg-soft);
  border-top: 1px solid var(--cp-border);
  border-bottom: 1px solid var(--cp-border);
  padding: 18px 0;
  margin: 0;
}
.cp-trust-strip .cp-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.cp-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cp-ink);
  font-size: 14px;
}
.cp-trust-item .cp-trust-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}
.cp-trust-item .cp-trust-text strong { display: block; font-weight: 600; font-size: 13px; }
.cp-trust-item .cp-trust-text span { display: block; color: var(--cp-muted); font-size: 12px; }
@media (max-width: 768px) {
  .cp-trust-strip .cp-trust-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Hero banner */
.cp-hero {
  background: linear-gradient(135deg, #0F172A 0%, #1e293b 100%);
  color: #fff;
  padding: 80px 24px;
  text-align: center;
  border-radius: 0;
  margin: 0;
}
.cp-hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  color: #fff;
}
.cp-hero p {
  font-size: clamp(15px, 1.5vw, 18px);
  opacity: 0.85;
  max-width: 620px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.cp-hero .cp-hero-cta {
  display: inline-block;
  background: #fff;
  color: #0F172A;
  padding: 14px 36px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.cp-hero .cp-hero-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0,0,0,0.18); }

/* Footer custom (cp-footer-rich) */
.cp-footer-rich {
  background: #0F172A;
  color: #cbd5e1;
  padding: 60px 24px 24px;
  border-top: 1px solid #1e293b;
  font-size: 14px;
  line-height: 1.65;
}
.cp-footer-rich .cp-footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.cp-footer-rich h3 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.cp-footer-rich p { color: #cbd5e1; margin: 0 0 12px; }
.cp-footer-rich .cp-footer-meta { color: #94a3b8; font-size: 13px; line-height: 1.7; }
.cp-footer-rich ul { list-style: none; padding: 0; margin: 0; }
.cp-footer-rich ul li { padding: 5px 0; }
.cp-footer-rich a { color: #cbd5e1; text-decoration: none; transition: color .15s; }
.cp-footer-rich a:hover { color: #fff; }
.cp-newsletter-form input[type=email] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: #fff;
  margin-bottom: 8px;
  font-size: 14px;
  box-sizing: border-box;
}
.cp-newsletter-form input[type=email]::placeholder { color: #64748b; }
.cp-newsletter-form button {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 0;
  background: #fff;
  color: #0F172A;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: background .15s;
}
.cp-newsletter-form button:hover { background: #f1f5f9; }
.cp-newsletter-msg { margin-top: 10px; font-size: 13px; color: #86efac; }
.cp-footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #94a3b8;
}
@media (max-width: 768px) {
  .cp-footer-rich .cp-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 480px) {
  .cp-footer-rich .cp-footer-grid { grid-template-columns: 1fr; }
}

/* Hide default Botiga footer (we replace it with our own .cp-footer-rich) */
.bhfb-below_footer_row,
.bhfb-component-copyright,
.botiga-credits,
.site-info,
.footer-bar { display: none !important; }

/* Categories with image cards (used in featured categories) */
.cp-cats-grid {
  display: grid; gap: 16px; padding: 24px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  max-width: 1200px; margin: 0 auto;
}
.cp-cat-card {
  position: relative;
  display: block;
  height: 200px;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
}
.cp-cat-card img { width: 100%; height: 100%; object-fit: cover; }
.cp-cat-card .cp-cat-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.65) 100%);
  display: flex; align-items: flex-end; padding: 18px;
  font-weight: 600; font-size: 17px;
}
.cp-cat-card:hover .cp-cat-overlay { background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.75) 100%); }
