/**
 * ComprasGuate Theme — Wrapper styles (header, footer, utility, trust, promo).
 * Loaded sitewide. Per-page styles land in their own files later.
 */

/* =========================
   UTILITY BAR (top dark strip)
   ========================= */
.cg-utility {
  background: var(--c-blue-darker);
  color: #BFDBFE;
  font-size: 11px;
  padding: 6px 0;
}
.cg-utility .cg-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.cg-utility a { color: #BFDBFE; text-decoration: none; }
.cg-utility a:hover { color: #FFFFFF; text-decoration: none; }
.cg-utility-right { display: flex; gap: 12px; align-items: center; }
@media (max-width: 1024px) { .cg-utility { display: none; } }

/* Language + currency switcher */
.cg-i18n { position: relative; display: inline-block; }
.cg-i18n-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: none;
  border: 0;
  color: #BFDBFE;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.cg-i18n-btn:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.cg-i18n-flag { font-size: 14px; line-height: 1; }
.cg-i18n-arrow { font-size: 9px; opacity: 0.85; }

/* =========================
   MAIN HEADER (blue bar with brand + search)
   ========================= */
.cg-site-header {
  background: var(--c-blue);
  color: #FFFFFF;
  padding: 14px 0;
}
.cg-site-header .cg-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cg-mobile-toggle {
  background: none;
  border: 0;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  display: none;
}
@media (max-width: 1024px) { .cg-mobile-toggle { display: inline-flex; } }

/* Brand */
.cg-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
}
.cg-brand:hover { color: #fff; text-decoration: none; }
.cg-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.cg-brand-text-top { font-size: 14px; font-weight: 600; opacity: 0.9; }
.cg-brand-text-bottom { font-size: 26px; font-weight: 900; color: var(--c-promo); }
.cg-brand-tagline {
  font-size: 11px;
  font-weight: 500;
  margin-left: 8px;
  opacity: 0.85;
  line-height: 1.2;
}
@media (max-width: 768px) { .cg-brand-tagline { display: none; } }

/* Search */
.cg-search {
  flex: 1;
  position: relative;
  min-width: 0;
}
.cg-search-box {
  display: flex;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.cg-search-cat {
  padding: 10px 14px;
  background: #F3F4F6;
  color: var(--c-text);
  font-size: 12.5px;
  font-weight: 600;
  border-right: 1px solid var(--c-border);
  white-space: nowrap;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
@media (max-width: 768px) { .cg-search-cat { display: none; } }
.cg-search-input {
  flex: 1;
  border: 0;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--c-text);
  min-width: 0;
}
.cg-search-input:focus { outline: 0; }
.cg-search-btn {
  padding: 10px 22px;
  background: var(--c-promo);
  color: var(--c-promo-text);
  border: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cg-search-btn:hover { filter: brightness(0.95); }

/* Scanner button — inline barcode glyph that blends with the input. */
.cg-search-scan-btn {
  background: transparent;
  border: 0;
  padding: 0 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text);
  transition: color 0.15s;
  align-self: stretch;
}
.cg-search-scan-btn:hover,
.cg-search-scan-btn:focus-visible {
  color: var(--c-blue);
  outline: none;
}
.cg-search-scan-btn svg {
  display: block;
}

/* Camera scanner modal (customer-facing) */
.cg-scanner-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cg-scanner-modal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.cg-scanner-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--c-border);
}
.cg-scanner-head h3 { margin: 0; font-size: 16px; font-weight: 800; }
.cg-scanner-close {
  background: transparent; border: 0;
  font-size: 24px; line-height: 1; cursor: pointer;
  color: var(--c-text-muted); padding: 4px 8px;
}
.cg-scanner-close:hover { color: var(--c-text); }
.cg-scanner-body { padding: 16px 18px; overflow-y: auto; }
.cg-scanner-hint { margin: 0 0 10px; font-size: 13px; color: var(--c-text-muted); }
#cg-scanner-reader {
  width: 100%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  min-height: 280px;
}
#cg-scanner-reader video { width: 100% !important; height: auto !important; }
.cg-scanner-status { margin: 12px 0 0; font-size: 13px; font-weight: 700; color: var(--c-trust); }

