/*
Theme Name: MEX Games
Theme URI: https://mexgames.com.br
Author: MEX Games
Description: Tema WooCommerce personalizado com a identidade visual da MEX Games.
Version: 0.8.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: mex-games
*/

:root {
  --mex-bg: #11130d;
  --mex-surface: #1c2210;
  --mex-surface-soft: #202819;
  --mex-surface-raised: #292b25;
  --mex-primary: #9bc64c;
  --mex-primary-bright: #cfff75;
  --mex-primary-hover: #b7eb59;
  --mex-blue: #087dbf;
  --mex-text: #fff;
  --mex-muted: rgba(255, 255, 255, 0.66);
  --mex-line: rgba(255, 255, 255, 0.1);
  --mex-container: 1300px;
  --mex-radius: 6px;
  --mex-radius-lg: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--mex-bg);
  color: var(--mex-text);
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

body.admin-bar .site-header {
  top: 32px;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-container {
  width: min(100% - 40px, var(--mex-container));
  margin-inline: 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;
}

.benefit-bar {
  height: 41px;
  overflow: hidden;
  background: #18210f;
  border-bottom: 1px solid var(--mex-line);
}

.benefit-bar__inner,
.benefit-bar__items,
.benefit-bar__items span,
.benefit-bar__help {
  display: flex;
  align-items: center;
}

.benefit-bar__inner {
  height: 40px;
  justify-content: space-between;
}

.benefit-bar__items {
  gap: 30px;
}

.benefit-bar__items span,
.benefit-bar__help {
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.benefit-bar svg,
.section-heading svg {
  width: 18px;
  height: 18px;
  color: var(--mex-primary);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(28, 34, 16, 0.56);
  border-bottom: 1px solid var(--mex-line);
  backdrop-filter: blur(9px);
}

.header-main {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 75px;
}

.site-logo {
  width: 164px;
}

.site-logo .custom-logo-link {
  display: block;
}

.site-logo img {
  width: 164px;
  height: auto;
}

.header-search {
  position: absolute;
  top: 12px;
  left: calc(50% - 290px);
  display: flex;
  align-items: center;
  width: 640px;
}

.header-search svg {
  position: absolute;
  left: 18px;
  width: 20px;
  height: 20px;
  color: var(--mex-primary);
}

.header-search input[type="search"] {
  width: 100%;
  height: 48px;
  padding: 0 18px 0 50px;
  color: #20231c;
  background: #fff;
  border: 0;
  border-radius: var(--mex-radius-lg);
  outline: 2px solid transparent;
}

.header-search input[type="search"]:focus {
  outline-color: var(--mex-primary);
}

.header-search__results {
  position: absolute;
  z-index: 520;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  max-height: min(560px, calc(100vh - 150px));
  overflow-y: auto;
  background: #14180f;
  border: 1px solid #384526;
  border-radius: var(--mex-radius-lg);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.48);
}

.header-search__results[hidden] {
  display: none;
}

.header-search__result {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 10px 14px;
  color: #fff;
  border-bottom: 1px solid var(--mex-line);
}

.header-search__result:hover,
.header-search__result.is-active {
  color: #fff;
  background: #202917;
}

.header-search__result-image {
  width: 56px;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: #0d100a;
  border: 1px solid #41532b;
  border-radius: var(--mex-radius);
}

.header-search__result-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.header-search__result-content strong {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-search__result-content small {
  overflow: hidden;
  color: var(--mex-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-search__result-price {
  color: var(--mex-primary);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.header-search__all {
  width: 100%;
  min-height: 46px;
  color: #11150a;
  font-weight: 700;
  background: var(--mex-primary);
  border: 0;
  cursor: pointer;
}

.header-search__all:hover,
.header-search__all:focus-visible {
  background: var(--mex-primary-hover);
}

.header-search__status {
  padding: 22px 18px;
  color: var(--mex-muted);
  font-size: 13px;
  text-align: center;
}

.header-search__status.is-loading::before {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 9px;
  vertical-align: -2px;
  border: 2px solid rgba(196, 255, 98, 0.3);
  border-top-color: var(--mex-primary);
  border-radius: 50%;
  content: '';
  animation: mex-search-spin 0.7s linear infinite;
}

.header-search__status.is-error {
  color: #ffb4b4;
}

@keyframes mex-search-spin {
  to { transform: rotate(360deg); }
}

.header-actions {
  display: flex;
  margin-left: auto;
  justify-content: flex-end;
  gap: 20px;
}

.header-action,
.icon-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  color: #fff;
  background: var(--mex-surface-raised);
  border: 1px solid var(--mex-line);
  border-radius: var(--mex-radius-lg);
}

.header-action {
  gap: 10px;
  padding: 0 17px;
  font-weight: 600;
}

.header-action svg,
.icon-button svg {
  width: 22px;
  height: 22px;
}

.cart-link {
  width: 58px;
  padding: 0;
}

.mex-cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #11130d;
  background: var(--mex-primary-bright);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

.icon-button {
  width: 48px;
  padding: 0;
  cursor: pointer;
}

.menu-toggle,
.search-toggle {
  display: none;
}

.category-nav {
  border-top: 1px solid var(--mex-line);
}

.category-nav__inner {
  display: flex;
  align-items: stretch;
  min-height: 55px;
}

.category-nav a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 16px;
  border-right: 1px solid var(--mex-line);
  font-size: 14px;
  font-weight: 500;
  transition: color 180ms ease, background 180ms ease;
}

.category-nav a > svg {
  width: 20px;
  height: 20px;
}

.category-nav a:hover {
  color: var(--mex-primary-bright);
  background: rgba(255, 255, 255, 0.04);
}

.category-nav .category-nav__offers {
  margin-left: auto;
  width: 200px;
  justify-content: center;
  padding-inline: 16px;
  background: #046fb6;
  border-right: 0;
}

.home-visuals {
  padding-top: 0;
}

.campaign-banner {
  display: block;
  width: 1180px;
  margin: 12px auto 0;
  overflow: hidden;
  background: #0f120c;
}

.campaign-banner img {
  width: 100%;
  height: 281px;
  object-fit: cover;
}

.hero-grid {
  display: grid;
  grid-template-columns: 860px 420px;
  gap: 20px;
  margin-top: 0;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  width: 860px;
  height: 410px;
  background: #070806;
  border-radius: var(--mex-radius-lg);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 450ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide picture,
.hero-slide img {
  width: 100%;
  height: 100%;
}

.hero-slide img {
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-controls > button {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  cursor: pointer;
}

.hero-controls svg {
  width: 18px;
}

.hero-dots {
  display: flex;
  gap: 6px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.72);
  border-radius: 4px;
}

.hero-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  background: rgba(255, 255, 255, 0.5);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

.hero-dots button.is-active {
  width: 24px;
  background: var(--mex-primary);
}

.hero-side {
  display: grid;
  height: 399px;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
}

.hero-side a,
.mini-banner-grid a,
.wide-promo {
  display: block;
  overflow: hidden;
  border-radius: var(--mex-radius-lg);
}

.hero-side img,
.mini-banner-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.hero-side a:hover img,
.mini-banner-grid a:hover img,
.wide-promo:hover img {
  transform: scale(1.02);
}

.mini-banner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.mini-banner-grid a {
  aspect-ratio: 400 / 250;
}

.home-content {
  padding: 80px 0 60px;
}

.product-shelf + .product-shelf {
  margin-top: 80px;
}

.wide-promo + .product-shelf {
  margin-top: 58px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 48px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 400;
}

.section-heading > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  color: var(--mex-muted);
  background: var(--mex-surface-raised);
  border: 1px solid var(--mex-line);
  border-radius: var(--mex-radius);
  font-size: 12px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  position: relative;
  display: flex;
  height: 513px;
  min-width: 0;
  flex-direction: column;
  padding: 19px;
  background: var(--mex-surface);
  border: 1px solid rgba(155, 198, 76, 0.08);
  border-radius: var(--mex-radius-lg);
  transition: transform 180ms ease, border-color 180ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(155, 198, 76, 0.36);
}

.product-card__image {
  display: grid;
  overflow: hidden;
  width: 100%;
  height: 251px;
  flex: 0 0 251px;
  place-items: center;
  padding: 0;
  background: #151b0e;
  border: 2px solid rgba(207, 255, 117, 0.78);
  border-radius: var(--mex-radius);
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 10px 0 56px;
}

.product-card__platform {
  min-height: 10px;
  color: var(--mex-primary-bright);
  font-size: 8px;
  font-weight: 700;
  line-height: 10px;
  text-transform: uppercase;
}

.product-card__platform a:hover {
  text-decoration: underline;
}

.product-card__title {
  display: -webkit-box;
  min-height: 54px;
  margin: 0 0 5px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-card__price {
  display: flex;
  flex-direction: column;
  color: var(--mex-muted);
  font-size: 12px;
}

.product-card__price strong {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.product-card__pix {
  display: flex;
  align-items: center;
  height: 35px;
  justify-content: center;
  gap: 4px;
  margin-top: 4px;
  color: var(--mex-primary);
  background: rgba(155, 198, 76, 0.125);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.product-card__pix img {
  width: 18px;
  height: 18px;
}

.product-card__pix strong {
  font-size: 15px;
}

.product-card__installment {
  min-height: 34px;
  margin-top: 5px;
  color: var(--mex-muted);
  font-size: 9px;
}

.product-card__button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  margin-top: auto !important;
  padding: 8px 12px !important;
  color: #11130d !important;
  background: var(--mex-primary-bright) !important;
  border: 0 !important;
  border-radius: var(--mex-radius) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  transition: background 180ms ease !important;
}

.product-card > .product-card__body > .product-card__button {
  position: absolute;
  right: 19px;
  bottom: 19px;
  left: 19px;
  width: auto;
  min-height: 36px;
}

.product-card__button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: var(--mex-primary-hover) !important;
}

.product-card__button svg {
  width: 15px;
  height: 15px;
}

.how-it-works {
  display: grid;
  grid-template-columns: 733px 326px;
  height: 687px;
  gap: 81px;
  margin: 32px 0 60px;
  padding: 80px;
  background: #18220f;
  border: 1px solid rgba(155, 198, 76, 0.08);
  border-radius: var(--mex-radius-lg);
}

.section-kicker,
.eyebrow {
  margin-bottom: 8px;
  color: var(--mex-primary-bright);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.how-it-works h2 {
  margin: 0 0 28px;
  font-size: 20px;
  font-weight: 500;
}

.how-it-works h2 strong {
  color: var(--mex-primary-bright);
}

.video-frame {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0d1109;
  border-radius: var(--mex-radius-lg);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.how-it-works__steps {
  padding-left: 42px;
  border-left: 1px solid var(--mex-line);
}

.how-it-works__steps h2 {
  font-weight: 600;
}

.how-it-works__steps ol {
  display: flex;
  margin: 0;
  padding: 0;
  flex-direction: column;
  gap: 25px;
  list-style: none;
}

.how-it-works__steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 14px;
}

.how-it-works__steps li > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #11130d;
  background: var(--mex-primary-bright);
  border-radius: var(--mex-radius);
  font-weight: 700;
}

.how-it-works__steps small,
.how-it-works__steps strong {
  display: block;
}

.how-it-works__steps small {
  margin-bottom: 2px;
  color: var(--mex-muted);
  font-size: 11px;
}

.how-it-works__steps strong {
  font-size: 12px;
}

.wide-promo {
  margin-block: 58px;
}

.wide-promo img {
  width: 100%;
  aspect-ratio: 1300 / 160;
  object-fit: cover;
  transition: transform 300ms ease;
}

.newsletter-band {
  padding-block: 38px;
  background: var(--mex-primary);
  color: #11130d;
}

.store-reviews {
  width: 100%;
  height: 100px;
  background: var(--mex-bg);
}

.newsletter-band__inner {
  display: grid;
  grid-template-columns: 1fr minmax(360px, 0.8fr);
  align-items: center;
  gap: 50px;
}

.newsletter-band .eyebrow {
  color: #283214;
}

.newsletter-band h2 {
  max-width: 650px;
  margin: 0;
  font-size: 23px;
  line-height: 1.35;
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr 48px;
}

.newsletter-form input {
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  color: #11130d;
  background: #fff;
  border: 0;
  border-radius: var(--mex-radius) 0 0 var(--mex-radius);
}

.newsletter-form button {
  display: grid;
  height: 48px;
  place-items: center;
  color: #fff;
  background: #11130d;
  border: 0;
  border-radius: 0 var(--mex-radius) var(--mex-radius) 0;
  cursor: pointer;
}

.site-footer {
  padding-top: 55px;
  background: #0c0e09;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 55px;
}

.footer-grid > div:not(.footer-brand) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-brand img {
  width: 170px;
}

.footer-brand p,
.footer-grid p,
.footer-grid a {
  color: var(--mex-muted);
  font-size: 12px;
}

.footer-brand p {
  max-width: 300px;
}

.footer-grid h2 {
  margin: 0 0 10px;
  font-size: 14px;
}

.footer-grid a:hover {
  color: var(--mex-primary-bright);
}

.footer-security {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mex-primary-bright);
  font-size: 12px;
  font-weight: 600;
}

.footer-security svg {
  width: 20px;
}

.footer-bottom {
  margin-top: 50px;
  padding-block: 22px;
  color: var(--mex-muted);
  border-top: 1px solid var(--mex-line);
  font-size: 11px;
}

/* Remaining homepage sections from the Loja Integrada storefront. */
.ranked-products {
  margin-top: 87px;
}

.ranked-products .section-heading {
  height: 48px;
  margin-bottom: 6px;
}

.ranked-products .section-heading h2 {
  font-size: 32px;
  font-weight: 400;
  line-height: 48px;
}

.ranked-products__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: calc(100% + 24px);
  margin-left: -12px;
  gap: 0;
}

.ranked-product {
  position: relative;
  display: flex;
  height: 156.5px;
  align-items: center;
  margin: 12px;
  padding: 16px;
  background: var(--mex-surface);
  border: 1px solid rgba(155, 198, 76, 0.19);
  border-radius: 10px;
}

.ranked-product__position {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  background: var(--mex-surface);
  border: 1px solid var(--mex-line);
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
}

.ranked-product__image {
  overflow: hidden;
  width: 98px;
  height: 123px;
  flex: 0 0 98px;
  background: transparent;
  border: 0;
  border-radius: 5px 0 0 5px;
}

.ranked-product__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ranked-product__body {
  display: flex;
  width: 316px;
  height: 98px;
  min-width: 0;
  align-self: auto;
  justify-content: center;
  padding: 0 20px;
  flex-direction: column;
  gap: 3px;
}

.ranked-product__body h3 {
  display: block;
  width: 450px;
  margin: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  white-space: nowrap;
}

.ranked-product__from {
  color: rgba(230, 255, 184, 0.8);
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
}

.ranked-product__from strong {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.ranked-product__pix {
  display: flex;
  width: fit-content;
  height: 35px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 20px;
  color: var(--mex-primary);
  background: rgba(155, 198, 76, 0.125);
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
}

.ranked-product__pix img {
  width: 20px;
  height: 20px;
}

.ranked-product__pix strong {
  font-size: 18px;
  font-weight: 600;
}

.ranked-product__installment {
  color: #fff;
  font-size: 12px;
  line-height: 16px;
}

.ranked-product__button {
  position: absolute;
  right: 16px;
  bottom: 12px;
  display: inline-flex;
  width: 117px;
  height: 36px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 16px;
  color: #11130d;
  background: var(--mex-primary-bright);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}

.ranked-product__button svg {
  width: 16px;
  height: 16px;
}

.about-banner {
  position: relative;
  display: flex;
  min-height: 390px;
  align-items: center;
  justify-content: space-between;
  margin-top: 80px;
  padding: 60px 100px;
  background: var(--mex-surface);
  border-radius: var(--mex-radius-lg);
}

.about-banner__content {
  max-width: 420px;
}

.about-banner h2 {
  margin: 0 0 20px;
  font-size: 26px;
  font-weight: 500;
}

.about-banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  line-height: 1.75;
}

.about-banner > img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 500px;
  max-height: 443px;
  object-fit: contain;
  object-position: bottom;
}

.newsletter-band {
  min-height: 127px;
  padding-block: 32px;
  color: #fff;
  background: var(--mex-surface);
}

.newsletter-band__inner {
  grid-template-columns: 1fr minmax(420px, 0.7fr);
  gap: 60px;
}

.newsletter-band h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.newsletter-band p {
  margin: 2px 0 0;
  color: var(--mex-muted);
  font-size: 12px;
}

.newsletter-form {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.newsletter-form input {
  height: 56px;
  border-radius: var(--mex-radius);
}

.newsletter-form button {
  display: inline-flex;
  width: auto;
  height: 56px;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  color: #11130d;
  background: var(--mex-primary-bright);
  border-radius: var(--mex-radius);
  font-size: 12px;
  font-weight: 700;
}

.newsletter-form button svg {
  width: 17px;
}

.site-footer {
  min-height: 0;
  padding-top: 42px;
  background: #0c0e09;
}

.footer-grid {
  grid-template-columns: 0.55fr 0.8fr 1.45fr 1.35fr 1fr;
  align-items: start;
  gap: 32px;
}

.footer-grid .footer-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-grid .footer-column h2,
.footer-seals h2 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
}

.footer-column > a,
.footer-column > p,
.footer-info,
.footer-info a {
  color: var(--mex-muted);
  font-size: 14px;
  line-height: 20px;
}

.footer-column > a:hover,
.footer-info a:hover {
  color: var(--mex-primary-bright);
}

.footer-social__link {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff !important;
  background: var(--mex-surface-raised);
  border-radius: var(--mex-radius);
}

.footer-social__link svg {
  width: 18px;
}

.footer-info {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 9px;
  margin-bottom: 8px;
}

.footer-info > svg {
  width: 19px;
  color: var(--mex-primary);
}

.footer-info p,
.footer-shipping p {
  margin: 0;
}

.footer-info strong,
.footer-info span,
.footer-info a {
  display: block;
}

.footer-info strong {
  margin-bottom: 2px;
  color: #fff;
  font-size: 14px;
}

.footer-seals {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 32px;
  padding-block: 22px;
  border-top: 1px solid var(--mex-line);
  border-bottom: 1px solid var(--mex-line);
}

.footer-seals h2 {
  margin: 0;
}

.footer-seals span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--mex-primary-bright);
  font-size: 10px;
  font-weight: 600;
}

