/*
Theme Name: CDO Travel Theme
Theme URI: https://cdo.plus
Author: CDO Travel
Author URI: https://cdo.plus
Description: Tema base controlado para o ecossistema CDO Travel no cdo.plus. O tema controla layout, header, footer e templates WooCommerce. A logica de produtos fica no plugin CDO Platform.
Version: 1.1.3
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: cdo-travel-theme
License: Proprietary
*/

:root {
  --cdo-yellow: #ffcc04;
  --cdo-green: #92d037;
  --cdo-teal: #00d0d7;
  --cdo-lilac: #b39ddb;
  --cdo-purple: #683bcd;
  --cdo-cherry: #d60051;
  --cdo-coral: #ff6b6b;
  --cdo-ink: #171225;
  --cdo-muted: #706a7c;
  --cdo-line: #eee9f7;
  --cdo-bg: #faf8ff;
  --cdo-white: #ffffff;
  --cdo-radius: 22px;
  --cdo-shadow: 0 18px 50px rgba(41, 25, 82, 0.10);
  --cdo-container: 1180px;
  --cdo-header-top-bg: #ecfbff;
  --cdo-header-bg: #ffffff;
  --cdo-header-link: #171225;
  --cdo-header-active: var(--cdo-purple);
  --cdo-logo-width: 178px;
  --cdo-mobile-logo-width: 140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--cdo-bg);
  color: var(--cdo-ink);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.screen-reader-text { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

.cdo-header-container,
.cdo-site-footer__inner,
.cdo-container {
  width: min(var(--cdo-container), calc(100% - 32px));
  margin: 0 auto;
}

/* CDO Travel Theme v1.1.3 - refined compact header inspired by current CDO storefront */
.cdo-site-header {
  z-index: 1000;
  background: var(--cdo-header-bg);
  border-bottom: 1px solid rgba(23,18,37,.08);
}
.cdo-header-is-sticky .cdo-site-header { position: sticky; top: 0; }
.cdo-premium-header.is-scrolled { box-shadow: 0 10px 24px rgba(23,18,37,.06); }

.cdo-header-topbar {
  background: var(--cdo-header-top-bg);
  color: rgba(23,18,37,.68);
  border-bottom: 1px solid rgba(0,208,215,.10);
}
.cdo-header-topbar__inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.cdo-header-topbar__inner::-webkit-scrollbar { display: none; }
.cdo-topbar-nav { width: 100%; }
.cdo-topbar-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 0;
  margin: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.cdo-topbar-nav ul::-webkit-scrollbar { display: none; }
.cdo-topbar-nav li { flex: 0 0 auto; }
.cdo-topbar-nav li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: .005em;
  white-space: nowrap;
  color: rgba(23,18,37,.64);
  transition: color .16s ease;
}
.cdo-topbar-nav li > a i { font-size: 12.5px; color: rgba(23,18,37,.62); }
.cdo-topbar-nav li > a:hover { color: var(--cdo-purple); }

.cdo-header-main { background: var(--cdo-header-bg); }
.cdo-header-main__inner {
  min-height: 74px;
  display: grid;
  grid-template-columns: 190px minmax(320px, 520px) auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cdo-brand {
  display: inline-flex;
  align-items: center;
  color: var(--cdo-purple);
  font-weight: 900;
  line-height: 1;
}
.cdo-brand--image img,
.cdo-brand--image .custom-logo {
  width: var(--cdo-logo-width);
  max-width: 100%;
  height: auto;
  display: block;
}
.cdo-brand__text {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -.075em;
  color: var(--cdo-purple);
}
.cdo-brand__text span { font-size: 27px; letter-spacing: -.04em; font-weight: 800; }

.cdo-header-search {
  justify-self: end;
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: 1fr 104px;
  min-height: 42px;
  background: #fff;
  border: 1px solid rgba(23,18,37,.34);
  border-radius: 0;
  overflow: hidden;
}
.cdo-header-search input[type="search"] {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 0;
  outline: 0;
  padding: 0 14px;
  background: #fff;
  color: var(--cdo-ink);
  font-size: 13.5px;
  font-weight: 400;
}
.cdo-header-search input::placeholder { color: rgba(23,18,37,.54); }
.cdo-header-search button {
  height: 42px;
  border: 0;
  background: var(--cdo-purple);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  font-size: 11.5px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .16s ease;
}
.cdo-header-search button i { font-size: 13px; font-weight: 400; }
.cdo-header-search button:hover { background: #5c31bb; }

.cdo-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 13px;
}
.cdo-header-icon-btn,
.cdo-mobile-toggle {
  width: 29px;
  height: 29px;
  border: 0;
  border-radius: 0;
  display: inline-grid;
  place-items: center;
  background: transparent;
  color: rgba(23,18,37,.82);
  font-size: 22px;
  position: relative;
  cursor: pointer;
  transition: color .16s ease, transform .16s ease;
}
.cdo-header-icon-btn:hover,
.cdo-mobile-toggle:hover { color: var(--cdo-purple); transform: translateY(-1px); }
.cdo-cart-count {
  position: absolute;
  top: -6px;
  right: -7px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--cdo-teal);
  color: #fff;
  font-size: 10px;
  line-height: 1;
  font-weight: 850;
}
.cdo-mobile-toggle { display: none; }