/* Mobile: collapse the search button to just the icon so the input
   has room to breathe. The "Buscar" label was eating ~120px of the
   bar on 375px viewports, leaving the input squeezed to a sliver. */
@media (max-width: 768px) {
  .cg-search-btn {
    padding: 10px 14px;
    min-width: 44px;
    justify-content: center;
  }
  .cg-search-btn-text {
    /* visually hidden but accessible to screen readers */
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
  }
}

/* =============================================================================
   SEARCH AUTOCOMPLETE DROPDOWN  (v0.12.0)
   Appears below the search bar on focus. Sections: trending pills, recent
   searches (localStorage), categories, products + vendors (when those exist).
   ============================================================================= */
.cg-search-wrap {
  flex: 1;
  position: relative;
  min-width: 0;
}
.cg-search-wrap .cg-search { flex: none; width: 100%; }

/* v1.2.0 — Delivery picker pill, between logo and search bar.
   v1.2.2 — Kept visible on mobile so the plugin's mini pin variant can render. */
.cg-header-delivery {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  margin-left: 4px;
  margin-right: 4px;
  position: relative; /* anchor for the mobile popup */
}
@media (max-width: 600px) {
  .cg-header-delivery { margin-left: 2px; margin-right: 2px; }
}

.cg-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  padding: 6px 0;
  z-index: 200;
  display: none;
  max-height: 78vh;
  overflow-y: auto;
}
.cg-search-wrap.is-open .cg-search-dropdown {
  display: block;
}

.cg-search-section { padding: 8px 0; }
.cg-search-section + .cg-search-section {
  border-top: 1px solid var(--c-border-soft);
}
.cg-search-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 6px 18px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}
.cg-search-section-title a {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: var(--c-blue);
}

/* Trending pills */
.cg-search-trending {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 18px 8px;
}
.cg-search-pill {
  background: #F3F4F6;
  color: var(--c-text);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.cg-search-pill:hover {
  background: #EFF6FF;
  color: var(--c-blue);
  border-color: var(--c-blue);
}

/* Item row (recent searches, categories, products, vendors) */
.cg-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  text-decoration: none !important;
  color: var(--c-text);
  font-size: 13px;
}
.cg-search-item:hover {
  background: #F9FAFB;
  color: var(--c-text);
}
.cg-search-item-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #1e73be 0%, #155490 100%);
  overflow: hidden;
}
.cg-search-item-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cg-search-item-icon--glyph {
  background: #F3F4F6;
  color: var(--c-text-muted);
}
.cg-search-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.cg-search-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.3;
  margin: 0 0 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cg-search-item-meta {
  font-size: 11.5px;
  color: var(--c-text-muted);
}
.cg-search-item-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--c-text);
  white-space: nowrap;
  margin-left: 8px;
}

/* Recent searches: row buttons for "remove this entry" */
.cg-search-recent-remove {
  background: transparent;
  border: 0;
  color: var(--c-text-soft);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 6px;
  margin-left: auto;
  line-height: 1;
}
.cg-search-recent-remove:hover { color: var(--c-sale); }