.footer-seals svg {
  width: 18px;
}

.footer-seals a {
  display: block;
}

.footer-seals img {
  width: auto;
  max-width: 130px;
  max-height: 52px;
}

.footer-seals a:last-child {
  margin-left: auto;
}

.footer-bottom {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 0;
  border-top: 0;
}

.footer-bottom img {
  width: 110px;
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 110;
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  color: #fff;
  background: #109f52;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.whatsapp-float img {
  width: 24px;
  height: 24px;
}

.site-footer--compact {
  min-height: 110px;
  padding-top: 0;
}

.site-footer--compact .footer-bottom {
  justify-content: flex-start;
  min-height: 110px;
}

.content-shell,
.store-shell {
  min-height: 55vh;
  padding-block: 50px 80px;
}

.content-entry,
.woocommerce div.product,
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
  padding: 28px;
  background: var(--mex-surface);
  border: 1px solid var(--mex-line);
  border-radius: var(--mex-radius-lg);
}

.woocommerce .woocommerce-breadcrumb,
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering,
.woocommerce .star-rating,
.woocommerce p.stars a,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--mex-primary) !important;
}

.woocommerce-product-gallery {
  opacity: 1 !important;
}

.woocommerce div.product form.cart {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
}

.woocommerce div.product form.cart::before,
.woocommerce div.product form.cart::after {
  display: none;
}

