/* Vendor Stall storefront skin. Color, type, spacing only. */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,600;8..60,700&display=swap");

:root {
  --vs-red: #c41e3a;
  --vs-red-hover: #9b1730;
  --vs-black: #111111;
  --vs-white: #ffffff;
  --vs-green: #198754;
  --vs-brand-green: #245a42;
  --vs-brown: #8a5a35;
  --vs-blue: #2563eb;
  --vs-text: #111111;
  --vs-muted: #5c5c5c;
  --vs-line: #e4e4e4;
}

body.theme-vendorstall,
body.light.theme-vendorstall {
  font-family: Inter, system-ui, sans-serif;
  color: var(--vs-text);
  background: var(--vs-white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
/* Sticky footer — keeps the brown/green footer pinned to the bottom of the
   viewport on short pages instead of leaving a white gap beneath it */
body.theme-vendorstall > main {
  flex: 1 0 auto;
}
body.theme-vendorstall > header,
body.theme-vendorstall > footer,
body.theme-vendorstall > .vs-newsletter-section {
  flex: 0 0 auto;
}

body.theme-vendorstall h1,
body.theme-vendorstall h2,
body.theme-vendorstall h3,
body.theme-vendorstall h4,
body.theme-vendorstall .headline {
  font-family: "Source Serif 4", Georgia, serif;
  color: var(--vs-black);
}

body.theme-vendorstall a { color: var(--vs-red); }
body.theme-vendorstall a:hover { color: var(--vs-brand-green); }

/* Container padding for phone / tablet / desktop without breaking stock widths */
body.theme-vendorstall header .container,
body.theme-vendorstall main.container,
body.theme-vendorstall main .container,
body.theme-vendorstall footer .container,
body.theme-vendorstall .home-page .container {
  padding-left: 16px;
  padding-right: 16px;
}
@media (min-width: 768px) {
  body.theme-vendorstall header .container,
  body.theme-vendorstall main.container,
  body.theme-vendorstall main .container,
  body.theme-vendorstall footer .container,
  body.theme-vendorstall .home-page .container {
    padding-left: 24px;
    padding-right: 24px;
  }
}
@media (min-width: 1200px) {
  body.theme-vendorstall header .container,
  body.theme-vendorstall main.container,
  body.theme-vendorstall main .container,
  body.theme-vendorstall footer .container,
  body.theme-vendorstall .home-page .container {
    padding-left: 32px;
    padding-right: 32px;
  }
}


/* Header — stock .desktop-navbar / .top-navbar / .main-navbar / .mobile-navbar */
body.theme-vendorstall header,
body.theme-vendorstall header .desktop-navbar,
body.theme-vendorstall header .top-navbar,
body.theme-vendorstall header .main-navbar,
body.theme-vendorstall header .mobile-navbar,
body.theme-vendorstall header .navbar {
  background: var(--vs-black) !important;
  color: var(--vs-white);
}
/* The "My Account" sign-in dropdown has its own white popup background
   (Bootstrap default), but as a DOM descendant of <header> it was
   inheriting the white text color above — invisible white-on-white.
   Reset text color back to dark specifically inside this popup. */
body.theme-vendorstall header .user-dropdown .dropdown-menu {
  color: var(--vs-text) !important;
}
body.theme-vendorstall header .user-dropdown .dropdown-menu a,
body.theme-vendorstall header .user-dropdown .dropdown-menu label,
body.theme-vendorstall header .user-dropdown .dropdown-menu small,
body.theme-vendorstall header .user-dropdown .dropdown-menu h4,
body.theme-vendorstall header .user-dropdown .dropdown-menu .headline {
  color: var(--vs-text) !important;
}

/* Decorative canopy stripe — match Directory full-width seamless red/white
   (repeating 88px bands; no red|red tile seam). */
body.theme-vendorstall header .desktop-navbar {
  position: relative;
  background-color: var(--vs-red) !important;
}
body.theme-vendorstall header .desktop-navbar::before {
  content: '';
  display: block;
  height: 28px;
  width: 100%;
  max-width: none;
  margin: 0;
  background-color: var(--vs-red);
  background-image: repeating-linear-gradient(
    90deg,
    var(--vs-red) 0px,
    var(--vs-red) 88px,
    #ffffff 88px,
    #ffffff 176px
  );
  background-size: auto 100%;
  background-repeat: repeat-x;
  background-position: left top;
}

body.theme-vendorstall header .top-navbar {
  background-color: #ffffff !important;
  background-image: none !important;
  border-bottom: 1px solid var(--vs-red);
  padding-top: 8px;
  padding-bottom: 8px;
}
body.theme-vendorstall header .top-navbar .nav-link,
body.theme-vendorstall header .top-navbar a {
  color: #111111 !important;
}
body.theme-vendorstall header .announcements,
body.theme-vendorstall header .announcements p {
  color: #111111 !important;
}


}


/* Marketplace banner below search (homepage link) — all viewports */
body.theme-vendorstall header .vs-marketplace-below {
  background: #ffffff;
  line-height: 0;
  padding: 0;
  margin: 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
body.theme-vendorstall header .vs-marketplace-below-link {
  display: block;
  line-height: 0;
}
body.theme-vendorstall header .vs-marketplace-below .vs-marketplace-banner-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: clamp(140px, 18vw, 200px);
  object-fit: contain;
  object-position: center center;
  margin: 0 auto;
  background: #ffffff;
}
@media (orientation: portrait) and (max-width: 991.98px) {
  body.theme-vendorstall header .vs-marketplace-below .vs-marketplace-banner-img {
    max-height: clamp(140px, 22vw, 200px);
  }
}
/* Hide old header advert slot if any leftover markup */
body.theme-vendorstall header .vs-advert-header {
  display: none !important;
}

body.theme-vendorstall header .main-navbar {
  padding-top: 12px;
  padding-bottom: 12px;
}
body.theme-vendorstall header .main-navbar .row {
  align-items: center;
}

body.theme-vendorstall header .logo,
body.theme-vendorstall header .navbar-brand img,
body.theme-vendorstall footer .footer-logo img {
  height: 52px;
  max-height: 52px;
  width: auto;
  max-width: 72px;
  object-fit: contain;
  background: #ffffff;
  padding: 3px;
  border-radius: 6px;
  display: block;
}
body.theme-vendorstall header .navbar-brand {
  display: inline-flex;
  align-items: center;
}
body.theme-vendorstall footer .footer-logo img {
  height: 48px;
  max-height: 48px;
}

body.theme-vendorstall header form.search {
  display: flex;
  align-items: stretch;
  width: 100%;
}
body.theme-vendorstall header form.search .form-control,
body.theme-vendorstall header form.search .form-select {
  height: 48px;
  background: #fff !important;
  color: #111 !important;
  border: 0;
  opacity: 1 !important;
}
body.theme-vendorstall header form.search .form-control {
  border-radius: 4px 0 0 4px;
  min-width: 0;
  flex: 1 1 auto;
}
body.theme-vendorstall header form.search .form-select {
  max-width: 180px;
  border-left: 1px solid var(--vs-line);
  border-radius: 0;
}
body.theme-vendorstall header form.search .btn,
body.theme-vendorstall header form.search .btn-primary {
  height: 48px;
  background: var(--vs-red) !important;
  border: 0 !important;
  border-radius: 0 4px 4px 0 !important;
  color: #fff !important;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  box-shadow: none !important;
}
body.theme-vendorstall header form.search .btn:hover,
body.theme-vendorstall header form.search .btn:active,
body.theme-vendorstall header form.search .btn:focus,
body.theme-vendorstall header form.search .btn-primary:hover,
body.theme-vendorstall header form.search .btn-primary:active,
body.theme-vendorstall header form.search .btn-primary:focus {
  box-shadow: none !important;
}
body.theme-vendorstall header form.search .btn:hover,
body.theme-vendorstall header form.search .btn:active,
body.theme-vendorstall header form.search .btn:focus {
  background: var(--vs-green) !important;
}

body.theme-vendorstall header .my-account,
body.theme-vendorstall header .au-welcome-user,
body.theme-vendorstall header .au-welcome-user a,
body.theme-vendorstall header .au-links-desktop a,
body.theme-vendorstall header .au-cart-dropdown,
body.theme-vendorstall header .au-cart-dropdown a,
body.theme-vendorstall header .btn-wishlist {
  color: #fff !important;
}

body.theme-vendorstall .header-categories-menu,
body.theme-vendorstall .categories-menu {
  background: #000 !important;
  border-top: 1px solid #2a2a2a;
}
body.theme-vendorstall .header-categories-menu a,
body.theme-vendorstall .categories-menu a {
  color: #fff !important;
}
/* Categories menu on phones — horizontal scroll instead of overflow/wrap,
   since this bar has no built-in mobile collapse of its own */
@media (max-width: 991.98px) {
  body.theme-vendorstall .categories-menu {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  body.theme-vendorstall .categories-menu::-webkit-scrollbar {
    display: none;
  }
  body.theme-vendorstall .categories-menu .nav-item {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

body.theme-vendorstall header .mobile-navbar .navbar {
  padding-top: 10px;
  padding-bottom: 10px;
}
body.theme-vendorstall header .mobile-navbar button {
  color: #fff;
  background: transparent;
  border: 0;
}
body.theme-vendorstall header .mobile-navbar .nav-link {
  color: #fff !important;
}
body.theme-vendorstall header .mobile-navbar #mobileHeaderMenu {
  background: #1a1a1a;
  margin-top: 8px;
  padding: 8px 0;
  border-radius: 6px;
}
body.theme-vendorstall header .mobile-navbar #mobileSearchForm {
  flex: 1 0 100%;
  margin-top: 8px;
}

/* Buttons + forms on stock markup — every solid button: red by default, green on hover */
body.theme-vendorstall .btn-primary,
body.theme-vendorstall .btn-success,
body.theme-vendorstall .btn-secondary,
body.theme-vendorstall .btn-danger,
body.theme-vendorstall .btn-info,
body.theme-vendorstall .btn-warning,
body.theme-vendorstall .btn-dark,
body.theme-vendorstall .btn-default,
body.theme-vendorstall .btn-blue,
body.theme-vendorstall .btn-red,
body.theme-vendorstall .btn-orange,
body.theme-vendorstall .btn-gold {
  background: var(--vs-red) !important;
  border-color: var(--vs-red) !important;
  color: #fff !important;
}
body.theme-vendorstall .btn-primary:hover,
body.theme-vendorstall .btn-success:hover,
body.theme-vendorstall .btn-secondary:hover,
body.theme-vendorstall .btn-danger:hover,
body.theme-vendorstall .btn-info:hover,
body.theme-vendorstall .btn-warning:hover,
body.theme-vendorstall .btn-dark:hover,
body.theme-vendorstall .btn-default:hover,
body.theme-vendorstall .btn-blue:hover,
body.theme-vendorstall .btn-red:hover,
body.theme-vendorstall .btn-orange:hover,
body.theme-vendorstall .btn-gold:hover,
body.theme-vendorstall .btn-primary:active,
body.theme-vendorstall .btn-success:active,
body.theme-vendorstall .btn-secondary:active,
body.theme-vendorstall .btn-danger:active,
body.theme-vendorstall .btn-info:active,
body.theme-vendorstall .btn-warning:active,
body.theme-vendorstall .btn-dark:active,
body.theme-vendorstall .btn-default:active,
body.theme-vendorstall .btn-blue:active,
body.theme-vendorstall .btn-red:active,
body.theme-vendorstall .btn-orange:active,
body.theme-vendorstall .btn-gold:active,
body.theme-vendorstall .btn-primary:focus,
body.theme-vendorstall .btn-success:focus,
body.theme-vendorstall .btn-secondary:focus,
body.theme-vendorstall .btn-danger:focus,
body.theme-vendorstall .btn-info:focus,
body.theme-vendorstall .btn-warning:focus,
body.theme-vendorstall .btn-dark:focus,
body.theme-vendorstall .btn-default:focus,
body.theme-vendorstall .btn-blue:focus,
body.theme-vendorstall .btn-red:focus,
body.theme-vendorstall .btn-orange:focus,
body.theme-vendorstall .btn-gold:focus {
  background: var(--vs-green) !important;
  border-color: var(--vs-green) !important;
  color: #fff !important;
}
body.theme-vendorstall .btn-light,
body.theme-vendorstall .btn-outline-primary,
body.theme-vendorstall .btn-outline-secondary,
body.theme-vendorstall .btn-outline-success,
body.theme-vendorstall .btn-outline-danger,
body.theme-vendorstall .btn-outline-dark {
  background: var(--vs-red) !important;
  border-color: var(--vs-red) !important;
  color: #fff !important;
}
body.theme-vendorstall .btn-light:hover,
body.theme-vendorstall .btn-outline-primary:hover,
body.theme-vendorstall .btn-outline-secondary:hover,
body.theme-vendorstall .btn-outline-success:hover,
body.theme-vendorstall .btn-outline-danger:hover,
body.theme-vendorstall .btn-outline-dark:hover,
body.theme-vendorstall .btn-light:active,
body.theme-vendorstall .btn-outline-primary:active,
body.theme-vendorstall .btn-outline-secondary:active,
body.theme-vendorstall .btn-outline-success:active,
body.theme-vendorstall .btn-outline-danger:active,
body.theme-vendorstall .btn-outline-dark:active,
body.theme-vendorstall .btn-light:focus,
body.theme-vendorstall .btn-outline-primary:focus,
body.theme-vendorstall .btn-outline-secondary:focus,
body.theme-vendorstall .btn-outline-success:focus,
body.theme-vendorstall .btn-outline-danger:focus,
body.theme-vendorstall .btn-outline-dark:focus {
  background: var(--vs-green) !important;
  border-color: var(--vs-green) !important;
  color: #fff !important;
}
body.theme-vendorstall .form-control,
body.theme-vendorstall .form-select {
  min-height: 42px;
}

/* Cards — keep stock grid/list; only color and inner padding */
body.theme-vendorstall .listings-cards .card,
body.theme-vendorstall .listings-cards .card-grid,
body.theme-vendorstall .listing-card,
body.theme-vendorstall .stores-cards .card {
  border: 1px solid var(--vs-line);
  border-radius: 8px;
  background: #fff;
}
body.theme-vendorstall .listings-cards .card-title,
body.theme-vendorstall .listing-card .card-title {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 600;
}
body.theme-vendorstall .price,
body.theme-vendorstall .card-price,
body.theme-vendorstall .current-bid {
  color: var(--vs-red);
  font-weight: 700;
}
body.theme-vendorstall .headline {
  border-bottom: 3px solid var(--vs-red);
  display: inline-block;
  padding-bottom: 4px;
}

/* Newsletter — its own section, sitting above the footer, not part of it */
body.theme-vendorstall .vs-newsletter-section {
  background: #f4f1ee;
  padding: 32px 0;
  text-align: center;
}
body.theme-vendorstall .vs-newsletter-section .newsletter-subscription-box {
  background: transparent;
  width: 100%;
  text-align: center;
}
body.theme-vendorstall .vs-newsletter-section .newsletter-subscription-box .form-inline {
  justify-content: center;
  width: 100%;
}
body.theme-vendorstall .vs-newsletter-section .newsletter-subscription-box .form-inline .form-group,
body.theme-vendorstall .vs-newsletter-section .newsletter-subscription-box .form-inline .form-control {
  width: 100%;
  max-width: 420px;
}

/* Footer — stock rows in brown with white text/links, green on hover;
   copyright bar unchanged (black); green strip below copyright bar (this was
   footer's own bottom padding bleeding through brown — now it's an explicit
   colored bar instead) */
body.theme-vendorstall footer {
  background-color: var(--vs-brown);
  background-image:
    repeating-linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.18) 0px,
      rgba(0, 0, 0, 0.18) 2px,
      rgba(255, 255, 255, 0.05) 2px,
      rgba(255, 255, 255, 0.05) 4px,
      transparent 4px,
      transparent 84px
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.035) 0px,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px,
      transparent 3px,
      rgba(0, 0, 0, 0.035) 3px,
      rgba(0, 0, 0, 0.035) 4px,
      transparent 4px,
      transparent 7px
    );
  color: #fff;
  padding-top: 28px;
  padding-bottom: 0;
  position: relative;
}
body.theme-vendorstall footer::after {
  content: '';
  display: block;
  height: 24px;
  background: var(--vs-brand-green);
}
body.theme-vendorstall footer h2,
body.theme-vendorstall footer h3,
body.theme-vendorstall footer h4,
body.theme-vendorstall footer p,
body.theme-vendorstall footer li,
body.theme-vendorstall footer small {
  color: #fff !important;
}
body.theme-vendorstall footer a,
body.theme-vendorstall footer .nav-link {
  color: #fff !important;
}
body.theme-vendorstall footer a:hover,
body.theme-vendorstall footer .nav-link:hover {
  color: var(--vs-brand-green) !important;
}
body.theme-vendorstall footer .copyright-bar {
  background: #111111;
  margin-top: 20px;
  padding: 8px 0;
}
body.theme-vendorstall footer .copyright-message {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
body.theme-vendorstall footer .copyright-message small {
  display: block;
  text-align: center;
  color: #fff !important;
  font-size: 13px;
  line-height: 1.3;
}

body.dark.theme-vendorstall {
  background: #121212;
  color: #f3f3f3;
}


/* Hide third-party vendor marks the software may inject */
body.theme-vendorstall a[href*="phpprobid.com"],
body.theme-vendorstall a[href*="php-pro-bid"],
body.theme-vendorstall .powered-by,
body.theme-vendorstall .copyright-message a[target="_blank"] {
  display: none !important;
}


/* Advertisement codes from Admin — do not inherit header/footer chrome */
body.theme-vendorstall .vs-advert {
  overflow: visible;
}
body.theme-vendorstall .vs-advert img,
body.theme-vendorstall .vs-advert iframe,
body.theme-vendorstall .vs-advert ins,
body.theme-vendorstall .vs-advert video {
  max-width: 100%;
}
body.theme-vendorstall header .vs-advert,
body.theme-vendorstall header .vs-advert a,
body.theme-vendorstall header .vs-advert p,
body.theme-vendorstall header .vs-advert span {
  color: inherit !important;
  background: transparent !important;
}

/* Back to top — fixed bottom-left (bottom-right is reserved for the cookie
   banner), hidden until JS adds .is-visible after the user scrolls past one
   viewport height. Red default, green on hover/active to match every other
   button on the site. */
.vs-back-to-top {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 1030;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--vs-red);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s ease;
}
.vs-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.vs-back-to-top:hover,
.vs-back-to-top:active,
.vs-back-to-top:focus {
  background: var(--vs-green);
  color: #fff;
}
@media (max-width: 575.98px) {
  .vs-back-to-top {
    left: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
  }
}

