/* Working-site additions on top of the approved mockup (style.css). Same palette, no new colors. */
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.strong { font-weight: 800; }
.nowrap { white-space: nowrap; }

/* catalog dropdown in the menu bar */
.menubar .bar { position: relative; }
.catmenu { position: static; }
.catmenu > summary { list-style: none; cursor: pointer; user-select: none; }
.catmenu > summary::-webkit-details-marker { display: none; }
.catmenu-pop {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; background: var(--surface); color: var(--ink);
  border-radius: var(--r-l); box-shadow: var(--shadow-h); padding: 26px 30px; display: grid;
  grid-template-columns: repeat(4, 1fr); gap: 22px 28px;
}
.cm-col a { display: block; font-size: 14px; color: var(--ink-2); padding: 3px 0; }
.cm-col a:hover { color: var(--accent-d); }
.cm-col a.cm-top { font-weight: 800; font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.mob-phone svg.i { width: 18px; height: 18px; }

/* listing filters with real inputs */
.fwrap > summary { display: none; }
.filters .check, .filters .pills label, .filters .toggle { cursor: pointer; }
.filters .check input, .filters .pills input, .filters .toggle input, .seg-radio input {
  position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none;
}
.filters .check input:checked + i { background: var(--accent); border-color: var(--accent); }
.filters .check input:checked + i::after {
  content: ""; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px);
}
.filters .check input:focus-visible + i, .filters .pills input:focus-visible + b { outline: 2px solid var(--accent); outline-offset: 2px; }
.filters .pills label { display: inline-flex; }
.filters .pills input:checked + b { background: var(--ink); color: #fff; }
.filters .toggle i { background: var(--soft); transition: .15s; }
.filters .toggle i::after { right: auto; left: 3px; transition: .15s; }
.filters .toggle input:checked + i { background: var(--accent); }
.filters .toggle input:checked + i::after { left: 21px; }
.range-inputs input {
  display: block; width: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-weight: 700;
  color: var(--ink); font-size: 14px; padding: 0;
}
.range-inputs { margin-bottom: 0; }
.freset { display: block; text-align: center; margin-top: 12px; color: var(--accent-d); font-weight: 700; font-size: 14px; }
.toolbar select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--ink);
  cursor: pointer; padding-right: 2px; outline: 0;
}
.chips-active a { background: var(--accent-soft); color: var(--accent-d); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; }
.pager a, .pager b {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface);
  box-shadow: var(--shadow); font-weight: 700;
}
.pager a:hover { background: var(--accent-soft); }
.pager b.gap { background: transparent; box-shadow: none; }
.empty { background: var(--surface); border-radius: var(--r-l); padding: 40px; box-shadow: var(--shadow); text-align: center; color: var(--ink-2); }
.empty p { margin: 0 0 18px; }
.empty a:not(.btn) { color: var(--accent-d); font-weight: 700; }
.brand-intro { background: var(--surface); border-radius: var(--r-l); padding: 22px 28px; margin-bottom: 22px; box-shadow: var(--shadow); color: var(--ink-2); }
.brand-intro p { margin: 0 0 8px; }
.seo-text ul { margin: 0 0 10px; padding-left: 20px; }

