  :root {
    --bg-deep: #050505;
    --bg-elev: #0e0d0c;
    --bg-card: #14110f;
    --border: #2a2520;
    --border-glow: #4a3525;
    --text: #ece5d8;
    --text-muted: #807468;
    --accent: #ff4500;
    --accent-hot: #ff7a2e;
    --accent-deep: #a02410;
    --lava: #ff3300;
    --steel: #6b6660;
    --steel-light: #a8a39c;
    --gold: #c9963a;
    --font-display: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
  }

  :root {
    --header-h: 88px;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  html {
    scroll-behavior: smooth;
  }

  html, body {
    background: var(--bg-deep);
    color: var(--text);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
  }

  /* Padding górny żeby pierwsza sekcja nie chowała się pod fixed headerem.
     Plus flex column + margin-top:auto na footerze → stopka zawsze na dole, niezależnie od ilości treści. */
  body {
    padding-top: var(--header-h);
    display: flex;
    flex-direction: column;
  }
  /* Zapobiegaj zwijaniu dzieci body w trybie flex (inaczej gridy w środku tracą szerokość) */
  body > * { flex-shrink: 0; }
  body > footer { margin-top: auto; }

  /* Account for fixed header when scrolling to anchors */
  section[id], .builder[id], .gallery-section[id], footer[id] {
    scroll-margin-top: calc(var(--header-h) + 10px);
  }

  /* Atmospheric background — embers and smoke */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
      radial-gradient(ellipse 70% 50% at 10% 0%, rgba(255, 69, 0, 0.10), transparent 60%),
      radial-gradient(ellipse 60% 50% at 90% 100%, rgba(160, 36, 16, 0.12), transparent 60%),
      radial-gradient(ellipse 80% 60% at 50% 50%, rgba(20, 17, 15, 0.5), transparent),
      var(--bg-deep);
    z-index: -2;
  }

  body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.6 0 0 0 0 0.3 0 0 0 0 0.1 0 0 0 0.15 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
    mix-blend-mode: overlay;
  }

  /* HEADER */
  header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(8, 5, 3, 0.92);
    border-bottom: 1px solid var(--border-glow);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  }
  .nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
  }
  .logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(255, 69, 0, 0.4));
  }
  .logo-text { display: flex; }
  .logo-text span:nth-child(1) { color: var(--steel-light); }
  .logo-text span:nth-child(2) { color: var(--text); }
  .logo-text span:nth-child(3) { color: var(--accent); }
  nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
  }
  nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.2s;
  }
  nav a:hover { color: var(--accent); }

  /* Hamburger menu — SVG ikona, widoczna na mobile */
  .nav-toggle {
    display: none;
    background: rgba(255, 69, 0, 0.1);
    border: 1px solid var(--border-glow);
    border-radius: 8px;
    color: var(--accent);
    width: 44px;
    height: 44px;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    appearance: none;
    transition: background 0.15s;
  }
  .nav-toggle svg { display: block; pointer-events: none; }
  .nav-toggle:hover { background: rgba(255, 69, 0, 0.18); }

  /* HERO */
  .hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 2rem 3rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
  }
  .hero-content h1 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
  }
  .hero-content h1 .flame {
    background: linear-gradient(135deg, var(--accent-hot) 0%, var(--accent) 50%, var(--accent-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    position: relative;
  }
  .hero-content h1 .flame::after {
    content: '';
    position: absolute;
    inset: -4px -8px;
    background: radial-gradient(ellipse, rgba(255, 107, 26, 0.25), transparent 70%);
    z-index: -1;
    filter: blur(20px);
  }
  .hero-content p {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 520px;
    margin-bottom: 2rem;
  }
  .hero-stats {
    display: flex;
    gap: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
  }
  .stat-num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
  }
  .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
  }

  .hero-emblem {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .emblem-glow {
    position: absolute;
    inset: 15%;
    background: radial-gradient(circle, rgba(255, 69, 0, 0.35) 0%, rgba(255, 51, 0, 0.15) 35%, transparent 70%);
    filter: blur(40px);
    animation: ember-pulse 4s ease-in-out infinite;
    z-index: 0;
  }
  @keyframes ember-pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
  }
  .hero-logo {
    position: relative;
    width: 100%;
    max-width: 450px;
    z-index: 1;
    filter: drop-shadow(0 0 50px rgba(255, 69, 0, 0.4)) drop-shadow(0 0 100px rgba(255, 51, 0, 0.2));
    animation: float 6s ease-in-out infinite;
  }
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
  }

  /* MAIN APP — quote builder */
  .builder {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
  }
  .section-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  .section-label::before, .section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
  }
  .section-label span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--gold);
  }
  .builder-title {
    text-align: center;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.5rem;
  }
  .builder-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
  }

  .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .panel {
    background: linear-gradient(180deg, var(--bg-card), var(--bg-elev));
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
  }
  .panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
  }
  .panel h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  .panel h3 .num {
    width: 28px;
    height: 28px;
    background: var(--accent);
    color: var(--bg-deep);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-body);
  }

  /* Drop zone */
  .dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border-glow);
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.2);
    min-height: 180px;
  }
  .dropzone:hover, .dropzone.drag-over {
    border-color: var(--accent);
    background: rgba(255, 107, 26, 0.05);
    box-shadow: inset 0 0 30px rgba(255, 107, 26, 0.1);
  }
  .dropzone-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: var(--accent);
    opacity: 0.7;
    flex-shrink: 0;
  }
  .dropzone-text {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  .dropzone-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
  }
  .dropzone input { display: none; }

  .file-info {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 107, 26, 0.08);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    font-size: 0.9rem;
  }
  .file-info.active { display: block; }
  .file-info .name {
    font-weight: 500;
    color: var(--text);
    word-break: break-all;
  }
  .file-info .size {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
  }

  /* Viewer */
  #viewer {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(180deg, #e8e9ec 0%, #c9ccd1 100%);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
  }
  #viewer canvas { display: block; }
  .viewer-toolbar {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    z-index: 2;
    pointer-events: none;
    font-size: 0.78rem;
    color: #2a2a2a;
  }
  .viewer-info {
    background: rgba(255,255,255,0.85);
    padding: 4px 10px;
    border-radius: 6px;
    pointer-events: auto;
    backdrop-filter: blur(6px);
    font-weight: 500;
  }
  .viewer-controls {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    z-index: 2;
  }
  .viewer-btn {
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(0,0,0,0.1);
    color: #333;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    font-family: var(--font-body);
    backdrop-filter: blur(6px);
    transition: background 0.15s;
  }
  .viewer-btn:hover { background: white; }
  .viewer-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 0.9rem;
    pointer-events: none;
    text-align: center;
    padding: 2rem;
  }
  .viewer-placeholder svg {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
    opacity: 0.4;
  }
  .viewer-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    font-size: 0.85rem;
  }
  .viewer-stat {
    background: rgba(0,0,0,0.3);
    padding: 0.75rem;
    border-radius: 6px;
    text-align: center;
  }
  .viewer-stat .label {
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
  }
  .viewer-stat .value {
    color: var(--accent);
    font-weight: 700;
    font-size: 1rem;
  }

  /* Editable dimensions */
  .dim-edit {
    margin-top: 1rem;
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.85rem 1rem;
  }
  .dim-edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.65rem;
  }
  .dim-edit-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
  }
  .dim-edit-actions {
    display: flex;
    gap: 0.4rem;
    align-items: center;
  }
  .lock-toggle {
    background: rgba(255, 69, 0, 0.08);
    border: 1px solid var(--border-glow);
    color: var(--text-muted);
    padding: 0.3rem 0.65rem;
    border-radius: 5px;
    font-size: 0.72rem;
    cursor: pointer;
    font-family: var(--font-body);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.15s;
  }
  .lock-toggle:hover { color: var(--text); border-color: var(--accent); }
  .lock-toggle.active {
    background: rgba(255, 69, 0, 0.15);
    border-color: var(--accent);
    color: var(--accent);
  }
  .lock-toggle svg { width: 12px; height: 12px; }
  .dim-reset {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.3rem 0.65rem;
    border-radius: 5px;
    font-size: 0.72rem;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.15s;
  }
  .dim-reset:hover { color: var(--accent); border-color: var(--accent); }
  .dim-reset:disabled { opacity: 0.4; cursor: not-allowed; }

  .dim-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 0.5rem;
    align-items: center;
  }
  .dim-field {
    position: relative;
  }
  .dim-field label {
    position: absolute;
    top: 6px;
    left: 8px;
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.08em;
    pointer-events: none;
  }
  .dim-field input {
    width: 100%;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 1.1rem 0.5rem 0.4rem 0.5rem;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-align: center;
    transition: border-color 0.15s;
  }
  .dim-field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(255, 69, 0, 0.15);
  }
  .dim-field input.changed {
    border-color: var(--accent);
    color: var(--accent);
  }
  .dim-unit {
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 0 0.3rem;
  }
  .dim-scale-info {
    margin-top: 0.5rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
  }
  .dim-scale-info .scale-val {
    color: var(--accent);
    font-weight: 600;
  }

  /* Form fields */
  .field { margin-bottom: 1.5rem; }
  .field label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
  }
  .field select, .field input[type="number"], .field input[type="text"], .field input[type="email"], .field textarea {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.2s;
  }
  .field select:focus, .field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 26, 0.15);
  }
  .field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff6b1a'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
  }

  /* Material chips */
  .materials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }
  .material-chip {
    padding: 0.85rem 0.7rem;
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
  }
  .material-chip:hover { border-color: var(--border-glow); }
  .material-chip.selected {
    border-color: var(--accent);
    background: rgba(255, 107, 26, 0.08);
  }
  .material-chip.selected::after {
    content: '✓';
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    color: var(--accent);
    font-weight: 700;
  }
  .material-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
  }
  .material-price {
    font-size: 0.8rem;
    color: var(--text-muted);
  }
  .material-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(255,255,255,0.1);
  }

  /* Quote summary */
  .quote-box {
    background: linear-gradient(135deg, rgba(255, 107, 26, 0.08), rgba(194, 65, 12, 0.04));
    border: 1px solid var(--border-glow);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
  }
  .quote-box::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 26, 0.08), transparent 50%);
    animation: pulse 4s ease-in-out infinite;
  }
  @keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
  }
  .quote-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    position: relative;
  }
  .quote-row.total {
    margin-top: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-glow);
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text);
    font-weight: 700;
  }
  .quote-row.total .value {
    color: var(--accent);
    font-size: 1.8rem;
  }

  /* Slider */
  .slider-row {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .slider-wrap {
    flex: 1;
    position: relative;
    padding: 0.5rem 0;
  }
  input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent) var(--fill, 25%), rgba(255,255,255,0.08) var(--fill, 25%), rgba(255,255,255,0.08) 100%);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
  }
  input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--accent-hot), var(--accent-deep));
    border: 2px solid var(--bg-deep);
    box-shadow: 0 0 12px rgba(255, 69, 0, 0.6);
    cursor: pointer;
  }
  input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--accent-hot), var(--accent-deep));
    border: 2px solid var(--bg-deep);
    box-shadow: 0 0 12px rgba(255, 69, 0, 0.6);
    cursor: pointer;
  }
  .slider-value {
    min-width: 56px;
    text-align: center;
    background: rgba(255, 69, 0, 0.1);
    border: 1px solid var(--border-glow);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    font-weight: 700;
    color: var(--accent);
    font-size: 0.95rem;
  }

  /* Color picker */
  .colors {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
  }
  .color-chip {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    border: 2px solid rgba(255,255,255,0.1);
    transition: transform 0.15s, border-color 0.15s;
  }
  .color-chip:hover { transform: scale(1.1); }
  .color-chip.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--bg-card), 0 0 0 4px var(--accent);
  }

  /* Tooltip with color name */
  .color-chip::after {
    content: attr(data-name);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--bg-deep);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.4rem 0.65rem;
    border-radius: 6px;
    border: 1px solid var(--border-glow);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 10;
    box-shadow: 0 4px 14px rgba(0,0,0,0.5), 0 0 12px rgba(255, 69, 0, 0.15);
  }
  .color-chip::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    border: 5px solid transparent;
    border-top-color: var(--border-glow);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 10;
  }
  .color-chip:hover::after,
  .color-chip:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  .color-chip[data-color="white"]   { background: linear-gradient(135deg, #fff, #ddd); }
  .color-chip[data-color="black"]   { background: linear-gradient(135deg, #2a2a2a, #000); }
  .color-chip[data-color="orange"]  { background: linear-gradient(135deg, #ff8c1a, #d54a00); }
  .color-chip[data-color="red"]     { background: linear-gradient(135deg, #e84a3a, #a01818); }
  .color-chip[data-color="green"]   { background: linear-gradient(135deg, #3dd87a, #1a7a3a); }
  .color-chip[data-color="blue"]    { background: linear-gradient(135deg, #3a9aff, #1a5ad0); }
  .color-chip[data-color="yellow"]  { background: linear-gradient(135deg, #ffd700, #c9963a); }
  .color-chip[data-color="grey"]    { background: linear-gradient(135deg, #b0b0b0, #6a6a6a); }

  /* Quality chips */
  .quality-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
  }
  .quality-chip {
    text-align: center;
    padding: 0.65rem 0.3rem;
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 0.85rem;
  }
  .quality-chip:hover { border-color: var(--border-glow); }
  .quality-chip.selected {
    border-color: var(--accent);
    background: rgba(255, 69, 0, 0.1);
    color: var(--accent);
    font-weight: 600;
  }
  .quality-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
    font-weight: 400;
  }
  .quality-chip.selected .quality-label { color: var(--accent); opacity: 0.7; }

  /* Min order notice */
  .min-order-notice {
    margin-top: 0.75rem;
    padding: 0.65rem 0.85rem;
    background: rgba(201, 150, 58, 0.08);
    border-left: 3px solid var(--gold);
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .min-order-notice strong { color: var(--gold); }
  .quote-row.warning {
    color: #ff9248;
    font-size: 0.85rem;
    padding-top: 0.5rem;
  }

  /* Oversize warning */
  .oversize-warning {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    background:
      linear-gradient(135deg, rgba(184, 51, 45, 0.18), rgba(160, 36, 16, 0.10)),
      var(--bg-card);
    border: 1px solid #b8332d;
    border-left: 4px solid #ff4030;
    border-radius: 8px;
    display: none;
    align-items: flex-start;
    gap: 0.85rem;
    box-shadow: 0 0 24px rgba(255, 64, 48, 0.12);
    animation: oversizePulse 2.5s ease-in-out infinite;
  }
  .oversize-warning.active { display: flex; }
  @keyframes oversizePulse {
    0%, 100% { box-shadow: 0 0 24px rgba(255, 64, 48, 0.12); }
    50%      { box-shadow: 0 0 32px rgba(255, 64, 48, 0.25); }
  }
  .oversize-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ff5040, #b8332d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 0 14px rgba(255, 64, 48, 0.5);
  }
  .oversize-body { flex: 1; font-size: 0.85rem; line-height: 1.5; }
  .oversize-body strong {
    display: block;
    color: #ff7060;
    font-family: var(--font-display);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    letter-spacing: 0.02em;
  }
  .oversize-body .oversize-dims {
    color: #ff9080;
    font-weight: 600;
  }
  .oversize-body a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed var(--accent);
  }
  .oversize-body a:hover { color: var(--accent-hot); border-bottom-style: solid; }

  /* Editable dim fields turn red when over-limit */
  .dim-field input.oversize {
    border-color: #ff4030;
    color: #ff7060;
    background: rgba(184, 51, 45, 0.12);
  }

  /* Info grid (multicolor + delivery time) */
  .info-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
  @media (max-width: 900px) {
    .info-grid { grid-template-columns: 1fr; }
  }

  /* Multicolor notice */
  .multicolor-notice {
    margin-top: 0;
    padding: 1.5rem 1.75rem;
    background:
      linear-gradient(135deg, rgba(255, 69, 0, 0.06), rgba(201, 150, 58, 0.04)),
      var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
  }
  .multicolor-notice::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ff4500, #c8332a, #2a6adf, #3aaa55, #e8c020, #ff4500);
    background-size: 100% 300%;
    animation: rainbowFlow 8s linear infinite;
  }
  @keyframes rainbowFlow {
    0% { background-position: 0 0; }
    100% { background-position: 0 300%; }
  }
  .multicolor-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: conic-gradient(from 0deg, #ff4500, #c8332a, #2a6adf, #3aaa55, #e8c020, #ff4500);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 0 25px rgba(255, 107, 26, 0.25);
  }
  .multicolor-text {
    flex: 1;
    min-width: 260px;
  }
  .multicolor-text h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
    color: var(--text);
  }
  .multicolor-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
  }
  .multicolor-text a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed var(--accent);
    transition: color 0.2s;
  }
  .multicolor-text a:hover {
    color: var(--accent-hot);
    border-bottom-style: solid;
  }

  /* Discounts info */
  .discounts-info {
    margin-top: 0.75rem;
    padding: 0.85rem 1rem;
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--border);
    border-radius: 8px;
  }
  .discounts-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 0.6rem;
    font-weight: 600;
  }
  .discounts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
    margin-bottom: 0.65rem;
  }
  .discount-chip {
    background: rgba(255, 69, 0, 0.06);
    border: 1px solid rgba(255, 69, 0, 0.2);
    border-radius: 5px;
    padding: 0.35rem 0.55rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    transition: all 0.2s;
  }
  .discount-chip strong {
    color: var(--accent);
    margin-left: 0.3rem;
    font-weight: 700;
  }
  .discount-chip.active {
    background: rgba(95, 216, 122, 0.12);
    border-color: rgba(95, 216, 122, 0.4);
    color: var(--text);
    box-shadow: 0 0 12px rgba(95, 216, 122, 0.15);
  }
  .discount-chip.active strong { color: #5fd87a; }
  .discounts-extra {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding-top: 0.55rem;
    border-top: 1px dashed var(--border);
    line-height: 1.5;
  }
  .discounts-extra a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dashed var(--accent);
  }
  .discounts-extra a:hover { color: var(--accent-hot); }

  /* Shipping info */
  .shipping-info {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.85rem;
    padding: 0.6rem;
    background: rgba(95, 216, 122, 0.06);
    border-radius: 6px;
    border: 1px solid rgba(95, 216, 122, 0.15);
  }
  .shipping-info strong { color: #5fd87a; }

  /* Gallery section */
  .gallery-section {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
    scroll-margin-top: 80px;
  }
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
  }
  .gallery-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
  }
  .gallery-item:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
    box-shadow: 0 12px 28px rgba(255, 69, 0, 0.12);
  }
  .gallery-placeholder {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
  }
  .gallery-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, transparent 30%, rgba(0,0,0,0.4));
  }
  .gallery-placeholder span {
    position: relative;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
  }
  .gallery-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
  }
  .gallery-caption {
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    border-top: 1px solid var(--border);
  }
  .gallery-cta {
    text-align: center;
    margin-top: 2.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
  }
  .gallery-cta a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed var(--accent);
  }
  .gallery-cta a:hover { color: var(--accent-hot); border-bottom-style: solid; }

  /* Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.75rem;
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
  }
  .btn-primary {
    background: linear-gradient(135deg, var(--accent-hot), var(--accent-deep));
    color: white;
    box-shadow: 0 4px 20px rgba(255, 107, 26, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
  }
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(255, 107, 26, 0.45), inset 0 1px 0 rgba(255,255,255,0.25);
  }
  .btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
  }
  .btn-full { width: 100%; margin-top: 1rem; }

  /* Footer */
  footer {
    margin-top: 6rem;
    padding: 3rem 2rem 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
  }
  footer .logo { justify-content: center; margin-bottom: 1rem; }

  /* Responsive */
  @media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; padding: 3rem 1.5rem; }
    .hero-emblem { order: -1; max-width: 280px; margin: 0 auto; }
    .grid { grid-template-columns: 1fr; }
    .builder { padding: 0 1.5rem; }

    /* Pokazaj hamburger, ukryj listę domyślnie */
    .nav-toggle { display: inline-flex !important; }
    .nav { position: relative; }

    nav {
      position: absolute;
      top: calc(100% + 1px);
      right: 0;
      left: 0;
      background: rgba(8, 5, 3, 0.98);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--border-glow);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
      transform: translateY(-10px);
      opacity: 0;
      pointer-events: none;
      transition: all 0.2s ease;
    }
    nav.open {
      transform: translateY(0);
      opacity: 1;
      pointer-events: auto;
    }
    nav ul {
      flex-direction: column;
      gap: 0.25rem;
      padding: 0.75rem 1.25rem 1rem;
      list-style: none;
    }
    nav ul li {
      display: block;
      width: 100%;
    }
    nav ul li a {
      display: block;
      padding: 0.85rem 0.75rem;
      border-radius: 8px;
      font-size: 1rem;
      letter-spacing: 0.04em;
      transition: background 0.15s;
    }
    nav ul li a:hover,
    nav ul li a:focus {
      background: rgba(255, 69, 0, 0.1);
      color: var(--accent);
    }
  }

  /* Loading spinner */
  .spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 0.4rem;
    vertical-align: middle;
  }
  @keyframes spin {
    to { transform: rotate(360deg); }
  }

  /* Delivery time notice */
  .delivery-time-notice {
    padding: 1.5rem 1.75rem;
    background:
      linear-gradient(135deg, rgba(95, 216, 122, 0.06), rgba(74, 154, 255, 0.04)),
      var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
  }
  .delivery-time-notice::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #5fd87a, #4a9aff, #5fd87a);
    background-size: 100% 200%;
    animation: timeFlow 6s linear infinite;
  }
  @keyframes timeFlow {
    0% { background-position: 0 0; }
    100% { background-position: 0 200%; }
  }
  .delivery-time-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: radial-gradient(circle at 30% 30%, rgba(95, 216, 122, 0.25), rgba(74, 154, 255, 0.15));
    border: 1px solid rgba(95, 216, 122, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 0 25px rgba(95, 216, 122, 0.15);
  }
  .delivery-time-text {
    flex: 1;
    min-width: 220px;
  }
  .delivery-time-text h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
    color: var(--text);
  }
  .delivery-time-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
  }
  .delivery-time-text strong {
    color: var(--success);
  }

  /* Material chip disabled (brak filamentu w magazynie) */
  .material-chip.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    position: relative;
    filter: grayscale(0.7);
  }
  .material-chip.disabled .material-swatch { filter: grayscale(1); }
  .material-unavailable {
    position: absolute;
    bottom: 0.35rem; right: 0.5rem;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
  }

  /* CART (koszyk wielu plików) */
  .cart-section {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 14px;
    padding: 1.5rem;
    margin-top: 2rem;
  }
  .cart-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border);
    flex-wrap: wrap; gap: 0.75rem;
  }
  .cart-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--accent); }
  .cart-count {
    background: rgba(255,69,0,0.15); color: var(--accent);
    padding: 0.2rem 0.7rem; border-radius: 99px; font-size: 0.82rem; font-weight: 600;
    margin-left: 0.5rem;
  }
  .cart-items { display: flex; flex-direction: column; gap: 0.75rem; }
  .cart-item {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.9rem;
    align-items: center;
  }
  .cart-item-color {
    width: 38px; height: 38px; border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    flex-shrink: 0;
  }
  .cart-item-info { min-width: 0; }
  .cart-item-name { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cart-item-meta { color: var(--text-muted); font-size: 0.82rem; margin-top: 0.15rem; }
  .cart-item-price {
    font-family: var(--font-display); font-weight: 700; color: var(--accent); font-size: 1.05rem;
    white-space: nowrap;
  }
  .cart-item-actions {
    display: flex; gap: 0.25rem;
  }
  .cart-icon-btn {
    background: rgba(0,0,0,0.4); border: 1px solid var(--border);
    color: var(--text-muted); width: 30px; height: 30px;
    border-radius: 6px; cursor: pointer; font-size: 0.85rem;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .cart-icon-btn:hover { color: var(--accent); border-color: var(--accent); }
  .cart-icon-btn.danger:hover { color: var(--danger); border-color: var(--danger); }

  .cart-summary {
    margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  }
  .cart-summary-total {
    font-family: var(--font-display);
    font-size: 1.4rem; font-weight: 700;
  }
  .cart-summary-total .label { color: var(--text-muted); font-size: 0.85rem; margin-right: 0.5rem; }
  .cart-summary-total .amount {
    background: linear-gradient(135deg, var(--accent-hot), var(--accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .cart-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* ============================================================
   Lista życzeń (wishlist)
   ============================================================ */
.wishlist-btn {
  position: absolute; top: 0.6rem; right: 0.6rem; z-index: 5;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(10, 10, 10, 0.7); border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; line-height: 1; transition: transform 0.15s, background 0.15s;
  backdrop-filter: blur(4px); -webkit-tap-highlight-color: transparent;
}
.wishlist-btn:hover { background: rgba(255, 69, 0, 0.2); transform: scale(1.1); }
.wishlist-btn.active { background: rgba(255, 69, 0, 0.15); border-color: rgba(255,69,0,0.4); }
.wishlist-btn.pulse { animation: wishlist-pulse 0.3s ease; }
@keyframes wishlist-pulse {
  0% { transform: scale(1); } 50% { transform: scale(1.35); } 100% { transform: scale(1); }
}
.wishlist-btn .heart-icon { pointer-events: none; }

/* Licznik w nawigacji */
.nav-wishlist { position: relative; display: inline-flex; align-items: center; }
.wishlist-count {
  background: var(--accent); color: white; font-size: 0.7rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center; margin-left: 0.3rem;
}

/* Sekcja ulubionych w sklepie */
#wishlist-section {
  margin: 1.5rem 0; padding: 1.5rem; background: rgba(255,69,0,0.04);
  border: 1px solid rgba(255,69,0,0.15); border-radius: 12px;
}
#wishlist-section h2 {
  font-family: 'Cinzel', serif; color: var(--accent); margin: 0 0 1rem; font-size: 1.3rem;
}

/* ============================================================
   Lightbox galerii
   ============================================================ */
#gallery-lightbox {
  position: fixed; inset: 0; z-index: 100000;
  background: rgba(0, 0, 0, 0.92);
  display: none; align-items: center; justify-content: center;
  padding: 2rem; cursor: zoom-out;
  backdrop-filter: blur(6px);
}
#gallery-lightbox.show {
  display: flex;
  animation: lightbox-fade 0.2s ease-out;
}
@keyframes lightbox-fade {
  from { opacity: 0; } to { opacity: 1; }
}
#gallery-lightbox .lightbox-img {
  max-width: 90vw; max-height: 85vh; object-fit: contain;
  border-radius: 8px; box-shadow: 0 10px 60px rgba(0,0,0,0.6);
  cursor: default;
  animation: lightbox-zoom 0.25s ease-out;
}
@keyframes lightbox-zoom {
  from { transform: scale(0.92); opacity: 0.6; }
  to { transform: scale(1); opacity: 1; }
}
#gallery-lightbox .lightbox-caption {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  color: #e8e6e3; font-size: 0.95rem; background: rgba(0,0,0,0.6);
  padding: 0.5rem 1.2rem; border-radius: 20px; max-width: 90vw;
  text-align: center; pointer-events: none;
}
#gallery-lightbox .lightbox-close {
  position: absolute; top: 1.2rem; right: 1.5rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 1.3rem; cursor: pointer; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
