/*
Theme Name: Hostout
Theme URI: https://hostout.com.br
Description: Tema próprio Hostout — Elementor Theme Builder, WooCommerce e área do cliente. Sem vínculo com tema de terceiros.
Author: João
Author URI: https://hostout.com.br
Version: 1.2.5
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: hostout
Tags: custom-logo, custom-menu, e-commerce, elementor, full-width-template, theme-options, translation-ready, woocommerce
*/

/* Base mínima — layout visual vem do Elementor + Hostout Core. */
:root {
  --hostout-ink: #111827;
  --hostout-muted: #6b7280;
  --hostout-accent: #0f766e;
  --hostout-surface: #ffffff;
}

html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  color: var(--hostout-ink);
  background: var(--hostout-surface);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--hostout-accent);
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.hostout-site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hostout-site__content {
  flex: 1 0 auto;
}

.hostout-fallback-header,
.hostout-fallback-footer {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.hostout-fallback-footer {
  border-bottom: 0;
  border-top: 1px solid #e5e7eb;
  margin-top: auto;
}

.hostout-fallback-header__inner {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.hostout-fallback-header__brand {
  flex: 0 0 auto;
}

.hostout-fallback-header__brand img {
  max-height: 40px;
  width: auto;
}

.hostout-fallback-header__nav {
  flex: 1 1 auto;
}

.hostout-fallback-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hostout-fallback-menu a {
  color: var(--hostout-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.hostout-fallback-menu a:hover {
  color: var(--hostout-accent);
}

.hostout-fallback-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.hostout-fallback-header__account {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  background: var(--hostout-accent);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.hostout-cart-icon,
.hostout-cart-icon-wrap .hostout-cart-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--hostout-ink);
  font-weight: 600;
  font-size: 0.9rem;
}

.hostout-cart-icon__count {
  display: inline-flex;
  min-width: 1.25rem;
  height: 1.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--hostout-accent);
  color: #fff;
  font-size: 0.75rem;
  padding: 0 0.3rem;
}

.hostout-fallback-header .site-title {
  margin: 0;
  font-size: 1.25rem;
}

.hostout-fallback-header .site-title a {
  color: inherit;
  text-decoration: none;
}

.hostout-content-wrap {
  width: min(1100px, 100% - 2rem);
  margin: 2rem auto;
}

.hostout-content-wrap .entry-title {
  margin-top: 0;
}

/* Logo Hostout no header/footer Elementor */
.elementor-location-header .elementor-widget-image img[src*="hostout-logo"],
.elementor-location-footer .elementor-widget-image img[src*="hostout-logo"] {
  max-height: 42px;
  width: auto;
  height: auto;
}

/* Ações do header: "Chat ao vivo" + carrinho com a mesma altura/ritmo */
.hostout-header-chat .elementor-button.elementor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 26px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.hostout-header-chat .elementor-button-text {
  white-space: nowrap;
}

.hostout-header-cart .hostout_smart_cart__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.hostout-header-cart #hostout_smart_cart__toggle_button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  min-width: 46px;
  padding: 0;
  border-radius: 50%;
  line-height: 0;
  text-align: center;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.hostout-header-cart #hostout_smart_cart__toggle_button:hover,
.hostout-header-cart #hostout_smart_cart__toggle_button:focus-visible {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.hostout-header-cart #hostout_smart_cart__toggle_button > img {
  display: block;
  width: 20px;
  min-width: 20px;
  max-width: 20px;
  height: 20px;
  min-height: 20px;
  max-height: 20px;
  margin: 0;
  object-fit: contain;
}

.hostout-header-cart #hostout_smart_cart__toggle_button .hostout-cart-count {
  position: absolute;
  top: -3px;
  right: -3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 100px;
  box-shadow: 0 0 0 2px #1b372b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.hostout-header-cart #hostout_smart_cart__toggle_button .hostout-cart-count.is-empty {
  display: none;
}

/* Header no intervalo intermediário (entre tablet e desktop largo).
   Evita que logo + menu + chat + carrinho quebrem para uma segunda linha. */
@media (max-width: 1367px) {
  .elementor-771 .e-con-inner,
  .elementor-element-9c2ce70 > .e-con-inner {
    flex-wrap: nowrap;
    min-width: 0;
  }

  .elementor-771 .elementor-widget-hostout-nav,
  .elementor-771 .elementor-element-5ebdcec {
    min-width: 0;
  }

  .elementor-771 .hostout-custom-nav-main .hostout-nav-menu > li > a.elementor-item {
    padding-left: 13px !important;
    padding-right: 13px !important;
    font-size: 15px !important;
    white-space: nowrap;
  }

  .hostout-header-chat .elementor-button.elementor-button {
    min-height: 42px !important;
    padding: 0 18px !important;
    font-size: 14px !important;
  }

  .hostout-header-cart #hostout_smart_cart__toggle_button {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }
}

@media (min-width: 1025px) and (max-width: 1367px) {
  .elementor-771 .elementor-widget-hostout-nav {
    flex: 1 1 auto;
  }
}

/* Abaixo disso o rótulo "Chat ao vivo" não cabe: vira um ícone redondo,
   no mesmo ritmo visual do carrinho (o texto segue no DOM para acessibilidade). */