.cdo-header-menu {
  background: #fff;
  border-top: 1px solid rgba(23,18,37,.08);
}
.cdo-header-menu__inner {
  min-height: 48px;
  display: flex;
  align-items: center;
}
.cdo-main-nav { width: 100%; }
.cdo-main-nav--mobile { display: none; }
.cdo-main-nav ul,
.cdo-main-nav > ul {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 0;
  margin: 0;
}
.cdo-main-nav li,
.cdo-main-nav > ul > li { position: relative; flex: 0 0 auto; }
.cdo-main-nav li > a,
.cdo-main-nav > ul > li > a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 0 9px;
  color: var(--cdo-header-link);
  font-size: 12.7px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: -.012em;
  white-space: nowrap;
  position: relative;
}
.cdo-main-nav li > a::after,
.cdo-main-nav > ul > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: transparent;
  opacity: 0;
  transform: scaleX(.45);
  transition: opacity .16s ease, transform .16s ease;
}
.cdo-main-nav li.current-menu-item > a::after,
.cdo-main-nav li.current-menu-ancestor > a::after,
.cdo-main-nav li.is-active > a::after,
.cdo-main-nav li > a:hover::after {
  background: var(--cdo-header-active);
  opacity: 1;
  transform: scaleX(1);
}
.cdo-main-nav i { font-size: 12.5px; line-height: 1; color: currentColor; }
.cdo-menu-caret { font-size: 8.5px !important; color: rgba(23,18,37,.46); margin-left: -2px; }
.cdo-menu-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  border-radius: 4px;
  padding: 0 7px;
  color: #fff;
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: .005em;
  font-weight: 850;
  margin-left: 2px;
  line-height: 1;
}
.cdo-menu-badge--purple { background: var(--cdo-purple); }
.cdo-menu-badge--teal { background: var(--cdo-teal); }
.cdo-menu-badge--cherry { background: var(--cdo-cherry); }
.cdo-menu-badge--yellow { background: var(--cdo-yellow); color: #2a2141; }

.cdo-main-nav .sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: -14px;
  z-index: 30;
  min-width: 218px;
  display: grid;
  gap: 2px;
  padding: 10px;
  margin: 0;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(104,59,205,.12);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(23,18,37,.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(7px);
  transition: opacity .16s ease, transform .16s ease;
}
.cdo-main-nav li:hover > .sub-menu,
.cdo-main-nav li:focus-within > .sub-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.cdo-main-nav .sub-menu a {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--cdo-header-link);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}
.cdo-main-nav .sub-menu a::after { display: none; }
.cdo-main-nav .sub-menu a:hover { background: #f7f2ff; color: var(--cdo-purple); }
.cdo-main-nav .sub-menu .sub-menu { top: 0; left: calc(100% + 8px); }

.cdo-header-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background: var(--cdo-purple);
  color: white;
  box-shadow: 0 12px 28px rgba(104, 59, 205, 0.22);
}
.cdo-site-main { min-height: 70vh; padding: 36px 0 56px; }
.cdo-page-card,
.woocommerce-page .woocommerce,
.woocommerce .woocommerce-checkout,
.woocommerce-cart-form,
.cart-collaterals .cart_totals { background: var(--cdo-white); border: 1px solid var(--cdo-line); border-radius: var(--cdo-radius); box-shadow: var(--cdo-shadow); }
.cdo-page-card { padding: 28px; }
.woocommerce-page .woocommerce { padding: 24px; }
.woocommerce div.product { width: min(var(--cdo-container), calc(100% - 32px)); margin: 0 auto; }
.woocommerce div.product .product_title { font-size: clamp(32px, 5vw, 54px); line-height: 1.02; letter-spacing: -0.06em; margin: 0 0 14px; }
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--cdo-purple); font-weight: 900; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.input-text,
select,
textarea { width: 100%; min-height: 46px; border: 1px solid var(--cdo-line); border-radius: 14px; padding: 11px 13px; background: white; }
.woocommerce table.shop_table { border-radius: 18px; overflow: hidden; border-color: var(--cdo-line); }
.cdo-site-footer { background: #171128; color: white; padding: 34px 0; margin-top: 40px; }
.cdo-site-footer__inner { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; color: rgba(255,255,255,.76); font-size: 14px; }

@media (max-width: 1180px) {
  .cdo-header-main__inner { grid-template-columns: 180px minmax(280px, 500px) auto; gap: 18px; }
  .cdo-header-search { width: min(500px,100%); grid-template-columns: 1fr 98px; }
  .cdo-topbar-nav ul { gap: 24px; }
  .cdo-main-nav > ul,
  .cdo-main-nav ul { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding-bottom: 1px; }
  .cdo-main-nav > ul::-webkit-scrollbar,
  .cdo-main-nav ul::-webkit-scrollbar { display: none; }
}

@media (max-width: 860px) {
  .cdo-header-topbar__inner { min-height: 36px; }
  .cdo-topbar-nav ul { gap: 20px; }
  .cdo-topbar-nav li > a { font-size: 11.5px; }
  .cdo-header-main__inner { min-height: 64px; display: flex; justify-content: space-between; gap: 12px; }
  .cdo-brand--image img,
  .cdo-brand--image .custom-logo { width: var(--cdo-mobile-logo-width); }
  .cdo-brand__text { font-size: 29px; }
  .cdo-brand__text span { font-size: 21px; }
  .cdo-header-search { display: none; }
  .cdo-mobile-toggle { display: inline-grid; }
  .cdo-header-actions { gap: 9px; }
  .cdo-header-icon-btn,
  .cdo-mobile-toggle { width: 31px; height: 31px; font-size: 20px; }
  .cdo-header-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; border-top: 1px solid var(--cdo-line); box-shadow: 0 22px 42px rgba(23,18,37,.12); }
  .cdo-mobile-menu-open .cdo-header-menu { display: block; }
  .cdo-header-menu__inner { min-height: 0; padding: 10px 0 16px; }
  .cdo-main-nav--desktop { display: none; }
  .cdo-main-nav--mobile { display: block; }
  .cdo-main-nav > ul,
  .cdo-main-nav ul { display: grid; grid-template-columns: 1fr; gap: 2px; overflow: visible; }
  .cdo-main-nav > ul > li,
  .cdo-main-nav li { width: 100%; }
  .cdo-main-nav > ul > li > a,
  .cdo-main-nav li > a { width: 100%; justify-content: flex-start; min-height: 44px; padding: 10px 4px; font-size: 15px; font-weight: 700; }
  .cdo-main-nav > ul > li > a::after,
  .cdo-main-nav li > a::after { display: none; }
  .cdo-main-nav .sub-menu { position: static; display: grid; min-width: 0; padding: 0 0 0 24px; margin: 0; border: 0; border-radius: 0; box-shadow: none; opacity: 1; pointer-events: auto; transform: none; background: transparent; }
  .cdo-main-nav .sub-menu a { min-height: 36px; padding: 8px 4px; font-size: 13.5px; background: transparent; }
  .cdo-menu-caret { margin-left: auto; }
  .cdo-site-main { padding: 22px 0 38px; }
  .woocommerce-page .woocommerce { padding: 16px; }
}

@media (max-width: 480px) {
  .cdo-header-container,
  .cdo-site-footer__inner,
  .cdo-container { width: min(100% - 24px, var(--cdo-container)); }
  .cdo-header-actions { gap: 6px; }
  .cdo-header-icon-btn,
  .cdo-mobile-toggle { width: 30px; height: 30px; font-size: 18px; }
}