/* Track Your Order card — on-site order detail page (members/invoices/view.phtml).
   Not used by email templates, which use the shared partials/sale.phtml
   untouched, so this styling never needs to work inline/in an email client. */
body.theme-vendorstall .vs-track-order-card {
  background: #f4f1ee;
  border: 1px solid var(--vs-line);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}
body.theme-vendorstall .vs-track-order-card__label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--vs-muted);
  margin-top: 4px;
}
body.theme-vendorstall .vs-track-order-card__status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
body.theme-vendorstall .vs-status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  background: var(--vs-muted);
}
body.theme-vendorstall .vs-status-badge.vs-status-pending {
  background: var(--vs-blue);
}
body.theme-vendorstall .vs-status-badge.vs-status-shipped {
  background: var(--vs-green);
}
body.theme-vendorstall .vs-status-badge.vs-status-problem {
  background: var(--vs-red);
}
body.theme-vendorstall .vs-track-order-card__details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}
body.theme-vendorstall .vs-track-order-card__details .vs-track-order-card__label {
  display: inline;
  margin-top: 0;
  font-size: inherit;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 600;
  color: var(--vs-text);
}
body.theme-vendorstall .vs-track-order-card__btn {
  background: var(--vs-red);
  color: #fff !important;
  border: none;
  border-radius: 6px;
  padding: 10px 22px;
  font-weight: 600;
  margin-left: auto;
}
body.theme-vendorstall .vs-track-order-card__btn:hover,
body.theme-vendorstall .vs-track-order-card__btn:active,
body.theme-vendorstall .vs-track-order-card__btn:focus {
  background: var(--vs-green);
  color: #fff !important;
}
body.theme-vendorstall .vs-track-order-card__note {
  margin: 0;
  color: var(--vs-muted);
  font-style: italic;
}
@media (max-width: 575.98px) {
  body.theme-vendorstall .vs-track-order-card {
    flex-direction: column;
    align-items: flex-start;
  }
  body.theme-vendorstall .vs-track-order-card__btn {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }
}
/* Landscape phones / small tablets — card stays a row (there's enough width),
   but tighten spacing and stop the button from right-aligning oddly if it
   wraps onto its own line */
@media (min-width: 576px) and (max-width: 767.98px) {
  body.theme-vendorstall .vs-track-order-card {
    gap: 12px 20px;
    padding: 16px 20px;
  }
  body.theme-vendorstall .vs-track-order-card__btn {
    margin-left: 0;
  }
}
/* Short viewports (landscape phones held sideways) — the card's own
   internal spacing shrinks a bit so it doesn't dominate limited height */
@media (max-height: 500px) and (orientation: landscape) {
  body.theme-vendorstall .vs-track-order-card {
    padding: 12px 20px;
    margin-bottom: 16px;
    gap: 10px 20px;
  }
}