.woocommerce div.product form.cart .button {
  margin-top: 0 !important;
}

.woocommerce div.product form.cart div.quantity {
  float: none;
  margin: 0;
}

.woocommerce div.product form.cart .qty {
  width: 76px;
  height: 44px;
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

.woocommerce ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  padding: 14px;
  background: var(--mex-surface);
  border: 1px solid var(--mex-line);
  border-radius: var(--mex-radius-lg);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  min-height: 60px;
  color: #fff;
  font-size: 13px;
}

.woocommerce ul.products li.product .price {
  color: var(--mex-primary) !important;
}

.woocommerce input.input-text,
.woocommerce textarea,
.woocommerce select,
.content-entry input,
.content-entry textarea {
  min-height: 44px;
  padding: 10px 12px;
  color: #11130d;
  background: #fff;
  border: 1px solid #d8dbd3;
  border-radius: var(--mex-radius);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  color: #11130d;
  background: #f4f8ec;
  border-top-color: var(--mex-primary);
}

@media (max-width: 1100px) {
  .header-main {
    display: grid;
    grid-template-columns: 190px minmax(260px, 1fr) auto;
    gap: 18px;
  }

  .header-search {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
  }

  .account-link span {
    display: none;
  }

  .account-link {
    width: 48px;
    padding: 0;
  }

  .category-nav a {
    padding-inline: 11px;
    font-size: 11px;
  }

  .product-grid {
    gap: 12px;
  }

  .how-it-works {
    padding: 36px;
  }
}

