/* ============================================
   XCIPTV BLUE THEME - Complete Override v6
   Overrides ALL red colors to blue
   ============================================ */

/* 1. Override CSS variables - this fixes ALL var(--u-red) references at once */
:root {
  --u-red: #1565C0 !important;
  --u-red2: #0D47A1 !important;
  --u-orange: #1E88E5 !important;
}

/* 2. Header - dark blue */
.xciptv-header {
  background: #0a1e3d !important;
  border-bottom: 1px solid rgba(30,136,229,.2) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,.25) !important;
}

/* 3. Logo - square, no stretch */
.xciptv-logo {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
}
.xciptv-logo img,
.xciptv-logo img[src*="xciptv-logo"],
.xciptv-logo img[src*="logo.png"] {
  height: 44px !important;
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  border-radius: 10px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  display: block !important;
}

/* 4. Buy button - desktop (it's an <a> tag now) */
.sp-buy-section a.single_add_to_cart_button,
.sp-buy-section .single_add_to_cart_button,
.sp-buy-section button,
.sp-buy-section .cart button,
.sp-buy-section .cart .single_add_to_cart_button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 16px 24px !important;
  background: #1565C0 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 14px !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: .2s !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  gap: 8px !important;
}
.sp-buy-section a.single_add_to_cart_button:hover,
.sp-buy-section button:hover {
  background: #0D47A1 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 30px rgba(21,101,192,.35) !important;
  color: #fff !important;
}

/* 5. Mobile buy button - force override final-v23 and final-v24 */
@media (max-width: 640px) {
  .single-product-wrapper .sp-buy-section a.single_add_to_cart_button,
  .single-product-wrapper .sp-buy-section .single_add_to_cart_button,
  .single-product-wrapper .sp-buy-section button,
  .single-product-wrapper .sp-buy-section .cart button,
  .single-product-wrapper .sp-buy-section .cart .single_add_to_cart_button {
    background: #1565C0 !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(21,101,192,.30) !important;
    border-radius: 12px !important;
    min-height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Mobile logo */
  .xciptv-logo img {
    height: 38px !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
  }

  /* Mobile price */
  .single-product-wrapper .sp-price-value {
    color: #1565C0 !important;
  }
}

/* 6. Home page buttons */
.hp-btn-primary {
  background: #1565C0 !important;
  color: #fff !important;
}
.hp-btn-primary:hover {
  background: #0D47A1 !important;
  box-shadow: 0 8px 25px rgba(21,101,192,.35) !important;
  color: #fff !important;
}
.hp-btn-outline:hover {
  border-color: #1565C0 !important;
  color: #1565C0 !important;
}

/* 7. Product cards */
.hp-product-card:hover { border-color: #1565C0 !important; }

/* 8. Related products "Ver Plano" button */
.product-loop-actions .button,
.product-loop-actions a.button {
  background: #1565C0 !important;
  color: #fff !important;
}

/* 9. Footer */
.xciptv-footer { background: #071629 !important; }
.footer-bottom-bar { background: #040e1c !important; }
.footer-legal-text { background: #020a14 !important; }

/* 10. WhatsApp float - keep green */
.whatsapp-float {
  background: linear-gradient(135deg, #25d366, #128c7e) !important;
}

/* 11. Home hero */
.hp-hero { background: #f0f6ff !important; }
.hp-products { background: #f4f8ff !important; }

/* 12. Category tag */
.sp-category-tag {
  background: #e3f0ff !important;
  color: #1565C0 !important;
}
@media (max-width: 640px) {
  .single-product-wrapper .sp-category-tag {
    background: #e3f0ff !important;
    color: #1565C0 !important;
  }
}

/* 13. Email button blue */
.xciptv-btn-email { background: #1565C0 !important; color: #fff !important; }
.xciptv-email-icon { background: #e3f0ff !important; color: #1565C0 !important; }

/* 14. Account & admin buttons */
.account-form button { background: #1565C0 !important; }
.cart-btn { background: #1565C0 !important; }