/* Footer */
.cg-search-dropdown-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--c-border-soft);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-blue);
  text-decoration: none !important;
}
.cg-search-dropdown-footer:hover { background: #F9FAFB; }

/* Header right-side action items (account, wishlist, compare, cart, bell) */
.cg-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.cg-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4px 10px;
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.3;
}
.cg-action:hover { color: #fff; text-decoration: none; }
.cg-action span { display: block; opacity: 0.85; font-size: 11.5px; }
.cg-action strong { font-weight: 700; font-size: 13px; }
@media (max-width: 1100px) { .cg-action--account { display: none; } }
@media (max-width: 1280px) { .cg-action--compare { display: none; } }
@media (max-width: 980px)  { .cg-action--wishlist { display: none; } }

.cg-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0 6px;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
}
.cg-icon-btn:hover { color: #fff; text-decoration: none; }
.cg-icon-circle {
  position: relative;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.18s;
}
.cg-icon-btn:hover .cg-icon-circle { background: rgba(251, 191, 36, 0.28); }
.cg-icon-circle--cart { background: var(--c-promo); color: var(--c-promo-text); }
.cg-icon-circle--cart:hover { filter: brightness(0.95); }
.cg-icon-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--c-blue-darker);
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cg-icon-circle--cart .cg-icon-badge { background: var(--c-blue-darker); }
.cg-icon-label {
  font-size: 11px;
  color: #fff;
  font-weight: 700;
}
@media (max-width: 700px) {
  /* Mobile: keep cart + bell visible, hide other icon buttons.
     Drop the under-icon labels ("Avisos" / total) since space is tight. */
  .cg-icon-btn:not(.cg-icon-btn--cart):not(.cg-icon-btn--bell) { display: none; }
  .cg-icon-btn--cart .cg-icon-label,
  .cg-icon-btn--bell .cg-icon-label { display: none; }

  /* Bell + cart cluster on the right edge, adjacent to each other.
     The search bar drops to its own row below. */
  .cg-site-header .cg-container {
    flex-wrap: wrap;
    row-gap: 12px;
  }
  .cg-header-actions {
    margin-left: auto;
    gap: 8px;
  }
  .cg-search-wrap {
    order: 10;
    flex: 0 0 100%;
    width: 100%;
  }
}

/* =========================
   TRUST STRIP (Departamentos + trust messages)
   ========================= */
.cg-trust {
  background: var(--c-card);
  border-bottom: 1px solid var(--c-border);
  padding: 0;
}
.cg-trust .cg-container {
  display: flex;
  align-items: stretch;
  padding: 0 16px;
}

/* Departamentos button (left side) */
.cg-dept { position: relative; display: inline-block; flex-shrink: 0; }
.cg-dept-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 270px;
  padding: 16px 22px;
  background: #fff;
  color: var(--c-text);
  border: 0;
  border-right: 1px solid var(--c-border);
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  letter-spacing: -0.01em;
}
.cg-dept-btn:hover { background: #F9FAFB; color: var(--c-blue); }
.cg-dept-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cg-dept-arrow {
  font-size: 11px;
  opacity: 0.6;
  margin-left: auto;
  transition: transform 0.2s;
}
.cg-dept-btn[aria-expanded="true"] .cg-dept-arrow { transform: rotate(180deg); }
@media (max-width: 1024px) { .cg-dept { display: none; } }

/* Mega menu dropdown — simple version for v0.2.0; full 2-tier comes later */
.cg-megamenu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 270px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-top: 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  z-index: 50;
  display: none;
  border-radius: 0 0 var(--radius) var(--radius);
}
.cg-megamenu.is-open { display: block; }
.cg-megamenu ul { list-style: none; margin: 0; padding: 0; }
.cg-megamenu li {
  padding: 12px 18px;
  cursor: pointer;
  font-size: 14px;
  color: var(--c-text);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--c-border);
  transition: background 0.12s, color 0.12s;
}
.cg-megamenu li:last-child { border-bottom: 0; }
.cg-megamenu li:hover { background: #F9FAFB; color: var(--c-blue); }
.cg-megamenu li.featured { color: var(--c-sale); font-weight: 700; }
.cg-megamenu li .arrow { color: var(--c-text-muted); font-size: 13px; }
.cg-megamenu li:hover .arrow { color: var(--c-blue); }

/* Trust messages on the right side */
.cg-trust-msgs {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 12px;
  padding: 12px 18px;
  border-left: 1px solid var(--c-border);
  flex-wrap: nowrap;
  overflow: hidden;
}
.cg-trust-msg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--c-text);
  font-weight: 600;
  white-space: nowrap;
}
.cg-trust-msg .check { color: var(--c-trust); font-weight: 800; margin-right: 4px; }
@media (max-width: 1280px) {
  .cg-trust-msg:nth-child(4),
  .cg-trust-msg:nth-child(5) { display: none; }
}
@media (max-width: 1024px) {
  .cg-trust-msg:nth-child(3) { display: none; }
  .cg-trust .cg-container { padding: 10px 12px; justify-content: center; }
  .cg-trust-msgs { border-left: 0; }
}
@media (max-width: 768px) { .cg-trust-msg { font-size: 12px; } }

