/* =========================================================
   Loja AORE — celular e tablet (claro + escuro)
   Tipografia fina estilo Itaú; negrito só em títulos de produto.
   Fundos e textos respeitam data-theme da página.
   ========================================================= */

@media (max-width: 1023.98px) {

  /* ——— Tipografia (ambos os temas) ——— */
  .home-section--shop-v5 .home-shop-carousel-card__cat,
  .home-section--shop-v5 .home-shop-carousel-card__price,
  .home-section--shop-v5 .home-shop-carousel-card__price-current,
  .home-section--shop-v5 .home-shop-carousel-card__badge {
    font-weight: 400 !important;
  }

  .home-section--shop-v5 .home-shop-carousel-card__title {
    font-weight: 700 !important;
  }

  .itloja,
  .itloja *:not(.itcard__title):not(.itcard__title a):not(.itprod__title):not(.itcart__item-title):not(.itcart__item-title a):not(.itchk__item-name):not(.itcard__btn-buy):not(.itcard__btn-more):not(.itloja__search-btn):not(.itloja__cart-cta-btn):not(.it-btn),
  .itprod,
  .itprod *:not(.itprod__title):not(.it-btn),
  .itcart,
  .itcart *:not(.itcart__item-title):not(.itcart__item-title a):not(.it-btn),
  .itchk,
  .itchk *:not(.itchk__item-name):not(.it-btn) {
    font-weight: 400 !important;
  }

  .itcard__title,
  .itcard__title a,
  .itprod__title,
  .itcart__item-title,
  .itcart__item-title a,
  .itchk__item-name {
    font-weight: 700 !important;
  }

  .itcard__btn-buy,
  .itcard__btn-more,
  .itloja__search-btn,
  .itloja__cart-cta-btn,
  .it-btn {
    font-weight: 500 !important;
  }

  .itloja__title,
  .itloja__title strong,
  .itcart__page-title,
  .itcart__page-title strong,
  .itchk__title,
  .itchk__title strong {
    font-weight: 300 !important;
  }

  /* ——— Modo claro: branco nítido ——— */
  html:not([data-theme='dark']) {
    --itau-bg: #ffffff;
    --itau-surface: #ffffff;
    --itau-line: #ebebeb;
  }

  html:not([data-theme='dark']) .home-section--shop-v5 {
    background: #ffffff !important;
  }

  html:not([data-theme='dark']) .home-section--shop-v5 .home-shop-carousel-card {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
  }

  html:not([data-theme='dark']) .home-section--shop-v5 .home-shop-carousel-card__media {
    background: #ffffff !important;
  }

  html:not([data-theme='dark']) .home-section--shop-v5 .home-shop-carousel-card__title,
  html:not([data-theme='dark']) .home-section--shop-v5 .home-shop-carousel-card__price,
  html:not([data-theme='dark']) .home-section--shop-v5 .home-shop-carousel-card__price-current {
    color: #1d1d1b !important;
  }

  html:not([data-theme='dark']) .home-section--shop-v5 .home-shop-carousel-card__cat {
    color: #6b6b69 !important;
  }

  html:not([data-theme='dark']) .itloja,
  html:not([data-theme='dark']) .itprod,
  html:not([data-theme='dark']) .itcart,
  html:not([data-theme='dark']) .itchk {
    background: #ffffff !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  html:not([data-theme='dark']) .itcard,
  html:not([data-theme='dark']) .itloja__empty,
  html:not([data-theme='dark']) .itloja__search-wrap,
  html:not([data-theme='dark']) .itloja__chip,
  html:not([data-theme='dark']) .itloja__pg-btn,
  html:not([data-theme='dark']) .itloja__cart-cta-inner,
  html:not([data-theme='dark']) .itprod__info,
  html:not([data-theme='dark']) .itprod__details-inner,
  html:not([data-theme='dark']) .itprod__thumb,
  html:not([data-theme='dark']) .itprod__main-img,
  html:not([data-theme='dark']) .itcart__item,
  html:not([data-theme='dark']) .itcart__side,
  html:not([data-theme='dark']) .itcart__empty,
  html:not([data-theme='dark']) .itchk__card,
  html:not([data-theme='dark']) .itchk__side,
  html:not([data-theme='dark']) .itchk__success,
  html:not([data-theme='dark']) .itchk__user-box,
  html:not([data-theme='dark']) .itchk__success-box,
  html:not([data-theme='dark']) .itloja-empty-card,
  html:not([data-theme='dark']) .itcard__media,
  html:not([data-theme='dark']) .itcart__item-img,
  html:not([data-theme='dark']) .itchk__item-img,
  html:not([data-theme='dark']) .itcard__select,
  html:not([data-theme='dark']) .itcard__single-v,
  html:not([data-theme='dark']) .itprod__select,
  html:not([data-theme='dark']) .itprod__qty,
  html:not([data-theme='dark']) .itcart__qty-input,
  html:not([data-theme='dark']) .itchk__notes,
  html:not([data-theme='dark']) .itchk__coupon-input {
    background: #ffffff !important;
  }

  /* ——— Modo escuro: superfícies do tema olive ——— */
  html[data-theme='dark'] {
    --itau-bg: #161c19;
    --itau-surface: #202822;
    --itau-line: rgba(237, 244, 232, 0.12);
    --itau-dark: #f5f8f2;
    --itau-mid: #dce6d8;
    --itau-soft: #b6c3b1;
    --itau-muted: #93a08e;
  }

  html[data-theme='dark'] .home-section--shop-v5 {
    background: transparent !important;
  }

  html[data-theme='dark'] .home-section--shop-v5 .home-shop-carousel-card {
    background: linear-gradient(180deg, #263027 0%, #202822 100%) !important;
    border-color: rgba(237, 244, 232, 0.10) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22) !important;
  }

  html[data-theme='dark'] .home-section--shop-v5 .home-shop-carousel-card__media {
    background: #1a221c !important;
  }

  html[data-theme='dark'] .home-section--shop-v5 .home-shop-carousel-card__title,
  html[data-theme='dark'] .home-section--shop-v5 .home-shop-carousel-card__price,
  html[data-theme='dark'] .home-section--shop-v5 .home-shop-carousel-card__price-current {
    color: #f3f7f2 !important;
  }

  html[data-theme='dark'] .home-section--shop-v5 .home-shop-carousel-card__cat {
    color: #d5dfd3 !important;
  }

  html[data-theme='dark'] .home-section--shop-v5 .home-shop-carousel-card__badge {
    background: rgba(15, 23, 42, 0.72) !important;
    color: #fff !important;
  }

  html[data-theme='dark'] .itloja,
  html[data-theme='dark'] .itprod,
  html[data-theme='dark'] .itcart,
  html[data-theme='dark'] .itchk {
    background: #161c19 !important;
  }

  html[data-theme='dark'] .itcard,
  html[data-theme='dark'] .itloja__empty,
  html[data-theme='dark'] .itloja__search-wrap,
  html[data-theme='dark'] .itloja__chip,
  html[data-theme='dark'] .itloja__pg-btn,
  html[data-theme='dark'] .itprod__info,
  html[data-theme='dark'] .itprod__details-inner,
  html[data-theme='dark'] .itprod__thumb,
  html[data-theme='dark'] .itcart__item,
  html[data-theme='dark'] .itcart__side,
  html[data-theme='dark'] .itcart__empty,
  html[data-theme='dark'] .itchk__card,
  html[data-theme='dark'] .itchk__side,
  html[data-theme='dark'] .itchk__success,
  html[data-theme='dark'] .itchk__user-box,
  html[data-theme='dark'] .itchk__success-box,
  html[data-theme='dark'] .itloja-empty-card {
    background: #202822 !important;
    border-color: rgba(237, 244, 232, 0.12) !important;
    box-shadow: none !important;
  }

  html[data-theme='dark'] .itcard__media,
  html[data-theme='dark'] .itprod__main-img,
  html[data-theme='dark'] .itcart__item-img,
  html[data-theme='dark'] .itchk__item-img {
    background: #18201a !important;
  }

  html[data-theme='dark'] .itcard__select,
  html[data-theme='dark'] .itcard__single-v,
  html[data-theme='dark'] .itprod__select,
  html[data-theme='dark'] .itprod__qty,
  html[data-theme='dark'] .itcart__qty-input,
  html[data-theme='dark'] .itchk__notes,
  html[data-theme='dark'] .itchk__coupon-input {
    background: #18201a !important;
    border-color: rgba(237, 244, 232, 0.12) !important;
    color: #f5f8f2 !important;
  }

  /* CTAs da home: delicados e legíveis no tema escuro */
  html[data-theme='dark'] .btn--galeria-custom {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #f0cb6a !important;
    box-shadow: none !important;
  }

  html[data-theme='dark'] .btn--galeria-custom:hover {
    background: rgba(255, 255, 255, 0.10) !important;
    border-color: rgba(240, 203, 106, 0.35) !important;
  }
}
