/* CenTeC theme for the Telegram shop. Swap this folder to re-skin. */
/* ---- CenTeC design tokens ---- */
  :root {
    --precision-navy: #04265B; --deep-ink: #011F51;
    --signal-blue: #2AABEE; --steel-blue: #2E5A8C; --sky-blue: #229ED9;
    --alert-red: #A23B36;
    --ivory: #F9FAFB; --cloud-gray: #E7ECF3; --cool-gray: #9AA3B2; --slate: #5A6577; --white: #fff;
    --border-hairline: rgba(4,38,91,.12); --border-on-navy: rgba(255,255,255,.18);
    --shadow-sm: 0 2px 8px rgba(4,38,91,.08); --shadow-md: 0 8px 24px rgba(4,38,91,.10);
    --radius-sm: 6px; --radius-md: 10px; --radius-lg: 14px;
    --font-display: 'Oswald','Arial Narrow',sans-serif; --font-text: 'Jost','Century Gothic',sans-serif;
    --ease: cubic-bezier(.22,.61,.36,1);
    --header-bg: linear-gradient(150deg,#04265B 0%,#011F51 100%); --header-fg: #fff; --header-shadow: 0 8px 24px rgba(1,31,81,.25);
    --honeycomb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.07' stroke-width='1.4'%3E%3Cpath d='M28 0 L56 16 L56 50 L28 66 L0 50 L0 16 Z'/%3E%3Cpath d='M28 66 L56 82 L56 116 L28 132 L0 116 L0 82 Z'/%3E%3C/g%3E%3C/svg%3E");
  }
  * { box-sizing: border-box; }
  html, body { background: var(--ivory); }
  body { margin: 0; font-family: var(--font-text); font-weight: 300; color: var(--slate); padding-bottom: 96px; -webkit-font-smoothing: antialiased; }

  /* ---- Header: navy surface, lockup, honeycomb ---- */
  header { position: sticky; top: 0; z-index: 3; background: var(--header-bg); color: var(--header-fg); box-shadow: var(--header-shadow); }
  .hdr-top { position: relative; padding: 14px 16px 10px; display: flex; align-items: center; justify-content: space-between; background-image: var(--honeycomb); background-size: 56px 100px; }
  .hdr-top img { height: 44px; width: auto; display: block; }
  .hdr-top .eyebrow { font-family: var(--font-text); font-weight: 500; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: rgba(255,255,255,.68); text-align: right; line-height: 1.5; }
  .tabs { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 12px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; font-family: var(--font-display); font-weight: 500; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border-on-navy); background: transparent; color: rgba(255,255,255,.78); transition: background .22s var(--ease), color .22s var(--ease); }
  .tab.active { background: var(--white); color: var(--precision-navy); border-color: var(--white); }

  /* ---- Page title ---- */
  .page-title { padding: 18px 16px 6px; }
  .page-title h1 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: .02em; text-transform: uppercase; color: var(--precision-navy); line-height: 1.1; }
  .page-title p { margin: 4px 0 0; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--cool-gray); font-weight: 500; }

  /* ---- Product grid: white cards, hairline border ---- */
  .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 10px 16px 16px; }
  .card { background: var(--white); border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .22s var(--ease), transform .22s var(--ease); }
  .card:active { transform: translateY(1px); }
  .card .img { position: relative; background: linear-gradient(180deg,#fff 0%,#EEF3F9 55%,#E4ECF5 100%); }
  .card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
  .card .body { padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
  .name { font-family: var(--font-display); font-weight: 500; font-size: 14px; letter-spacing: .03em; text-transform: uppercase; color: var(--precision-navy); line-height: 1.15; }
  .desc { font-size: 12px; line-height: 1.5; color: var(--slate); flex: 1; }
  .price { font-family: var(--font-text); font-weight: 600; font-size: 15px; color: var(--precision-navy); }
  .badge { display: inline-flex; align-self: flex-start; font-family: var(--font-display); font-weight: 600; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; color: var(--alert-red); background: rgba(162,59,54,.10); }
  select { width: 100%; font-family: var(--font-text); font-size: 13px; padding: 7px 8px; border-radius: var(--radius-sm); border: 1px solid var(--border-hairline); background: var(--white); color: var(--precision-navy); }
  select:focus { outline: none; box-shadow: 0 0 0 3px rgba(42,171,238,.35); }
  button.add { font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; background: var(--precision-navy); color: var(--white); border: 1.5px solid transparent; border-radius: var(--radius-sm); padding: 10px 8px; box-shadow: var(--shadow-sm); transition: background .22s var(--ease); }
  button.add:active { background: var(--deep-ink); }
  button.add:disabled { opacity: .45; }
  .qty { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
  .qty span { font-family: var(--font-display); font-weight: 500; font-size: 15px; color: var(--precision-navy); }
  .qty button { width: 36px; height: 36px; border-radius: var(--radius-sm); border: 1.5px solid var(--precision-navy); background: transparent; color: var(--precision-navy); font-size: 20px; line-height: 1; }
  .qty button:active { background: var(--precision-navy); color: var(--white); }

.name-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
  .share { flex: 0 0 auto; width: 28px; height: 28px; margin: -4px -4px 0 0; border: 1px solid var(--border-hairline); border-radius: var(--radius-sm); background: transparent; color: var(--precision-navy); display: inline-flex; align-items: center; justify-content: center; opacity: .75; }
  .share:active { background: var(--precision-navy); color: #fff; opacity: 1; }
  .card.highlight { box-shadow: 0 0 0 3px rgba(42,171,238,.6), var(--shadow-md); }

  /* ---- Cart / checkout ---- */
  .cart { display: none; padding: 16px; }
  .cart.open { display: block; }
  .cart-box { background: var(--white); border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 14px; }
  .row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--cloud-gray); font-size: 14px; }
  .row span:last-child { font-weight: 500; color: var(--precision-navy); white-space: nowrap; }
  .total { border: 0; padding-top: 12px; font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; color: var(--precision-navy); }
  .section-label { margin: 20px 0 6px; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--cool-gray); font-weight: 500; }
  label { display: block; font-size: 12px; font-weight: 500; color: var(--slate); margin: 10px 0 4px; }
  input, textarea { width: 100%; font-family: var(--font-text); font-size: 15px; padding: 11px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border-hairline); background: var(--white); color: var(--precision-navy); }
  input:focus, textarea:focus { outline: none; border-color: var(--signal-blue); box-shadow: 0 0 0 3px rgba(42,171,238,.35); }
  .empty { grid-column: 1 / -1; text-align: center; padding: 40px 16px; color: var(--cool-gray); font-size: 14px; line-height: 1.7; }
  .empty a { color: var(--sky-blue); font-weight: 500; text-decoration: none; }

  /* ---- Cart button: Signal Blue, the Telegram accent ---- */
  .fab { position: fixed; bottom: 54px; right: 16px; z-index: 3; font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; background: var(--signal-blue); color: var(--white); border: 0; border-radius: 999px; padding: 13px 20px; box-shadow: 0 8px 24px rgba(1,31,81,.30); }
  .fab:active { transform: translateY(1px); }

  /* ---- Mandatory notice ---- */
  .ruo { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2; background: var(--ivory); border-top: 1px solid var(--border-hairline); padding: 9px 16px calc(9px + env(safe-area-inset-bottom)); text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--alert-red); white-space: nowrap; }

  .toast { position: fixed; left: 16px; right: 16px; bottom: 96px; z-index: 9; padding: 12px 14px; border-radius: var(--radius-md); background: var(--precision-navy); color: #fff; font-size: 14px; text-align: center; box-shadow: var(--shadow-md); opacity: 0; transform: translateY(8px); transition: opacity .22s var(--ease), transform .22s var(--ease); pointer-events: none; }
  .toast.show { opacity: 1; transform: none; }

  /* standalone product (opened from a shared link) */
  .grid.solo { grid-template-columns: 1fr; padding-top: 14px; }
  .grid.solo .card img { aspect-ratio: 1; }
  .grid.solo .name { font-size: 20px; }
  .grid.solo .desc { font-size: 14px; }
  .grid.solo .price { font-size: 20px; }
  .grid.solo button.add { padding: 14px; font-size: 14px; }
  .all-products { font-family: var(--font-display); font-weight: 500; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; background: transparent; color: var(--precision-navy); border: 1.5px solid var(--precision-navy); border-radius: var(--radius-sm); padding: 12px; }

  /* language switcher (header, right) */
  .hdr-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
  .lang-switch { display: flex; gap: 4px; }
  .lang { font-family: var(--font-display); font-weight: 500; font-size: 10px; letter-spacing: .08em; padding: 3px 7px; border-radius: 4px; border: 1px solid var(--border-on-navy); background: transparent; color: var(--header-fg); opacity: .7; }
  .lang.active { opacity: 1; background: #fff; color: var(--precision-navy); }

  .sizes .size { border-color: var(--border-hairline, rgba(128,128,128,.45)); }
  .sizes .size.on { background: var(--precision-navy); color: var(--white); border-color: transparent; }
