/*
Theme Name: Maubazaar Child
Theme URI: https://maubazaar.mu/
Description: Marketplace-focused child theme for Maubazaar, built on Twenty Twenty-Five.
Author: Maubazaar
Author URI: https://maubazaar.mu/
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: maubazaar-child
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: e-commerce, marketplace, block-patterns, full-site-editing
*/

/* Core styles are loaded from assets/homepage.css. */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}

:root {
  --maubazaar-form-font: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maubazaar-form-size: 1rem;
  --maubazaar-form-label-size: 1rem;
  --maubazaar-form-help-size: .875rem;
}

/* Branded WordPress header logo. */
.maubazaar-site-header .maubazaar-site-logo {
  flex: 0 0 auto;
  width: min(100%, 324px);
  max-width: min(324px, 40vw);
  margin: 0;
  line-height: 0;
}

.maubazaar-site-header .maubazaar-site-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 70px;
  object-fit: contain;
}

.maubazaar-site-header .maubazaar-site-logo a {
  display: inline-flex;
  align-items: center;
  border-radius: .45rem;
  transition: transform .2s ease, opacity .2s ease;
}

.maubazaar-site-header .maubazaar-site-logo a:hover {
  opacity: .92;
  transform: translateY(-1px);
}

.maubazaar-site-header .maubazaar-site-logo a:focus-visible {
  outline: 3px solid #f5aa26;
  outline-offset: 4px;
}

@media (max-width: 600px) {
  .maubazaar-site-header .maubazaar-site-logo {
    width: min(100%, 210px);
    max-width: 210px;
  }

  .maubazaar-site-header .maubazaar-site-logo img {
    width: 100%;
    height: auto;
    max-height: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .maubazaar-site-header .maubazaar-site-logo a {
    transition: none;
  }
}

/* My Account / Seller Hub dashboard. */
body.woocommerce-account {
  background: #f6f8fb;
}

.woocommerce-account .woocommerce {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.5rem, 4vw, 3rem);
  width: min(calc(100% - 2rem), 1280px);
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3.5rem) 0 clamp(3.5rem, 8vw, 7rem);
  color: #1f2937;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

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

.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
  box-sizing: border-box;
  float: none;
  width: auto;
  margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
  position: static;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(15, 39, 64, 0.06);
}

