/**
 * ComprasGuate Theme — vendor store page styles.
 * Loaded only on /store/{vendor-slug}/.
 *
 * v0.8.11: Custom storefront template — we no longer touch WCFM's markup.
 * Class names start with .cg-vstore-* and are entirely under our control.
 */

.cg-vstore {
  padding: 24px 0;
}

/* =========================
   BANNER
   ========================= */
.cg-vstore-banner {
  height: 240px;
  background: linear-gradient(135deg, var(--c-blue) 0%, var(--c-blue-darker) 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: relative;
  overflow: hidden;
}
.cg-vstore-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

.cg-vstore-overlay {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 2;
  color: #fff;
}
.cg-vstore-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  font-weight: 800;
  color: var(--c-blue);
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.cg-vstore-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.cg-vstore-info {
  flex: 1 1 auto;
  min-width: 0;
}
.cg-vstore-name {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  line-height: 1.2;
}
.cg-vstore-meta {
  font-size: 13px;
  color: #fff;
  opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.cg-vstore-socials {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.cg-vstore-social {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.18s ease;
}
.cg-vstore-social:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}
.cg-vstore-social-instagram:hover { color: #E4405F; }
.cg-vstore-social-facebook:hover  { color: #1877F2; }
.cg-vstore-social-whatsapp:hover  { color: #25D366; }
.cg-vstore-social-tiktok:hover    { color: #000; }
.cg-vstore-social-twitter:hover   { color: #000; }
.cg-vstore-social-youtube:hover   { color: #FF0000; }
.cg-vstore-social-pinterest:hover { color: #BD081C; }

.cg-vstore-follow {
  background: var(--c-blue);
  color: #fff;
  border: 0;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  margin-left: auto;
  flex-shrink: 0;
  transition: background 0.12s;
  font-family: inherit;
}
.cg-vstore-follow:hover {
  background: var(--c-blue-dark);
  color: #fff;
}

/* =========================
   STATS STRIP
   ========================= */
.cg-vstore-stats {
  background: var(--c-page-bg);
  border: 1px solid var(--c-border);
  border-top: 0;
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--c-text);
}
.cg-vstore-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cg-vstore-stat strong {
  color: var(--c-text);
  font-size: 15px;
  font-weight: 800;
  margin-right: 4px;
}
.cg-vstore-stat-label {
  color: var(--c-text-muted);
}
.cg-verified-pill {
  background: var(--c-trust-bg);
  color: #065F46;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

/* =========================
   TABS
   ========================= */
.cg-vstore-tabs {
  list-style: none;
  margin: 0;
  padding: 0 22px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-top: 0;
  border-bottom: 0;
  display: flex;
  gap: 28px;
  font-size: 12px;
  overflow-x: auto;
}
.cg-vstore-tabs li {
  list-style: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}
.cg-vstore-tabs li a {
  display: block;
  padding: 14px 0;
  color: var(--c-text-muted);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color 0.12s, border-color 0.12s;
}
.cg-vstore-tabs li:hover a,
.cg-vstore-tabs li.is-active a {
  color: var(--c-blue);
  border-bottom-color: var(--c-blue);
  font-weight: 800;
}

/* =========================
   TAB CONTENT
   ========================= */
.cg-vstore-content {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-top: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 22px;
}
.cg-vstore-pane {
  display: none;
}
.cg-vstore-pane.is-active {
  display: block;
}

/* =========================
   PRODUCTS GRID — 6 cols
   ========================= */
.cg-vstore-products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
@media (max-width: 1280px) { .cg-vstore-products { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 1024px) { .cg-vstore-products { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px)  { .cg-vstore-products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px)  { .cg-vstore-products { grid-template-columns: repeat(2, 1fr); } }
.cg-vstore-products li {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* =========================
   EMPTY STATE
   ========================= */
.cg-vstore-empty {
  text-align: center;
  padding: 60px 30px;
  color: var(--c-text-muted);
  background: var(--c-page-bg);
  border: 1px dashed var(--c-border);
  border-radius: var(--radius);
}
.cg-vstore-empty-icon {
  font-size: 56px;
  margin-bottom: 14px;
}
.cg-vstore-empty h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--c-text);
  margin: 0 0 8px;
}
.cg-vstore-empty p {
  font-size: 13.5px;
  margin: 0;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   ABOUT TAB
   ========================= */
.cg-vstore-about-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--c-text);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.cg-vstore-about-story {
  font-size: 14px;
  color: #4B5563;
  line-height: 1.75;
  margin-bottom: 24px;
}
.cg-vstore-about-story p {
  margin: 0 0 12px;
}

.cg-vstore-section-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--c-text);
  margin: 24px 0 14px;
  letter-spacing: -0.01em;
}

/* =========================
   INFO CARDS GRID (about + policies)
   ========================= */
.cg-vstore-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 700px) {
  .cg-vstore-info-grid { grid-template-columns: 1fr; }
}
.cg-vstore-info-card {
  background: var(--c-page-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 18px;
}
.cg-vstore-info-card h3 {
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--c-text);
}
.cg-vstore-info-card p {
  font-size: 13px;
  color: var(--c-text);
  line-height: 1.55;
  margin: 0;
}
.cg-vstore-info-card a {
  color: var(--c-blue);
  text-decoration: none;
  font-weight: 600;
}
.cg-vstore-info-card a:hover { text-decoration: underline; }

/* =========================
   MOBILE
   ========================= */
@media (max-width: 768px) {
  .cg-vstore-banner {
    height: auto;
    min-height: 200px;
  }
  .cg-vstore-overlay {
    flex-direction: column;
    align-items: flex-start;
    bottom: 18px;
    left: 18px;
    right: 18px;
  }
  .cg-vstore-avatar {
    width: 72px;
    height: 72px;
    font-size: 28px;
    border-width: 3px;
  }
  .cg-vstore-name { font-size: 20px; }
  .cg-vstore-follow {
    margin-left: 0;
    align-self: flex-start;
  }
  .cg-vstore-stats {
    padding: 12px 18px;
    gap: 10px;
    font-size: 12px;
  }
  .cg-vstore-tabs { padding: 0 14px; gap: 18px; }
  .cg-vstore-content { padding: 16px; }
}