@media (max-width: 767px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .site-container {
    width: min(100% - 24px, var(--mex-container));
  }

  .benefit-bar__inner {
    width: 100%;
  }

  .benefit-bar__items {
    width: max-content;
    gap: 28px;
    padding-left: 16px;
    animation: benefit-marquee 18s linear infinite;
  }

  .benefit-bar__items span {
    width: 220px;
  }

  .benefit-bar__help {
    display: none;
  }

  @keyframes benefit-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-496px); }
  }

  .header-main {
    grid-template-columns: 48px 1fr 48px 48px;
    gap: 10px;
    width: 100%;
    min-height: 74px;
    padding-inline: 16px;
  }

  .menu-toggle,
  .search-toggle {
    display: inline-flex;
  }

  .site-logo {
    width: 118px;
    justify-self: center;
  }

  .site-logo img {
    width: 118px;
  }

  .header-actions {
    display: contents;
  }

  .account-link {
    display: none;
  }

  .cart-link {
    width: 48px;
  }

  .header-search {
    position: absolute;
    top: 74px;
    left: 0;
    display: none;
    width: 100%;
    padding: 12px 16px;
    background: var(--mex-bg);
    border-top: 1px solid var(--mex-line);
  }

  .header-search.is-open {
    display: flex;
  }

  .header-search__results {
    top: calc(100% - 4px);
    right: 16px;
    left: 16px;
    max-height: min(520px, calc(100vh - 160px));
  }

  .header-search__result {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 11px;
    min-height: 76px;
    padding: 9px 11px;
  }

  .header-search__result-image {
    width: 50px;
  }

  .header-search__result-price {
    grid-column: 2;
    margin-top: -18px;
    padding-top: 18px;
    font-size: 12px;
  }

  .category-nav {
    position: absolute;
    top: 74px;
    left: 0;
    display: none;
    width: 100%;
    max-height: calc(100vh - 114px);
    overflow-y: auto;
    background: #15180f;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
  }

  .category-nav.is-open {
    display: block;
  }

  .category-nav__inner {
    width: 100%;
    flex-direction: column;
  }

  .category-nav a,
  .category-nav .category-nav__offers {
    min-height: 48px;
    margin: 0;
    padding-inline: 20px;
    border-right: 0;
    border-bottom: 1px solid var(--mex-line);
    font-size: 13px;
  }

  .home-visuals {
    width: 100%;
  }

  .campaign-banner {
    width: 100%;
    margin: 0;
  }

  .campaign-banner img {
    height: 88px;
    aspect-ratio: auto;
  }

  .hero-grid {
    display: block;
    padding-inline: 16px;
  }

  .hero-slider {
    width: 100%;
    height: 420px;
    aspect-ratio: auto;
  }

  .hero-controls {
    right: 50%;
    bottom: 12px;
    transform: translateX(50%);
  }

  .hero-side {
    display: none;
  }

  .mini-banner-grid {
    display: flex;
    gap: 14px;
    margin-top: 0;
    padding-inline: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .mini-banner-grid::-webkit-scrollbar,
  .product-grid::-webkit-scrollbar {
    display: none;
  }

  .mini-banner-grid a {
    width: 300px;
    flex: 0 0 300px;
    scroll-snap-align: start;
  }

  .home-content {
    width: 100%;
    padding: 48px 0 60px;
  }

  .section-heading,
  .wide-promo,
  .how-it-works {
    margin-inline: 12px;
  }

  .section-heading h2 {
    font-size: 26px;
  }

  .section-heading > a {
    min-height: 32px;
    padding-inline: 8px;
    background: transparent;
    border: 0;
    font-size: 0;
  }

  .section-heading > a svg {
    width: 20px;
    height: 20px;
  }

  .product-grid {
    display: flex;
    gap: 12px;
    padding: 6px 12px 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .product-card {
    width: 175px;
    min-width: 175px;
    height: 451px;
    padding: 7px;
    scroll-snap-align: start;
  }

  .product-card__image {
    height: 199px;
    flex-basis: 199px;
  }

  .product-card__body {
    padding: 10px 0 46px;
  }

  .product-card__platform {
    display: none;
  }

  .product-card__title {
    min-height: 57px;
    font-size: 14px;
    line-height: 19px;
  }

  .product-card > .product-card__body > .product-card__button {
    right: 7px;
    bottom: 7px;
    left: 7px;
    min-height: 36px;
    font-size: 10px !important;
  }

  .how-it-works {
    display: flex;
    width: 100%;
    height: 959px;
    margin: 42px 0;
    padding: 32px 16px;
    flex-direction: column;
    gap: 38px;
  }

  .how-it-works h2 {
    font-size: 18px;
  }

  .how-it-works__steps {
    padding: 32px 0 0;
    border-top: 1px solid var(--mex-line);
    border-left: 0;
  }

  .wide-promo {
    margin-block: 42px;
    overflow: hidden;
  }

  .wide-promo img {
    width: 820px;
    max-width: none;
    height: 100px;
    object-position: left center;
  }

  .newsletter-band__inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .newsletter-band h2 {
    font-size: 19px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
  }

  .site-footer {
    min-height: 0;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .store-shell,
  .content-shell {
    padding-block: 28px 50px;
  }

  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .woocommerce div.product,
  .woocommerce-cart .woocommerce,
  .woocommerce-checkout .woocommerce {
    padding: 18px;
  }
}

@media (max-width: 420px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }
}

@media (max-width: 767px) {
  .ranked-products {
    margin: 32px 0 0;
  }

  .product-shelf .section-heading {
    width: 100%;
    height: 39px;
    margin-right: 0;
    margin-left: 0;
    padding-inline: 16px;
  }

  .ranked-products .section-heading {
    height: 39px;
    margin: 0;
    padding-inline: 16px;
  }

  .ranked-products .section-heading h2 {
    font-size: 26px;
    line-height: 39px;
  }

  .ranked-products__grid {
    grid-template-columns: 1fr;
    width: auto;
    margin: 0 16px;
    gap: 0;
  }

  .ranked-product {
    width: 100%;
    height: 124.5px;
    margin: 20px 0 0;
    padding: 0;
    overflow: hidden;
  }

  .ranked-product__image {
    width: 98px;
    height: 123px;
    flex-basis: 98px;
  }

  .ranked-product__body {
    width: calc(100% - 98px);
    height: 122px;
    align-self: auto;
    padding: 0 50px 0 16px;
  }

  .ranked-product__body h3 {
    display: -webkit-box;
    width: auto;
    overflow: hidden;
    line-height: normal;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .ranked-product__position {
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .ranked-product__button {
    display: none;
  }

  .about-banner {
    min-height: 475px;
    margin: 60px 16px 0;
    padding: 32px 24px;
  }

  .about-banner h2 {
    font-size: 23px;
  }

  .about-banner p {
    font-size: 13px;
  }

  .about-banner > img {
    display: none;
  }

  .newsletter-band {
    min-height: 207px;
    padding-block: 30px;
  }

  .newsletter-band__inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .newsletter-band h2 {
    font-size: 20px;
  }

  .newsletter-form input,
  .newsletter-form button {
    height: 48px;
  }

  .newsletter-form button {
    padding-inline: 14px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-grid .footer-column {
    grid-column: auto;
  }

  .footer-column > a,
  .footer-column > p,
  .footer-info,
  .footer-info a {
    font-size: 14px;
  }

  .footer-content-links {
    columns: auto;
  }

  .footer-seals {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 76px;
    width: 52px;
    height: 52px;
  }
}

@media (min-width: 1350px) and (max-width: 1570px) {
  .category-nav a > svg {
    display: none;
  }
}

/* Loja interna: product, catalog, search and legacy content pages. */
.mex-product-page {
  min-height: 100vh;
  padding: 24px 0 90px;
  background: #11130d url("assets/images/product-bg.jpg") top center / 100% auto no-repeat;
}

.mex-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: start;
  gap: 44px;
}

.mex-product-media {
  display: grid;
  min-height: 500px;
  place-items: start center;
  padding: 10px 20px 36px;
}

.mex-product-image {
  position: relative;
  display: grid;
  width: min(100%, 400px);
  place-items: center;
}

.mex-product-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.mex-product-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  padding: 8px;
  color: #1b2013;
  background: #fff;
  border-radius: 50%;
}

.mex-buy-panel {
  position: sticky;
  top: 165px;
  padding: 24px;
  background: rgba(28, 34, 16, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.mex-digital-delivery {
  margin: 0 0 18px;
  padding: 9px 12px;
  color: #eaf8d3;
  background: rgba(155, 198, 76, 0.13);
  border-radius: 4px;
  font-size: 11px;
  text-align: center;
}

.mex-buy-panel h1 {
  margin: 0 0 22px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
}

.mex-variation-picker > p {
  margin: 0 0 10px;
  font-size: 11px;
}

.mex-variation-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mex-variation-option {
  position: relative;
  min-height: 82px;
  padding: 16px;
  color: #fff;
  background: #1c2210;
  border: 1px solid rgba(255, 255, 255, 0.125);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
}

.mex-variation-option:only-child {
  grid-column: 1 / -1;
}

.mex-variation-option strong,
.mex-variation-option span {
  display: block;
}

.mex-variation-option strong {
  font-size: 14px;
  font-weight: 700;
  line-height: 30px;
}

.mex-variation-option span {
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
}

.mex-variation-option.is-selected {
  color: #fff;
  background: #1c2210;
  border-color: var(--mex-primary);
  box-shadow: none;
}

.mex-variation-option.is-selected strong {
  color: var(--mex-primary);
}

.mex-variation-check {
  position: absolute;
  top: 16px;
  right: 16px;
  display: none;
  width: 20px;
  height: 20px;
  color: var(--mex-primary);
  stroke-width: 3;
}

.mex-variation-option.is-selected .mex-variation-check {
  display: block;
}

.mex-product-price {
  margin-top: 20px;
  text-align: center;
}

.mex-product-price span,
.mex-product-price strong {
  display: block;
}

.mex-product-price span {
  font-size: 11px;
}

.mex-product-price strong {
  color: rgba(230, 255, 184, 0.72);
  font-size: 18px;
  font-weight: 500;
}

.mex-product-pix {
  display: flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  gap: 5px;
  margin: 8px auto 0;
  padding: 4px 20px;
  color: var(--mex-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
}

.mex-product-pix img {
  width: 20px;
  height: 20px;
}

.mex-product-pix strong {
  color: #fff;
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
}

.mex-product-installments {
  margin: 10px 0 20px;
  font-size: 13px;
  text-align: center;
}

.mex-product-installments strong {
  color: var(--mex-primary);
}

.mex-buy-form {
  display: block;
}

.mex-buy-button {
  --mex-buy-pulse: 0 0 0 0 #98c24a;
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  height: 80px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  color: #11130d;
  background: var(--mex-primary-bright);
  border: 0;
  border-radius: 10px;
  box-shadow: var(--mex-buy-pulse);
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  animation: mex-buy-pulse 3s ease infinite;
}

@keyframes mex-buy-pulse {
  0% {
    box-shadow: var(--mex-buy-pulse);
  }

  70% {
    box-shadow: 0 0 0 20px rgba(0, 200, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 200, 0, 0);
  }
}

.mex-buy-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.mex-buy-button small {
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
}

.mex-buy-button svg {
  position: absolute;
  top: -10px;
  right: -20px;
  width: 100px;
  height: 100px;
  color: rgba(17, 19, 13, 0.18);
  stroke-width: 1.4;
}

.mex-payment-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 11px;
}

.mex-payment-toggle svg {
  width: 18px;
  color: var(--mex-primary);
}

.mex-payment-details {
  margin-top: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 5px;
}

.mex-payment-details p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 6px 0;
  font-size: 11px;
}

.mex-payment-details img,
.mex-payment-details svg {
  width: 18px;
  height: 18px;
}

.mex-product-content {
  width: min(100% - 500px, 838px);
  margin: 24px calc((100% - min(100% - 40px, var(--mex-container))) / 2) 0;
}

.mex-product-description,
.mex-product-faq {
  padding: 32px;
  background: rgba(28, 34, 16, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.mex-product-description > h2,
.mex-product-faq > h2,
.mex-related-products > h2 {
  margin: 0 0 28px;
  font-size: 32px;
  font-weight: 500;
}

.mex-product-video {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 783 / 360;
  margin-bottom: 30px;
  background: #000;
  border-radius: 8px;
}

.mex-product-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.mex-product-copy {
  font-size: 16px;
  text-align: center;
}

.mex-product-copy h3 {
  margin: 18px 0 6px;
  font-size: 18px;
}

.mex-product-copy p {
  margin: 8px 0;
}

.mex-product-copy a {
  color: #fff;
}

.mex-product-faq {
  margin-top: 24px;
}

.mex-product-faq details {
  border-bottom: 1px solid var(--mex-line);
}

.mex-product-faq summary {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  font-size: 12px;
  list-style: none;
}

.mex-product-faq summary::-webkit-details-marker {
  display: none;
}

.mex-product-faq summary svg {
  width: 16px;
  flex: 0 0 16px;
  transition: transform 180ms ease;
}

.mex-product-faq details[open] summary svg {
  transform: rotate(45deg);
}

.mex-product-faq details p {
  margin: 0;
  padding: 0 32px 20px 0;
  color: var(--mex-muted);
  font-size: 12px;
}

.mex-related-products {
  margin-top: 34px;
}

.mex-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.mex-category-page {
  min-height: 900px;
  padding: 70px 0 100px;
  background-color: var(--mex-bg);
  background-position: top center;
  background-repeat: no-repeat;
  background-size: 100% auto;
}

.mex-category--playstation-5,
.mex-category--playstation-4 { background-image: url("assets/images/bg-ps.jpg"); }
.mex-category--xbox-series-xs,
.mex-category--xbox-one { background-image: url("assets/images/bg-xbox.jpg"); }
.mex-category--assinaturas { background-image: url("assets/images/bg-card.jpg"); }
.mex-category--pre-vendas { background-image: url("assets/images/bg-prevenda.jpg"); }
.mex-category--ofertas { background-image: url("assets/images/bg-ofertas.jpg"); }

.mex-category-head {
  display: flex;
  min-height: 180px;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 22px;
}

.mex-category-head h1,
.mex-search-head h1 {
  margin: 4px 0 0;
  font-size: 48px;
  font-weight: 600;
}

.mex-category-coupon {
  display: flex;
  width: fit-content;
  margin: 0;
  padding: 4px 20px;
  color: var(--mex-primary);
  background: rgba(155, 198, 76, 0.13);
  border-radius: 6px;
  font-size: 13px;
}

.mex-category-coupon strong {
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--mex-line);
}

.mex-filter-button {
  display: flex;
  height: 48px;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  color: #fff;
  background: var(--mex-surface-raised);
  border: 1px solid var(--mex-line);
  border-radius: 6px;
  cursor: pointer;
}

.mex-filter-button svg {
  width: 18px;
}

.mex-category-toolbar {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
}

.mex-category-toolbar .woocommerce-result-count,
.mex-category-toolbar .woocommerce-ordering {
  float: none;
  margin: 0;
}

.mex-category-toolbar select {
  min-width: 230px;
  height: 44px;
  padding: 0 12px;
  color: #11130d;
  background: #fff;
  border: 0;
  border-radius: 5px;
}

.mex-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.mex-category-grid .product-card {
  width: 100%;
}

.mex-category-products .woocommerce-pagination {
  margin-top: 34px;
}

.mex-category-products .woocommerce-pagination ul.page-numbers {
  display: flex;
  justify-content: center;
  gap: 8px;
  border: 0;
}

.mex-category-products .woocommerce-pagination ul.page-numbers li {
  border: 0;
}

.mex-category-products .page-numbers a,
.mex-category-products .page-numbers span {
  display: grid;
  min-width: 36px;
  height: 36px;
  place-items: center;
  background: #fff;
  border-radius: 5px;
  color: #11130d;
}

.mex-category-products .page-numbers .current {
  background: var(--mex-primary);
}

.mex-search-page {
  min-height: 750px;
  padding: 65px 0 100px;
}

.mex-search-head {
  margin-bottom: 35px;
}

.mex-search-head p {
  color: var(--mex-primary);
}

.mex-empty-state {
  padding: 80px 24px;
  background: var(--mex-surface);
  border-radius: 8px;
  text-align: center;
}

.mex-empty-state a {
  display: inline-flex;
  margin-top: 20px;
  padding: 12px 20px;
  color: #11130d;
  background: var(--mex-primary);
  border-radius: 6px;
  font-weight: 600;
}

.mex-content-page {
  min-height: 700px;
  padding: 24px 0 0;
}

.woocommerce-cart .mex-content-page__inner {
  min-height: 0;
  padding-bottom: 80px;
}

.woocommerce-cart .mex-page-copy > .woocommerce {
  padding: 0;
  background: transparent;
  border: 0;
}

.mex-cart-page {
  min-height: 510px;
  padding-top: 28px;
}

.mex-cart-page > h1 {
  margin: 0 0 42px;
  font-size: 44px;
  font-weight: 600;
  line-height: 1.15;
}

.mex-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(320px, 1fr);
  align-items: start;
  gap: 60px;
}

.mex-cart-products-form,
.mex-cart-products,
.mex-cart-summary,
.woocommerce-cart .cart-collaterals,
.woocommerce-cart .cart_totals {
  width: 100% !important;
  float: none !important;
}

.mex-cart-products__head {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 0 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 14px;
  text-transform: uppercase;
}

.mex-cart-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) minmax(112px, auto);
  align-items: start;
  gap: 22px;
  margin-top: 12px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
}

.mex-cart-item__thumbnail a,
.mex-cart-item__thumbnail img {
  display: block;
  width: 112px;
  aspect-ratio: 4 / 5;
}

.mex-cart-item__thumbnail img {
  height: auto;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 5px;
}

.mex-cart-item__details h2 {
  max-width: 100%;
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.mex-cart-item__details h2 a {
  color: #fff !important;
  text-decoration: none !important;
}

.mex-cart-item__details h2 a:hover {
  color: var(--mex-primary-bright) !important;
}

.mex-cart-item__count {
  color: var(--mex-primary-bright);
}

.mex-cart-item__unit-price {
  margin-bottom: 8px;
  color: var(--mex-muted);
  font-size: 13px;
}

.mex-cart-item__meta {
  min-height: 22px;
  color: #fff;
  font-size: 12px;
}

.mex-cart-item__meta dl.variation {
  display: flex;
  gap: 4px;
  margin: 0;
}

.mex-cart-item__meta dl.variation dt,
.mex-cart-item__meta dl.variation dd,
.mex-cart-item__meta dl.variation p {
  margin: 0;
  padding: 0;
  color: inherit;
  font-weight: 400;
}

.mex-cart-item__meta dl.variation dt {
  color: var(--mex-primary);
}

.mex-cart-item__controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.mex-cart-quantity {
  display: grid;
  width: 136px;
  height: 38px;
  grid-template-columns: 38px 1fr 38px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
}

.mex-cart-quantity button,
.mex-cart-quantity .quantity,
.mex-cart-quantity input.qty {
  width: 100%;
  height: 36px;
  margin: 0;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-align: center;
}

.mex-cart-quantity button {
  display: grid;
  place-items: center;
  cursor: pointer;
}

.mex-cart-quantity button:hover {
  color: var(--mex-primary-bright);
  background: rgba(255, 255, 255, 0.06);
}

.mex-cart-quantity button svg {
  width: 14px;
  height: 14px;
}

.mex-cart-quantity input.qty::-webkit-inner-spin-button,
.mex-cart-quantity input.qty::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.mex-cart-remove.remove {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff !important;
  background: transparent !important;
  border-radius: 5px;
  font-size: 0;
}

.mex-cart-remove.remove:hover {
  color: var(--mex-primary-bright) !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

.mex-cart-remove svg {
  width: 19px;
  height: 19px;
}

.mex-cart-item__subtotal {
  display: flex;
  min-width: 112px;
  padding-top: 1px;
  align-items: flex-end;
  flex-direction: column;
  gap: 5px;
  color: #fff;
  text-align: right;
  white-space: nowrap;
}

.mex-cart-item__subtotal > span {
  color: var(--mex-muted);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
}

.mex-cart-item__subtotal > strong,
.mex-cart-item__subtotal .amount {
  color: #fff;
  font-size: 17px;
  font-weight: 600;
}

.mex-cart-products__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.woocommerce .mex-cart-update.button {
  width: auto;
  min-height: 34px;
  margin: 0 !important;
  padding-inline: 16px !important;
  color: #fff !important;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  font-weight: 500 !important;
}

.woocommerce .mex-cart-update.button:hover {
  border-color: var(--mex-primary) !important;
}

.woocommerce .mex-cart-update.button:disabled {
  visibility: hidden;
}

.mex-cart-summary {
  position: sticky;
  top: 170px;
}

.woocommerce-cart .cart_totals > h2 {
  margin: 0;
  padding: 0 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
}

.mex-cart-coupon {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.mex-cart-coupon summary {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 14px;
  list-style: none;
}

.mex-cart-coupon summary::-webkit-details-marker {
  display: none;
}

.mex-cart-coupon summary svg {
  width: 18px;
  transition: transform 180ms ease;
}

.mex-cart-coupon[open] summary svg {
  transform: rotate(180deg);
}

.mex-cart-coupon form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 0 0 18px;
}

.mex-cart-coupon input {
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  color: #11130d;
  background: #fff;
  border: 0;
  border-radius: 5px;
}

.woocommerce .mex-cart-coupon button.button {
  width: auto;
  min-height: 42px;
  margin: 0 !important;
  padding-inline: 14px !important;
}

.mex-cart-breakdown {
  margin: 14px 0 0 !important;
  border: 0 !important;
}

.mex-cart-breakdown th,
.mex-cart-breakdown td {
  padding: 7px 0 !important;
  background: transparent !important;
  border: 0 !important;
  font-size: 12px;
}

.mex-cart-breakdown td {
  text-align: right;
}

.mex-cart-estimated-total {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 23px;
}

.mex-cart-estimated-total strong,
.mex-cart-estimated-total .amount {
  color: #fff;
  font-size: 23px;
  font-weight: 500;
  white-space: nowrap;
}

.woocommerce-cart .wc-proceed-to-checkout {
  padding: 20px 0 0;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  min-height: 60px;
  margin: 0 !important;
  background: var(--mex-primary-bright) !important;
  border-radius: 7px !important;
  font-size: 16px !important;
}

.woocommerce-cart .cross-sells {
  display: none;
}

.mex-empty-cart {
  display: flex;
  min-height: 345px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 22px;
  padding: 50px 24px;
  background: var(--mex-surface);
  border-radius: 8px;
  text-align: center;
}

.mex-empty-cart h1,
.mex-empty-cart p {
  margin: 0;
}

.mex-empty-cart h1 {
  font-size: 24px;
  font-weight: 500;
}

.mex-empty-cart p {
  color: var(--mex-muted);
  font-size: 14px;
  font-weight: 600;
}

.mex-empty-cart a {
  margin-top: 20px;
  padding: 10px 20px;
  color: #11130d;
  background: var(--mex-primary);
  border-radius: 6px;
  font-weight: 600;
}

.mex-content-page__inner {
  min-height: 520px;
  padding-bottom: 70px;
}

.mex-breadcrumb {
  display: flex;
  width: fit-content;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 0 18px;
  color: #30352c;
  background: #fff;
  border-radius: 4px;
  font-size: 12px;
}

.mex-breadcrumb a,
.mex-breadcrumb strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.mex-breadcrumb svg {
  width: 15px;
}

.mex-page-copy h1 {
  margin: 0 0 8px;
  font-size: 32px;
}

.mex-account-heading {
  margin: 0 auto 22px;
  text-align: center;
}

.mex-account-heading h1 {
  margin-bottom: 2px;
  font-size: 24px;
  font-weight: 500;
}

.mex-account-heading p {
  margin: 0;
}

.woocommerce-account .mex-content-page__inner {
  min-height: 470px;
}

.woocommerce-account .mex-page-copy > .woocommerce {
  padding: 0;
  background: transparent;
  border: 0;
}

.woocommerce-account #customer_login {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.woocommerce-account #customer_login::before,
.woocommerce-account #customer_login::after {
  display: none;
}

.woocommerce-account #customer_login .u-column1,
.woocommerce-account #customer_login .u-column2 {
  width: auto;
  min-height: 250px;
  padding: 36px;
  background: var(--mex-surface);
  border: 1px solid var(--mex-line);
  border-radius: 8px;
}

.woocommerce-account #customer_login form.login,
.woocommerce-account #customer_login form.register {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.woocommerce-account #customer_login h2 {
  margin: 0 0 28px;
  font-size: 0;
}