/* cards */
.card .stock.off, .p-info .sub .stock.off, .cart-line .stock.off { color: var(--muted); }
.card .stock.off::before, .p-info .sub .stock.off::before, .cart-line .stock.off::before { background: #c4bab0; }
.card .price s, .buy .price s { display: block; font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.card .bottom form { margin: 0; }
.brand { padding: 0 8px; text-align: center; font-size: 17px; }

/* catalog tree */
.tree { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tree-item { background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow); padding: 18px; display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: start; }
.tree-ph { height: 110px; border-radius: var(--r-s); background: #fbf9f6; display: grid; place-items: center; }
.tree-ph img { max-height: 96px; max-width: 90%; object-fit: contain; mix-blend-mode: multiply; }
.tree-top { font-weight: 800; font-size: 17px; }
.tree-n { color: var(--muted); font-size: 13px; }
.tree ul { list-style: none; padding: 0; margin: 10px 0 0; }
.tree li { padding: 3px 0; font-size: 14px; color: var(--ink-2); }
.tree li a:hover, .tree-top:hover { color: var(--accent-d); }
.tree li span { color: var(--muted); font-size: 12px; }

/* home lead buttons */
.lead-act { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.adv a.a { display: block; }

/* product page */
.gallery .thumbs div { cursor: pointer; }
.p-info .sub a { color: var(--accent-d); font-weight: 700; }
.buy form { margin: 0; }
.brand-logo { display: block; }
.bdg .round svg.i { width: 22px; height: 22px; color: var(--accent-d); }
.descr .fade.open { max-height: none; }
.descr .fade.open::after { display: none; }
.descr h3 { font-size: 16px; margin: 14px 0 8px; color: var(--ink); }
button.more-link { border: 0; font: inherit; font-weight: 800; cursor: pointer; }
.tab-cta { margin: 20px 0 0; }

/* forms */
.form-card { background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow); padding: 28px 30px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.fld { display: block; margin-bottom: 14px; }
.fgrid .fld { margin-bottom: 0; }
.fld.wide { margin-top: 14px; }
.fld > span { display: block; font-size: 13px; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.fld > span i { color: var(--accent-d); font-style: normal; }
.fld input:not([type=checkbox]):not([type=radio]):not([type=file]), .fld textarea, .fld select, .adm-filter input, .adm-filter select,
.lc-form select, .lc-form textarea, .spec-row input {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; font: inherit; background: #fff; color: var(--ink); outline: 0;
}
.fld textarea { resize: vertical; min-height: 90px; }
.fld input:focus, .fld textarea:focus, .fld select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fld.err input, .fld.err textarea, .fld.err select { border-color: #c0392b; }
.fld em { display: block; color: #c0392b; font-style: normal; font-size: 12.5px; margin-top: 4px; }
.fld.chk { display: flex; align-items: center; gap: 8px; font-weight: 700; padding-top: 22px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); margin: 16px 0 18px; }
.agree input { margin-top: 3px; accent-color: var(--accent); }
.agree a { color: var(--accent-d); text-decoration: underline; }
.agree.err { color: #c0392b; }
.ferr { color: #c0392b; font-weight: 700; margin: 0 0 14px; }
.ok-msg { color: var(--ok); font-weight: 800; margin: 0 0 14px; }
.fnote { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.intro { color: var(--ink-2); margin: 0 0 18px; }
.seg-radio { display: inline-flex; background: var(--bg); border-radius: 999px; padding: 4px; margin-bottom: 20px; }
.seg-radio label { cursor: pointer; }
.seg-radio b { display: block; padding: 8px 18px; border-radius: 999px; font-size: 14px; }
.seg-radio input:checked + b { background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
.req-product { display: flex; gap: 14px; align-items: center; background: var(--bg); border-radius: var(--r-m); padding: 12px; margin-bottom: 18px; }
.req-product img { width: 72px; height: 72px; object-fit: contain; background: #fbf9f6; border-radius: 12px; mix-blend-mode: multiply; }
.req-product small { display: block; color: var(--muted); font-size: 12px; }
.req-product a { font-weight: 700; display: block; }
.req-product b { color: var(--accent-d); }

/* cart */
.cart-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.cart-list { background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow); padding: 10px 24px 20px; }
.cart-line { display: grid; grid-template-columns: 84px 1fr 110px 90px 120px 36px; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cl-ph { height: 84px; border-radius: 12px; background: #fbf9f6; display: grid; place-items: center; }
.cl-ph img { max-height: 74px; max-width: 90%; object-fit: contain; mix-blend-mode: multiply; }
.cl-name a { font-weight: 700; display: block; }
.cl-name small { display: block; color: var(--muted); font-size: 12.5px; margin: 2px 0; }
.cart-line .stock { color: var(--ok); font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.cart-line .stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.cl-price { color: var(--muted); white-space: nowrap; }
.cl-qty span { display: none; }
.cl-qty input { width: 76px; border: 1px solid var(--line); border-radius: 12px; padding: 9px 10px; font: inherit; text-align: center; }
.cl-sum { font-weight: 900; font-size: 17px; white-space: nowrap; text-align: right; }
.cl-del { border: 0; background: var(--bg); border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.cl-del:hover { color: var(--accent-d); }
.cart-acts { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.cart-sum { background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow); padding: 24px; position: sticky; top: 16px; }
.cart-sum h4 { margin: 0 0 14px; font-size: 18px; }
.cart-sum .row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.cart-sum .row span { color: var(--muted); }
.cart-sum .row b { text-align: right; }
.cart-sum .row.small span { color: var(--ink-2); }
.cart-sum .row.total { border-bottom: 0; font-size: 20px; padding-top: 14px; }
.cart-sum .row.total span { color: var(--ink); font-weight: 800; }
.cart-sum p { color: var(--muted); font-size: 13px; margin: 12px 0 16px; }
.cart-sum .btn { width: 100%; margin-top: 8px; }

/* text pages, thanks */
.text-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.text-page { background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow); padding: 32px 36px; color: var(--ink-2); font-size: 16px; }
.text-page h3 { color: var(--ink); font-size: 20px; margin: 22px 0 10px; }
.text-page h3:first-child { margin-top: 0; }
.text-page p { margin: 0 0 12px; }
.text-page ul { margin: 0 0 14px; padding-left: 20px; }
.text-page li { margin-bottom: 6px; }
.thanks { background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow); padding: 56px 40px; text-align: center; margin-top: 24px; }
.thanks h1 { font-size: 30px; margin: 0 0 12px; }
.thanks p { color: var(--ink-2); max-width: 560px; margin: 0 auto 24px; }
.thanks .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.thanks .ic { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; margin: 0 auto 16px; color: var(--accent-d); }
.thanks .ic svg.i { width: 30px; height: 30px; }
.fmail { margin-top: 10px; font-weight: 700; }

/* cookie bar */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 720px; margin: 0 auto; background: var(--surface);
  border-radius: var(--r-m); box-shadow: var(--shadow-h); padding: 14px 18px; display: flex; gap: 16px; align-items: center; font-size: 14px;
}
.cookie-bar span { flex: 1; }
.cookie-bar a { color: var(--accent-d); text-decoration: underline; }

/* ---------- admin ---------- */
body.adm { background: var(--bg); }
.adm-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.adm-side { background: var(--ink); color: #e9e2d8; padding: 22px 16px; display: flex; flex-direction: column; gap: 22px; }
.adm-logo img { height: 44px; width: auto; }
.adm-side nav { display: flex; flex-direction: column; gap: 4px; }
.adm-side nav a { padding: 10px 14px; border-radius: 12px; font-weight: 700; font-size: 14.5px; display: flex; justify-content: space-between; align-items: center; }
.adm-side nav a:hover { background: rgba(255, 255, 255, .06); }
.adm-side nav a.on { background: var(--accent); color: #fff; }
.adm-side nav a i { font-style: normal; background: var(--accent); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.adm-side nav a.on i { background: #fff; color: var(--accent-d); }
.adm-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: #a9a095; }
.adm-foot button { background: none; border: 0; color: #a9a095; font: inherit; cursor: pointer; padding: 0; }
.adm-main { padding: 28px 32px 60px; min-width: 0; }
.adm-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.adm-head h1 { font-size: 28px; margin: 0; font-weight: 900; margin-right: auto; }
.adm-head h1 span { color: var(--muted); font-size: 18px; font-weight: 700; }
.adm-filter { display: flex; gap: 10px; margin-bottom: 18px; align-items: center; flex-wrap: wrap; }
.adm-filter input { max-width: 360px; }
.adm-filter select { max-width: 300px; }
.adm-table-wrap { background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow); overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); padding: 14px 12px; border-bottom: 1px solid var(--line); }
.adm-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.adm-table tr:last-child td { border-bottom: 0; }
.adm-table tr.top td { background: #fbf9f6; }
.adm-table .r { text-align: right; }
.adm-table td.thumb { width: 64px; }
.adm-table td.thumb img { width: 52px; height: 52px; object-fit: contain; background: #fbf9f6; border-radius: 10px; mix-blend-mode: multiply; }
.adm-table a.strong:hover { color: var(--accent-d); }
.adm-table.small td { padding: 6px 8px; }
.indent { color: #c4bab0; margin-right: 8px; }
.tag { background: var(--accent-soft); color: var(--accent-d); border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 700; }
.st { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 12.5px; font-weight: 700; background: var(--bg); color: var(--muted); }
.st.ok { background: #e6f0e8; color: var(--ok); }
.st.new { background: var(--accent-soft); color: var(--accent-d); }
.adm-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
.adm-card { background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow); padding: 22px 24px; }
.adm-card h3 { margin: 18px 0 12px; font-size: 17px; }
.adm-card h3:first-child { margin-top: 0; }
.adm-card h3 small { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.adm-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.ph-item { background: var(--bg); border-radius: 12px; padding: 8px; font-size: 12.5px; }
.ph-item img { height: 90px; width: 100%; object-fit: contain; background: #fbf9f6; border-radius: 8px; mix-blend-mode: multiply; margin-bottom: 6px; }
.ph-item label { display: flex; gap: 6px; align-items: center; }
.spec-row { display: grid; grid-template-columns: 1fr 1fr 32px; gap: 8px; margin-bottom: 8px; }
.spec-row input { padding: 8px 10px; font-size: 14px; }
.spec-del { border: 0; background: var(--bg); border-radius: 10px; cursor: pointer; color: var(--muted); font-size: 18px; }
.snippet { background: var(--bg); border-radius: 12px; padding: 14px; margin-top: 8px; font-family: Arial, sans-serif; }
.snippet small { display: block; color: var(--muted); font-size: 11.5px; margin-bottom: 6px; }
.snippet b { display: block; color: #1a0dab; font-weight: 400; font-size: 17px; }
.snippet .u { display: block; color: var(--ok); font-size: 13px; margin: 2px 0 4px; word-break: break-all; }
.snippet p { margin: 0; color: var(--ink-2); font-size: 13px; }
.adm-save { position: sticky; bottom: 0; padding: 14px 0; margin-top: 10px; }
.adm-save .btn { min-width: 200px; }
.adm-del { margin-top: 26px; }
.adm-del button { background: none; border: 0; color: #c0392b; font: inherit; font-weight: 700; cursor: pointer; padding: 0; }
.adm-login { max-width: 400px; margin: 80px auto; }
.adm-login img { height: 48px; width: auto; margin-bottom: 18px; }
.adm-login h1 { font-size: 24px; margin: 0 0 18px; }
.adm-login .btn { width: 100%; margin-top: 6px; }
.lead-card { background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow); padding: 18px 22px; margin-bottom: 14px; border-left: 5px solid transparent; }
.lead-card.st-new { border-left-color: var(--accent); }
.lc-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.lc-head b { font-size: 16px; }
.lc-body { display: grid; grid-template-columns: 1fr 1.2fr 260px; gap: 20px; align-items: start; }
.lc-who div { font-size: 14px; padding: 2px 0; }
.lc-who span { color: var(--muted); display: inline-block; min-width: 92px; font-size: 13px; }
.lc-who a { color: var(--accent-d); font-weight: 700; }
.lc-comment { background: var(--bg); border-radius: 12px; padding: 10px 12px; margin: 8px 0 0; font-size: 14px; white-space: pre-wrap; }
.lc-form { display: flex; flex-direction: column; gap: 8px; }
.lc-form textarea { min-height: 60px; font-size: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .catmenu-pop { grid-template-columns: repeat(3, 1fr); }
  .tree { grid-template-columns: repeat(2, 1fr); }
  .p-top { grid-template-columns: 1fr 1fr; }
  .cart-line { grid-template-columns: 70px 1fr 90px 100px 34px; }
  .cl-price { display: none; }
  .lc-body { grid-template-columns: 1fr 1fr; }
  .lc-form { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .catmenu-pop { grid-template-columns: 1fr 1fr; padding: 18px; gap: 14px; max-height: 70vh; overflow: auto; }
  .menubar .bar { overflow: visible; }
  .catmenu { flex: 1; }
  .catmenu > summary { display: flex; justify-content: center; }
  .page-title h1 { font-size: 26px; }
  .cat-layout { grid-template-columns: 1fr; }
  .fwrap > summary {
    display: flex; align-items: center; gap: 8px; font-weight: 800; padding: 12px 0; cursor: pointer; list-style: none;
  }
  .fwrap > summary::-webkit-details-marker { display: none; }
  .fwrap > summary i { font-style: normal; background: var(--accent); color: #fff; border-radius: 999px; padding: 0 8px; font-size: 12px; }
  .filters { padding: 4px 18px 10px; }
  .grid.g3 { grid-template-columns: repeat(2, 1fr); }
  .toolbar { padding: 8px 8px 8px 14px; }
  .tree { grid-template-columns: 1fr; }
  .tree-item { grid-template-columns: 80px 1fr; }
  .tree-ph { height: 80px; }
  .tree-ph img { max-height: 70px; }
  .p-top { grid-template-columns: 1fr; gap: 16px; }
  .gallery { padding: 12px; }
  .gallery .main { height: 300px; }
  .gallery .main img { max-height: 270px; }
  .gallery .thumbs div { height: 64px; }
  .p-info { padding: 20px; }
  .p-info .head { flex-direction: column; gap: 10px; }
  .p-info h1 { font-size: 22px; }
  .buy { flex-wrap: wrap; gap: 12px; }
  .buy .price { font-size: 28px; }
  .buy .art { margin-left: 0; text-align: left; }
  .p-extra { flex-direction: column; }
  .badges { grid-template-columns: 1fr; }
  .tabs-box { padding: 6px 16px 22px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; }
  .tabs button { white-space: nowrap; }
  .specs-wrap, .info-grid { grid-template-columns: 1fr; gap: 20px; }
  .specs li .k { white-space: normal; }
  .lead-act { justify-content: flex-start; }
  .cart-wrap, .text-layout { grid-template-columns: 1fr; }
  .cart-list { padding: 6px 14px 16px; }
  .cart-line { grid-template-columns: 64px 1fr 34px; gap: 10px; }
  .cl-ph { height: 64px; }
  .cl-qty, .cl-sum { grid-column: 2; }
  .cl-qty { grid-row: 2; }
  .cl-sum { grid-row: 2; justify-self: end; }
  .cl-del { grid-column: 3; grid-row: 1; }
  .cart-sum { position: static; }
  .fgrid { grid-template-columns: 1fr; }
  .form-card, .text-page { padding: 20px; }
  .cookie-bar { flex-direction: column; align-items: stretch; }
  .adm-layout { grid-template-columns: 1fr; }
  .adm-side { padding: 12px; }
  .adm-side nav { flex-direction: row; flex-wrap: wrap; }
  .adm-foot { flex-direction: row; justify-content: space-between; }
  .adm-main { padding: 18px 14px 40px; }
  .adm-cols, .lc-body { grid-template-columns: 1fr; }
}

.flag.de { background: linear-gradient(#000 0 33%, #dd0000 33% 66%, #ffce00 66%); }
.flag.es { background: linear-gradient(#aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75%); }
.flag.br { background: radial-gradient(circle, #002776 0 26%, #ffdf00 27% 46%, #009c3b 47%); }
.flag.tr { background: radial-gradient(circle at 40% 50%, #fff 0 22%, #e30a17 23%); }
