/*
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;
}

/* 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;
}