.woocommerce-account #customer_login .u-column1 h2::after,
.woocommerce-account #customer_login .u-column2 h2::after {
  font-size: 18px;
}

.woocommerce-account #customer_login .u-column1 h2::after {
  content: "Já sou cadastrado";
}

.woocommerce-account #customer_login .u-column2 h2::after {
  content: "Ainda não possuo cadastro";
}

.woocommerce-account #customer_login label {
  font-size: 12px;
}

.woocommerce-account #customer_login .form-row > label:not(.woocommerce-form-login__rememberme),
.woocommerce-account #customer_login .woocommerce-form-login__rememberme,
.woocommerce-account #customer_login .woocommerce-form-register > p:not(.form-row),
.woocommerce-account #customer_login .woocommerce-privacy-policy-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.woocommerce-account #customer_login input.input-text {
  color: #11130d !important;
  background: #fff !important;
}

.woocommerce-account #customer_login .woocommerce-form-login__submit,
.woocommerce-account #customer_login .woocommerce-form-register__submit {
  width: 100%;
  min-height: 44px;
  margin: 0 !important;
}

.woocommerce-account #customer_login .lost_password {
  margin: 14px 0 0;
}

.mex-page-copy {
  color: #fff;
  font-size: 15px;
}

.mex-page-copy h2,
.mex-page-copy h3,
.mex-page-copy h4,
.mex-page-copy strong {
  color: #fff;
}

