/*
 * Prince — camada visual v3: estrutura da On, pele da Prince.
 * Mantém as fontes (Bebas Neue + Inter) e as cores (preto, branco, verde Prince) do site.
 * Muda só proporção, espaço e forma: conteúdo mais largo, mosaico de produtos em cinza,
 * cards altos de canto reto, abas sublinhadas, botões em pílula.
 * Tudo sob html.prince-on; sem a classe, o site fica exatamente como está.
 */

html.prince-on {
  --p-ink: #000;
  --p-mute: #707070;
  --p-line: #e5e5e5;
  --p-tile: radial-gradient(120% 90% at 50% 38%, #fafafa 0%, #efefef 55%, #e6e7e8 100%);
  --p-green: #28af60;
  --p-gutter: clamp(16px, 3.4vw, 48px);
  --p-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 1. Largura: de 1140px para quase borda a borda, como a On ---------- */
html.prince-on .e-con.e-con-boxed {
  --content-width: min(100%, 1344px) !important;
}
html.prince-on .e-con.e-con-boxed > .e-con-inner {
  padding-left: var(--p-gutter) !important;
  padding-right: var(--p-gutter) !important;
  max-width: 1440px !important;
}

/* ---------- 2. Cards de esporte: altos, canto reto, sem moldura ---------- */
html.prince-on .sports-grid-custom {
  gap: 12px !important;
}
html.prince-on .sport-card-custom {
  border-radius: 0 !important;
  aspect-ratio: 2 / 3;
  min-height: 0 !important;
  height: auto !important;
  background-size: cover !important;
  background-position: center !important;
  transition: filter .5s var(--p-ease);
}
html.prince-on .sport-card-custom:hover { filter: brightness(1.06); }
html.prince-on .sport-card-custom .sport-overlay {
  border-radius: 0 !important;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.55) 100%) !important;
}
html.prince-on .sport-content-custom {
  left: 20px !important;
  right: 20px !important;
  bottom: 20px !important;
}

/* ---------- 3. Produtos: mosaico em cinza, sem borda, texto curto à esquerda ---------- */
html.prince-on .jet-woo-products__inner-box {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  text-align: left !important;
  height: 100%;
}
html.prince-on body .elementor .jet-woo-carousel .jet-woo-products .jet-woo-products__item .jet-woo-product-thumbnail,
html.prince-on .jet-woo-products .jet-woo-products__item .jet-woo-product-thumbnail,
html.prince-on .jet-woo-product-thumbnail {
  order: 0 !important;
  background: var(--p-tile) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  aspect-ratio: 1 / 1;
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 0 14px !important;
}
html.prince-on .jet-woo-product-thumbnail a { display: contents; }
html.prince-on body .elementor .jet-woo-carousel .jet-woo-product-thumbnail img,
html.prince-on .jet-woo-product-thumbnail img {
  background: transparent !important;
  padding: 0 !important;
  width: 78% !important;
  height: 78% !important;
  object-fit: contain !important;
  mix-blend-mode: multiply;               /* o branco da foto some no cinza */
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: transform .7s var(--p-ease);
}
html.prince-on .jet-woo-products__item:hover .jet-woo-product-thumbnail img { transform: scale(1.05); }

/* nome do produto primeiro (Inter, como texto de produto da On), categoria embaixo como subtítulo */
html.prince-on .jet-woo-product-title {
  order: 1 !important;
  margin: 0 12px 2px !important;
}
html.prince-on .jet-woo-product-title,
html.prince-on .jet-woo-product-title a {
  font-family: "Inter", sans-serif !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--p-ink) !important;
}
html.prince-on .jet-woo-product-categories {
  order: 2 !important;
  line-height: 1.45 !important;
  padding-bottom: 1px;
  margin: 0 12px 10px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html.prince-on .jet-woo-product-categories,
html.prince-on .jet-woo-product-categories a {
  font-family: "Inter", sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--p-mute) !important;
}
html.prince-on .jet-woo-product-excerpt { display: none !important; }  /* a On mostra só nome + subtítulo */
html.prince-on .jet-woo-product-button {
  order: 3 !important;
  margin: auto 12px 0 !important;
}

/* grade da loja: blocos quase colados, como a vitrine da On */
html.prince-on .jet-woo-products:not(.swiper-wrapper) {
  margin-left: -4px !important;
  margin-right: -4px !important;
}
html.prince-on .jet-woo-products:not(.swiper-wrapper) > .jet-woo-products__item {
  padding: 0 4px 44px !important;
}

