/* Mercatas minimal theme — loaded after stylesheet.css, overrides only.
   Brand: emerald #047857 (matches logo). Edit this file, never stylesheet.css
   (that one is regenerated from stylesheet.scss by OpenCart's SASS startup). */

:root {
  --mc-green: #047857;
  --mc-green-dark: #065f46;
  --mc-green-soft: #ecf5f1;
  --mc-ink: #1f2937;
  --mc-muted: #6b7280;
  --mc-line: #e6ece9;
  --mc-bg-soft: #f7faf9;
}

body {
  font-family: system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--mc-ink);
  background: #fff;
}

a { color: var(--mc-green); text-decoration: none; }
a:hover { color: var(--mc-green-dark); text-decoration: underline; }

/* ---- top bar: quiet ---- */
#top {
  background: #fff;
  border-bottom: 1px solid var(--mc-line);
  font-size: 13px;
  padding: 5px 0;
}
#top a, #top .dropdown-toggle { color: var(--mc-muted); text-decoration: none; }
#top a:hover, #top .dropdown-toggle:hover { color: var(--mc-green); }

/* ---- header ---- */
header {
  background: #fff;
  border-bottom: 1px solid var(--mc-line);
  padding: 18px 0 12px;
}
#logo img { max-height: 44px; width: auto; }

/* search */
#search .form-control {
  border: 1px solid #d5ddd9;
  border-radius: 8px 0 0 8px;
  box-shadow: none;
}
#search .form-control:focus { border-color: var(--mc-green); box-shadow: 0 0 0 3px rgba(4, 120, 87, .12); }
#search .btn {
  background: var(--mc-green);
  border: 1px solid var(--mc-green);
  color: #fff;
  border-radius: 0 8px 8px 0;
}
#search .btn:hover { background: var(--mc-green-dark); border-color: var(--mc-green-dark); }

/* header cart button */
#header-cart .btn, #cart .btn {
  background: #fff;
  border: 1px solid #d5ddd9;
  color: var(--mc-ink);
  border-radius: 8px;
}
#header-cart .btn:hover, #cart .btn:hover { border-color: var(--mc-green); color: var(--mc-green); }

/* ---- buttons ---- */
.btn-primary {
  background: var(--mc-green);
  border-color: var(--mc-green);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background: var(--mc-green-dark) !important;
  border-color: var(--mc-green-dark) !important;
}
.btn-light { border: 1px solid var(--mc-line); }

/* ---- breadcrumb ---- */
.breadcrumb { background: none; padding: 14px 0 0; font-size: 13px; }
.breadcrumb a { color: var(--mc-muted); }
.breadcrumb .breadcrumb-item.active { color: var(--mc-ink); }