.mex-page-copy a {
  color: var(--mex-primary-bright);
  text-decoration: underline;
}

.mex-page-copy [style] {
  color: #fff !important;
  background: transparent !important;
  font-family: inherit !important;
}

.mex-google-reviews {
  display: block;
  width: 100%;
  clear: both;
  padding: 40px 0;
  background: #0c120b;
}

.mex-google-reviews__embed {
  box-sizing: border-box;
  padding-right: 20px;
  padding-left: 20px;
}

.mex-google-reviews__head {
  display: flex;
  min-height: 100px;
  align-items: center;
  justify-content: space-between;
  padding: 22px;
  background: var(--mex-surface);
  border: 1px solid rgba(155, 198, 76, 0.25);
  border-radius: 8px;
}

.mex-google-reviews__head strong {
  font-size: 22px;
}

.mex-google-reviews__head strong span {
  color: #4285f4;
}

.mex-google-reviews__head p {
  margin: 4px 0 0;
  font-size: 18px;
}

.mex-google-reviews__head a {
  padding: 10px 25px;
  color: #11130d;
  background: var(--mex-primary);
  border-radius: 24px;
  font-weight: 600;
}

.mex-stars,
.mex-google-reviews__grid article > b {
  color: #ffc400;
  letter-spacing: 0;
}

.mex-google-reviews__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.mex-google-reviews__grid article {
  min-height: 205px;
  padding: 22px;
  background: var(--mex-surface);
  border: 1px solid rgba(155, 198, 76, 0.25);
  border-radius: 8px;
}

