/* XCESO CALZADO — site enhancements (load after Flatsome) */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Lato:wght@400;700&display=swap");

:root {
  --xceso-green: #489710;
  --xceso-green-dark: #3a7a0d;
  --xceso-green-light: #71c039;
  --xceso-ink: #1a1a1a;
  --xceso-surface: #f7f8f5;
  --xceso-radius: 12px;
  --xceso-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* Safety: keep page readable even if theme CSS is delayed */
html.loading-site,
body.loading-site,
#wrapper,
#main {
  background-color: #fff;
}

body {
  font-family: Lato, Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Header & logo */
#logo img.header-logo,
#logo img.header-logo-dark {
  height: auto;
  max-height: 90px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.06));
}

.header-main {
  background: #fff !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

#top-bar {
  background: var(--xceso-green) !important;
  color: #fff;
}

#top-bar .html_topbar_left strong {
  letter-spacing: 0.04em;
  font-weight: 600;
}

.header-nav-main > li > a.nav-top-link {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.header-nav-main > li > a.nav-top-link:hover,
.header-nav-main > li.active > a.nav-top-link {
  color: var(--xceso-green) !important;
}

/* Social icons */
.social-icons .icon.button,
.social-icons .icon.plain {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icons .icon.button:hover,
.social-icons .icon.plain:hover {
  transform: translateY(-2px);
}

.social-icons .facebook i { color: #1877f2; }
.social-icons .instagram i { color: #e4405f; }
.social-icons .tiktok i { color: #000; }
.social-icons .email i { color: var(--xceso-green); }

/* Product cards */
.products .product-small .box,
.product-small .box-text,
.woocommerce ul.products li.product .box {
  border-radius: var(--xceso-radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.products .product-small:hover .box,
.woocommerce ul.products li.product:hover .box {
  transform: translateY(-4px);
  box-shadow: var(--xceso-shadow);
}

.product-small .box-image img,
.woocommerce ul.products li.product img {
  object-fit: cover;
  background: var(--xceso-surface);
  transition: transform 0.35s ease;
}

.product-small:hover .box-image img {
  transform: scale(1.03);
}

.product-title a {
  color: var(--xceso-ink);
  font-weight: 600;
}

.price .amount,
.woocommerce-Price-amount {
  color: var(--xceso-green-dark);
  font-weight: 700;
}

.button.primary,
.button.checkout,
.single_add_to_cart_button {
  background: var(--xceso-green) !important;
  border-color: var(--xceso-green) !important;
  border-radius: 999px !important;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.button.primary:hover,
.button.checkout:hover,
.single_add_to_cart_button:hover {
  background: var(--xceso-green-dark) !important;
  border-color: var(--xceso-green-dark) !important;
  transform: translateY(-1px);
}

.button.alert.is-outline {
  border-color: #e11d48 !important;
  color: #e11d48 !important;
  font-weight: 700;
}

/* Category / promo banners — images apply without Flatsome lazy-load JS */
.banner .bg.bg-fill {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

.banner.has-hover .bg-zoom-fade .bg-fill {
  transition: transform 0.4s ease;
}

.banner.has-hover:hover .bg-zoom-fade .bg-fill {
  transform: scale(1.05);
}

/* Broken Joinchat (archive CSS) — use simple WhatsApp float */
.joinchat {
  display: none !important;
}

.xceso-wa-float {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 99999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.xceso-wa-float:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55);
  color: #fff;
}

.xceso-wa-float svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

/* Hero banner (replaces broken Revolution Slider) */
.xceso-hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  background: #f7f8f5;
  aspect-ratio: 1400 / 480;
  max-height: min(52vw, 520px);
}

.xceso-hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.xceso-hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.xceso-hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

@media (max-width: 849px) {
  .xceso-hero {
    aspect-ratio: 4 / 3;
    max-height: 320px;
  }
}

/* Images — prevent broken layout */
img {
  max-width: 100%;
  height: auto;
}

img[src=""],
img:not([src]),
.box-image img[src*="dummy.png"] {
  min-height: 200px;
  background: linear-gradient(135deg, #eef2e8 0%, #f8faf5 100%);
  object-fit: contain;
}

/* Footer */
.footer-wrapper {
  background: #111 !important;
  color: #e5e7eb;
}

.footer-wrapper a {
  color: #d1d5db;
}

.footer-wrapper a:hover {
  color: var(--xceso-green-light);
}

/* WhatsApp float */
.joinchat,
.joinchat__button {
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35) !important;
}

/* Back to top */
#top-link {
  background: var(--xceso-green) !important;
  border-color: var(--xceso-green) !important;
  color: #fff !important;
}

/* Breadcrumbs & page titles */
.page-title,
.breadcrumbs {
  font-weight: 600;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="tel"],
textarea,
select {
  border-radius: 8px !important;
  border-color: #d1d5db !important;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--xceso-green) !important;
  box-shadow: 0 0 0 3px rgba(72, 151, 16, 0.15) !important;
}

/* Mobile */
@media (max-width: 849px) {
  #logo img.header-logo,
  #logo img.header-logo-dark {
    max-height: 64px;
    max-width: 170px;
  }

  .header-main {
    height: auto !important;
    min-height: 64px;
  }
}