/* ---- product cards ---- */
.product-thumb {
  border: 1px solid var(--mc-line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}
.product-thumb:hover { border-color: var(--mc-green); transform: translateY(-2px); }
.product-thumb .image { padding: 14px; }
.product-thumb .description { margin-bottom: 68px; }  /* default reserves 45px; our taller button + ex-VAT line need more */
.product-thumb .description h4 { font-size: 15px; margin: 0 0 4px; }
.product-thumb .description h4 a { color: var(--mc-ink); font-weight: 500; }
.product-thumb .description h4 a:hover { color: var(--mc-green); text-decoration: none; }
.product-thumb .description p { display: none; }
.product-thumb .price { font-weight: 600; color: var(--mc-green); }
.product-thumb .price-old { color: var(--mc-muted); font-weight: 400; text-decoration: line-through; margin-left: 6px; }
.product-thumb .price-tax { display: block; font-size: 12px; color: var(--mc-muted); font-weight: 400; }

/* card buttons: keep only "add to cart", make it a clean full-width action */
.product-thumb .button { display: block; padding: 0 14px 14px; }
.product-thumb .button button { display: none; }
.product-thumb .button button:first-child {
  display: block;
  width: 100%;
  background: var(--mc-green-soft);
  color: var(--mc-green);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 0;
  transition: background .15s ease, color .15s ease;
}
.product-thumb .button button:first-child:hover { background: var(--mc-green); color: #fff; }

/* ---- product page ---- */
.rating .fa-solid.fa-star { color: #f59e0b; }
#button-cart { background: var(--mc-green); border-color: var(--mc-green); }
#button-cart:hover { background: var(--mc-green-dark); border-color: var(--mc-green-dark); }

/* ---- alerts / badges ---- */
.alert-success { background: var(--mc-green-soft); color: var(--mc-green-dark); border-color: #cfe7dd; }

/* ---- option swatch picker (product page) ---- */
.mc-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.mc-swatch {
  width: 46px;
  height: 46px;
  padding: 0;
  border: 2px solid var(--mc-line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease;
}
.mc-swatch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mc-swatch-text { font-size: 13px; color: var(--mc-muted); }
.mc-swatch:hover { border-color: var(--mc-green); transform: translateY(-1px); }
.mc-swatch.active { border-color: var(--mc-green); box-shadow: 0 0 0 3px rgba(4, 120, 87, .18); }
.mc-swatch-selected { color: var(--mc-green); font-weight: 600; }

/* ---- home portal banners ---- */
.mc-portal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0 6px;
}
.mc-portal-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 250px;
  border-radius: 16px;
  padding: 44px 40px;
  color: #fff;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.mc-portal-card:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .14);
}
.mc-portal-card h2 {
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: .1em;
  margin: 0 0 8px;
}
.mc-portal-card p { color: rgba(255, 255, 255, .85); font-size: 16px; margin: 0; }
.mc-cta { margin-top: 20px; font-weight: 600; color: #fff; }
.mc-portal-card:hover .mc-cta { text-decoration: underline; }
.mc-card-saunum {
  background-color: #641f0a;
  background-image: linear-gradient(135deg, rgba(30, 10, 2, .38), rgba(30, 10, 2, .52)), url('../../../image/catalog/mercatas/portal/saunum-bg.webp');
  background-size: cover;
  background-position: center;
}
.mc-card-vstore {
  background-color: #142a68;
  background-image: linear-gradient(135deg, rgba(8, 16, 45, .40), rgba(8, 16, 45, .55)), url('../../../image/catalog/mercatas/portal/vstore-bg.jpg');
  background-size: cover;
  background-position: center;
}
.mc-card-saunum p, .mc-card-vstore p { text-shadow: 0 1px 10px rgba(0, 0, 0, .55); }
.mc-card-shop {
  grid-column: 1 / -1;
  min-height: 170px;
  background: linear-gradient(135deg, var(--mc-green), #03523c);
}
.mc-card-shop h2 { letter-spacing: .02em; }
.mc-portal-logo {
  display: block;
  max-width: min(420px, 82%);
  max-height: 96px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 0 16px;
}
.mc-card-shop .mc-portal-logo { max-height: 68px; }
/* render dark logos white on the dark banner gradients */
.mc-logo-invert { filter: brightness(0) invert(1); }
@media (max-width: 767px) {
  .mc-portal { grid-template-columns: 1fr; }
  .mc-portal-card { min-height: 180px; padding: 32px 26px; }
  .mc-portal-logo { max-height: 64px; margin-bottom: 12px; }
}

/* ---- landing page: pure portal, no chrome ----
   Home shows only the three banners filling the viewport; the top bar,
   header and footer appear on every other page. Saunum/Vstore row gets
   1.5x the height of the local-shop banner. */
body.route-common-home nav#top,
body.route-common-home header,
body.route-common-home footer { display: none; }
body.route-common-home main { display: flex; }
body.route-common-home #common-home {
  flex: 1;
  display: flex;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 22px;
}
body.route-common-home .mc-portal {
  flex: 1;
  margin: 0;
  grid-template-rows: 2fr 1fr;
}
body.route-common-home .mc-portal-card { min-height: 0; }
@media (max-width: 767px) {
  body.route-common-home .mc-portal { grid-template-rows: 1fr 1fr 0.55fr; }
}

/* ---- footer: minimal, in normal flow ----
   Stock OC4 absolutely positions the footer and reserves space for it with a
   huge padding-bottom on #content; pages without #content (our portal home)
   got the footer painted over their content. A flex column keeps the footer
   after the content in flow, yet still at the viewport bottom on short pages. */
#container {
  position: static;
  min-height: 100vh;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}
#container > main { flex: 1 0 auto; width: 100%; }
#content, #column-left, #column-right { padding-bottom: 0; }
footer {
  position: static;
  background: var(--mc-bg-soft);
  border: 0;
  border-top: 1px solid var(--mc-line);
  margin-top: 56px;
}
.mc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 26px 0;
}
.mc-footer-brand {
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--mc-green);
  font-size: 15px;
}
.mc-footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.mc-footer-links a { color: var(--mc-muted); }
.mc-footer-links a:hover { color: var(--mc-green); }
.mc-footer-copy { width: 100%; font-size: 12.5px; color: var(--mc-muted); margin: 0; padding-bottom: 22px; }

/* ---- floating badges ----
   The Paysera quality sign (#wtpQualitySign_fixedCSS, 83x85) and the reCAPTCHA
   badge both pin to the bottom-right; lift the reCAPTCHA badge above it.
   !important is needed to beat Google's inline bottom: 14px. */
.grecaptcha-badge { bottom: 92px !important; }