.mex-google-reviews__grid h3 {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  overflow: hidden;
  font-size: 15px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mex-google-reviews__grid h3 svg {
  width: 15px;
  color: var(--mex-primary);
}

.mex-google-reviews__grid article > span {
  display: block;
  margin: 4px 0 14px;
  color: var(--mex-muted);
  font-size: 12px;
}

.mex-google-reviews__grid article > b {
  display: block;
}

.mex-google-reviews__grid p {
  margin: 8px 0 0;
  font-size: 15px;
}

@media (max-width: 900px) {
  .mex-product-page {
    padding-top: 16px;
    background-size: 180% auto;
  }

  .mex-product-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .mex-product-media {
    min-height: 280px;
    padding: 0 0 20px;
  }

  .mex-product-image {
    width: auto;
    max-width: 100%;
    height: 250px;
  }

  .mex-product-image img {
    width: auto;
    height: 250px;
  }

  .mex-buy-panel {
    position: relative;
    top: auto;
    padding: 20px;
  }

  .mex-variation-option {
    min-height: 63px;
    padding: 12px;
  }

  .mex-variation-option strong {
    line-height: normal;
  }

  .mex-variation-option span {
    font-size: 10px;
  }

  .mex-variation-check {
    top: 12px;
    right: 12px;
  }

  .mex-product-content {
    width: min(100% - 32px, var(--mex-container));
    margin: 20px auto 0;
  }

  .mex-product-description,
  .mex-product-faq {
    padding: 20px;
  }

  .mex-product-description > h2,
  .mex-product-faq > h2,
  .mex-related-products > h2 {
    margin-bottom: 20px;
    font-size: 24px;
  }

  .mex-product-copy {
    font-size: 13px;
  }

  .mex-product-copy h3 {
    font-size: 14px;
  }

  .mex-related-grid,
  .mex-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .mex-product-page .mex-related-products {
    display: none;
  }

  .mex-category-page {
    padding-top: 20px;
    background-size: 180% auto;
    background-position-y: 0;
  }

  .mex-category-head {
    min-height: 150px;
  }

  .mex-category-head h1,
  .mex-search-head h1 {
    font-size: 30px;
  }

  .mex-category-coupon {
    padding: 4px 10px;
    font-size: 10px;
  }

  .mex-category-toolbar {
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    margin: 0 auto 20px;
  }

  .mex-category-toolbar.is-open {
    display: flex;
  }

  .mex-category-toolbar select {
    width: 100%;
  }

  .mex-content-page__inner {
    min-height: 400px;
  }

  .mex-breadcrumb {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
  }

  .mex-google-reviews__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .mex-google-reviews__grid {
    grid-template-columns: 1fr;
  }

  .mex-google-reviews {
    padding: 25px 0;
  }

  .mex-google-reviews__embed {
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
  }

  .woocommerce-account #customer_login {
    grid-template-columns: 1fr;
  }

  .woocommerce-account #customer_login .u-column1,
  .woocommerce-account #customer_login .u-column2 {
    min-height: 0;
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mex-buy-button {
    animation: none;
  }
}

@media (max-width: 520px) {
  .mex-product-pix {
    padding-inline: 12px;
    font-size: 11px;
  }

  .mex-product-pix strong {
    font-size: 27px;
  }

  .mex-product-video {
    height: 220px;
    min-height: 0;
    aspect-ratio: auto;
  }

  .mex-related-grid .product-card,
  .mex-category-grid .product-card {
    height: 460px;
    padding: 10px;
  }

  .mex-related-grid .product-card__image,
  .mex-category-grid .product-card__image {
    height: 220px;
    flex-basis: 220px;
  }

  .mex-related-grid .product-card > .product-card__body > .product-card__button,
  .mex-category-grid .product-card > .product-card__body > .product-card__button {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .mex-filter-button {
    width: 44px;
    padding: 0;
    justify-content: center;
    overflow: hidden;
    color: transparent;
    font-size: 0;
  }

  .mex-filter-button svg {
    color: #fff;
  }
}

/* Cart and checkout flow */
.woocommerce-cart .woocommerce-message,
.woocommerce-checkout .woocommerce-message {
  display: flex;
  min-height: 70px;
  align-items: center;
  gap: 18px;
  margin: 0 0 34px;
  padding: 16px 20px 16px 52px;
  border: 1px solid var(--mex-primary);
  border-radius: 6px;
}

.woocommerce-cart .woocommerce-message::before,
.woocommerce-checkout .woocommerce-message::before {
  top: 50%;
  left: 20px;
  color: #79a91d;
  transform: translateY(-50%);
}

.woocommerce-cart .woocommerce-message .button,
.woocommerce-checkout .woocommerce-message .button {
  width: auto;
  min-width: 180px;
  min-height: 38px;
  margin: 0 0 0 auto !important;
  padding-inline: 18px !important;
  background: var(--mex-surface-raised) !important;
  color: #fff !important;
  flex: 0 0 auto;
}

.woocommerce-checkout .mex-content-page__inner {
  min-height: 0;
  padding-bottom: 80px;
}

.woocommerce-checkout .mex-page-copy > .woocommerce {
  padding: 0;
  background: transparent;
  border: 0;
}

.mex-checkout-page {
  padding-top: 28px;
}

.mex-checkout-page > h1 {
  margin: 0 0 28px;
  font-size: 44px;
  font-weight: 600;
  line-height: 1.15;
}

.mex-checkout-intro {
  margin: 4px 0 30px;
}

.mex-checkout-intro > span,
.mex-checkout-step {
  display: block;
  color: var(--mex-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mex-checkout-intro > p {
  margin: 15px 0 18px;
  color: #fff;
  font-size: 16px;
}

.mex-checkout-intro > div {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--mex-primary-bright);
}

.mex-checkout-intro > div span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.mex-checkout-intro svg {
  width: 18px;
  height: 18px;
}

.mex-checkout-coupon .woocommerce-info {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 14px 20px;
  color: #fff;
  background: var(--mex-surface-soft);
  border: 1px solid var(--mex-line);
  border-radius: 7px;
}

.mex-checkout-coupon .woocommerce-info::before {
  display: none;
}

.mex-checkout-coupon .woocommerce-info svg {
  width: 18px;
  height: 18px;
  margin-right: 5px;
  color: var(--mex-primary);
}

.mex-checkout-coupon .showcoupon {
  color: var(--mex-primary-bright);
}

.woocommerce form.mex-checkout-coupon-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 10px 0 0;
  padding: 16px;
  background: var(--mex-surface-soft);
  border: 1px solid var(--mex-line);
  border-radius: 7px;
}

.woocommerce form.mex-checkout-coupon-form .form-row {
  width: auto;
  margin: 0;
  padding: 0;
}

.woocommerce form.mex-checkout-coupon-form input.input-text {
  height: 46px;
  color: #fff;
  background: rgba(0, 0, 0, 0.24);
  border-color: rgba(255, 255, 255, 0.16);
}

.woocommerce form.mex-checkout-coupon-form button.button {
  width: auto;
  min-width: 110px;
  min-height: 46px;
  margin: 0 !important;
}

.mex-checkout-form {
  margin-top: 28px;
}

.mex-checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 30px;
}

.mex-checkout-panel {
  min-width: 0;
  padding: 32px;
  background: var(--mex-surface-soft);
  border: 1px solid var(--mex-line);
  border-radius: 8px;
}

.mex-checkout-panel > h2 {
  margin: 24px 0 28px;
  font-size: 27px;
  line-height: 1.2;
}

.mex-checkout-customer .col2-set,
.mex-checkout-customer .col-1,
.mex-checkout-customer .col-2 {
  width: 100% !important;
  float: none !important;
}

.mex-checkout-customer .col-2:empty {
  display: none;
}

.mex-checkout-customer .woocommerce-billing-fields__field-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.woocommerce .mex-checkout-customer .form-row {
  width: auto;
  margin: 0;
  padding: 0;
  float: none;
}

.woocommerce .mex-checkout-customer .form-row-first,
.woocommerce .mex-checkout-customer .form-row-last {
  width: 100% !important;
}

.mex-checkout-customer .form-row-wide {
  grid-column: 1 / -1;
}

.mex-checkout-customer .form-row label {
  display: block;
  margin: 0 0 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.mex-checkout-customer .form-row .required {
  color: var(--mex-primary);
}

.mex-checkout-customer .form-row input.input-text,
.mex-checkout-customer .form-row select {
  width: 100%;
  height: 54px;
  color: #fff;
  background: rgba(0, 0, 0, 0.24);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.mex-checkout-customer .form-row input.input-text::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.mex-checkout-customer .form-row .description {
  display: block;
  margin-top: 6px;
  color: var(--mex-muted);
  font-size: 10px;
  line-height: 1.45;
}

.mex-checkout-customer .woocommerce-account-fields {
  margin-top: 20px;
}

.mex-checkout-delivery {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--mex-line);
}

.mex-checkout-delivery__icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--mex-primary-bright);
  background: rgba(155, 198, 76, 0.15);
  border-radius: 8px;
}

.mex-checkout-delivery__icon svg {
  width: 24px;
  height: 24px;
}

.mex-checkout-delivery strong {
  display: block;
  color: var(--mex-primary-bright);
  font-size: 15px;
}

