/* Meletis website demo: shared styles */
:root {
  --green: #006838;
  --green-dark: #004d29;
  --lime: #8dc63f;
  --ink: #1c1f1d;
  --muted: #6b7370;
  --line: #e1e4e2;
  --bg-soft: #f7f7f7;
  --red: #d9232d;
  --container: 1320px;
  --font: 'Inter', 'Segoe UI', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.45; color: var(--ink); background: #fff; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.2; }
p { margin: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.ico { flex: none; display: block; }
[hidden] { display: none !important; }

/* buttons, fields, badges */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border: 2px solid transparent; border-radius: 0; font-size: 14px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-outline { background: #fff; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.field { width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid #c9cecb; border-radius: 0; background: #fff; font: inherit; color: var(--ink); }
.field:focus { border-color: var(--green); outline: 2px solid rgba(0,104,56,.18); }
.badge { display: inline-block; padding: 3px 8px; font-size: 12px; font-weight: 700; line-height: 1.2; border-radius: 0; }
.badge-red { background: var(--red); color: #fff; }
.badge-green { background: var(--green); color: #fff; }
.badge-lime { background: var(--lime); color: #17310a; }

/* colour swatch, stock dot, prices */
.sw { display: block; width: 100%; height: 100%; border: 1px solid rgba(0,0,0,.25); border-radius: 0; }
.sdot { display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: #aaa; vertical-align: 0; }
.sdot.in { background: #2e9e4f; } .sdot.low { background: #e0a21a; } .sdot.out { background: var(--red); }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 14px; margin-right: 8px; }
.price-net { font-size: 20px; font-weight: 800; color: var(--ink); margin-right: 8px; }
.price-login { font-size: 13px; font-weight: 600; color: var(--green); border-bottom: 1px solid currentColor; }
.price-login:hover { color: var(--green-dark); }

/* pictures */
.md-pic { display: block; width: 100%; height: 100%; object-fit: contain; }
.barcode { display: block; max-width: 100%; height: auto; }

/* presenter strip */
.md-presenter { background: #111513; color: #cfd6d2; font-size: 12.5px; }
.md-presenter-in { display: flex; align-items: center; gap: 14px; min-height: 34px; padding-top: 4px; padding-bottom: 4px; }
.mp-label { color: var(--lime); font-weight: 700; font-size: 13px; }
.mp-steps { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.mp-steps a { padding: 4px 10px; border: 1px solid #36403b; color: #e9eeeb; }
.mp-steps a:hover, .mp-steps a.on { background: var(--lime); border-color: var(--lime); color: #12220a; }
.mp-close { background: none; border: 0; color: #aab3ae; padding: 4px; display: flex; }
.mp-close:hover { color: #fff; }
body.no-presenter .md-presenter { display: none; }

/* header */
.md-header { position: relative; z-index: 50; }
.md-util { background: var(--green-dark); color: #dff0e6; font-size: 13px; }
.md-util-in { display: flex; justify-content: flex-end; align-items: center; gap: 26px; height: 37px; }
.md-util a:hover { color: #fff; text-decoration: underline; }
.md-main { background: var(--green); color: #fff; }
.md-main-in { display: flex; align-items: center; gap: 28px; height: 78px; }
.md-burger { display: none; background: none; border: 0; color: #fff; padding: 6px; }
.md-logo { display: flex; align-items: center; gap: 12px; flex: none; }
.md-logo img { border-radius: 50%; background: #fff; display: block; }
.md-logo-txt { display: flex; flex-direction: column; line-height: 1.1; }
.md-logo-txt b { font-size: 19px; font-weight: 800; }
.md-logo-txt i { font-style: normal; font-size: 12.5px; color: #c7e6d3; }
.md-search { position: relative; flex: 1; max-width: 640px; }
.md-search input { width: 100%; height: 46px; border: 0; border-radius: 23px; padding: 0 20px 0 46px; font: inherit; font-size: 15px; background: #fff; color: var(--ink); }
.md-search-ico { position: absolute; left: 16px; top: 14px; color: var(--muted); pointer-events: none; }
.md-sugg { position: absolute; left: 0; right: 0; top: 52px; background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0,0,0,.18); z-index: 70; }
.sg { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.sg:hover { background: var(--bg-soft); }
.sg-pic { width: 44px; height: 44px; flex: none; background: #fff; border: 1px solid var(--line); }
.sg-txt { display: flex; flex-direction: column; min-width: 0; }
.sg-txt b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-txt i { font-style: normal; font-size: 12px; color: var(--muted); }
.sg-all, .sg-none { display: block; padding: 11px 14px; font-size: 13px; font-weight: 700; color: var(--green); }
.sg-none { color: var(--muted); font-weight: 400; }
.md-tools { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 600; }
.md-acct { display: flex; align-items: center; gap: 14px; }
.md-acct-in, .md-acct-name { display: flex; align-items: center; gap: 8px; }
.md-acct-name span { max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-acct-out { font-size: 12.5px; font-weight: 400; color: #c7e6d3; text-decoration: underline; }
.md-acct a:hover { color: var(--lime); }
.md-lang { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #9fd0b4; }
.md-lang button { background: none; border: 0; color: #cfe8d9; font-weight: 700; padding: 2px; font-size: 13px; }
.md-lang button.on { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.md-util .md-lang { display: none; }
.md-cartlink { position: relative; display: flex; align-items: center; gap: 8px; }
.md-cartlink:hover { color: var(--lime); }
.md-cartcount { position: absolute; left: 14px; top: -9px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--lime); color: #12220a; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.md-cartcount.zero { background: #4f9a72; color: #fff; }
.md-carttxt { margin-left: 2px; }

.md-cats { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.md-cats-in { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); align-items: stretch; gap: 0; }
.md-catitem { position: static; display: flex; justify-content: center; min-width: 0; }
.md-catitem > a { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 0 2px; font-size: 11px; text-wrap: balance; text-align: center; white-space: normal; line-height: 1.2; font-weight: 800; text-transform: uppercase; border-bottom: 3px solid transparent; }
.md-catitem:hover > a, .md-catitem.active > a { color: var(--green); border-bottom-color: var(--green); }
.md-cats { position: relative; }
.md-mega { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 3px solid var(--green); border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(0,0,0,.14); z-index: 60; }
.md-catitem:hover .md-mega { display: block; }
.md-mega-in { display: flex; gap: 60px; padding-top: 24px; padding-bottom: 26px; }
.mm-col { display: flex; flex-direction: column; gap: 9px; min-width: 240px; }
.mm-col-wide { min-width: 340px; }
.mm-h { font-size: 14px; font-weight: 800; color: var(--ink); padding-bottom: 6px; border-bottom: 1px solid var(--line); margin-bottom: 2px; }
.mm-col a { font-size: 14.5px; }
.mm-col a:hover { color: var(--green); text-decoration: underline; }
.md-links { background: #fff; border-bottom: 1px solid var(--line); }
.md-links-in { display: flex; flex-wrap: wrap; gap: 6px 22px; min-height: 42px; padding-top: 6px; padding-bottom: 6px; align-items: center; font-size: 13.5px; }
.md-links-in::-webkit-scrollbar { display: none; }
.md-links a { color: #3b423f; }
.md-links a:hover, .md-links a.active { color: var(--green); font-weight: 700; }

/* drawer (phone) */
.md-drawer-bg { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 90; }
.md-drawer { position: fixed; top: 0; bottom: 0; left: 0; width: 86%; max-width: 360px; background: #fff; z-index: 100; transform: translateX(-102%); transition: transform .22s; display: flex; flex-direction: column; box-shadow: 8px 0 30px rgba(0,0,0,.25); }
.md-drawer-top { display: flex; align-items: center; justify-content: space-between; padding: 0 18px; height: 56px; background: var(--green); color: #fff; font-weight: 800; font-size: 15px; }
.md-drawer-x { background: none; border: 0; color: #fff; display: flex; padding: 4px; }
.md-drawer-body { overflow-y: auto; flex: 1; }
.dr-head { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 15px 18px; background: #fff; border: 0; border-bottom: 1px solid var(--line); font-size: 14.5px; font-weight: 800; text-align: left; color: var(--ink); }
.dr-head .ico { transition: transform .15s; }
.dr-cat.open .dr-head .ico { transform: rotate(180deg); }
.dr-subs { display: none; background: var(--bg-soft); }
.dr-cat.open .dr-subs { display: block; }
.dr-subs a { display: block; padding: 12px 18px 12px 30px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.dr-links a { display: block; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.md-lang-dr { padding: 16px 18px; color: var(--muted); }
.md-lang-dr button { color: var(--muted); }
.md-lang-dr button.on { color: var(--green); }
body.drawer-open { overflow: hidden; }
body.drawer-open .md-drawer { transform: none; }
body.drawer-open .md-drawer-bg { display: block; }

/* footer */
.md-footer { background: #17201b; color: #c3cdc7; margin-top: 56px; font-size: 14px; }
.mf-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 40px; padding: 48px 0 30px; }
.mf-col h4 { color: #fff; font-size: 15px; font-weight: 800; margin-bottom: 14px; }
.mf-col a { display: block; padding: 4px 0; }
.mf-col a:hover { color: var(--lime); }
.mf-col p { line-height: 1.55; }
.mf-brand img { background: #fff; padding: 6px 10px; margin-bottom: 14px; display: block; }
.mf-h2 { margin-top: 22px; }
.mf-note { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; border-top: 1px solid #2b3830; padding: 18px 0 22px; font-size: 12.5px; color: #98a59e; }
.mf-note p { max-width: 920px; line-height: 1.55; }
.mf-reopen { background: none; border: 1px solid #3a4a41; color: #c3cdc7; padding: 7px 12px; font-size: 12px; flex: none; }
.mf-reopen:hover { border-color: var(--lime); color: var(--lime); }
.mf-bar { background: #0f1612; font-size: 12.5px; color: #8a978f; }
.mf-bar .container { display: flex; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }

/* product card */
.card-product { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 0; transition: box-shadow .15s, border-color .15s; }
.card-product:hover { border-color: #b8c4bd; box-shadow: 0 8px 22px rgba(0,0,0,.09); }
.cp-img { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.cp-pic { display: block; width: 100%; height: 100%; padding: 6%; }
.cp-badges { position: absolute; left: 10px; top: 10px; z-index: 2; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.cp-body { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px 14px; flex: 1; }
.cp-brand { font-size: 13px; font-weight: 800; color: var(--green); min-height: 15px; }
.cp-name { font-size: 15px; font-weight: 700; line-height: 1.3; min-height: 39px; overflow-wrap: anywhere; hyphens: auto; }
.cp-name:hover { color: var(--green); }
.cp-code { font-size: 12.5px; color: var(--muted); }
.cp-code b { color: var(--ink); font-weight: 600; }
.cp-dots { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; min-height: 24px; margin-top: 2px; }
.cp-dot { width: 22px; height: 22px; padding: 2px; background: #fff; border: 1px solid transparent; border-radius: 0; }
.cp-dot.on { border-color: var(--green); }
.cp-dot:hover { border-color: #9aa5a0; }
.cp-ncol { font-size: 12px; color: var(--muted); margin-left: 4px; }
.cp-price { display: flex; align-items: center; flex-wrap: wrap; min-height: 30px; margin-top: 4px; }
.cp-stock { font-size: 12.5px; color: #3b423f; }
.cp-add { width: 100%; min-height: 46px; border-left: 0; border-right: 0; border-bottom: 0; }
.card-product.flash .cp-pic { animation: cpflash .4s; }
@keyframes cpflash { from { opacity: .25; } to { opacity: 1; } }

/* accordion */
.accordion { border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-head { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 4px; background: none; border: 0; font-size: 16px; font-weight: 800; text-align: left; color: var(--ink); }
.accordion-head:hover { color: var(--green); }
.accordion-ico { display: flex; transition: transform .15s; color: var(--green); }
.accordion-item.open .accordion-ico { transform: rotate(45deg); }
.accordion-body { display: none; padding: 2px 4px 22px; font-size: 14.5px; line-height: 1.6; }
.accordion-item.open .accordion-body { display: block; }

/* toast */
.md-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 24px); background: #17201b; color: #fff; padding: 13px 22px; font-size: 14px; font-weight: 600; border-left: 4px solid var(--lime); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 200; max-width: 92vw; }
.md-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* tablet */
@media (max-width: 1100px) {
  .md-tools { gap: 14px; }
  .md-carttxt { display: none; }
  .md-search { max-width: none; min-width: 150px; }
  .md-main-in { gap: 16px; }
  .md-acct-name span { max-width: 90px; }
  .md-cats-in { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .md-catitem > a { padding: 0 9px; font-size: 12px; min-height: 40px; }
  .mf-cols { grid-template-columns: 1fr 1fr; }
}
/* phone */
@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .md-util, .md-cats, .md-links { display: none; }
  .md-presenter-in { gap: 8px; min-height: 30px; }
  .mp-label { display: none; }
  .mp-steps { flex-wrap: wrap; }
  .mp-steps a { white-space: normal; padding: 3px 8px; font-size: 12px; }
  .md-main-in { display: grid; grid-template-columns: 44px 1fr auto; grid-template-areas: 'b l t' 's s s'; gap: 8px 8px; height: auto; padding-top: 10px; padding-bottom: 12px; }
  .md-burger { display: flex; grid-area: b; }
  .md-logo { grid-area: l; gap: 9px; }
  .md-logo img { width: 40px; height: 40px; }
  .md-logo-txt b { font-size: 16px; }
  .md-logo-txt i { font-size: 10px; }
  .md-tools { grid-area: t; gap: 6px; margin: 0; }
  .md-tools .md-acct, .md-tools .md-lang { display: none; }
  .md-search { grid-area: s; max-width: none; }
  .md-search input { height: 42px; }
  .md-search-ico { top: 12px; }
  .md-sugg { top: 48px; }
  .md-cartcount { left: 13px; }
  .mf-cols { grid-template-columns: 1fr; gap: 26px; padding-top: 34px; }
  .mf-note { flex-direction: column; }
  .mf-bar .container { flex-direction: column; gap: 4px; }
  .md-footer { margin-top: 36px; }
  .cp-body { padding: 10px 10px 12px; }
  .cp-name { font-size: 14px; min-height: 36px; }
  .price-net { font-size: 17px; }
  .cp-dot { width: 20px; height: 20px; }
  .accordion-head { font-size: 14px; }
}
.mf-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.mf-contact li { display: grid; gap: 1px; line-height: 1.4; }
.mf-contact li span { font-size: 13px; opacity: .72; }
.mf-contact a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 760px) {
  .cp-add { font-size: 13px; padding: 0 6px; gap: 6px; min-height: 44px; }
  .cp-add svg { display: none; }
  .cp-add span { white-space: normal; text-align: center; line-height: 1.2; }
}
/* SITE CSS READY */