/* =========================
   CAMPAIGN BAR (yellow strip — rotates between messages, sits at top)
   ========================= */
.cg-promo {
  background: var(--c-promo);
  color: var(--c-promo-text);
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  position: relative;
  /* Stack slides on top of each other; height matches the tallest slide. */
  display: grid;
}
.cg-promo .cg-promo-slide {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.cg-promo .cg-promo-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
@media (max-width: 768px) { .cg-promo { font-size: 11.5px; padding: 8px 12px; line-height: 1.35; } }

/* =========================
   FOOTER
   ========================= */
.cg-site-footer {
  background: var(--c-blue-darker);
  color: #BFDBFE;
  padding: 48px 0 0;
  margin-top: 60px;
  font-size: 13px;
}
.cg-site-footer a { color: #BFDBFE; text-decoration: none; }
.cg-site-footer a:hover { color: #fff; text-decoration: none; }
.cg-footer-cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 32px;
}
@media (max-width: 1024px) { .cg-footer-cols { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 600px) { .cg-footer-cols { grid-template-columns: 1fr 1fr; } }
.cg-footer-col h4 {
  font-size: 13px;
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 14px;
}
.cg-footer-col a {
  display: block;
  padding: 5px 0;
  font-size: 13px;
  line-height: 1.45;
}
.cg-footer-brand-block p {
  font-size: 13px;
  margin: 0 0 12px;
  line-height: 1.55;
}
.cg-footer-tagline { color: var(--c-promo); font-weight: 700; margin-bottom: 8px !important; }
.cg-footer-social { display: flex; gap: 12px; margin-top: 14px; }
.cg-footer-social a {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.15s;
  padding: 0;
}
.cg-footer-social a:hover { background: var(--c-promo); color: var(--c-promo-text); }

/* Bottom strip — payment methods + copyright */
.cg-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.cg-footer-payments {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.cg-footer-payment {
  background: #fff;
  color: var(--c-text);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.cg-footer-copy {
  font-size: 12px;
  opacity: 0.85;
}

/* =========================
   MOBILE DRAWER (hamburger menu)
   ========================= */
.cg-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9990;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.cg-drawer-overlay.is-open { opacity: 1; pointer-events: auto; }
.cg-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(360px, 92vw);
  background: #fff;
  z-index: 9995;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 16px;
  box-shadow: 8px 0 24px rgba(0, 0, 0, 0.12);
}
.cg-drawer.is-open { transform: translateX(0); }
.cg-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 14px;
}
.cg-drawer-head strong { font-size: 16px; color: var(--c-text); }
.cg-drawer-close {
  background: none;
  border: 0;
  font-size: 22px;
  color: var(--c-text-muted);
  cursor: pointer;
  padding: 4px 8px;
}
.cg-drawer h4 {
  font-size: 11px;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 14px 0 6px;
}
.cg-drawer ul { list-style: none; margin: 0; padding: 0; }
.cg-drawer ul li {
  padding: 10px 4px;
  border-bottom: 1px solid var(--c-border-soft);
}
.cg-drawer ul li a {
  color: var(--c-text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

/* =========================
   WOOCOMMERCE NOTICES (sitewide)
   Restyle the green/yellow/red boxes WC shows for added-to-cart, errors,
   validation. Replaces WC's default beige + dotted-border look.
   ========================= */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
.woocommerce-NoticeGroup .woocommerce-error,
.woocommerce-NoticeGroup .woocommerce-message {
  background: var(--c-card) !important;
  border: 1px solid var(--c-border) !important;
  border-left: 4px solid var(--c-trust) !important;
  border-radius: var(--radius) !important;
  padding: 14px 18px !important;
  margin: 0 0 14px !important;
  font-size: 13.5px !important;
  color: var(--c-text) !important;
  line-height: 1.5 !important;
  list-style: none !important;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before { display: none !important; }

.woocommerce-message {
  border-left-color: var(--c-trust) !important;
}
.woocommerce-info {
  border-left-color: var(--c-blue) !important;
}
.woocommerce-error,
.woocommerce-NoticeGroup .woocommerce-error {
  border-left-color: var(--c-sale) !important;
}
.woocommerce-error li,
.woocommerce-message li,
.woocommerce-info li {
  margin: 0 !important;
  padding: 2px 0 !important;
}
.woocommerce-error a,
.woocommerce-message a,
.woocommerce-info a {
  color: var(--c-blue) !important;
  font-weight: 700;
  text-decoration: none;
}
.woocommerce-error a:hover,
.woocommerce-message a:hover { text-decoration: underline; }

/* The "Ver carrito" / "View cart" button next to the added-to-cart message */
.woocommerce-message .button,
.woocommerce-info .button {
  background: var(--c-blue) !important;
  color: #fff !important;
  padding: 7px 14px !important;
  border-radius: 4px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  margin-left: 10px !important;
  text-decoration: none !important;
  border: 0 !important;
}
.woocommerce-message .button:hover,
.woocommerce-info .button:hover {
  background: var(--c-blue-dark) !important;
  color: #fff !important;
}

/* =========================
   NOTIFICATIONS BELL + DROPDOWN PANEL
   ========================= */
.cg-bell-wrap {
  position: relative;
}
.cg-icon-circle--bell {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.cg-icon-btn--bell:hover .cg-icon-circle--bell {
  background: rgba(255, 255, 255, 0.28);
}
.cg-icon-badge--bell {
  background: var(--c-sale);
  color: #fff;
}

.cg-notif-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 380px;
  max-width: 92vw;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  display: none;
  z-index: 9990;
  color: var(--c-text);
  overflow: hidden;
}
.cg-notif-panel.is-open { display: block; }
.cg-notif-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-page-bg);
}
.cg-notif-panel-head h3 {
  font-size: 15px;
  font-weight: 800;
  margin: 0;
  color: var(--c-text);
}
.cg-notif-mark-read {
  background: none;
  border: 0;
  color: var(--c-blue);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  padding: 4px;
}
.cg-notif-mark-read:hover { text-decoration: underline; }

.cg-notif-list {
  max-height: 460px;
  overflow-y: auto;
}
.cg-notif-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--c-border);
  text-decoration: none;
  color: var(--c-text);
  background: #fff;
  transition: background 0.15s;
}
.cg-notif-item:hover { background: #F8FBFF; text-decoration: none; }
.cg-notif-item.is-unread { background: #F0F9FF; }
.cg-notif-item.is-unread:hover { background: #E0F2FE; }

.cg-notif-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: #F3F4F6;
}
.cg-notif-item-icon--order  { background: #DBEAFE; }
.cg-notif-item-icon--vendor { background: #FEF3C7; }
.cg-notif-item-icon--promo  { background: #FEE2E2; }
.cg-notif-item-icon--system { background: #ECFDF5; }

.cg-notif-item-body { flex: 1; min-width: 0; }
.cg-notif-item-title {
  font-size: 13.5px;
  font-weight: 700;
  margin: 0 0 3px;
  color: var(--c-text);
  line-height: 1.3;
}
.cg-notif-item-text {
  font-size: 12.5px;
  color: var(--c-text-muted);
  margin: 0 0 4px;
  line-height: 1.45;
}
.cg-notif-item-text strong { color: var(--c-text); }
.cg-notif-item-meta {
  font-size: 11px;
  color: var(--c-text-soft);
  margin: 0;
  font-weight: 600;
}
.cg-notif-item.is-unread::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-blue);
  margin-top: 14px;
  flex-shrink: 0;
}

.cg-notif-panel-foot {
  display: flex;
  justify-content: flex-end;
  padding: 12px 16px;
  border-top: 1px solid var(--c-border);
  background: var(--c-page-bg);
}
.cg-notif-see-all {
  font-size: 12.5px;
  color: var(--c-blue) !important;
  font-weight: 700;
  text-decoration: none !important;
}
.cg-notif-see-all:hover { text-decoration: underline !important; }

@media (max-width: 600px) {
  .cg-notif-panel { right: -20px; width: calc(100vw - 16px); }
}
