/* The website of a shop: light, calm, made for a phone first. */
:root {
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e7e5e2;
  --bg: #ffffff;
  --soft: #f6f4f1;
  /* Under the pictures: the colour of their own background, from the shop's settings
     (colors.css of the site); one colour, so the edges of a picture are not seen. */
  --pic-bg: #f5f5f5;
  --accent: #1f1f1f;
  --red: #b42318;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body.site { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.site-preview { background: #fff3c4; padding: 8px 16px; font-size: 14px; text-align: center; }
.site-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding: 14px 16px; border-bottom: 1px solid var(--line); max-width: 1200px; margin: 0 auto; }
.site-logo { font-size: 22px; font-weight: 800; text-decoration: none; letter-spacing: 0.01em; }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.cart-count { background: var(--accent); color: #fff; border-radius: 10px; padding: 0 7px; font-size: 13px; }
.site-main { max-width: 1200px; margin: 0 auto; padding: 16px; min-height: 60vh; }
.site-foot { max-width: 1200px; margin: 32px auto 0; padding: 20px 16px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
h1 { font-size: 26px; margin: 8px 0 16px; }
h2 { font-size: 20px; margin: 24px 0 12px; }
h2.small { font-size: 16px; margin: 16px 0 8px; }
.about { font-size: 17px; color: var(--muted); max-width: 720px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 20px; }
.filters select, .filters button { font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.filters button { background: var(--accent); color: #fff; border-color: var(--accent); cursor: pointer; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px 14px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
.card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.card .pic, .collage { aspect-ratio: 3 / 4; background: var(--pic-bg); border-radius: 12px; overflow: hidden; display: block; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; }
.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage-big { max-width: 560px; }
.card-title { font-weight: 600; }
.card-sizes { color: var(--muted); font-size: 14px; }
.price { font-weight: 800; }
.old { color: var(--muted); font-weight: 400; }
.pages { display: flex; gap: 16px; justify-content: center; margin: 24px 0; }
.empty { color: var(--muted); padding: 24px 0; }
.product { display: grid; gap: 24px; }
@media (min-width: 860px) { .product { grid-template-columns: 1.1fr 1fr; } }
.gallery { display: grid; gap: 10px; }
.gallery img { border-radius: 12px; background: var(--pic-bg); }
.gallery .pic { aspect-ratio: 3 / 4; border-radius: 12px; background: var(--pic-bg); }
.crumbs { color: var(--muted); font-size: 14px; margin: 0; }
.offers { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.offers li { display: grid; grid-template-columns: 90px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.offers .size { font-weight: 800; font-size: 18px; }
.defect { color: var(--red); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.note { color: var(--muted); font-size: 14px; }
.btn { display: inline-block; font: inherit; font-weight: 700; padding: 10px 16px; border-radius: 10px; border: 0; background: var(--accent); color: #fff; text-decoration: none; cursor: pointer; }
.btn:disabled { opacity: 0.4; cursor: default; }
.btn.added { background: #137a36; }
.btn-big { padding: 14px 22px; font-size: 17px; }
.btn-danger { background: var(--red); }
.cart-lines { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cart-lines li { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.cart-lines img { width: 64px; height: 84px; object-fit: cover; border-radius: 8px; background: var(--pic-bg); }
.cart-lines button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 14px; text-decoration: underline; }
.cart-total { font-size: 20px; font-weight: 800; }
.request, .login { display: flex; flex-direction: column; gap: 12px; max-width: 520px; }
.request label, .login label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.request input, .request textarea, .login input { font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font-weight: 400; }
.request fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
label.check { flex-direction: row !important; align-items: flex-start; gap: 8px !important; font-weight: 400 !important; }
.error { color: var(--red); font-weight: 600; }
.wait .call { font-size: 30px; font-weight: 800; }
.wait .call a { text-decoration: none; }
.my-requests { padding-left: 18px; }
.forget { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); }
.legal { max-width: 760px; }
.legal .note { background: var(--soft); padding: 10px 14px; border-radius: 10px; }
.bundle-list li { margin: 8px 0; }
.bundles-strip { margin-bottom: 28px; }

/* «К этой вещи подходят» (decided 19.10.2026): the other items of the looks. */
.matches { margin-top: 32px; }
.matches h2 { margin-bottom: 12px; }

/* The colors of one model (update 45): one tile with dots, or dots on the product page. */
.card-model .card-link { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.sw { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.18); display: inline-block; overflow: hidden; background: var(--pic-bg, #eee); flex-shrink: 0; }
.sw img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sw.on { outline: 2px solid currentColor; outline-offset: 2px; }
.swatches-big { gap: 10px; margin: 4px 0 16px; }
.swatches-big .sw { width: 32px; height: 32px; }
.color-now { margin: 0; }
.sw-black { background: #1d1d1f; }
.sw-white { background: #fff; }
.sw-ivory { background: #f3ecdc; }
.sw-beige { background: #d8c3a5; }
.sw-grey { background: #9a9a9a; }
.sw-graphite { background: #4a4d52; }
.sw-silver { background: linear-gradient(135deg, #e6e6e6, #a9a9a9); }
.sw-gold { background: linear-gradient(135deg, #f3dc8b, #c9a13b); }
.sw-brown { background: #6b4630; }
.sw-red { background: #c8202f; }
.sw-burgundy { background: #6d1a2c; }
.sw-pink { background: #f2a7bd; }
.sw-powder { background: #ecc9c4; }
.sw-fuchsia { background: #c2185b; }
.sw-coral { background: #f08070; }
.sw-terracotta { background: #b75a3c; }
.sw-orange { background: #f28c28; }
.sw-yellow { background: #f5d33d; }
.sw-mustard { background: #c9a227; }
.sw-green { background: #2e8b57; }
.sw-emerald { background: #00785a; }
.sw-olive { background: #7a7a3a; }
.sw-mint { background: #a8e6cf; }
.sw-teal { background: #2aa5a0; }
.sw-lightblue { background: #9fcbea; }
.sw-blue { background: #2457c5; }
.sw-navy { background: #1f2a4d; }
.sw-lilac { background: #c3a6d8; }
.sw-purple { background: #6a3d9a; }
.sw-multi { background: conic-gradient(#c8202f, #f5d33d, #2e8b57, #2457c5, #6a3d9a, #c8202f); }

/* The customer's card in «Мой кабинет» (update 57) */
.my-card { margin: 16px 0; padding: 16px; border: 1px solid #e5e7eb; border-radius: 12px; text-align: center; }
.my-card-qr { width: 200px; max-width: 70vw; margin: 0 auto; padding: 8px; background: #ffffff; }
.my-card-qr svg { display: block; width: 100%; height: auto; }
.my-card-code { margin: 4px 0 8px; font-family: ui-monospace, Consolas, monospace; letter-spacing: 1px; }
.my-card-main { font-size: 20px; }

/* The card in the colour of the status (update 59) */
.st-bronze { --st-a: #7a4a24; --st-b: #c98b4f; --st-text: #fff8ef; }
.st-silver { --st-a: #8e959d; --st-b: #e3e6ea; --st-text: #1d2228; }
.st-gold { --st-a: #a77b16; --st-b: #f1d27a; --st-text: #2a1f05; }
.st-platinum { --st-a: #3d4450; --st-b: #b9c3cf; --st-text: #ffffff; }
.st-plain { --st-a: #2b2f38; --st-b: #59606d; --st-text: #ffffff; }
.shop-card {
  position: relative; max-width: 380px; min-height: 220px; margin: 0 auto; padding: 18px 18px 16px;
  border-radius: 20px; text-align: left; display: flex; flex-direction: column;
  background: linear-gradient(135deg, var(--st-a), var(--st-b) 55%, var(--st-a)); color: var(--st-text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.shop-card-top { display: flex; justify-content: space-between; gap: 8px; font-weight: 800; }
.shop-card-status { text-transform: uppercase; letter-spacing: 1.5px; font-size: 14px; }
.shop-card-main { margin-top: 14px; font-size: 44px; font-weight: 900; line-height: 1; }
.shop-card-main small { display: block; margin-top: 4px; font-size: 15px; font-weight: 600; opacity: 0.85; }
.shop-card-name { margin-top: auto; padding-right: 96px; font-weight: 700; }
.shop-card-next { padding-right: 96px; font-size: 13px; opacity: 0.85; }
.shop-card-qr { position: absolute; right: 14px; bottom: 14px; width: 84px; padding: 4px; background: #ffffff; border-radius: 8px; }
.shop-card-qr svg { display: block; width: 100%; height: auto; }

/* The app on the phone (update 60): the card page it opens on. */
.btn-light { background: var(--soft); color: var(--text); border: 1px solid var(--line); }
.shop-card-wide .shop-card-name, .shop-card-wide .shop-card-next { padding-right: 0; }
.app-card { max-width: 420px; margin: 4px auto 0; text-align: center; }
.app-qr { width: 230px; max-width: 72vw; margin: 18px auto 0; padding: 10px; background: #ffffff; border: 1px solid var(--line); border-radius: 14px; }
.app-qr svg { display: block; width: 100%; height: auto; }
.app-code { margin: 8px 0 0; font-family: ui-monospace, Consolas, monospace; letter-spacing: 2px; font-size: 17px; }
.app-hint { margin: 4px 0 0; color: var(--muted); }
.app-offline { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff3c4; font-weight: 600; }
.app-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 420px; margin: 20px auto 0; }
.app-buttons .btn { flex: 1 1 160px; text-align: center; }
.app-join { max-width: 420px; margin: 8px auto 0; text-align: center; }
.app-join .btn { display: block; margin: 16px 0 8px; }
.app-offer { font-size: 20px; font-weight: 800; }
.app-install { max-width: 420px; margin: 28px auto 0; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 14px; text-align: center; }
.app-install .btn { margin-top: 4px; }
.my-ads { margin: 16px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.my-ads p { margin: 0; }
