/* Dude Bikes — the order request, the header at phone width, product detail actions, the home "rent + stores"
   cards, the 404 page. Tokens from css/base.css. */

/* skip link */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--ink); padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 10px; }

/* header: the six language pills live in the menu below 700px, so logo + three buttons always fit 390px */
.nav-actions .lang-switch { display: none; }
@media (min-width: 700px) { .nav-actions .lang-switch { display: flex; } }
@media (max-width: 479px) {
  .header-inner { gap: 8px; min-height: 60px; }
  .logo img { height: 40px; max-width: 150px; }
  .nav-actions { gap: 6px; }
  .icon-btn { width: 42px; height: 42px; }
}
.mobile-nav .lang-switch { display: flex; flex-wrap: wrap; max-width: 100%; }
.cart-btn { position: relative; }
.cart-btn svg { width: 20px; height: 20px; }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: .72rem; font-weight: 800; line-height: 20px; text-align: center; border: 2px solid #fff; }
.cart-count[hidden] { display: none; }

/* page titles that became h1 on collection and rent pages keep the section size */
.section-head h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin: 0 0 .3em; }

/* product detail */
.detail-title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 4px; }
.detail-actions .btn { flex: 0 1 auto; }
.detail-h2 { font-size: 1.1rem; margin-top: 26px; }
.detail-desc { margin-top: 20px; white-space: pre-line; }
.detail-note { margin-top: 20px; font-size: .88rem; }
.detail-media img { width: 100%; height: auto; }

/* "added" toast */
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; box-shadow: var(--shadow-2); z-index: 70; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; display: flex; gap: 12px; align-items: center; max-width: calc(100vw - 32px); flex-wrap: wrap; justify-content: center; font-size: .92rem; }
.toast a { color: var(--accent); font-weight: 700; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* search hits */
.search-hit { padding: 10px 14px; flex-direction: row; align-items: center; gap: 12px; }
.search-hit img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; }

/* the order request page */
.order-notice { background: var(--surface-2); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 16px 18px; margin: 18px 0 28px; max-width: 760px; }
.order-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .order-grid { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.order-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.order-line { display: grid; grid-template-columns: 72px 1fr auto; grid-template-areas: "img what qty" "img what rm"; gap: 6px 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.order-img { grid-area: img; }
.order-img img { width: 72px; height: 72px; object-fit: contain; background: var(--surface-2); border-radius: 10px; }
.order-what { grid-area: what; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.order-what b { overflow-wrap: anywhere; }
.order-price { font-weight: 700; }
.order-qty { grid-area: qty; display: inline-flex; align-items: center; gap: 8px; justify-self: end; }
.qty-btn { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 1.1rem; cursor: pointer; }
.qty-btn:disabled { opacity: .4; cursor: default; }
.order-remove { grid-area: rm; justify-self: end; background: none; border: none; color: var(--mut); text-decoration: underline; cursor: pointer; font-size: .85rem; padding: 4px; }
.order-total { margin: 16px 2px 0; font-size: 1.05rem; }
.order-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 12px; }
.order-form h2 { font-size: 1.2rem; margin: 0; }
.order-form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.order-form input, .order-form select, .order-form textarea { font: inherit; font-weight: 400; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; width: 100%; }
.order-form textarea { min-height: 90px; resize: vertical; }
.order-form input:focus, .order-form select:focus, .order-form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255,205,0,.35); }
.order-form [aria-invalid="true"] { border-color: var(--sale); }
.form-hint { font-size: .84rem; margin: -4px 0 0; }
.form-err { color: var(--sale); font-weight: 600; margin: 0; }
.order-send { width: 100%; justify-content: center; }
.order-mail { background: var(--surface-2); border-radius: 10px; padding: 12px 14px; }
.order-mail p { margin: 6px 0 10px; }
.order-done { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 24px; max-width: 640px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* home: rent + stores */
.duo { display: grid; gap: 18px; }
@media (min-width: 760px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo-card { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.duo-card h2 { color: #fff; font-size: clamp(1.3rem, 2.6vw, 1.8rem); margin: 0; }
.duo-card p { color: #e8e8e1; margin: 0 0 8px; }
.duo-card.alt { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.duo-card.alt h2 { color: var(--ink); }
.duo-card.alt p { color: var(--mut); }

/* rent: ask row */
.rent-ask { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* 404 */
.nf { text-align: center; padding: 80px 0; }
.nf .big { font-size: 3rem; }

/* footer: the grid's padding shorthand removed .wrap's side gutters — text ran to the screen edge at 390px */
.wrap.footer-grid, .wrap.footer-bottom { padding-left: 20px; padding-right: 20px; }
.footer-contact { overflow-wrap: anywhere; }

/* the sign is written by js/app.js money() where each language puts it (€6,100 · 6 100 €) — not by CSS */
.price-eur::before { content: none; }

/* desktop header: the Cyrillic nav labels are long — tighten the links so logo + nav + buttons fit from 980px up.
   980–1239px: the language pills live in the menu (the menu button stays and opens it); from 1240px they sit in
   the header and the menu button, which would open nothing there, is hidden */
@media (min-width: 980px) {
  .header-inner { gap: 10px; }
  .main-nav { gap: 0; }
  .main-nav a { padding: 10px 9px; font-size: .88rem; white-space: nowrap; }
  .logo img { height: 46px; }
}
@media (min-width: 980px) and (max-width: 1239px) {
  .nav-actions .lang-switch { display: none; }
  .mobile-nav.open { display: block !important; }
}
@media (min-width: 1240px) {
  [data-nav-toggle] { display: none; }
  .main-nav a { padding: 10px 12px; font-size: .92rem; }
}
