/*
Theme Name: MexicaIn Marketplace
Theme URI: https://mexicain.com.mx/
Author: MexicaIn
Description: Tema editorial y de marketplace para presentar el talento mexicano al mundo.
Version: 0.9.0
Text Domain: mexicain-marketplace
*/

:root {
  --mx-ink: #251226;
  --mx-muted: #755f76;
  --mx-surface: #fff9fc;
  --mx-paper: #ffffff;
  --mx-brand: #d91552;
  --mx-brand-dark: #a70d5f;
  --mx-pink: #f04f93;
  --mx-rose: #ffd7e8;
  --mx-purple: #6f2b8f;
  --mx-purple-dark: #431657;
  --mx-lilac: #eadcf4;
  --mx-gold: #f2b544;
  --mx-line: rgba(67, 22, 87, 0.14);
  --mx-shadow: 0 20px 55px rgba(67, 22, 87, 0.12);
  --mx-radius: 26px;
  --mx-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--mx-ink);
  background: var(--mx-surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: var(--mx-brand-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--mx-purple); }
img { max-width: 100%; height: auto; }

.mx-container { width: min(calc(100% - 40px), var(--mx-width)); margin-inline: auto; }

.mx-topline {
  padding: 8px 20px;
  color: #fff;
  background: var(--mx-purple-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.mx-pattern {
  height: 10px;
  background:
    linear-gradient(135deg, transparent 25%, var(--mx-gold) 25% 50%, transparent 50%) 0 0 / 22px 22px,
    linear-gradient(315deg, transparent 25%, var(--mx-pink) 25% 50%, transparent 50%) 11px 0 / 22px 22px,
    var(--mx-brand);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--mx-line);
  background: rgba(255, 249, 252, 0.92);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-branding { display: inline-flex; align-items: center; gap: 11px; color: var(--mx-ink); text-decoration: none; }
.site-branding:hover { color: var(--mx-ink); }
.site-branding__logo { display: block; width: auto; height: 58px; object-fit: contain; }
.site-branding__logo--footer { height: 92px; }

.main-navigation ul { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.main-navigation a { color: var(--mx-ink); font-size: 0.92rem; font-weight: 750; text-decoration: none; }
.main-navigation a:hover { color: var(--mx-brand); }
.mobile-navigation { display: none; position: relative; }
.mobile-navigation summary { width: 46px; height: 46px; display: grid; align-content: center; gap: 5px; padding: 10px; border-radius: 50%; background: var(--mx-brand); cursor: pointer; list-style: none; }
.mobile-navigation summary::-webkit-details-marker { display: none; }
.mobile-navigation summary span { display: block; width: 100%; height: 3px; border-radius: 99px; background: #fff; }
.mobile-navigation nav { position: absolute; top: 56px; right: 0; width: min(82vw, 310px); padding: 15px; border: 1px solid var(--mx-line); border-radius: 20px; background: #fff; box-shadow: var(--mx-shadow); }
.mobile-navigation ul { margin: 0; padding: 0; list-style: none; }
.mobile-navigation li + li { border-top: 1px solid var(--mx-line); }
.mobile-navigation a { display: block; padding: 12px 9px; color: var(--mx-ink); font-weight: 800; text-decoration: none; }
.mobile-navigation a:hover { color: var(--mx-brand); }

.mx-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 7vw, 88px) 0 clamp(105px, 12vw, 155px);
  color: #fff;
  background-color: var(--mx-brand);
  background-image: linear-gradient(rgba(178, 7, 70, .10), rgba(178, 7, 70, .18)), url("assets/images/patron-magenta.webp");
  background-position: center;
  background-size: cover;
}
.mx-hero__content { position: relative; z-index: 2; max-width: 880px; text-align: center; }
.mx-hero__brand { width: auto; height: clamp(90px, 12vw, 138px); margin: 0 auto 24px; }
.mx-eyebrow { margin: 0 0 18px; color: var(--mx-gold); font-size: 0.78rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.mx-hero h1 { max-width: 820px; margin: 0 auto; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.2rem, 8.2vw, 6.9rem); font-weight: 800; letter-spacing: -.065em; line-height: .9; }
.mx-hero h1 span { color: var(--mx-rose); }
.mx-hero__lead { max-width: 680px; margin: 28px auto 0; color: rgba(255,255,255,.92); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.mx-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.mx-hero .mx-actions { justify-content: center; }
.mx-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 23px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--mx-gold);
  color: var(--mx-ink);
  font-weight: 850;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.mx-button:hover { color: var(--mx-ink); transform: translateY(-2px); box-shadow: 0 10px 25px rgba(37,18,38,.24); }
.mx-button--ghost { border-color: rgba(255,255,255,.55); background: transparent; color: #fff; }
.mx-button--ghost:hover { background: #fff; color: var(--mx-purple-dark); }

.mx-section { padding: clamp(68px, 9vw, 112px) 0; }
.mx-section--paper { background: var(--mx-paper); }
.mx-section__head { max-width: 750px; margin-bottom: 42px; }
.mx-kicker { margin: 0 0 10px; color: var(--mx-brand); font-size: .78rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.mx-section h2, .page-header h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.35rem, 5vw, 4.2rem); letter-spacing: -.045em; line-height: 1; }
.mx-section__head p { margin: 19px 0 0; color: var(--mx-muted); font-size: 1.08rem; }

.mx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mx-card {
  position: relative;
  overflow: hidden;
  min-height: 285px;
  padding: 30px;
  border: 1px solid var(--mx-line);
  border-radius: var(--mx-radius);
  background: #fff;
  box-shadow: 0 12px 35px rgba(67,22,87,.06);
}
.mx-card::after { content: ""; position: absolute; right: -42px; bottom: -42px; width: 125px; height: 125px; border: 18px solid var(--mx-rose); border-radius: 32px; transform: rotate(32deg); opacity: .65; }
.mx-card:nth-child(2)::after { border-color: var(--mx-lilac); border-radius: 50%; }
.mx-card:nth-child(3)::after { border-color: #ffe6a9; }
.mx-card__number { display: block; margin-bottom: 40px; color: var(--mx-brand); font-family: Georgia, serif; font-size: 2rem; font-weight: 800; }
.mx-card h3 { position: relative; z-index: 1; margin: 0 0 10px; font-size: 1.28rem; }
.mx-card p { position: relative; z-index: 1; margin: 0; color: var(--mx-muted); }

#proyecto .mx-section__head h2,
#proyecto .mx-card h3 { color: #b20746; }
#proyecto .mx-kicker,
#proyecto .mx-section__head > p,
#proyecto .mx-card p { color: #a85d82; }

.mx-category-showcase {
  padding: clamp(32px, 5vw, 58px);
  border-radius: calc(var(--mx-radius) + 8px);
  color: #fff;
  background-color: #8d16bf;
  background-image: linear-gradient(rgba(141,22,191,.68), rgba(141,22,191,.68)), url("assets/images/patron-magenta.webp");
  background-position: center;
  background-size: cover;
  box-shadow: var(--mx-shadow);
}
.mx-category-showcase__head { display: flex; justify-content: center; align-items: center; gap: 16px; margin-bottom: 28px; text-align: center; }
.mx-category-showcase__head::before,
.mx-category-showcase__head::after { content: ""; width: min(18vw, 190px); height: 1px; background: rgba(255,255,255,.44); }
.mx-category-showcase__head img { width: auto; height: 72px; flex: 0 0 auto; }
.mx-category-showcase__head h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4.5vw, 3.8rem); line-height: 1; }
.mx-category-showcase__notice { width: fit-content; margin: -8px auto 28px; padding: 7px 14px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; color: var(--mx-gold); background: rgba(37,18,38,.25); font-size: .75rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.mx-category-grid { overflow: hidden; display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid rgba(255,255,255,.34); border-radius: 20px; background: rgba(255,255,255,.10); backdrop-filter: blur(5px); }
.mx-category { min-height: 142px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; padding: 18px 10px; color: #fff; text-align: center; text-decoration: none; transition: background .2s ease, transform .2s ease; }
.mx-category:nth-child(n+2) { border-left: 1px solid rgba(255,255,255,.26); }
.mx-category:nth-child(n+7) { border-top: 1px solid rgba(255,255,255,.26); }
.mx-category:nth-child(7) { border-left: 0; }
.mx-category:hover { color: #fff; background: rgba(255,255,255,.10); }
.mx-category:focus-visible { position: relative; z-index: 1; outline: 3px solid var(--mx-gold); outline-offset: -4px; }
.mx-category img { width: 55px; height: 55px; object-fit: contain; filter: brightness(0) invert(1); opacity: .94; }
.mx-category span { font-size: .9rem; font-weight: 800; line-height: 1.15; }

.page-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(260px, 35vw, 430px);
  display: grid;
  place-items: center;
  padding: 72px 0;
  color: #fff;
  text-align: center;
  background-color: #8d16bf;
  background-image: linear-gradient(rgba(141,22,191,.66), rgba(141,22,191,.66)), url("assets/images/patron-magenta.webp");
  background-position: center;
  background-size: cover;
}
.page-header::before { content: ""; position: absolute; z-index: -1; left: clamp(8px, 4vw, 70px); bottom: -18px; width: clamp(150px, 22vw, 260px); height: clamp(125px, 20vw, 215px); background: url("assets/images/cactus-outline-white.svg") left bottom / contain no-repeat; opacity: 1; }
.page-header::after { display: none; }
.page-header .mx-container { max-width: 920px; }
.page-header .mx-kicker { color: var(--mx-gold); }
.page-header h1 { font-size: clamp(3rem, 7vw, 6.4rem); text-wrap: balance; text-shadow: 0 8px 30px rgba(37,18,38,.25); }
.entry-content { width: min(calc(100% - 40px), 920px); margin: 0 auto; padding: clamp(58px, 8vw, 100px) 0; color: var(--mx-muted); font-size: 1.04rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2, .entry-content h3 { margin-top: 1.8em; font-family: Georgia, "Times New Roman", serif; line-height: 1.12; text-wrap: balance; }
.entry-content h2 { color: #b20746; }
.entry-content h3 { color: var(--mx-brand-dark); }
.entry-content h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.entry-content h3 { font-size: clamp(1.45rem, 3vw, 2rem); }
.entry-content p { margin: 0 0 1.35em; color: var(--mx-muted); }
.entry-content ul, .entry-content ol { padding-left: 1.35em; }
.entry-content li + li { margin-top: .55em; }
.entry-content strong { color: var(--mx-purple-dark); }
.entry-content a { color: var(--mx-brand-dark); font-weight: 750; }
.entry-content a:hover { color: var(--mx-purple); }
.entry-content blockquote { margin: 36px 0; padding: 24px 28px; border-left: 6px solid var(--mx-brand); border-radius: 0 18px 18px 0; background: linear-gradient(135deg, var(--mx-rose), #fff); color: var(--mx-purple-dark); font-family: Georgia, serif; font-size: 1.2rem; }
.entry-content img { border-radius: var(--mx-radius); box-shadow: var(--mx-shadow); }
.entry-content .wp-block-columns { gap: clamp(26px, 5vw, 60px); align-items: center; }
.entry-content--commerce { width: min(calc(100% - 40px), var(--mx-width)); }

/* Marketplace: directorio Dokan, tiendas y catálogo WooCommerce. */
.page-header--marketplace { min-height: clamp(285px, 32vw, 390px); }
.mx-market-hero__lead { max-width: 650px; margin: 22px auto 0; color: rgba(255,255,255,.92); font-size: clamp(1rem, 2vw, 1.2rem); }
.mx-market-status { width: min(calc(100% - 40px), var(--mx-width)); display: flex; align-items: center; justify-content: center; gap: 12px 22px; margin: -25px auto 0; padding: 18px 26px; position: relative; z-index: 3; border: 1px solid rgba(178,7,70,.16); border-radius: 18px; background: #fff; box-shadow: var(--mx-shadow); text-align: center; }
.mx-market-status strong { color: var(--mx-brand-dark); }
.mx-market-status span { color: #8e5472; }

.page-id-165 .entry-content { width: min(calc(100% - 40px), var(--mx-width)); padding-top: 58px; }
.dokan-store-listing-filter-wrap { display: flex !important; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 24px !important; padding: 18px 20px; border: 1px solid var(--mx-line); border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(67,22,87,.07); }
.dokan-store-listing-filter-wrap .right { margin-left: auto; }
.dokan-store-listing-filter-wrap select,
.dokan-store-listing-filter-form-wrap input { min-height: 44px; padding: 9px 13px; border: 1px solid rgba(67,22,87,.24); border-radius: 12px; background: #fffafd; color: var(--mx-ink); }
.dokan-store-listing-filter-wrap button,
.dokan-store-listing-filter-form-wrap button { min-height: 44px; padding: 9px 18px; border: 0; border-radius: 999px; background: var(--mx-brand); color: #fff; font-weight: 800; }
.dokan-store-listing-filter-form-wrap { margin: 0 0 24px !important; padding: 18px !important; border: 1px solid var(--mx-line); border-radius: 18px; background: #fff; }
#dokan-seller-listing-wrap ul.dokan-seller-wrap { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0 !important; padding: 0 !important; }
#dokan-seller-listing-wrap ul.dokan-seller-wrap li.dokan-single-seller { float: none !important; width: auto !important; margin: 0 !important; list-style: none; }
#dokan-seller-listing-wrap .store-wrapper { height: 100%; overflow: hidden; border: 1px solid rgba(111,43,143,.16) !important; border-radius: 24px !important; background: #fff; box-shadow: 0 16px 38px rgba(67,22,87,.10); transition: transform .2s ease, box-shadow .2s ease; }
#dokan-seller-listing-wrap .store-wrapper:hover { transform: translateY(-4px); box-shadow: 0 22px 45px rgba(67,22,87,.16); }
#dokan-seller-listing-wrap .store-banner { height: 175px !important; background-color: #97149f; background-image: linear-gradient(rgba(141,22,191,.64),rgba(178,7,70,.56)),url("assets/images/patron-magenta.webp"); background-size: cover; }
#dokan-seller-listing-wrap .store-banner img { width: 100%; height: 100% !important; object-fit: cover; opacity: .24; mix-blend-mode: screen; }
#dokan-seller-listing-wrap .store-content { min-height: 105px !important; margin: 0 !important; padding: 22px 20px 18px !important; background: #fff !important; }
#dokan-seller-listing-wrap .store-data h2 { margin: 0 !important; font-family: Georgia,"Times New Roman",serif; font-size: 1.35rem !important; line-height: 1.15; }
#dokan-seller-listing-wrap .store-data h2 a { color: var(--mx-brand-dark) !important; text-decoration: none; }
#dokan-seller-listing-wrap .store-footer { min-height: 70px; border-top: 1px solid var(--mx-line) !important; background: #fffafd !important; }
#dokan-seller-listing-wrap .seller-avatar img { border: 4px solid #fff !important; box-shadow: 0 5px 16px rgba(67,22,87,.17); }
#dokan-seller-listing-wrap .dokan-btn-theme { background: var(--mx-brand) !important; color: #fff !important; }

.dokan-store { overflow-x: hidden; }
.dokan-store .page-header--marketplace { margin-bottom: 0; }
.dokan-store .dokan-breadcrumb { width: min(calc(100% - 40px), var(--mx-width)); margin: 0 auto !important; padding: 24px 0 0 !important; color: var(--mx-muted); }
.dokan-store .dokan-store-wrap { width: min(calc(100% - 40px), var(--mx-width)) !important; display: grid !important; grid-template-columns: minmax(235px, .72fr) minmax(0, 2.1fr); gap: 28px; margin: 36px auto 70px !important; }
.dokan-store #dokan-secondary,
.dokan-store #dokan-primary { float: none !important; width: auto !important; min-width: 0; }
.dokan-store .dokan-widget-area { padding: 0 !important; }
.dokan-store .dokan-store-widget { overflow: hidden; margin: 0 0 20px !important; padding: 22px !important; border: 1px solid var(--mx-line) !important; border-radius: 20px; background: #fff; box-shadow: 0 12px 30px rgba(67,22,87,.08); }
/* La relación con compradores se gestiona exclusivamente mediante MexicaIn. */
.dokan-store .dokan-store-info .dokan-store-phone,
.dokan-store .dokan-store-info .dokan-store-email,
.dokan-store .dokan-store-info li:has(.fa-phone),
.dokan-store .dokan-store-info li:has(.fa-envelope),
.dokan-store .dokan-store-info a[href^="tel:"],
.dokan-store .dokan-store-info a[href^="mailto:"] { display: none !important; }
.dokan-store #dokan-form-contact-seller,
.dokan-store .dokan-form-contact-seller { display: none !important; }
.dokan-store .mx-central-contact { margin: 0; color: var(--mx-muted); line-height: 1.55; }
.dokan-store .mx-central-contact a { display: inline-flex; margin-top: 14px; padding: 10px 18px; border-radius: 999px; background: var(--mx-brand); color: #fff !important; font-weight: 800; text-decoration: none; }
.dokan-store .widget-title { margin: 0 0 18px !important; color: var(--mx-brand-dark); font-family: Georgia,"Times New Roman",serif; font-size: 1.25rem !important; line-height: 1.15; }
.dokan-store .dokan-form-control { width: 100% !important; min-height: 46px; padding: 10px 12px !important; border: 1px solid rgba(67,22,87,.24) !important; border-radius: 12px !important; background: #fffafd !important; }
.dokan-store textarea.dokan-form-control { min-height: 120px; }
.dokan-store .dokan-btn-theme { padding: 11px 19px !important; border: 0 !important; border-radius: 999px !important; background: var(--mx-brand) !important; color: #fff !important; font-weight: 800; }
.dokan-store .profile-frame { overflow: hidden; border: 1px solid var(--mx-line); border-radius: 26px; background: #fff; box-shadow: var(--mx-shadow); }
.dokan-store .profile-info-box { min-height: 355px !important; }
.dokan-store .profile-info-img { width: 100% !important; height: 355px !important; object-fit: cover; opacity: .28; }
.dokan-store .profile-info-summery-wrapper { background: linear-gradient(135deg,rgba(67,22,87,.90),rgba(178,7,70,.82)) !important; }
.dokan-store .profile-info-summery { display: flex !important; align-items: flex-end; gap: 20px; padding: 26px !important; }
.dokan-store .profile-info-head .store-name { display: none !important; }
.dokan-store .profile-img img { border: 5px solid #fff !important; box-shadow: 0 8px 24px rgba(37,18,38,.25); }
.dokan-store .mx-store-fallback-title { margin: 0 0 8px; color: #fff; font-family: Georgia,"Times New Roman",serif; font-size: clamp(1.8rem,4vw,3rem); line-height: 1; }
.dokan-store .dokan-store-info { color: rgba(255,255,255,.88) !important; }
.dokan-store .dokan-store-tabs { margin-top: 18px !important; border: 1px solid var(--mx-line); border-radius: 16px; background: #fff; }
.dokan-store .dokan-store-tabs ul { margin: 0 !important; padding: 0 18px !important; }
.dokan-store .dokan-store-tabs a { color: var(--mx-brand-dark) !important; font-weight: 800; }
.dokan-store .dokan-store-products-filter-area { margin: 22px 0 !important; padding: 16px; border: 1px solid var(--mx-line); border-radius: 16px; background: #fff; }
.dokan-store .dokan-store-products-ordeby { display: flex; flex-wrap: wrap; gap: 10px; }
.dokan-store .product-name-search,
.dokan-store .orderby { min-height: 44px; padding: 9px 12px; border: 1px solid rgba(67,22,87,.24); border-radius: 12px; background: #fffafd; }
.dokan-store .product-name-search { flex: 1 1 230px; }
.dokan-store .dokan-info { padding: 24px !important; border: 1px solid rgba(178,7,70,.14) !important; border-radius: 18px; background: linear-gradient(135deg,#fff,#fff0f6) !important; color: var(--mx-brand-dark) !important; text-align: center; }

.entry-content--commerce .woocommerce-products-header { display: none; }
.entry-content--commerce .woocommerce-info,
.entry-content--commerce .woocommerce-notice { padding: 28px !important; border: 1px solid rgba(178,7,70,.15); border-radius: 20px; background: linear-gradient(135deg,#fff,#fff0f6); color: var(--mx-brand-dark); text-align: center; box-shadow: 0 12px 30px rgba(67,22,87,.07); }
.entry-content--commerce ul.products { display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; margin: 0 !important; }
.entry-content--commerce ul.products li.product { float: none !important; width: auto !important; margin: 0 !important; overflow: hidden; padding: 0 0 20px; border: 1px solid var(--mx-line); border-radius: 22px; background: #fff; box-shadow: 0 12px 32px rgba(67,22,87,.08); }
.entry-content--commerce ul.products li.product img { margin: 0 0 18px !important; border-radius: 0; box-shadow: none; }
.entry-content--commerce ul.products li.product h2,
.entry-content--commerce ul.products li.product .price { padding-inline: 18px !important; color: var(--mx-brand-dark) !important; }
.entry-content--commerce .woocommerce-result-count,
.entry-content--commerce .woocommerce-ordering { margin-bottom: 26px; }
.entry-content--commerce select.orderby { min-height: 44px; padding: 8px 12px; border: 1px solid rgba(67,22,87,.24); border-radius: 12px; background: #fff; }

/* Formularios públicos: tarjeta clara, campos legibles y controles accesibles. */
.entry-content form.register,
.entry-content form.dokan-form-horizontal,
.entry-content form.woocommerce-form,
.entry-content .dokan-vendor-register {
  width: min(100%, 720px);
  margin: 10px auto;
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid rgba(111,43,143,.18);
  border-radius: var(--mx-radius);
  background: #fff;
  box-shadow: var(--mx-shadow);
}
.entry-content .dokan-form-group { margin: 0 0 22px; }
.entry-content .dokan-form-group label,
.entry-content form.register label,
.entry-content form.woocommerce-form label { display: block; margin: 0 0 8px; color: var(--mx-purple-dark); font-weight: 800; }
.entry-content .dokan-form-control,
.entry-content form.register input[type="text"],
.entry-content form.register input[type="email"],
.entry-content form.register input[type="password"],
.entry-content form.register input[type="tel"],
.entry-content form.register select,
.entry-content form.register textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 15px;
  border: 1px solid rgba(67,22,87,.28);
  border-radius: 13px;
  color: var(--mx-ink);
  background: #fffafd;
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.entry-content form.woocommerce-form input[type="text"],
.entry-content form.woocommerce-form input[type="email"],
.entry-content form.woocommerce-form input[type="password"],
.entry-content form.woocommerce-form input[type="tel"],
.entry-content form.woocommerce-form select,
.entry-content form.woocommerce-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 15px;
  border: 1px solid rgba(67,22,87,.28);
  border-radius: 13px;
  color: var(--mx-ink);
  background: #fffafd;
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.entry-content .dokan-form-control:focus,
.entry-content form.register input:focus,
.entry-content form.register select:focus,
.entry-content form.register textarea:focus {
  outline: 0;
  border-color: var(--mx-purple);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(141,22,191,.13);
}
.entry-content form.woocommerce-form input:focus,
.entry-content form.woocommerce-form select:focus,
.entry-content form.woocommerce-form textarea:focus {
  outline: 0;
  border-color: var(--mx-purple);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(141,22,191,.13);
}
.entry-content .dokan-btn,
.entry-content form.register button,
.entry-content form.register input[type="submit"] {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 2px solid var(--mx-purple);
  border-radius: 999px;
  color: var(--mx-purple-dark);
  background: transparent;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.entry-content form.woocommerce-form button,
.entry-content form.woocommerce-form input[type="submit"] {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 2px solid var(--mx-purple);
  border-radius: 999px;
  color: var(--mx-purple-dark);
  background: transparent;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.entry-content .dokan-btn:hover,
.entry-content form.register button:hover,
.entry-content form.register input[type="submit"]:hover {
  color: #fff;
  background: var(--mx-purple);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(67,22,87,.20);
}
.entry-content form.woocommerce-form button:hover,
.entry-content form.woocommerce-form input[type="submit"]:hover {
  color: #fff;
  background: var(--mx-purple);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(67,22,87,.20);
}
.woocommerce .woocommerce-breadcrumb { color: var(--mx-muted); }
.woocommerce ul.products li.product { padding: 18px; border: 1px solid var(--mx-line); border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgba(67,22,87,.06); }

.mx-trust-band { position: relative; padding: 22px 0 58px; border-top: 1px solid var(--mx-line); background: #f6f2f7; }
.mx-trust-band__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.mx-trust-item { position: relative; padding: 30px clamp(20px, 4vw, 54px); text-align: center; }
.mx-trust-item + .mx-trust-item::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--mx-line); }
.mx-trust-item__icon { width: 72px; height: 72px; display: block; margin: 0 auto 12px; object-fit: contain; }
.mx-trust-item strong { display: block; color: var(--mx-brand); font-size: 1.04rem; }
.mx-trust-item span { display: block; max-width: 270px; margin: 8px auto 0; color: var(--mx-muted); font-size: .86rem; line-height: 1.45; }
.mx-trust-item a { display: inline-block; margin-top: 14px; color: var(--mx-purple); font-size: .78rem; font-weight: 850; text-decoration: none; }
.mx-trust-item a:hover { color: var(--mx-brand); }
.mx-footer-cta { position: absolute; z-index: 2; left: 50%; bottom: -22px; min-width: 230px; transform: translateX(-50%); }
.mx-footer-cta:hover { transform: translate(-50%, -2px); }

.site-footer { position: relative; padding: 82px 0 26px; color: rgba(255,255,255,.92); background-color: var(--mx-brand); background-image: linear-gradient(rgba(178,7,70,.10), rgba(178,7,70,.18)), url("assets/images/patron-magenta.webp"); background-position: center; background-size: cover; }
body:not(.home) .site-footer { background-color: #8d16bf; background-image: linear-gradient(rgba(141,22,191,.66), rgba(141,22,191,.66)), url("assets/images/patron-magenta.webp"); }
.site-footer__grid { display: grid; grid-template-columns: 1fr 1.05fr .65fr 1fr; gap: clamp(26px, 4vw, 58px); align-items: start; }
.site-footer .site-branding { color: #fff; }
.site-footer p { max-width: 540px; margin: 14px 0 0; }
.site-footer h2 { margin: 6px 0 15px; color: #fff; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.site-footer__brand { text-align: center; }
.site-footer__brand .site-branding { justify-content: center; }
.site-footer__brand p { margin-inline: auto; font-size: .82rem; }
.site-footer__nav ul { margin: 0; padding: 0; list-style: none; }
.site-footer__nav li + li { margin-top: 8px; }
.site-footer__nav a { color: rgba(255,255,255,.82); font-size: .9rem; font-weight: 700; text-decoration: none; }
.site-footer__nav a:hover { color: var(--mx-gold); }
.site-footer__note { font-size: .86rem; }
.site-footer__note span { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.site-footer__note a { color: #fff; font-weight: 700; text-decoration: none; }
.site-footer__note a:hover { color: var(--mx-gold); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-top: 46px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.22); }
.site-footer__social { display: flex; align-items: center; gap: 9px; }
.site-footer__social > strong { margin-right: 8px; color: #fff; font-size: .86rem; }
.site-footer__social a { width: 42px; height: 42px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.92); border-radius: 50%; background: rgba(255,255,255,.08); text-decoration: none; transition: background .2s ease, transform .2s ease; }
.site-footer__social a:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.site-footer__social img { width: 23px; height: 23px; display: block; object-fit: contain; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; font-size: .76rem; }
.site-footer__legal a { color: rgba(255,255,255,.86); text-decoration: none; }
.site-footer__legal a:hover { color: var(--mx-gold); }

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* WooCommerce applies a generic image height that can override the header brand. */
.woocommerce .site-header .site-branding__logo { width: auto; height: 58px; }
.woocommerce .site-footer .site-branding__logo--footer { width: auto; height: 92px; }
.entry-content--commerce > .woocommerce-products-header,
.entry-content--commerce .woocommerce-products-header__title,
.entry-content--commerce > .page-title { display: none; }

/* WooCommerce account: align the inherited screens with the MexicaIn system. */
.woocommerce .site-header .site-branding__logo {
  width: auto !important;
  max-width: 96px !important;
  height: 58px !important;
}
.woocommerce-account .entry-content { width: min(calc(100% - 40px), 1080px); }
.woocommerce-account .entry-content > .woocommerce {
  display: grid;
  grid-template-columns: minmax(210px, .34fr) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}
.woocommerce-account:not(.logged-in) .entry-content > .woocommerce { display: block; }
.woocommerce-account:not(.logged-in) .woocommerce .u-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}
.woocommerce-account:not(.logged-in) .woocommerce .u-column1,
.woocommerce-account:not(.logged-in) .woocommerce .u-column2 {
  float: none;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--mx-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(67,22,87,.09);
}
.woocommerce-account:not(.logged-in) .woocommerce form.login,
.woocommerce-account:not(.logged-in) .woocommerce form.register {
  margin: 0;
  padding: 0;
  border: 0;
}
.woocommerce-account:not(.logged-in) .woocommerce form .form-row,
.woocommerce-account:not(.logged-in) .woocommerce form .input-text {
  width: 100%;
  max-width: none;
}

/* Dokan vendor workspace: carry the MexicaIn magenta system into both the
   current React sidebar and the legacy settings sidebar. */
#dokan-dashboard-fullwidth-wrapper .dokan-frontend-sidebar,
.dokan-dashboard-wrap .dokan-dash-sidebar {
  background-color: #b20746 !important;
  background-image:
    linear-gradient(180deg, rgba(217,21,82,.84) 0%, rgba(167,13,95,.86) 58%, rgba(111,43,143,.88) 100%),
    url("assets/images/patron-magenta.webp") !important;
  background-position: center !important;
  background-size: cover !important;
}
#dokan-dashboard-fullwidth-wrapper .dokan-frontend-sidebar a,
.dokan-dashboard-wrap .dokan-dash-sidebar a {
  color: #fff !important;
}
#dokan-dashboard-fullwidth-wrapper a[href*="#withdraw"],
#dokan-dashboard-fullwidth-wrapper a[href*="/settings/payment"],
.dokan-dashboard-wrap a[href*="/withdraw"],
.dokan-dashboard-wrap a[href*="/settings/payment"] {
  display: none !important;
}
#dokan-dashboard-fullwidth-wrapper .dokan-frontend-sidebar a.active,
#dokan-dashboard-fullwidth-wrapper .dokan-frontend-sidebar a[data-active="true"],
#dokan-dashboard-fullwidth-wrapper .dokan-frontend-sidebar a:hover,
.dokan-dashboard-wrap .dokan-dash-sidebar li.active > a,
.dokan-dashboard-wrap .dokan-dash-sidebar a:hover {
  background: rgba(255,255,255,.20) !important;
  color: #fff !important;
}

/* The Dokan data grids are wider than a tablet viewport. Keep every action
   reachable with a contained horizontal scroll instead of clipping columns. */
#dokan-dashboard-fullwidth-wrapper main,
#dokan-dashboard-fullwidth-wrapper .dokan-dashboard-content,
.dokan-dashboard-wrap .dokan-dashboard-content {
  min-width: 0 !important;
  max-width: 100% !important;
}
#dokan-dashboard-fullwidth-wrapper [class*="data-view"],
#dokan-dashboard-fullwidth-wrapper [class*="table"],
.dokan-dashboard-wrap .dokan-table {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
#dokan-dashboard-fullwidth-wrapper table,
.dokan-dashboard-wrap table {
  min-width: 720px;
}
.mx-paused-panel,
.mx-empty-state {
  width: min(100%, 760px);
  margin: clamp(24px, 5vw, 64px) auto;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid rgba(217,21,82,.20);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(67,22,87,.10);
  text-align: center;
}
.mx-paused-panel__mark,
.mx-empty-state__mark {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mx-brand), var(--mx-purple));
  color: #fff;
  font-size: 1.65rem;
  font-weight: 900;
}
.mx-paused-panel h2,
.mx-empty-state h2 { margin: 0 0 10px; color: var(--mx-brand-dark); }
.mx-paused-panel p,
.mx-empty-state p { margin: 0 auto; max-width: 580px; color: var(--mx-muted); }
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
  float: none;
  width: auto;
  min-width: 0;
  border: 1px solid var(--mx-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(67,22,87,.09);
}
.woocommerce-account .woocommerce-MyAccount-navigation { padding: 12px; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { margin: 0; padding: 0; list-style: none; }
.woocommerce-account .woocommerce-MyAccount-navigation li { margin: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: block;
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--mx-purple-dark);
  font-weight: 800;
  text-decoration: none;
}
.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
  background: linear-gradient(135deg, var(--mx-brand), var(--mx-purple));
  color: #fff;
}
.woocommerce-account .woocommerce-MyAccount-content { padding: clamp(24px, 4vw, 42px); }
.woocommerce-account .woocommerce-MyAccount-content > :first-child { margin-top: 0; }
.woocommerce-account .woocommerce-MyAccount-content > :last-child { margin-bottom: 0; }
.woocommerce-account .woocommerce-MyAccount-content a { color: var(--mx-brand-dark); font-weight: 750; }
.woocommerce-account .woocommerce-MyAccount-content .vendor-dashboard {
  display: inline-flex;
  margin-top: 12px;
  padding: 12px 22px;
  border: 2px solid var(--mx-purple) !important;
  border-radius: 999px;
  background: transparent !important;
  color: var(--mx-purple-dark) !important;
  font-weight: 850;
  text-decoration: none;
}
.woocommerce-account .woocommerce-MyAccount-content .vendor-dashboard:hover {
  background: var(--mx-purple) !important;
  color: #fff !important;
}

@media (max-width: 820px) {
  .site-header__inner { min-height: 68px; }
  .main-navigation { display: none; }
  .mobile-navigation { display: block; }
  .mx-grid { grid-template-columns: 1fr; }
  #dokan-seller-listing-wrap ul.dokan-seller-wrap { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dokan-store .dokan-store-wrap { grid-template-columns: 1fr; }
  .dokan-store #dokan-primary { order: -1; }
  .entry-content--commerce ul.products { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .mx-card { min-height: 240px; }
  .mx-category-grid { grid-template-columns: repeat(3, 1fr); }
  .mx-category:nth-child(n) { border-left: 1px solid rgba(255,255,255,.26); border-top: 1px solid rgba(255,255,255,.26); }
  .mx-category:nth-child(-n+3) { border-top: 0; }
  .mx-category:nth-child(3n+1) { border-left: 0; }
  .mx-trust-band__grid { grid-template-columns: 1fr; }
  .mx-trust-item + .mx-trust-item::before { left: 18%; right: 18%; top: 0; bottom: auto; width: auto; height: 1px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { text-align: left; }
  .site-footer__brand .site-branding { justify-content: flex-start; }
  .site-footer__brand p { margin-inline: 0; }
  .site-footer__bottom { align-items: flex-start; flex-direction: column; }
  .site-footer__legal { justify-content: flex-start; }
  .woocommerce-account .entry-content > .woocommerce { grid-template-columns: 1fr; }
  .woocommerce-account:not(.logged-in) .woocommerce .u-columns { grid-template-columns: 1fr; }
  #dokan-dashboard-fullwidth-wrapper table,
  .dokan-dashboard-wrap table { min-width: 680px; }
  #dokan-dashboard-fullwidth-wrapper main,
  #dokan-dashboard-fullwidth-wrapper .dokan-dashboard-content { padding-inline: 14px !important; }
}

@media (max-width: 520px) {
  .mx-container { width: min(calc(100% - 28px), var(--mx-width)); }
  .mx-topline { font-size: .66rem; letter-spacing: .08em; }
  .site-branding__logo,
  .woocommerce .site-header .site-branding__logo { height: 50px; }
  #dokan-store-listing-filter-wrap,
  #dokan-store-listing-filter-wrap .left,
  #dokan-store-listing-filter-wrap .right { width: 100% !important; }
  #dokan-store-listing-filter-wrap .right { display: flex !important; flex-wrap: wrap; gap: 12px; }
  #dokan-store-listing-filter-wrap .sort-by { display: flex; width: 100% !important; align-items: center; justify-content: space-between; gap: 10px; }
  #dokan-store-listing-filter-wrap .sort-by select { width: min(100%, 150px); max-width: 100%; }
  #dokan-seller-listing-wrap .store-data h2,
  #dokan-seller-listing-wrap .store-data h2 a { overflow-wrap: anywhere; word-break: break-word; }
  .dokan-store .profile-info-summery {
    align-items: center;
    flex-direction: column;
    gap: 14px;
    padding: 22px 18px !important;
    text-align: center;
  }
  .dokan-store .profile-img {
    width: auto !important;
    margin: 0 !important;
  }
  .dokan-store .profile-info {
    width: 100% !important;
    min-width: 0;
    padding: 0 !important;
  }
  .dokan-store .mx-store-fallback-title,
  .dokan-store .dokan-store-info,
  .dokan-store .store-social-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .dokan-settings-content .dokan-dashboard-header {
    display: flex !important;
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }
  .dokan-settings-content .dokan-store-settign-header-wrap,
  .dokan-settings-content .dokan-update-setting-top {
    display: block;
    width: 100% !important;
  }
  .dokan-settings-content .dokan-update-setting-top {
    float: none !important;
  }
  .dokan-settings-content .dokan-dashboard-header .entry-title {
    margin: 0 !important;
  }
  .dokan-settings-content .dokan-dashboard-header .entry-title small {
    display: block;
    margin-top: 4px;
  }
  .dokan-settings-content .dokan-update-setting-top-button {
    float: none !important;
    width: auto !important;
    max-width: 100%;
    white-space: normal;
  }
  .mx-hero h1 { font-size: clamp(3rem, 17vw, 4.6rem); }
  .mx-actions { align-items: center; flex-direction: column; }
  .mx-button { width: auto; max-width: 100%; align-self: center; padding-inline: 22px; text-align: center; }
  .mx-market-status { align-items: flex-start; flex-direction: column; text-align: left; }
  #dokan-seller-listing-wrap ul.dokan-seller-wrap,
  .entry-content--commerce ul.products { grid-template-columns: 1fr; }
  .page-header { min-height: 250px; }
  .page-header::before { left: 2px; bottom: -10px; width: 132px; height: 112px; opacity: 1; }
  .entry-content { width: min(calc(100% - 28px), 920px); }
  .entry-content form.register,
  .entry-content form.dokan-form-horizontal,
  .entry-content form.woocommerce-form,
  .entry-content .dokan-vendor-register { padding: 22px 18px; }
  .entry-content .dokan-btn,
  .entry-content form.register button,
  .entry-content form.register input[type="submit"],
  .entry-content form.woocommerce-form button,
  .entry-content form.woocommerce-form input[type="submit"] { width: auto; max-width: 100%; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .mx-footer-cta { width: auto; min-width: 210px; max-width: calc(100% - 28px); }
  .site-footer__social { flex-wrap: wrap; }
  .site-footer__social > strong { flex-basis: 100%; }
  .mx-category-showcase { padding: 28px 14px; }
  .mx-category-showcase__head { gap: 9px; }
  .mx-category-showcase__head::before,
  .mx-category-showcase__head::after { width: 28px; }
  .mx-category-showcase__head img { height: 56px; }
  .mx-category-grid { grid-template-columns: repeat(2, 1fr); }
  .mx-category:nth-child(n) { border-left: 1px solid rgba(255,255,255,.26); border-top: 1px solid rgba(255,255,255,.26); }
  .mx-category:nth-child(-n+2) { border-top: 0; }
  .mx-category:nth-child(2n+1) { border-left: 0; }
}