#gallery-lightbox .lightbox-close:hover { background: var(--accent); }

/* ============================================================
   Ikona koszyka w nawigacji
   ============================================================ */
.nav-cart {
  position: relative; display: inline-flex; align-items: center; gap: 0.2rem;
  font-size: 1.15rem;
}
.nav-cart-count {
  background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
}
.nav-cart-count.empty { display: none; }

/* ============================================================
   Uniwersalny stepper +/- dla pól liczbowych (js/stepper.js)
   ============================================================ */
.qty-stepper {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border, #2a2520); border-radius: 8px; overflow: hidden;
  background: rgba(0,0,0,0.3); height: 40px; max-width: 100%;
}
.qty-stepper .qty-btn {
  width: 36px; height: 100%; border: 0; background: transparent;
  color: var(--accent, #ff4500); font-size: 1.2rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  line-height: 1; transition: background 0.15s; padding: 0; flex-shrink: 0;
}
.qty-stepper .qty-btn:hover:not(:disabled) { background: rgba(255,69,0,0.12); }
.qty-stepper .qty-btn:disabled { color: #4a4540; cursor: not-allowed; }
.qty-stepper .qty-input {
  flex: 1 1 auto; min-width: 0; width: 56px; max-width: 100px;
  height: 100%; text-align: center; border: 0;
  border-left: 1px solid var(--border, #2a2520); border-right: 1px solid var(--border, #2a2520);
  background: transparent; color: var(--text, #e8e6e3);
  font-size: 0.95rem; font-weight: 600; padding: 0;
  -moz-appearance: textfield; font-family: inherit;
}
.qty-stepper .qty-input::-webkit-outer-spin-button,
.qty-stepper .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-stepper .qty-input:focus { outline: none; background: rgba(255,69,0,0.05); }

/* ============================================================
   Kafelki kategorii nad wyszukiwarką w sklepie
   ============================================================ */
.category-tiles {
  display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center;
  padding: 0 0 1.5rem; max-width: 1100px; margin: 0 auto;
}
.category-tile {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 110px; padding: 0.7rem 1.1rem; border-radius: 10px;
  background: rgba(0,0,0,0.4); border: 1.5px solid var(--border, #2a2520);
  color: var(--text, #e8e6e3); font-weight: 600; font-size: 0.9rem;
  cursor: pointer; transition: all 0.18s; user-select: none;
  font-family: inherit; line-height: 1.2; text-align: center;
}
.category-tile:hover {
  background: rgba(255,69,0,0.1); border-color: rgba(255,69,0,0.4);
  transform: translateY(-2px);
}
.category-tile.active {
  background: var(--accent, #ff4500); border-color: var(--accent, #ff4500); color: #fff;
  box-shadow: 0 4px 14px rgba(255,69,0,0.35);
}
.category-tile-count {
  margin-left: 0.4rem; opacity: 0.7; font-size: 0.78rem; font-weight: 500;
}
@media (max-width: 600px) {
  .category-tile { min-width: 88px; padding: 0.6rem 0.8rem; font-size: 0.85rem; }
}

/* ============================================================
   Karuzela opinii klientów (4 opinie na slide + kropki)
   ============================================================ */
.reviews-carousel { position: relative; }
.reviews-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  display: flex;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.reviews-viewport::-webkit-scrollbar { display: none; }
.reviews-slide {
  min-width: 100%;
  flex-shrink: 0;
  scroll-snap-align: start;
  padding: 0.2rem 0.3rem 1rem;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 720px) {
  .reviews-grid { grid-template-columns: 1fr; }
}
.reviews-dots {
  display: flex; justify-content: center; gap: 0.55rem; margin-top: 1.5rem;
}
.reviews-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: none; padding: 0; cursor: pointer;
  transition: all 0.25s;
}
.reviews-dot:hover { background: rgba(255,69,0,0.45); transform: scale(1.2); }
.reviews-dot.active {
  background: var(--accent, #ff4500);
  width: 28px; border-radius: 6px;
  box-shadow: 0 0 8px rgba(255,69,0,0.5);
}

/* ============================================================
   Multi-select chips kategorii w panelu admina
   ============================================================ */
.cat-chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.38rem 0.7rem; border-radius: 16px;
  background: rgba(0,0,0,0.3); border: 1.5px solid var(--border);
  color: var(--text-muted); font-size: 0.84rem; font-weight: 500;
  cursor: pointer; user-select: none; transition: all 0.15s;
}
.cat-chip:hover {
  background: rgba(255,69,0,0.08); border-color: rgba(255,69,0,0.4); color: var(--text);
}
.cat-chip.active {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 2px 6px rgba(255,69,0,0.3);
}
.cat-chip.active::before { content: '✓'; font-weight: 700; }
