/*
Theme Name: Solace Child
Theme URI: https://example.com
Description: Child theme for Solace
Author: Your Name
Template: solace
Version: 1.0
Text Domain: solace-child
*/

/* Base styles (warning-free) */
html, body {
  color: #0f172a;
  background: #ffffff;
}

/* Example reusable button */
.vendyl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  color: #ffffff;
  background: #0ea5e9;
}
.vendyl-btn:hover { filter: brightness(1.05); }

/* ==== Vendyl Vendor Page ==== */
.vendyl-vendor-hero {
  position: relative;
  padding: 80px 0;
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
}

.vendyl-vendor-hero-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
}

.vendyl-vendor-container {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.vendyl-vendor-info { /* optional wrapper if you want spacing */
  max-width: 760px;
  margin: 0 auto;
}

.vendyl-vendor-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  margin-bottom: 20px;
}

.vendyl-vendor-name {
  font-size: 36px;
  font-weight: 700;
  margin: 10px 0;
}

.vendyl-vendor-tagline {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 20px;
}

.vendyl-btn--outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.vendyl-btn--outline:hover {
  background: #fff;
  color: #000;
}

/* ==== Vendor Info + Search ==== */
.vendyl-vendor-info-block {
  background: #f9fafb;
  padding: 60px 0;
  text-align: center;
}
.vendyl-vendor-shortdesc {
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 17px;
  color: #0f172a;
  line-height: 1.6;
}
.vendyl-vendor-search {
  display: inline-flex;
  gap: 10px;
}
.vendyl-vendor-search input[type="text"] {
  padding: 10px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 280px;
  font-size: 16px;
}
.vendyl-vendor-search button {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 16px;
}

/* ==== Brand Story ==== */
.vendyl-vendor-story {
  padding: 60px 0;
  background: #ffffff;
}
.vendyl-vendor-story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
  padding: 0 16px;
}
.vendyl-vendor-story h2 {
  font-size: 28px;
  margin: 0 0 12px;
}
.vendyl-vendor-story h3 {
  font-size: 20px;
  margin: 24px 0 8px;
}
.vendyl-list {
  margin: 0 0 8px 18px;
}
.vendyl-vendor-story-media .vendyl-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.vendyl-vendor-story-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
}

/* ==== Certifications ==== */
.vendyl-vendor-certs {
  padding: 48px 0 64px;
  background: #f9fafb;
  text-align: center;
}
.vendyl-vendor-certs h2 {
  font-size: 26px;
  margin-bottom: 18px;
}
.vendyl-cert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  justify-items: center;
  align-items: center;
  margin: 10px 0 16px;
}
.vendyl-cert img {
  max-width: 120px;
  max-height: 60px;
  width: 100%;
  object-fit: contain;
  filter: grayscale(100%);
}
.vendyl-cert-label {
  display: block;
  font-size: 14px;
  color: #0f172a;
  opacity: 0.8;
  margin-top: 6px;
}
.vendyl-cert-pack {
  margin-top: 8px;
}

/* ==== Responsive tweaks ==== */
@media (max-width: 980px){
  .vendyl-vendor-story-grid {
    grid-template-columns: 1fr;
  }
  .vendyl-vendor-story-media img {
    height: 200px;
  }
  .vendyl-cert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ============================================
 * Hide legacy Dokan product grid on vendor pages
 * (search bar + product tiles + pagination)
 * ============================================ */
body[class*="dokan-store"] .site-main .woocommerce-notices-wrapper,
body[class*="dokan-store"] .site-main .woocommerce-result-count,
body[class*="dokan-store"] .site-main .woocommerce-ordering,
body[class*="dokan-store"] .site-main .products,
body[class*="dokan-store"] .site-main .dokan-store-products-filter-area,
body[class*="dokan-store"] .site-main .dokan-store-products-wrap,
body[class*="dokan-store"] .site-main .dokan-pagination-container {
  display: none !important;
}