@media (max-width: 1240px) {
  .elementor-771 .hostout-header-chat .elementor-button.elementor-button {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    border-radius: 50%;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
  }

  .elementor-771 .hostout-header-chat .elementor-button-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .elementor-771 .elementor-widget-hostout-nav .hostout-custom-nav-main .hostout-nav-menu > li > a.elementor-item {
    padding-left: 11px !important;
    padding-right: 11px !important;
    font-size: 14px !important;
  }
}

@media (max-width: 1120px) {
  .elementor-771 .elementor-element-5ebdcec {
    gap: 6px !important;
  }

  .elementor-771 .elementor-widget-hostout-nav .hostout-custom-nav-main .hostout-nav-menu > li > a.elementor-item {
    padding-left: 9px !important;
    padding-right: 9px !important;
    font-size: 13.5px !important;
  }
}

@media (max-width: 1060px) {
  .elementor-771 .elementor-widget-hostout-nav .hostout-custom-nav-main .hostout-nav-menu > li > a.elementor-item {
    padding-left: 7px !important;
    padding-right: 7px !important;
    font-size: 13px !important;
  }
}

/* Setas do carrossel de depoimentos: no meio termo o container encosta na borda
   da tela e o "próximo" (right: -50px) saía para fora do viewport. */
@media (max-width: 1367px) {
  .hostout-testimonial-section .owl-carousel .owl-nav .owl-prev {
    left: -18px !important;
  }

  .hostout-testimonial-section .owl-carousel .owl-nav .owl-next {
    right: -18px !important;
  }
}

@media (max-width: 767px) {
  .hostout-testimonial-section .owl-carousel .owl-nav .owl-prev {
    left: 0 !important;
  }

  .hostout-testimonial-section .owl-carousel .owl-nav .owl-next {
    right: 0 !important;
  }
}

/* Smart cart Hostiko toolkit (enquanto widgets legado existirem) */
.elementor-widget-akd-smart_cart:not(.elementor-menu-cart--shown) .akd_menu_cart_container {
  background-color: transparent !important;
  transform: scale(0) !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.elementor-widget-akd-smart_cart:not(.elementor-menu-cart--shown) .akd_menu_cart_main {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.elementor-widget-akd-smart_cart.elementor-menu-cart--shown .akd_menu_cart_container {
  pointer-events: auto !important;
  visibility: visible !important;
  transform: none !important;
  background-color: rgba(0, 0, 0, 0.45) !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
}

.elementor-widget-akd-smart_cart.elementor-menu-cart--shown .akd_menu_cart_main {
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

.akd_menu_cart_close_btn {
  cursor: pointer !important;
  z-index: 2;
  min-width: 32px;
  min-height: 32px;
}

.akd_menu_cart_close_btn::after {
  content: "×";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  color: #222;
  pointer-events: none;
}

body.hostout-smart-cart-open {
  overflow: hidden;
}

body:not(.hostout-smart-cart-open) {
  overflow: auto;
}

/* Área do cliente Hostout Core */
body.hostiko-client-area-page .hostiko-client-area,
body.hostout-client-area-page .hostout-client-area {
  color: #1f2937;
}

body.hostiko-client-area-page .hostiko-client-content,
body.hostout-client-area-page .hostout-client-content {
  color: #1f2937;
  background: #fff;
}

body.hostiko-client-area-page .hostiko-client-content h2,
body.hostiko-client-area-page .hostiko-client-content h3,
body.hostiko-client-area-page .hostiko-client-content h4,
body.hostout-client-area-page .hostout-client-content h2,
body.hostout-client-area-page .hostout-client-content h3,
body.hostout-client-area-page .hostout-client-content h4 {
  color: #111827;
}

body.hostiko-client-area-page .hostiko-client-content a,
body.hostout-client-area-page .hostout-client-content a,
body.hostiko-client-area-page .hostiko-client-area > nav a,
body.hostout-client-area-page .hostout-client-area > nav a {
  color: #0f766e;
  text-decoration: none;
}

body.hostiko-client-area-page .hostiko-client-area > nav a:hover,
body.hostout-client-area-page .hostout-client-area > nav a:hover {
  text-decoration: underline;
}

/* Blog cards */
.hostout-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 0 0 2rem;
}

.hostout-blog-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.hostout-blog-card__media img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.hostout-blog-card__body {
  padding: 1.1rem 1.25rem 1.35rem;
}

.hostout-blog-card .entry-title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  position: static !important;
  color: inherit !important;
}

.hostout-blog-card .entry-title a {
  color: #111827;
  text-decoration: none;
}

.hostout-blog-card__more {
  font-weight: 600;
  color: var(--hostout-accent);
}

/* Não deixar H1 solto competir com o banner / menu */
.hostout-content-wrap > .entry-title,
article.page > .entry-header .entry-title {
  display: none;
}

/* Plugins shortcode */
.hostout-plugins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hostout-plugins-grid li {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hostout-plugins-grid .hostout-plugin-name {
  font-weight: 600;
  color: #111827;
}

.hostout-plugins-grid a {
  font-weight: 600;
  color: var(--hostout-accent);
  text-decoration: none;
}