/* seção "Produtos" da home em branco, para o cinza dos blocos aparecer (como na On) */
html.prince-on .elementor-element-fe37fb5 { background: #fff !important; }

/* setas do carrossel: círculos brancos */
html.prince-on .jet-woo-carousel .jet-arrow {
  width: 44px !important;
  height: 44px !important;
  border-radius: 999px !important;
  background: #fff !important;
  border: 1px solid var(--p-line) !important;
  color: var(--p-ink) !important;
  box-shadow: none !important;
}

/* ---------- 4. Abas (Todos / Raquetes / On Court...): texto com sublinhado, sem caixas ---------- */
html.prince-on .e-n-tabs-heading { gap: 28px !important; border-bottom: 1px solid var(--p-line); }
html.prince-on .e-n-tab-title {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 10px 0 12px !important;
  margin-bottom: -1px;
  box-shadow: inset 0 -2px 0 transparent !important;
  transition: box-shadow .2s var(--p-ease), color .2s var(--p-ease) !important;
}
html.prince-on .e-n-tab-title .e-n-tab-title-text { color: var(--p-mute) !important; }
html.prince-on .e-n-tab-title:hover .e-n-tab-title-text { color: var(--p-ink) !important; }
html.prince-on .e-n-tab-title[aria-selected="true"] { box-shadow: inset 0 -2px 0 var(--p-ink) !important; }
html.prince-on .e-n-tab-title[aria-selected="true"] .e-n-tab-title-text { color: var(--p-ink) !important; }

/* ---------- 5. Botões em pílula (mesma fonte e cores) ---------- */
html.prince-on .elementor-button,
html.prince-on .single_add_to_cart_button {
  border-radius: 999px !important;
  padding-left: 30px !important;
  padding-right: 30px !important;
}
html.prince-on .elementor-widget-woocommerce-product-add-to-cart .single_add_to_cart_button {
  background: var(--p-ink) !important;
  color: #fff !important;
  border-color: var(--p-ink) !important;
  min-width: 240px;
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}
html.prince-on .elementor-widget-woocommerce-product-add-to-cart .single_add_to_cart_button:hover {
  background: #222 !important;
}

/* ---------- 6. Página de produto: galeria em cinza, sem moldura ---------- */
html.prince-on .elementor-widget-woocommerce-product-images .woocommerce-product-gallery__image,
html.prince-on .elementor-widget-woocommerce-product-images .flex-viewport {
  background: var(--p-tile) !important;
  border-radius: 0 !important;
}
html.prince-on .elementor-widget-woocommerce-product-images img {
  mix-blend-mode: multiply;
  border-radius: 0 !important;
}
html.prince-on .elementor-widget-woocommerce-product-images .flex-control-thumbs li img {
  background: #efefef;
  padding: 6px;
}
html.prince-on .woocommerce-product-attributes-item__value,
html.prince-on .woocommerce-product-attributes-item__value p { font-style: normal !important; }

/* ---------- 7. Breadcrumb: pequeno, em caixa alta, espaçado (como a On) ---------- */
html.prince-on :is(.woocommerce-breadcrumb, .woocommerce-breadcrumb a) {
  font-size: 11px !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  color: var(--p-mute) !important;
}

/* ---------- Acessibilidade ---------- */
html.prince-on :is(a, button, .elementor-button, .e-n-tab-title):focus-visible {
  outline: 2px solid var(--p-ink) !important;
  outline-offset: 3px !important;
}
@media (prefers-reduced-motion: reduce) {
  html.prince-on *, html.prince-on *::before, html.prince-on *::after { transition: none !important; }
}

/* ---------- Celular ---------- */
@media (max-width: 767px) {
  /* cards de esporte em faixa horizontal com rolagem, como as categorias da On no celular */
  html.prince-on .sports-grid-custom {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 8px !important;
    margin-right: calc(-1 * var(--p-gutter));
    padding-right: var(--p-gutter);
    scrollbar-width: none;
  }
  html.prince-on .sports-grid-custom::-webkit-scrollbar { display: none; }
  html.prince-on .sport-card-custom {
    flex: 0 0 74% !important;
    width: auto !important;
    aspect-ratio: 3 / 4;
    scroll-snap-align: start;
  }
  html.prince-on .jet-woo-products:not(.swiper-wrapper) > .jet-woo-products__item { padding-bottom: 32px !important; }
  html.prince-on .e-n-tabs-heading { gap: 20px !important; overflow-x: auto; flex-wrap: nowrap !important; }
}

/* ---------- Banner da home um pouco mais alto (pedido do cliente) ---------- */
html.prince-on .elementor-element.elementor-element-eaa7b98 {
  --min-height: 790px !important;
  min-height: 790px !important;
}
@media (max-width: 767px) {
  html.prince-on .elementor-element.elementor-element-eaa7b98 {
    --min-height: 600px !important;
    min-height: 600px !important;
  }
}

/* ---------- Logo do header (SVG) ---------- */
.prince-logo-svg { display: block; height: 40px !important; width: auto !important; max-width: none !important; }
@media (max-width: 767px) { .prince-logo-svg { height: 34px !important; } }