/* Keep the account menu visible only while the two-column layout is active. */
@media (min-width: 901px) {
  .woocommerce-account .woocommerce-MyAccount-navigation {
    position: sticky;
    top: 120px;
    align-self: flex-start;
    height: max-content;
    max-height: calc(100vh - 140px);
    overflow-x: hidden;
    overflow-y: auto;
  }
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0;
  padding: 0.7rem;
  list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation a:focus-visible {
  background: #f1f5f9;
  color: #1e3a5f;
  transform: translateX(2px);
}

.woocommerce-account .woocommerce-MyAccount-navigation .is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation-link--sell a[aria-current="page"] {
  background: #eaf2f5;
  box-shadow: inset 3px 0 0 #c47a52;
  color: #1e3a5f;
  font-weight: 750;
}

.woocommerce-account .woocommerce-MyAccount-content {
  min-width: 0;
}

.maubazaar-seller-hub {
  display: grid;
  gap: 1.5rem;
  min-width: 0;
}

.maubazaar-seller-form-card,
.maubazaar-seller-listings-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.maubazaar-seller-form-card {
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.maubazaar-seller-listings-card {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.maubazaar-seller-card-header {
  max-width: 42rem;
  margin-bottom: 1.75rem;
}

.maubazaar-seller-eyebrow {
  margin: 0 0 0.45rem;
  color: #c06f4a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.maubazaar-seller-card-header h2,
.maubazaar-seller-listings-header h3 {
  margin: 0;
  color: #102c49;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.maubazaar-seller-card-header h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.12;
}

.maubazaar-seller-card-intro {
  max-width: 38rem;
  margin: 0.75rem 0 0;
  color: #64748b;
  font-size: 0.98rem;
  line-height: 1.65;
}

.maubazaar-seller-form {
  display: grid;
  gap: 1.15rem;
  margin: 0;
}

.maubazaar-seller-field {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.maubazaar-seller-field label {
  color: #374151;
  font-family: var(--maubazaar-form-font);
  font-size: var(--maubazaar-form-label-size);
  font-weight: 750;
  line-height: 1.4;
}

.maubazaar-seller-form input[type="text"],
.maubazaar-seller-form input[type="number"],
.maubazaar-seller-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  margin: 0;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  color: #1f2937;
  font: 500 var(--maubazaar-form-size)/1.45 var(--maubazaar-form-font);
  padding: 12px 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.maubazaar-seller-form textarea {
  min-height: 120px;
  resize: vertical;
}

.maubazaar-seller-form input[type="text"]:focus,
.maubazaar-seller-form input[type="number"]:focus,
.maubazaar-seller-form textarea:focus {
  border-color: #1e3a5f;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.14);
  outline: none;
}

.maubazaar-seller-field-help,
.maubazaar-seller-form-note {
  margin: 0;
  color: #94a3b8;
  font-family: var(--maubazaar-form-font);
  font-size: var(--maubazaar-form-help-size);
  line-height: 1.55;
}

.maubazaar-seller-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.1rem;
  margin-top: 0.5rem;
}

.maubazaar-seller-submit.button {
  min-width: 220px;
  min-height: 52px;
  margin: 0;
  padding: 12px 24px;
  border: 1px solid #1e3a5f;
  border-radius: 8px;
  background: #1e3a5f;
  box-shadow: 0 8px 18px rgba(30, 58, 95, 0.18);
  color: #ffffff;
  cursor: pointer;
  font: 700 var(--maubazaar-form-size)/1.3 var(--maubazaar-form-font);
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.maubazaar-seller-submit.button:hover,
.maubazaar-seller-submit.button:focus-visible {
  border-color: #102c49;
  background: #102c49;
  box-shadow: 0 10px 22px rgba(30, 58, 95, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
}

.maubazaar-seller-submit.button:focus-visible {
  outline: 3px solid rgba(196, 122, 82, 0.35);
  outline-offset: 3px;
}

.maubazaar-seller-listings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.maubazaar-seller-listings-header h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  line-height: 1.25;
}

.maubazaar-seller-count {
  display: inline-grid;
  min-width: 2rem;
  min-height: 2rem;
  box-sizing: border-box;
  place-items: center;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #1e3a5f;
  font-size: 0.8rem;
  font-weight: 800;
}

.maubazaar-seller-empty-state {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  padding: 2.25rem 1.25rem;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  text-align: center;
}

.maubazaar-seller-empty-icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 50%;
  background: #eaf2f5;
  color: #1e3a5f;
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1;
}

.maubazaar-seller-empty-state p {
  max-width: 30rem;
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.55;
}

.maubazaar-seller-empty-state .maubazaar-seller-empty-title {
  margin-top: 0.45rem;
  color: #334155;
  font-size: 0.98rem;
  font-weight: 750;
}

.maubazaar-seller-listings {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.maubazaar-seller-listing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.maubazaar-seller-listing-title {
  min-width: 0;
  overflow: hidden;
  color: #334155;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.maubazaar-seller-listing-status {
  flex: 0 0 auto;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: #eaf2f5;
  color: #1e3a5f;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: capitalize;
}

.maubazaar-seller-listing-status.status-publish {
  background: #ecfdf3;
  color: #166534;
}

.maubazaar-seller-listing-status.status-draft {
  background: #fff7ed;
  color: #9a3412;
}

.maubazaar-seller-listing-view {
  flex: 0 0 auto;
  color: #0d6b59;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.maubazaar-seller-listing-view:hover,
.maubazaar-seller-listing-view:focus-visible {
  color: #102c49;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .woocommerce-account .woocommerce {
    grid-template-columns: 1fr;
    width: min(calc(100% - 1.5rem), 760px);
    padding-block: 2rem 4rem;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation {
    position: static;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .woocommerce-account .woocommerce {
    width: min(calc(100% - 1rem), 100%);
    gap: 1rem;
    padding-block: 1.5rem 3rem;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation ul {
    grid-template-columns: 1fr;
  }

  .maubazaar-seller-form-card,
  .maubazaar-seller-listings-card {
    border-radius: 12px;
    padding: 1.15rem;
  }

  .maubazaar-seller-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .maubazaar-seller-submit.button {
    width: 100%;
  }

  .maubazaar-seller-listing {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .woocommerce-account .woocommerce-MyAccount-navigation a,
  .maubazaar-seller-form input,
  .maubazaar-seller-form textarea,
  .maubazaar-seller-submit.button {
    transition: none;
  }
}

/* Global marketplace header. */
.maubazaar-site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(216, 228, 222, .9);
  background: rgba(247, 250, 248, .9);
  box-shadow: 0 8px 24px rgba(16, 42, 67, .04);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.maubazaar-site-header-inner {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 16px 24px !important;
}

.maubazaar-site-header-bar {
  display: flex !important;
  min-height: 0;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap !important;
  gap: 32px;
  margin: 0;
}

.maubazaar-site-header .maubazaar-site-logo {
  flex: 0 0 auto;
  width: min(100%, 250px);
  max-width: min(250px, 29vw);
  margin: 0;
  line-height: 0;
}

.maubazaar-site-header .maubazaar-site-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 62px;
  object-fit: contain;
}

.maubazaar-site-header .navbar-brand,
.maubazaar-site-header .maubazaar-site-logo a {
  display: inline-flex;
  align-items: center;
  border-radius: .5rem;
  transition: transform 180ms ease, opacity 180ms ease;
}

.maubazaar-site-header .navbar-brand:hover,
.maubazaar-site-header .maubazaar-site-logo a:hover {
  opacity: .9;
  transform: translateY(-1px);
}

.maubazaar-site-header .navbar-brand:focus-visible,
.maubazaar-site-header .maubazaar-site-logo a:focus-visible {
  outline: 3px solid #f5aa26;
  outline-offset: 4px;
}

.maubazaar-header-tools {
  display: flex !important;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
}

.maubazaar-header-search-shell {
  width: min(100%, 420px);
  max-width: 420px;
  flex: 1 1 420px;
  margin: 0 auto;
}

.maubazaar-header-search-shell .wc-block-product-search {
  margin: 0;
}

.maubazaar-header-search-shell .wc-block-product-search form {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin: 0;
  padding: .2rem .2rem .2rem .75rem;
  border: 1px solid #d8e4de;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(16, 42, 67, .04);
}

.maubazaar-header-search-shell .wc-block-product-search__fields {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
}

.maubazaar-header-search-shell .wc-block-product-search__field {
  width: 100%;
  min-width: 0;
  height: 2.4rem;
  border: 0;
  background: transparent;
  color: #102a43;
  font: inherit;
  font-size: .78rem;
}

.maubazaar-header-search-shell .wc-block-product-search__field:focus {
  outline: none;
}

.maubazaar-header-search-shell .wc-block-product-search__field:focus-visible {
  outline: 2px solid rgba(11, 93, 75, .35);
  outline-offset: 2px;
}

.maubazaar-header-search-shell .wc-block-product-search__button {
  display: inline-flex;
  width: 2.4rem;
  height: 2.4rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #0b5d4b;
  color: #fff;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}

.maubazaar-header-search-shell .wc-block-product-search__button:hover,
.maubazaar-header-search-shell .wc-block-product-search__button:focus-visible {
  background: #073b32;
  transform: scale(1.04);
}

.maubazaar-header-search-shell .wc-block-product-search__button:focus-visible {
  outline: 3px solid rgba(245, 170, 38, .45);
  outline-offset: 2px;
}

.maubazaar-desktop-nav {
  display: flex !important;
  flex: 0 0 auto;
  align-items: center;
  gap: 24px;
  margin: 0;
  white-space: nowrap;
}

.maubazaar-desktop-nav__item {
  position: relative;
  display: inline-flex;
  min-height: 2.7rem;
  align-items: center;
  justify-content: center;
  color: #334e68;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.maubazaar-desktop-nav__item:not(.maubazaar-desktop-nav__item--sell):hover,
.maubazaar-desktop-nav__item:not(.maubazaar-desktop-nav__item--sell):focus-visible {
  color: #0b5d4b;
  transform: translateY(-1px);
}

.maubazaar-desktop-nav__item:focus-visible {
  outline: 3px solid rgba(11, 93, 75, .28);
  outline-offset: 4px;
}

.maubazaar-desktop-nav__item--sell {
  min-height: 2.65rem;
  padding: .7rem 1rem;
  border-radius: .75rem;
  background: #f5aa26;
  color: #102a43;
}

.maubazaar-desktop-nav__item--sell:hover,
.maubazaar-desktop-nav__item--sell:focus-visible {
  background: #e99a12;
  color: #102a43;
  transform: translateY(-1px);
}

.maubazaar-desktop-cart {
  width: 2.7rem;
  min-height: 2.7rem;
  border-radius: .75rem;
}

.maubazaar-desktop-cart svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.maubazaar-desktop-cart__count {
  position: absolute;
  top: -5px;
  right: -5px;
  display: inline-grid;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  place-items: center;
  border: 2px solid #f7faf8;
  border-radius: 999px;
  background: #f5aa26;
  color: #102a43;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.maubazaar-desktop-nav__item.maubazaar-header-session-link {
  gap: .35rem;
}

.maubazaar-header-message-badge {
  display: inline-grid;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  place-items: center;
  border-radius: 999px;
  background: #f5aa26;
  color: #102a43;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.maubazaar-mobile-action .maubazaar-header-message-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  border: 2px solid #f7faf8;
}

.maubazaar-mobile-drawer__nav .maubazaar-header-session-link--drawer .maubazaar-header-message-badge {
  margin-left: auto;
}

.maubazaar-mobile-actions,
.maubazaar-mobile-drawer {
  display: none;
}

.maubazaar-mobile-action,
.maubazaar-mobile-drawer__close {
  box-sizing: border-box;
  border: 0;
  color: #073b32;
  cursor: pointer;
}

.maubazaar-mobile-action {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #d8e4de;
  border-radius: 50%;
  background: #fff;
  text-decoration: none;
}

.maubazaar-mobile-action svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.maubazaar-mobile-action:focus-visible,
.maubazaar-mobile-drawer__close:focus-visible,
.maubazaar-mobile-drawer__backdrop:focus-visible {
  outline: 3px solid rgba(11, 93, 75, .35);
  outline-offset: 2px;
}

.maubazaar-mobile-cart__count {
  position: absolute;
  top: -4px;
  right: -3px;
  display: inline-grid;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  place-items: center;
  border: 2px solid #f7faf8;
  border-radius: 999px;
  background: #f5aa26;
  color: #102a43;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.maubazaar-mobile-menu-toggle__bars,
.maubazaar-mobile-menu-toggle__bars::before,
.maubazaar-mobile-menu-toggle__bars::after,
.maubazaar-mobile-menu-toggle__bars span {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.maubazaar-mobile-menu-toggle__bars {
  position: relative;
}

.maubazaar-mobile-menu-toggle__bars span {
  position: absolute;
  left: 0;
}

.maubazaar-mobile-menu-toggle__bars span:first-child {
  top: -6px;
}

.maubazaar-mobile-menu-toggle__bars span:nth-child(2) {
  top: 0;
}

.maubazaar-mobile-menu-toggle__bars span:nth-child(3) {
  top: 6px;
}

.maubazaar-mobile-drawer {
  position: fixed;
  z-index: 120;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.maubazaar-mobile-drawer.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.maubazaar-mobile-drawer__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(7, 59, 50, .38);
  cursor: pointer;
}

.maubazaar-mobile-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  width: min(86vw, 340px);
  height: 100%;
  box-sizing: border-box;
  flex-direction: column;
  padding: 1.15rem;
  background: #fff;
  box-shadow: -18px 0 40px rgba(16, 42, 67, .16);
  transform: translateX(100%);
  transition: transform 220ms ease;
}

.maubazaar-mobile-drawer.is-active .maubazaar-mobile-drawer__panel {
  transform: translateX(0);
}

.maubazaar-mobile-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid #d8e4de;
  color: #102a43;
  font-size: 1.05rem;
}

.maubazaar-mobile-search {
  display: grid;
  gap: .45rem;
  padding: 1rem 0 .25rem;
}

.maubazaar-mobile-search label {
  color: #52606d;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.maubazaar-mobile-search__row {
  display: flex;
  gap: .45rem;
}

.maubazaar-mobile-search input {
  min-width: 0;
  flex: 1 1 auto;
  min-height: 44px;
  padding: 0 .75rem;
  border: 1px solid #b7c8c1;
  border-radius: .6rem;
  color: #102a43;
  background: #fff;
}

.maubazaar-mobile-search button {
  min-width: 76px;
  min-height: 44px;
  padding: 0 .75rem;
  border: 0;
  border-radius: .6rem;
  background: #0b5d4b;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.maubazaar-mobile-drawer__close {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: #e8f1ed;
  color: #073b32;
  font-size: 1.65rem;
  line-height: 1;
}

.maubazaar-mobile-drawer__nav {
  display: grid;
  gap: .35rem;
  padding-top: 1rem;
}

.maubazaar-mobile-drawer__nav a {
  display: flex;
  min-height: 48px;
  align-items: center;
  padding: 0 .9rem;
  border-radius: .75rem;
  color: #102a43;
  font-size: 1rem;
  font-weight: 750;
  text-decoration: none;
}

.maubazaar-mobile-drawer__nav a:hover,
.maubazaar-mobile-drawer__nav a:focus-visible {
  background: #e8f1ed;
  color: #0b5d4b;
}

body.maubazaar-overlay-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  html,
  body {
    overflow-x: hidden;
  }

  .maubazaar-site-header-inner {
    width: 100% !important;
    max-width: none !important;
    padding: 10px 12px !important;
  }

  .maubazaar-site-header-bar {
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap !important;
    min-height: 64px;
    gap: .75rem;
    padding: 0;
  }

  .maubazaar-site-header .maubazaar-site-logo {
    min-width: 0;
    width: min(100%, 180px);
    max-width: 180px;
  }

  .maubazaar-site-header .maubazaar-site-logo img {
    width: 100%;
    height: auto;
    max-height: 36px;
  }

  .maubazaar-header-tools {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
    justify-content: flex-end !important;
    gap: 0;
    margin-left: auto;
  }

  .maubazaar-header-search-shell,
  .maubazaar-desktop-nav,
  .maubazaar-site-header .wp-block-navigation,
  .maubazaar-site-header .wp-block-woocommerce-customer-account {
    display: none !important;
  }

  .maubazaar-mobile-actions {
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap;
    gap: .4rem;
    margin: 0;
  }

  .maubazaar-mobile-actions .wp-block-shortcode {
    display: contents;
    margin: 0;
  }

  .maubazaar-mobile-drawer {
    display: block;
  }

  body.maubazaar-mobile-menu-open {
    overflow: hidden;
  }

  body.maubazaar-overlay-open {
    overflow: hidden;
  }
}

@media (min-width: 768px) {
  .maubazaar-mobile-actions,
  .maubazaar-mobile-menu-toggle {
    display: none !important;
  }
}

@media (max-width: 520px) {
  .maubazaar-site-header .maubazaar-site-logo {
    width: min(100%, 155px);
    max-width: 155px;
  }

  .maubazaar-site-header .maubazaar-site-logo img {
    width: 100%;
    height: auto;
    max-height: 34px;
  }

  .maubazaar-mobile-action {
    width: 44px;
    height: 44px;
  }
}

/* Official Maubazaar brand lockup: keep the header single-row and bounded. */
.maubazaar-site-header .header-brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.maubazaar-site-header .maubazaar-site-logo .site-header-logo {
  display: block;
  width: auto;
  height: 42px;
  max-width: 240px;
  max-height: none;
  object-fit: contain;
}

@media (max-width: 768px) {
  .maubazaar-site-header .maubazaar-site-logo .site-header-logo {
    height: 32px;
    max-width: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .maubazaar-site-header .maubazaar-site-logo a,
  .maubazaar-header-search-shell .wc-block-product-search__button,
  .maubazaar-site-header .wp-block-navigation-item__content,
  .maubazaar-site-header .wc-block-customer-account__link,
  .maubazaar-site-header .wc-block-mini-cart__button {
    transition: none;
  }
}

/* Full-width desktop header layout. */
.site-header {
  width: 100% !important;
  background: #ffffff !important;
  border-bottom: 1px solid #e5e7eb !important;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header .maubazaar-site-header-inner {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 12px 32px !important;
}

.header-inner {
  display: flex !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  box-sizing: border-box !important;
  align-items: center;
  justify-content: space-between !important;
  gap: 32px !important;
  flex-wrap: nowrap !important;
  margin: 0;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.header-left {
  display: flex !important;
  min-width: 0;
  flex: 0 0 auto;
  flex-shrink: 0 !important;
  align-items: center;
  margin: 0 !important;
  margin-right: 0 !important;
}

.site-header .header-left img {
  display: block;
  width: auto !important;
  height: 42px !important;
  max-width: min(250px, 27vw);
  object-fit: contain;
}

.header-center {
  display: flex !important;
  min-width: 320px;
  max-width: 650px !important;
  flex: 1 1 auto !important;
  align-items: center;
  margin: 0 !important;
}

.header-center .wc-block-product-search {
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  flex: 1 1 auto;
  margin: 0 !important;
}

.header-center .wc-block-product-search form {
  display: flex !important;
  width: 100% !important;
  box-sizing: border-box !important;
  align-items: center;
  gap: .25rem;
  margin: 0 !important;
  padding: 4px 6px 4px 20px !important;
  border: 1.5px solid #d1d5db !important;
  border-radius: 9999px !important;
  background: #ffffff !important;
}

.header-center .wc-block-product-search__fields {
  display: flex;
  min-width: 0;
  flex: 1 1 auto !important;
  align-items: center;
}

.header-center .wc-block-product-search__field {
  width: 100% !important;
  min-width: 0;
  height: auto !important;
  padding: 6px 0 !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  font-size: 14px !important;
}

.header-center .wc-block-product-search__button {
  display: flex !important;
  flex-shrink: 0 !important;
  width: 36px !important;
  height: 36px !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  background-color: #105942 !important;
  cursor: pointer !important;
}

.header-right {
  display: flex !important;
  min-width: max-content;
  flex: 0 0 auto;
  flex-shrink: 0 !important;
  align-items: center;
  gap: 24px !important;
  margin: 0 !important;
  margin-left: auto !important;
  white-space: nowrap;
  flex-wrap: nowrap !important;
}

.header-right .maubazaar-desktop-nav__item {
  flex: 0 0 auto;
}

.site-header .maubazaar-mobile-actions {
  display: none !important;
}

@media (max-width: 1100px) and (min-width: 900px) {
  .site-header .maubazaar-site-header-inner {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }

  .header-inner {
    gap: 16px !important;
  }

  .site-header .header-left img {
    max-width: 190px;
  }

  .header-center {
    min-width: 240px;
    max-width: 480px !important;
  }

  .header-right {
    gap: 16px !important;
  }
}

@media (max-width: 899px) {
  .site-header .maubazaar-site-header-inner {
    width: 100% !important;
    max-width: none !important;
    padding: 10px 16px !important;
  }

  .header-inner {
    min-height: 56px;
    gap: 12px;
  }

  .site-header .header-left {
    max-width: 210px;
  }

  .site-header .header-left img {
    height: 38px !important;
    max-width: 100%;
  }

  .header-center,
  .header-right {
    display: none !important;
  }

  .site-header .maubazaar-mobile-actions {
    display: flex !important;
    min-width: max-content;
    align-items: center;
    gap: .4rem;
    margin-left: auto;
  }

  .site-header .maubazaar-mobile-drawer {
    display: block;
  }
}

@media (max-width: 520px) {
  .site-header .maubazaar-site-header-inner {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  .site-header .header-left {
    max-width: 155px;
  }

  .site-header .header-left img {
    height: 34px !important;
  }
}

/* Override legacy mobile image rules for the official lockup. */
@media (max-width: 768px) {
  .site-header .header-left {
    max-width: 180px;
  }

  .site-header .header-left img.site-header-logo {
    height: 32px !important;
    max-width: 180px;
  }
}

/* The hero is the homepage's primary search experience; avoid a competing header field. */
.home .site-header .header-center,
.home .site-header .maubazaar-header-search-shell {
  display: none !important;
}

.home .site-header .header-right {
  margin-left: auto !important;
}

.maubazaar-footer {
  box-sizing: border-box;
  width: 100%;
  margin-top: clamp(3rem, 8vw, 6rem);
  padding: 60px 24px 30px;
  background: #0f172a;
  color: #94a3b8;
}

.maubazaar-footer__inner {
  width: min(100%, 1280px);
  margin: 0 auto;
}

.maubazaar-footer__grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) repeat(3, minmax(150px, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.maubazaar-footer__brand,
.maubazaar-footer__nav {
  min-width: 0;
}

.maubazaar-footer__wordmark {
  display: inline-block;
  margin: 0 0 1rem;
  color: #f8fafc;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 1;
  text-decoration: none;
}

.maubazaar-footer__wordmark:hover,
.maubazaar-footer__wordmark:focus-visible {
  color: #ffffff;
}

.maubazaar-footer__mission {
  max-width: 31rem;
  margin: 0;
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.75;
}

.maubazaar-footer__trust {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 1.35rem 0 0;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.maubazaar-footer__nav h2 {
  margin: 0 0 1.05rem;
  color: #f8fafc;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.maubazaar-footer__nav ul {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.maubazaar-footer__nav li {
  margin: 0;
  padding: 0;
}

.maubazaar-footer__nav a {
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.45;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.maubazaar-footer__nav a:hover,
.maubazaar-footer__nav a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.maubazaar-footer__divider {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.maubazaar-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.maubazaar-footer__bottom p {
  margin: 0;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.5;
}

/* Dedicated FAQ page and native, keyboard-friendly accordion. */
body.maubazaar-faq-page {
  background: #f8fafc;
}

.maubazaar-faq-page {
  color: #102c49;
}

.maubazaar-faq-hero {
  padding: clamp(3.5rem, 8vw, 6.5rem) 24px clamp(3rem, 6vw, 5rem);
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.maubazaar-faq-hero__inner,
.maubazaar-faq-shell {
  width: min(100%, 960px);
  margin: 0 auto;
}

.maubazaar-faq-eyebrow,
.maubazaar-faq-section__label {
  margin: 0 0 0.65rem;
  color: #c06f4a;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.maubazaar-faq-hero h1 {
  max-width: 44rem;
  margin: 0;
  color: #102c49;
  font-size: clamp(2.45rem, 7vw, 5rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.maubazaar-faq-hero p:last-child {
  max-width: 42rem;
  margin: 1.25rem 0 0;
  color: #64748b;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
}

.maubazaar-faq-shell {
  display: grid;
  gap: 1.5rem;
  padding: clamp(2rem, 5vw, 4rem) 24px clamp(4rem, 8vw, 7rem);
}

.maubazaar-faq-section {
  scroll-margin-top: 7rem;
  padding: clamp(1.35rem, 4vw, 2.5rem);
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.05);
}

.maubazaar-faq-section__heading h2 {
  margin: 0 0 1.35rem;
  color: #102c49;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.maubazaar-faq-item {
  scroll-margin-top: 7rem;
  border-top: 1px solid #e2e8f0;
}

.maubazaar-faq-item:last-child {
  border-bottom: 1px solid #e2e8f0;
}

.maubazaar-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  padding: 1rem 0;
  color: #1e3a5f;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.45;
  list-style: none;
}

.maubazaar-faq-item summary::-webkit-details-marker {
  display: none;
}

.maubazaar-faq-item summary:focus-visible {
  outline: 3px solid rgba(245, 170, 38, 0.7);
  outline-offset: 4px;
  border-radius: 6px;
}

.maubazaar-faq-item__icon {
  display: inline-grid;
  flex: 0 0 1.8rem;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  color: #0b5d4b;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
  transition: transform 180ms ease, background-color 180ms ease;
}

.maubazaar-faq-item[open] .maubazaar-faq-item__icon {
  background: #eaf2f5;
  transform: rotate(45deg);
}

.maubazaar-faq-item__answer {
  max-width: 50rem;
  padding: 0 3rem 1.2rem 0;
}

.maubazaar-faq-item__answer p {
  margin: 0;
  color: #64748b;
  font-size: 0.97rem;
  line-height: 1.75;
}

@media (max-width: 900px) {
  .maubazaar-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .maubazaar-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .maubazaar-footer {
    padding-right: 18px;
    padding-left: 18px;
  }

  .maubazaar-footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .maubazaar-footer__brand {
    grid-column: auto;
  }

  .maubazaar-footer__bottom {
    display: grid;
    gap: 0.45rem;
  }

  .maubazaar-faq-hero,
  .maubazaar-faq-shell {
    padding-right: 18px;
    padding-left: 18px;
  }

  .maubazaar-faq-item__answer {
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .maubazaar-footer__nav a,
  .maubazaar-faq-item__icon {
    transition: none;
  }
}

/* Legal document layout. */
body.maubazaar-legal-page {
  background: #f8fafc;
}

html.maubazaar-privacy-document,
body.maubazaar-privacy-page {
  overflow-x: hidden;
}

.legal-page-container {
  box-sizing: border-box;
  max-width: 860px;
  margin: 40px auto 80px;
  padding: 0 24px;
  color: #334155;
  font-family: inherit;
  line-height: 1.7;
}

.legal-header {
  margin-bottom: 32px;
}

.legal-header h1 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.legal-header .last-updated {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.legal-body {
  font-size: 1rem;
}

.legal-body p {
  margin: 0 0 16px;
}

.legal-body h2,
.legal-body h3 {
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
  color: #0f172a;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.legal-body ul,
.legal-body ol {
  margin: 0 0 16px;
  padding-left: 1.5rem;
}

.legal-body li {
  margin-bottom: 0.65rem;
  padding-left: 0.25rem;
}

.legal-body li:last-child {
  margin-bottom: 0;
}

.legal-body strong {
  color: #1e293b;
  font-weight: 750;
}

.legal-body a {
  color: #0b5d4b;
  text-underline-offset: 0.18em;
}

.legal-body a:hover,
.legal-body a:focus-visible {
  color: #073b32;
}

@media (max-width: 600px) {
  .legal-page-container {
    margin-top: 32px;
    margin-bottom: 56px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .legal-header h1 {
    font-size: 32px;
  }
}

.maubazaar-seller-profile { max-width: 1120px; margin: 0 auto; padding: 56px 24px 80px; color: #334155; }
.maubazaar-seller-profile__header { margin-bottom: 36px; padding: 32px; border: 1px solid #dbe5e0; border-radius: 18px; background: #f8fbf9; }
.maubazaar-seller-profile__header h1 { margin: 6px 0 10px; color: #0f172a; font-size: clamp(32px, 5vw, 52px); }
.maubazaar-seller-profile__trust { margin-top: 12px; }
.maubazaar-seller-profile h2 { color: #0f172a; }
.maubazaar-seller-profile__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.maubazaar-seller-profile__grid article { padding: 18px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
.maubazaar-seller-profile__grid article.is-sold { border-color: #f4b4ae; }
.maubazaar-seller-profile__grid a { color: #105942; font-weight: 750; text-decoration: none; }
.maubazaar-seller-profile__sold { display: inline-block; margin-left: 8px; padding: 3px 8px; border-radius: 999px; background: #fce8e6; color: #9b1c1c; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.maubazaar-seller-profile__grid a:hover { text-decoration: underline; }
.maubazaar-seller-profile__grid p { margin: 10px 0 0; color: #64748b; }
body.maubazaar-feedback-open { overflow: hidden; }
@media (max-width: 760px) { .maubazaar-seller-profile__grid { grid-template-columns: 1fr; } .maubazaar-seller-profile { padding-right: 18px; padding-left: 18px; } }

.feedback-profile-header {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  margin-bottom: 24px;
}

.feedback-profile-header h1 {
  margin: .35rem 0 .45rem;
  color: #102c49;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -.04em;
  line-height: 1.05;
}

.feedback-profile-header__member-since {
  margin: 0;
  color: #64748b;
  font-size: .9rem;
}

.feedback-profile-header__rating {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: .45rem;
  margin-top: 1rem;
  padding: .55rem .85rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font-size: .9rem;
  font-weight: 700;
}

.feedback-profile-header__rating strong {
  color: #334155;
  font-size: 1rem;
  font-weight: 850;
}

.feedback-profile-feedback {
  margin-bottom: 36px;
  padding: 24px 32px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
}

.feedback-profile-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.feedback-profile-section-heading h2 {
  margin: .25rem 0 0;
  color: #102c49;
  font-size: 1.35rem;
}

.feedback-profile-section-count {
  display: inline-grid;
  min-width: 2rem;
  min-height: 2rem;
  place-items: center;
  padding: 0 .55rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: .8rem;
  font-weight: 800;
}

.feedback-profile-list {
  display: grid;
}

.feedback-card {
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feedback-card:last-child {
  border-bottom: none;
}

.feedback-card__rating {
  display: flex;
  align-items: center;
}

.feedback-stars {
  color: #f59e0b;
  font-size: 16px;
  letter-spacing: 2px;
  line-height: 1.2;
}

.feedback-comment {
  font-size: 15px;
  color: #334155;
  line-height: 1.5;
  margin: 0;
}

.feedback-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .5rem;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
}

.feedback-meta a {
  color: #64748b;
  font-weight: 750;
  text-decoration: none;
}

.feedback-meta a:hover,
.feedback-meta a:focus-visible {
  color: #0d6b59;
  text-decoration: underline;
}

.feedback-profile-empty {
  margin: 0;
  padding: 2rem 0 .75rem;
  color: #64748b;
  text-align: center;
}

@media (max-width: 600px) {
  .feedback-profile-header {
    padding: 24px 18px;
  }

  .feedback-profile-feedback {
    padding: 20px 18px;
  }

  .feedback-profile-header__rating {
    border-radius: 14px;
  }
}