/* ==========================================================================
   AGIL PECAS - MOBILE STORE FINAL v1.5
   Carregado depois de todo o CSS para organizar o e-commerce no celular.
   ========================================================================== */

@media (max-width: 768px) {
  :root {
    --ag-mobile-pad: 18px;
  }

  html,
  body {
    max-width: 100%;
    overflow-x: hidden !important;
  }

  body {
    background: #f5f7fb !important;
  }

  .ag-container,
  .footer-inner,
  .ag-container--sm {
    width: 100% !important;
    max-width: none !important;
    padding-left: var(--ag-mobile-pad) !important;
    padding-right: var(--ag-mobile-pad) !important;
  }

  .agil-header {
    height: 64px !important;
    background: rgba(11, 20, 64, .98) !important;
    border-bottom: 1px solid rgba(196, 212, 236, .16) !important;
    box-shadow: 0 12px 34px rgba(7, 13, 42, .24) !important;
  }

  body.admin-bar .agil-header {
    top: 46px !important;
  }

  .nav-inner {
    height: 64px !important;
    padding-left: 16px !important;
    padding-right: 12px !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
  }

  .agil-header .agil-logo {
    width: auto !important;
    min-width: 0 !important;
    height: 32px !important;
    flex: 0 0 auto !important;
  }

  .agil-header .agil-logo-img {
    width: auto !important;
    height: 32px !important;
    max-width: 112px !important;
  }

  .nav-cta {
    display: none !important;
  }

  .nav-cart {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    margin-left: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.06) !important;
    color: #fff !important;
  }

  .nav-cart__icon {
    width: 19px !important;
    height: 19px !important;
  }

  .ag-cart-count {
    top: -7px !important;
    right: -5px !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 5px !important;
    border-radius: 999px !important;
    background: #c4d4ec !important;
    color: #111d58 !important;
    font-size: .64rem !important;
    line-height: 18px !important;
    text-align: center !important;
  }

  .lang-switcher {
    width: auto !important;
    margin-left: 0 !important;
    gap: 2px !important;
    padding: 3px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.08) !important;
    flex: 0 0 auto !important;
  }

  .lang-btn {
    width: 27px !important;
    height: 27px !important;
    min-width: 27px !important;
    padding: 0 !important;
  }

  .lang-btn span {
    display: none !important;
  }

  .lang-btn img {
    width: 17px !important;
    height: 17px !important;
  }

  .nav-toggle {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    margin-left: 0 !important;
    display: inline-flex !important;
    border-radius: 999px !important;
  }

  .nav-links {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9998 !important;
    min-height: 100svh !important;
    padding: 86px 22px 30px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    background:
      radial-gradient(circle at 84% 8%, rgba(196,212,236,.16), transparent 34%),
      linear-gradient(180deg, rgba(11,20,64,.99), rgba(7,13,42,.99)) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateX(100%) !important;
    transition: transform .26s ease, opacity .2s ease !important;
  }

  .nav-links.open {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateX(0) !important;
  }

  .nav-links a {
    width: 100% !important;
    min-height: 62px !important;
    display: flex !important;
    align-items: center !important;
    border-bottom: 1px solid rgba(255,255,255,.11) !important;
    color: rgba(255,255,255,.92) !important;
    font-size: .96rem !important;
    letter-spacing: .10em !important;
  }

  .nav-links a::before,
  .nav-links a::after {
    content: none !important;
    display: none !important;
  }

  .nav-close-btn {
    top: 16px !important;
    right: 16px !important;
  }

  .ag-section,
  .ag-section--white,
  .ag-section--light,
  .ag-section--diferenciais,
  .ag-shop-quote-band,
  .ag-contato {
    padding-top: 54px !important;
    padding-bottom: 54px !important;
  }

  .ag-eyebrow,
  .ag-hero__tag {
    margin-bottom: 14px !important;
    font-size: .62rem !important;
    letter-spacing: .13em !important;
    line-height: 1.35 !important;
  }

  .ag-eyebrow::before,
  .ag-hero__tag::before {
    width: 24px !important;
    flex-basis: 24px !important;
  }

  .ag-section-title,
  h2.ag-section-title {
    margin-bottom: 14px !important;
    font-size: clamp(1.9rem, 8.8vw, 2.5rem) !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
  }

  .ag-section-lead {
    max-width: 100% !important;
    font-size: .98rem !important;
    line-height: 1.58 !important;
  }

  .ag-shop-hero {
    min-height: auto !important;
    padding: 0 !important;
    overflow: hidden !important;
    background:
      radial-gradient(circle at 86% 8%, rgba(236,98,85,.14), transparent 30%),
      radial-gradient(circle at 12% 72%, rgba(196,212,236,.16), transparent 34%),
      linear-gradient(145deg, #0b1440 0%, #111d58 54%, #070d2a 100%) !important;
  }

  .ag-shop-hero__grid {
    display: block !important;
    padding: 92px var(--ag-mobile-pad) 28px !important;
  }

  .ag-shop-hero__content,
  .ag-hero__body {
    padding: 0 !important;
  }

  .ag-shop-hero .ag-hero__title {
    max-width: 8.7em !important;
    margin-bottom: 16px !important;
    color: #fff !important;
    font-size: clamp(2.42rem, 12.5vw, 3.18rem) !important;
    line-height: 1.02 !important;
    letter-spacing: 0 !important;
  }

  .ag-shop-hero .ag-hero__title strong {
    display: block !important;
    color: #c4d4ec !important;
  }

  .ag-shop-hero .ag-hero__desc {
    max-width: 100% !important;
    margin-bottom: 0 !important;
    color: rgba(255,255,255,.74) !important;
    font-size: 1rem !important;
    line-height: 1.58 !important;
  }

  .ag-commerce-search {
    width: 100% !important;
    margin: 22px 0 16px !important;
    padding: 9px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;
    border: 1px solid rgba(196,212,236,.24) !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,.12) !important;
    box-shadow: 0 18px 56px rgba(0,0,0,.18) !important;
  }

  .ag-commerce-search input[type="search"] {
    min-height: 52px !important;
    padding: 0 15px !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #1c1c1e !important;
    font-size: 16px !important;
  }

  .ag-commerce-search button {
    width: 100% !important;
    min-height: 50px !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--navy) !important;
    font-size: .72rem !important;
    letter-spacing: .10em !important;
  }

  .ag-shop-hero .ag-hero__ctas {
    margin-top: 12px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .ag-btn,
  .ag-shop-hero .ag-btn {
    width: 100% !important;
    min-height: 50px !important;
    justify-content: center !important;
    border-radius: 8px !important;
    padding: 14px 16px !important;
    font-size: .76rem !important;
    letter-spacing: .09em !important;
  }

  .ag-shop-panel {
    display: none !important;
  }

  .ag-hero__stats {
    margin: 0 !important;
    padding: 14px var(--ag-mobile-pad) 18px !important;
    background: #071030 !important;
    border-top: 1px solid rgba(196,212,236,.16) !important;
  }

  .ag-hero__stats-inner {
    display: flex !important;
    gap: 10px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .ag-stat {
    min-width: 156px !important;
    padding: 14px 12px !important;
    border: 1px solid rgba(196,212,236,.18) !important;
    border-radius: 10px !important;
    background: rgba(255,255,255,.045) !important;
    scroll-snap-align: start !important;
  }

  .ag-stat__val {
    color: #fff !important;
    font-size: .98rem !important;
    line-height: 1.1 !important;
    letter-spacing: 0 !important;
  }

  .ag-stat__lbl {
    margin-top: 5px !important;
    color: rgba(196,212,236,.78) !important;
    font-size: .52rem !important;
    line-height: 1.25 !important;
  }

  .ag-shop-trustbar {
    padding: 14px 0 !important;
    background: #f5f7fb !important;
    border: 0 !important;
  }

  .ag-shop-trustbar__inner,
  .ag-woo-buybar {
    width: 100% !important;
    display: flex !important;
    gap: 12px !important;
    padding-left: var(--ag-mobile-pad) !important;
    padding-right: var(--ag-mobile-pad) !important;
    overflow-x: auto !important;
    border: 0 !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .ag-shop-trustbar__inner div,
  .ag-woo-buybar div {
    min-width: 242px !important;
    padding: 18px !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 14px 36px rgba(17,29,88,.055) !important;
    scroll-snap-align: start !important;
  }

  .ag-shop-category-grid,
  .ag-product-grid,
  .ag-shop-process .ag-diferenciais-grid,
  .ag-cards-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 13px !important;
  }

  .ag-shop-category-card,
  .ag-product-card,
  .ag-card,
  .ag-shop-benefit-list div {
    border-radius: 12px !important;
    box-shadow: 0 14px 38px rgba(17,29,88,.065) !important;
    transform: none !important;
  }

  .ag-shop-category-card {
    min-height: auto !important;
    padding: 22px 20px !important;
  }

  .ag-shop-category-card h3,
  .ag-product-card h3,
  .ag-card__title {
    font-size: 1.18rem !important;
    line-height: 1.22 !important;
    letter-spacing: 0 !important;
  }

  .ag-shop-category-card p,
  .ag-product-card p,
  .ag-card__text {
    font-size: .94rem !important;
    line-height: 1.55 !important;
  }

  .ag-shop-section-head {
    display: block !important;
    margin-bottom: 22px !important;
  }

  .ag-shop-section-head .ag-btn {
    margin-top: 16px !important;
  }

  .ag-shop-filters {
    position: sticky !important;
    top: 64px !important;
    z-index: 60 !important;
    margin: 0 calc(var(--ag-mobile-pad) * -1) 20px !important;
    padding: 12px var(--ag-mobile-pad) !important;
    display: flex !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    background: rgba(245,247,251,.96) !important;
    border-top: 1px solid rgba(216,226,240,.8) !important;
    border-bottom: 1px solid rgba(216,226,240,.9) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .ag-shop-filters button {
    min-height: 38px !important;
    flex: 0 0 auto !important;
    border-radius: 999px !important;
    background: #fff !important;
  }

  .ag-shop-filters button.is-active {
    border-color: var(--navy) !important;
    background: var(--navy) !important;
    color: #fff !important;
  }

  .ag-product-card {
    overflow: hidden !important;
    background: #fff !important;
  }

  .ag-product-card__media {
    min-height: 190px !important;
    background:
      radial-gradient(circle at 52% 42%, rgba(196,212,236,.35), transparent 38%),
      linear-gradient(145deg, #f9fbfe, #edf3fa) !important;
  }

  .ag-product-card__media img {
    width: 100% !important;
    height: 190px !important;
    padding: 20px !important;
    object-fit: contain !important;
  }

  .ag-product-card__body {
    padding: 20px !important;
  }

  .ag-product-card__meta {
    gap: 10px !important;
    align-items: flex-start !important;
  }

  .ag-product-card__meta span,
  .ag-product-card__meta strong,
  .ag-product-card__code {
    font-size: .56rem !important;
    letter-spacing: .11em !important;
  }

  .ag-product-card a {
    width: 100% !important;
    min-height: 48px !important;
    margin-top: 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    background: var(--navy) !important;
    color: #fff !important;
  }

  .ag-woo-hero,
  .ag-woo-product-hero {
    padding-top: 92px !important;
    padding-bottom: 34px !important;
  }

  .ag-woo-hero__title,
  .ag-woo-product-hero__title {
    max-width: 100% !important;
    margin-top: 14px !important;
    font-size: clamp(2rem, 9.2vw, 2.55rem) !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
    overflow-wrap: anywhere !important;
  }

  .ag-woo-hero__text,
  .ag-woo-product-hero__text {
    margin-top: 14px !important;
    font-size: .98rem !important;
    line-height: 1.58 !important;
  }

  .ag-woo-hero__quick,
  .ag-woo-product-hero__meta {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .ag-woo-hero__quick span,
  .ag-woo-product-hero__meta span {
    min-width: max-content !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
  }

  .ag-woo-content {
    padding-top: 30px !important;
    padding-bottom: 78px !important;
  }

  .ag-woo-tools {
    margin-bottom: 16px !important;
    padding: 14px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    border-radius: 12px !important;
  }

  .woocommerce .woocommerce-result-count {
    font-size: .9rem !important;
    line-height: 1.4 !important;
  }

  .woocommerce .woocommerce-ordering,
  .woocommerce .woocommerce-ordering select {
    width: 100% !important;
  }

  .woocommerce ul.products {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product {
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #fff !important;
    box-shadow: 0 14px 40px rgba(17,29,88,.065) !important;
    transform: none !important;
  }

  .woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
    display: grid !important;
    grid-template-columns: 112px minmax(0, 1fr) !important;
    align-items: start !important;
    column-gap: 0 !important;
  }

  .woocommerce ul.products li.product a img {
    grid-column: 1 !important;
    grid-row: 1 / span 5 !important;
    width: 112px !important;
    height: 100% !important;
    min-height: 168px !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    padding: 14px !important;
    object-fit: contain !important;
    border-right: 1px solid var(--border) !important;
    border-bottom: 0 !important;
    background:
      radial-gradient(circle at 50% 44%, rgba(196,212,236,.30), transparent 40%),
      linear-gradient(145deg, #f9fbfe, #edf3fa) !important;
  }

  .ag-loop-badges,
  .woocommerce ul.products li.product .woocommerce-loop-product__title,
  .ag-loop-models,
  .woocommerce ul.products li.product .price {
    grid-column: 2 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .ag-loop-badges {
    padding-top: 16px !important;
    gap: 8px !important;
  }

  .ag-loop-badges span,
  .ag-loop-badges strong,
  .ag-loop-title__sku {
    font-size: .52rem !important;
    letter-spacing: .1em !important;
  }

  .ag-loop-badges strong {
    padding: 6px 7px !important;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    min-height: 0 !important;
    padding-top: 12px !important;
    padding-bottom: 6px !important;
    font-size: 1.05rem !important;
    line-height: 1.18 !important;
    gap: 7px !important;
    overflow-wrap: anywhere !important;
  }

  .ag-loop-models {
    font-size: .84rem !important;
    line-height: 1.42 !important;
  }

  .woocommerce ul.products li.product .price {
    padding-top: 8px !important;
    font-size: .9rem !important;
  }

  .woocommerce ul.products li.product .button,
  .woocommerce ul.products li.product .ag-loop-view-link,
  .woocommerce ul.products li.product .added_to_cart {
    width: calc(100% - 32px) !important;
    min-height: 44px !important;
    margin-left: 16px !important;
    margin-right: 16px !important;
    border-radius: 8px !important;
    font-size: .64rem !important;
    letter-spacing: .1em !important;
  }

  .woocommerce ul.products li.product .button {
    margin-top: 14px !important;
  }

  .woocommerce ul.products li.product .ag-loop-view-link,
  .woocommerce ul.products li.product .added_to_cart {
    margin-top: 9px !important;
    margin-bottom: 16px !important;
  }

  .ag-woo-product-hero__inner {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }

  .ag-woo-product-hero__media {
    order: -1 !important;
    width: 100% !important;
    max-width: none !important;
    padding: 16px !important;
    border-radius: 14px !important;
  }

  .ag-woo-product-hero__media img {
    max-height: 248px !important;
    object-fit: contain !important;
  }

  .ag-woo-product-hero__actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .woocommerce div.product {
    display: block !important;
  }

  .woocommerce div.product div.images,
  .woocommerce div.product div.summary {
    width: 100% !important;
    float: none !important;
  }

  .ag-single-title,
  .woocommerce div.product .product_title {
    font-size: clamp(1.7rem, 8vw, 2.1rem) !important;
    line-height: 1.12 !important;
    letter-spacing: 0 !important;
  }

  .ag-product-specs {
    display: grid !important;
    grid-template-columns: 1fr !important;
    border-radius: 12px !important;
    overflow: hidden !important;
  }

  .ag-product-specs div {
    border-right: 0 !important;
  }

  .woocommerce div.product form.cart {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 14px !important;
    border-radius: 12px !important;
  }

  .woocommerce .quantity .qty,
  .woocommerce div.product form.cart .button {
    width: 100% !important;
    min-height: 50px !important;
    border-radius: 8px !important;
  }

  .ag-product-help,
  .woocommerce-cart .cart-collaterals .cart_totals,
  .woocommerce-checkout #customer_details,
  .woocommerce-checkout #order_review,
  .wc-block-components-sidebar,
  .wc-block-components-order-summary,
  .wc-block-components-checkout-step {
    padding: 18px !important;
    border-radius: 12px !important;
  }

  .woocommerce table.shop_table_responsive tr,
  .woocommerce-page table.shop_table_responsive tr {
    display: block !important;
    margin-bottom: 12px !important;
    overflow: hidden !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    background: #fff !important;
  }

  .woocommerce table.shop_table_responsive tr td,
  .woocommerce-page table.shop_table_responsive tr td {
    min-height: 48px !important;
    padding: 14px 16px !important;
    border-top: 1px solid var(--border) !important;
  }

  .ag-contato-grid,
  .ag-shop-split {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 26px !important;
  }

  .ag-form {
    padding: 18px !important;
    border-radius: 12px !important;
  }

  .ag-form-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .ag-field input,
  .ag-field textarea,
  .ag-field select {
    font-size: 16px !important;
    border-radius: 8px !important;
  }

  .agil-footer {
    background:
      radial-gradient(circle at 18% 0%, rgba(196,212,236,.12), transparent 34%),
      linear-gradient(180deg, #111d58 0%, #141723 100%) !important;
  }

  .footer-top {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    padding: 44px 0 34px !important;
  }

  .footer-logo,
  .footer-logo__img {
    height: 34px !important;
  }

  .footer-brand p {
    max-width: 100% !important;
    font-size: .94rem !important;
    line-height: 1.65 !important;
  }

  .footer-col h4 {
    margin-bottom: 12px !important;
  }

  .footer-col ul {
    gap: 0 !important;
  }

  .footer-col ul a {
    padding: 10px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
  }

  .footer-col ul a,
  .footer-col p,
  .footer-col a {
    font-size: .94rem !important;
    line-height: 1.55 !important;
  }

  .footer-bottom {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding-bottom: 88px !important;
  }

  .footer-tags {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .footer-tag {
    padding: 9px 10px !important;
    text-align: center !important;
  }

  .ag-whatsapp {
    width: 56px !important;
    height: 56px !important;
    right: 16px !important;
    bottom: 16px !important;
  }

  .ag-shop-trustbar__inner,
  .ag-woo-buybar,
  .ag-woo-hero__quick,
  .ag-woo-product-hero__meta,
  .ag-shop-filters,
  .ag-hero__stats-inner {
    scrollbar-width: none !important;
  }

  .ag-shop-trustbar__inner::-webkit-scrollbar,
  .ag-woo-buybar::-webkit-scrollbar,
  .ag-woo-hero__quick::-webkit-scrollbar,
  .ag-woo-product-hero__meta::-webkit-scrollbar,
  .ag-shop-filters::-webkit-scrollbar,
  .ag-hero__stats-inner::-webkit-scrollbar {
    display: none !important;
  }
}

@media (max-width: 430px) {
  :root {
    --ag-mobile-pad: 16px;
  }

  .nav-inner {
    padding-left: 14px !important;
    padding-right: 10px !important;
    gap: 7px !important;
  }

  .agil-header .agil-logo-img {
    max-width: 104px !important;
  }

  .nav-cart,
  .nav-toggle {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
  }

  .lang-btn {
    width: 25px !important;
    height: 25px !important;
    min-width: 25px !important;
  }

  .ag-shop-hero .ag-hero__title {
    font-size: clamp(2.2rem, 11.8vw, 2.75rem) !important;
  }

  .woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
    grid-template-columns: 102px minmax(0, 1fr) !important;
  }

  .woocommerce ul.products li.product a img {
    width: 102px !important;
    min-height: 162px !important;
    padding: 12px !important;
  }

  .ag-loop-badges,
  .woocommerce ul.products li.product .woocommerce-loop-product__title,
  .ag-loop-models,
  .woocommerce ul.products li.product .price {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .ag-loop-badges {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}

@media (max-width: 360px) {
  .agil-header .agil-logo-img {
    max-width: 94px !important;
  }

  .nav-cart,
  .nav-toggle {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
  }

  .lang-switcher {
    transform: scale(.92) !important;
    transform-origin: right center !important;
  }

  .woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
    display: block !important;
  }

  .woocommerce ul.products li.product a img {
    width: 100% !important;
    height: 178px !important;
    min-height: 178px !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--border) !important;
  }
}

/* V1.5.1 - mobile catalogo comercial */
@media (max-width: 768px) {
  .ag-shop-section-head .ag-btn--catalog-compact {
    width: auto !important;
    min-height: 42px !important;
    margin-top: 14px !important;
    padding: 0 16px !important;
    border-radius: 999px !important;
    font-size: .58rem !important;
    letter-spacing: .12em !important;
  }

  .ag-product-card__media {
    min-height: 218px !important;
    overflow: hidden !important;
  }

  .ag-product-card__media img {
    width: 100% !important;
    height: 218px !important;
    padding: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  .woocommerce ul.products li.product a img {
    padding: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  .ag-catalog-assist {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    margin: 34px 0 0 !important;
    padding: 24px 20px !important;
    border-radius: 12px !important;
  }

  .ag-catalog-assist__content h2 {
    font-size: clamp(1.55rem, 7vw, 2rem) !important;
    line-height: 1.08 !important;
  }

  .ag-catalog-assist__actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .ag-catalog-assist__actions a {
    width: 100% !important;
    min-height: 48px !important;
    border-radius: 8px !important;
  }
}

@media (max-width: 430px) {
  .woocommerce ul.products li.product a img {
    padding: 0 !important;
  }
}

/* V1.5.2 - produto mobile com compra guiada */
@media (max-width: 768px) {
  .ag-purchase-guide {
    display: grid !important;
    grid-template-columns: 1fr !important;
    margin: 18px 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
  }

  .ag-purchase-guide div {
    min-height: 0 !important;
    padding: 16px !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--border) !important;
  }

  .ag-purchase-guide div:last-child {
    border-bottom: 0 !important;
  }

  .single-product section.related.products {
    margin-top: 46px !important;
    padding: 22px 16px !important;
    border-radius: 14px !important;
    overflow: hidden !important;
  }

  .single-product section.related.products > h2 {
    font-size: clamp(1.38rem, 6.5vw, 1.85rem) !important;
    line-height: 1.12 !important;
  }

  .single-product section.related.products ul.products {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 14px !important;
    overflow-x: auto !important;
    scroll-snap-type: x proximity !important;
    padding-bottom: 8px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .single-product section.related.products ul.products li.product {
    flex: 0 0 82% !important;
    width: auto !important;
    min-width: 0 !important;
    scroll-snap-align: start !important;
  }

  .single-product section.related.products ul.products li.product a.woocommerce-LoopProduct-link {
    display: flex !important;
    grid-template-columns: none !important;
  }

  .single-product section.related.products ul.products li.product a img {
    width: 100% !important;
    height: 196px !important;
    min-height: 196px !important;
    padding: 22px !important;
    object-fit: contain !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--border) !important;
  }
}

/* V1.6.0 - feed Explorar e experiencia mobile premium */
@media (max-width: 900px) {
  .ag-discover {
    padding: 62px 0 70px !important;
  }

  .ag-discover .ag-container {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .ag-discover__head {
    display: block !important;
    margin-bottom: 22px !important;
  }

  .ag-discover__head h2 {
    font-size: clamp(2.25rem, 11vw, 4rem) !important;
    line-height: 1.02 !important;
  }

  .ag-discover__head p:last-child {
    margin-top: 16px !important;
    font-size: .96rem !important;
  }

  .ag-discover-shell {
    width: calc(100% + 12px) !important;
    height: calc(100svh - 96px) !important;
    min-height: 620px !important;
    margin-left: -6px !important;
    border-radius: 28px !important;
    overflow-y: auto !important;
    scroll-snap-type: y mandatory !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .ag-discover-card {
    min-height: 100% !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: minmax(0, 52%) auto !important;
    gap: 0 !important;
    padding: 14px !important;
    scroll-snap-align: start !important;
  }

  .ag-discover-card::before {
    inset: 9px !important;
    border-radius: 24px !important;
  }

  .ag-discover-card__media {
    min-height: 0 !important;
    height: 100% !important;
    border-radius: 22px 22px 10px 10px !important;
  }

  .ag-discover-card__media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .ag-discover-card__content {
    align-self: end !important;
    margin-top: -16px !important;
    padding: 18px 14px !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    border-radius: 20px !important;
    background: rgba(7,13,39,.62) !important;
    backdrop-filter: blur(22px) saturate(145%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(145%) !important;
  }

  .ag-discover-card__meta,
  .ag-discover-card h3 {
    padding-right: 74px !important;
  }

  .ag-discover-card h3 {
    margin-top: 14px !important;
    font-size: clamp(1.8rem, 9vw, 2.85rem) !important;
    overflow-wrap: anywhere !important;
  }

  .ag-discover-card__desc {
    display: -webkit-box !important;
    margin-top: 12px !important;
    overflow: hidden !important;
    font-size: .96rem !important;
    line-height: 1.55 !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
  }

  .ag-discover-card__models {
    display: -webkit-box !important;
    overflow: hidden !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
  }

  .ag-discover-card__benefits {
    gap: 7px !important;
    margin-top: 13px !important;
  }

  .ag-discover-card__benefits span {
    min-height: 30px !important;
    padding: 0 10px !important;
    font-size: .68rem !important;
  }

  .ag-discover-card__bottom {
    margin-top: 14px !important;
    gap: 10px !important;
  }

  .ag-discover-card__bottom a {
    min-height: 46px !important;
    flex: 1 !important;
    padding: 0 12px !important;
    font-size: .58rem !important;
  }

  .ag-discover-actions {
    right: 24px !important;
    top: auto !important;
    bottom: 32px !important;
    gap: 9px !important;
    transform: none !important;
  }

  .ag-discover-action {
    width: 58px !important;
    min-height: 58px !important;
    border-radius: 20px !important;
  }

  .ag-product-card__media {
    min-height: 245px !important;
  }

  .ag-product-card__body {
    padding: 22px !important;
  }

  .single-product section.related.products ul.products {
    display: grid !important;
    grid-template-columns: 1fr !important;
    overflow: visible !important;
  }

  .single-product section.related.products ul.products li.product {
    flex: none !important;
  }

  .ag-whatsapp {
    right: 18px !important;
    bottom: 20px !important;
    width: 62px !important;
    height: 62px !important;
    border-radius: 22px !important;
  }
}

@media (max-width: 520px) {
  .ag-discover-shell {
    height: calc(100svh - 86px) !important;
    min-height: 590px !important;
  }

  .ag-discover-card {
    grid-template-rows: minmax(0, 47%) auto !important;
  }

  .ag-discover-actions {
    right: 22px !important;
    bottom: 26px !important;
  }

  .ag-discover-card__bottom {
    align-items: stretch !important;
    flex-direction: column !important;
  }
}