.mex-checkout-delivery p {
  margin: 8px 0 12px;
  color: var(--mex-muted);
  font-size: 12px;
}

.mex-checkout-delivery a {
  color: var(--mex-primary);
  font-size: 12px;
  text-decoration: underline;
}

.mex-checkout-order .woocommerce-checkout-review-order-table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
}

.mex-checkout-order .woocommerce-checkout-review-order-table th,
.mex-checkout-order .woocommerce-checkout-review-order-table td {
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--mex-line);
  color: #fff;
  background: transparent;
}

.mex-checkout-order .woocommerce-checkout-review-order-table td.product-total,
.mex-checkout-order .woocommerce-checkout-review-order-table tfoot td {
  width: 112px;
  padding-left: 14px;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.mex-checkout-order .woocommerce-checkout-review-order-table tfoot th {
  font-weight: 600;
  text-align: left;
}

.mex-checkout-product {
  display: grid;
  min-width: 0;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.mex-checkout-product__image,
.mex-checkout-product__image img {
  display: block;
  width: 64px;
  aspect-ratio: 4 / 5;
}

.mex-checkout-product__image img {
  height: auto;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 5px;
}

.mex-checkout-product__info {
  display: block;
  min-width: 0;
}

.mex-checkout-product__info > strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.mex-checkout-product__info dl.variation {
  display: flex;
  gap: 4px;
  margin: 4px 0;
  color: var(--mex-primary);
  font-size: 11px;
}

.mex-checkout-product__info dl.variation dt,
.mex-checkout-product__info dl.variation dd,
.mex-checkout-product__info dl.variation p {
  margin: 0;
  padding: 0;
}

.mex-checkout-product__info small {
  display: block;
  margin-top: 6px;
  color: var(--mex-muted);
}

.mex-checkout-order .woocommerce-checkout-review-order-table .order-total th,
.mex-checkout-order .woocommerce-checkout-review-order-table .order-total td {
  padding-block: 22px;
  font-size: 20px;
}

.mex-checkout-order .woocommerce-checkout-review-order-table .order-total .amount {
  color: var(--mex-primary-bright);
  font-size: 25px;
}

.mex-checkout-payment {
  margin-top: 26px;
}

.mex-checkout-payment-heading {
  margin-bottom: 20px;
}

.mex-checkout-payment-heading h3 {
  margin: 0 0 7px;
  font-size: 20px;
}

.mex-checkout-payment-heading p {
  margin: 0;
  color: var(--mex-muted);
  font-size: 12px;
}

.woocommerce-checkout #payment {
  background: transparent;
}

.woocommerce-checkout #payment ul.payment_methods {
  margin: 0;
  padding: 0;
  border: 0;
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method {
  margin-bottom: 12px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method:has(input:checked) {
  background: rgba(155, 198, 76, 0.08);
  border-color: var(--mex-primary);
}

.woocommerce-checkout #payment ul.payment_methods li label {
  color: #fff;
  font-weight: 600;
}

.woocommerce-checkout #payment div.payment_box {
  color: #11130d;
  background: #f4f8ec;
}

.woocommerce-checkout #payment div.payment_box::before {
  border-bottom-color: #f4f8ec;
}

.mex-no-payment-methods .woocommerce-info {
  margin: 0;
  padding: 16px 16px 16px 44px;
  font-size: 12px;
}

.woocommerce-checkout #payment div.form-row.place-order {
  margin: 20px 0 0;
  padding: 0;
}

.woocommerce-checkout #payment .woocommerce-privacy-policy-text {
  color: var(--mex-muted);
  font-size: 10px;
}

.woocommerce-checkout #payment .woocommerce-privacy-policy-text a,
.woocommerce-checkout #payment .woocommerce-terms-and-conditions-link {
  color: var(--mex-primary);
  text-decoration: underline;
}

.woocommerce-checkout #payment #place_order {
  width: 100%;
  min-height: 58px;
  margin: 24px 0 0 !important;
  font-size: 15px !important;
}

@media (max-width: 900px) {
  .woocommerce-cart .mex-content-page__inner,
  .woocommerce-checkout .mex-content-page__inner {
    width: min(100% - 24px, var(--mex-container));
    padding-bottom: 48px;
  }

  .mex-cart-page,
  .mex-checkout-page {
    padding-top: 16px;
  }

  .mex-cart-page > h1,
  .mex-checkout-page > h1 {
    margin-bottom: 28px;
    font-size: 32px;
  }

  .mex-cart-layout,
  .mex-checkout-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .mex-cart-summary {
    position: static;
  }

  .mex-cart-item {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 16px;
  }

  .mex-cart-item__thumbnail a,
  .mex-cart-item__thumbnail img {
    width: 104px;
  }

  .mex-cart-item__subtotal {
    grid-column: 2;
    min-width: 0;
    padding-top: 0;
    align-items: flex-start;
    text-align: left;
  }

  .mex-cart-products__head {
    grid-template-columns: 1fr;
  }

  .mex-cart-products__head span:last-child {
    display: none;
  }

  .mex-cart-products__actions {
    justify-content: flex-start;
  }

  .mex-checkout-panel {
    padding: 24px;
  }
}

@media (max-width: 600px) {
  .woocommerce-cart .woocommerce-message,
  .woocommerce-checkout .woocommerce-message {
    display: block;
    margin-bottom: 28px;
    padding: 16px 16px 16px 46px;
    line-height: 1.5;
  }

  .woocommerce-cart .woocommerce-message::before,
  .woocommerce-checkout .woocommerce-message::before {
    left: 16px;
  }

  .woocommerce-cart .woocommerce-message .button,
  .woocommerce-checkout .woocommerce-message .button {
    width: 100%;
    margin: 12px 0 0 !important;
  }

  .mex-cart-item {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .mex-cart-item__thumbnail a,
  .mex-cart-item__thumbnail img {
    width: 88px;
    height: auto;
  }

  .mex-cart-item__details h2 {
    font-size: 13px;
  }

  .mex-cart-item__controls {
    gap: 8px;
  }

  .mex-cart-quantity {
    width: 124px;
  }

  .mex-cart-estimated-total,
  .mex-cart-estimated-total strong,
  .mex-cart-estimated-total .amount {
    font-size: 20px;
  }

  .mex-checkout-intro {
    margin-bottom: 24px;
  }

  .mex-checkout-intro > p {
    font-size: 14px;
  }

  .mex-checkout-intro > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    font-size: 12px;
  }

  .mex-checkout-coupon .woocommerce-info {
    display: block;
    padding: 14px 16px;
    font-size: 12px;
  }

  .mex-checkout-coupon .woocommerce-info svg {
    display: inline-block;
    vertical-align: middle;
  }

  .mex-checkout-coupon .showcoupon {
    display: block;
    margin-top: 4px;
  }

  .woocommerce form.mex-checkout-coupon-form {
    grid-template-columns: 1fr;
  }

  .woocommerce form.mex-checkout-coupon-form button.button {
    width: 100%;
  }

  .mex-checkout-form {
    margin-top: 20px;
  }

  .mex-checkout-panel {
    padding: 20px;
  }

  .mex-checkout-panel > h2 {
    margin: 18px 0 24px;
    font-size: 24px;
  }

  .mex-checkout-customer .woocommerce-billing-fields__field-wrapper {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .mex-checkout-customer .form-row-wide {
    grid-column: auto;
  }

  .mex-checkout-delivery {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .mex-checkout-delivery__icon {
    width: 44px;
    height: 44px;
  }

  .mex-checkout-order .woocommerce-checkout-review-order-table th,
  .mex-checkout-order .woocommerce-checkout-review-order-table td {
    display: table-cell;
  }

  .mex-checkout-order .woocommerce-checkout-review-order-table td.product-total,
  .mex-checkout-order .woocommerce-checkout-review-order-table tfoot td {
    width: 88px;
    padding-left: 8px;
    font-size: 11px;
  }

  .mex-checkout-product {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 9px;
  }

  .mex-checkout-product__image,
  .mex-checkout-product__image img {
    width: 50px;
    height: auto;
  }

  .mex-checkout-product__info > strong {
    font-size: 10px;
  }

  .mex-checkout-order .woocommerce-checkout-review-order-table .order-total th,
  .mex-checkout-order .woocommerce-checkout-review-order-table .order-total td {
    font-size: 17px;
  }

  .mex-checkout-order .woocommerce-checkout-review-order-table .order-total .amount {
    font-size: 19px;
  }
}

