@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Rajdhani:wght@500;700&display=swap');

/* Główne style - Batman Theme */
:root {
  --batman-dark: #0a0a12;
  --batman-primary: #1a1a2e;
  --batman-accent: #e50914;
  --batman-highlight: #00f0ff;
  --batman-text: #e6e6e6;
  --batman-panel: rgba(10, 10, 18, 0.9);
}

body {
    font-family: 'Rajdhani', 'Figtree', sans-serif;
    margin: 0;
    padding: 0;
    background: #000 url('https://www.transparenttextures.com/patterns/dark-stripes.png') repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-x: hidden;
    color: var(--batman-text);
}

/* Animowane tło */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(0, 240, 255, 0.05) 0%, transparent 30%),
                radial-gradient(circle at 80% 70%, rgba(229, 9, 20, 0.05) 0%, transparent 30%);
    z-index: -1;
    animation: pulseBackground 15s infinite alternate;
}

@keyframes pulseBackground {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

#viewer-container {
    position: relative;
    overflow: hidden; 
    width: 98%;
    max-width: 100%;
    margin: 10px auto 0;
    display: flex;
    justify-content: center;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
}

#viewer {
    position: relative;
    width: 100%;
    height: 90vh;
    border-radius: 10px;
    overflow: hidden !important;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8),
                0 0 40px rgba(0, 240, 255, 0.3);
    background: linear-gradient(to bottom, #001529, #0a3d62, #006994) !important;
    margin: 0;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

/* Nagłówek modelu - Batman Style */
.model-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px; /* Stała wysokość */
  background: linear-gradient(to right, 
              rgba(10, 10, 18, 0.9), 
              rgba(26, 26, 46, 0.9));
  z-index: 90;
  border-bottom: 1px solid var(--batman-highlight);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
}

.model-header h3 {
  position: relative;
  color: var(--batman-highlight);
  font-size: 12px;
  margin: 5px 0 0 0;
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
}

.model-selector {
  display: flex;
  align-items: center;
  background: transparent;
  border: none;
  padding: 8px 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0;
  position: relative;
  z-index: 110;
  color: white;
}

.model-icon {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.7));
}

.model-name {
  font-family: 'Orbitron', 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--batman-text);
  margin: 0 10px;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
  letter-spacing: 1px;
  position: relative;
}

.model-arrow {
    color: var(--batman-highlight);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.7);
}

.model-selector:hover .model-icon,
.model-selector:hover .model-name,
.model-selector:hover .model-arrow {
    opacity: 1;
    filter: brightness(1.5);
}

.model-selector:hover .model-arrow {
    transform: translateX(3px);
}

.model-list {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--batman-panel);
  border-radius: 8px;
  padding: 10px 0;
  z-index: 105;
  display: none;
  min-width: 250px;
  border: 1px solid var(--batman-highlight);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8),
              inset 0 0 15px rgba(0, 240, 255, 0.2);
}

.model-list a {
  display: block;
  padding: 10px 25px;
  color: var(--batman-text);
  text-decoration: none;
  transition: all 0.2s;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  position: relative;
}

.model-list a:hover {
  background: rgba(0, 240, 255, 0.1);
  color: var(--batman-highlight);
  padding-left: 30px;
}

.model-list a::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: var(--batman-highlight);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.3s ease;
}

.model-list a:hover::before {
  opacity: 1;
  left: 15px;
}

/* Przyciski akcji - Futuristic Style */
.fullscreen-button {
    position: absolute;
    top: 90px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--batman-highlight);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 30;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.fullscreen-button:hover {
    background: rgba(0, 240, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 25px var(--batman-highlight);
}

.fullscreen-button:hover::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid var(--batman-highlight);
    animation: pulse 1.5s infinite;
    pointer-events: none;
}

.fullscreen-button img {
    width: 25px;
    height: 25px;
    filter: invert(78%) sepia(33%) saturate(1553%) hue-rotate(149deg) brightness(101%) contrast(101%);
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    70% { transform: scale(1.1); opacity: 0.3; }
    100% { transform: scale(1.2); opacity: 0; }
}


#resetButton, #rotateButton, .dimensions-button {
    position: absolute;
    bottom: 20px;
    z-index: 30;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--batman-highlight);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#resetButton {
    left: 90px;
}

#rotateButton {
    left: 20px;
}

.dimensions-button {
    left: 160px;
}

#resetButton:hover, #rotateButton:hover, .dimensions-button:hover {
    background: rgba(0, 240, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 25px var(--batman-highlight);
}

#resetButton:hover::after, 
#rotateButton:hover::after,
.dimensions-button:hover::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid var(--batman-highlight);
    animation: pulse 1.5s infinite;
    pointer-events: none;
}

#resetButton img, #rotateButton img, .dimensions-button img {
    width: 35px;
    height: 35px;
    filter: invert(78%) sepia(33%) saturate(1553%) hue-rotate(149deg) brightness(101%) contrast(101%);
}

/* Style dla kontenera przycisków sterujących */
.viewer-controls {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 100;
    display: flex;
    gap: 70px;
}

.viewer-controls button {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    border: 1px solid var(--batman-highlight);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3),
                inset 0 0 10px rgba(0, 240, 255, 0.2);
    transition: all 0.3s ease;
}

.viewer-controls button:hover {
    background: rgba(0, 240, 255, 0.1);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5),
                inset 0 0 15px rgba(0, 240, 255, 0.3);
}

.viewer-controls button img {
    width: 35px;
    height: 35px;
    filter: invert(78%) sepia(33%) saturate(1553%) hue-rotate(149deg) brightness(101%) contrast(101%);
}

/* Style dla przycisku wymiarów */
.dimensions-button {
    position: absolute;
    bottom: 0px;
    left: 140px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    border: 1px solid var(--batman-highlight);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3),
                inset 0 0 10px rgba(0, 240, 255, 0.2);
    transition: all 0.3s ease;
}

.dimensions-button:hover {
    background: rgba(0, 240, 255, 0.1);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5),
                inset 0 0 15px rgba(0, 240, 255, 0.3);
}

.dimensions-button img {
    width: 35px;
    height: 35px;
    filter: invert(78%) sepia(33%) saturate(1553%) hue-rotate(149deg) brightness(101%) contrast(101%);
}

/* Kolory łodzi - Futuristic Color Picker */
.color-picker {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 90;
    background: var(--batman-panel);
    padding: 12px 20px;
    border-radius: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8),
                inset 0 0 15px rgba(0, 240, 255, 0.2),
                0 0 0 1px rgba(0, 240, 255, 0.3);
    border: 1px solid var(--batman-highlight);
    backdrop-filter: blur(8px);
    font-family: 'Orbitron', sans-serif;
    animation: float 4s ease-in-out infinite;
    width: auto;'	
    max-width: 95%;
}

/* Domyślny kolor na początku */
.color-option.default-color {
    order: -1; /* Zawsze na początku */
    margin-right: 5px;
}

/* Separator po domyślnym kolorze */
.color-separator {
    order: 0; /* Po domyślnym kolorze */
    height: 30px;
    width: 1px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        var(--batman-highlight) 50%, 
        transparent 100%);
    margin: 0 5px;
}

/* Pozostałe kolory - równomierne zawijanie */
.color-option:not(.default-color) {
    flex: 0 0 auto;
}

@keyframes float {
    0% { transform: translateX(-50%) translateY(0px); }
    50% { transform: translateX(-50%) translateY(-5px); }
    100% { transform: translateX(-50%) translateY(0px); }
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 50%);
    overflow: hidden;
}

.color-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.8) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.color-option:hover {
    transform: scale(1.15);
    box-shadow: 0 5px 20px rgba(0, 240, 255, 0.5);
}

.color-option:hover::before {
    opacity: 0.3;
}

.color-option.selected {
    border-color: var(--batman-highlight);
    transform: scale(1.2);
    box-shadow: 0 0 20px var(--batman-highlight),
                0 5px 30px rgba(0, 240, 255, 0.6);
    z-index: 2;
    animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 10px var(--batman-highlight); }
    50% { box-shadow: 0 0 20px var(--batman-highlight); }
    100% { box-shadow: 0 0 10px var(--batman-highlight); }
}

.color-option.selected::before {
    opacity: 0.5;
}

.color-option::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 1px solid rgba(0, 240, 255, 0.3);
    pointer-events: none;
}



.color-option.remove-color {
    background: #0F1D4F !important;
    position: relative;
    border: none !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
    /* Usuwamy wszystkie dzieci - w tym span z X */
    font-size: 0 !important;
}

.color-option.remove-color {
    background: #0F1D4F !important;
    position: relative;
    border: none !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
    /* Usuwamy wszystkie treści */
    color: transparent !important;
    font-size: 0 !important;
}

/* Usuwamy wszystkie dzieci i pseudoelementy */
.color-option.remove-color > *,
.color-option.remove-color::before,
.color-option.remove-color::after {
    display: none !important;
    content: none !important;
}

/* Efekt hover */
.color-option.remove-color:hover {
    background: #1A2B6B !important;
    border: 1px solid #5D7AFF !important;
    box-shadow: 0 0 10px rgba(93, 122, 255, 0.5) !important;
}

/* Stan zaznaczenia */
.color-option.remove-color.selected {
    border: 1px solid var(--batman-highlight) !important;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.5) !important;
}

/* Styl dla domyślnego koloru */



.color-picker::-webkit-scrollbar {
    height: 4px;
}

.color-picker::-webkit-scrollbar-track {
    background: rgba(0, 240, 255, 0.1);
    border-radius: 2px;
}

.color-picker::-webkit-scrollbar-thumb {
    background-color: var(--batman-highlight);
    border-radius: 2px;
}

/* Styl dla modala */
#imageModal {
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
}

#imageModal img {
    animation: zoomIn 0.3s ease;
    max-height: 80vh;
    max-width: 90vw;
    width: auto;
    height: auto;
    object-fit: contain;
    border: 2px solid var(--batman-highlight);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.5);
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Language switcher styles - Futuristic */
.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.language-button {
    background: rgba(10, 10, 18, 0.8);
    border: 1px solid var(--batman-highlight);
    border-radius: 20px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.language-button:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.language-flag {
    width: 20px;
    height: 15px;
    margin-right: 5px;
    border-radius: 2px;
}

.language-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--batman-highlight);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Przyciski kategorii - HUD Style */
/* Przyciski kategorii - HUD Style */
.category-button {
    position: absolute;
    right: 20px;
    width: clamp(40px, 5vw, 60px);
    height: clamp(40px, 5vw, 60px);
    background: rgba(0, 10, 20, 0.8);
    border: 1px solid var(--batman-highlight);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    margin-bottom: 10px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 30;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
}

.category-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 2px solid var(--batman-highlight);
    opacity: 0;
    transition: opacity 0.3s;
}

.category-button:hover::before {
    opacity: 0.5;
}

.button-label {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-shadow: 0 0 10px var(--batman-highlight);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    background: rgba(0, 10, 20, 0.9);
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid var(--batman-highlight);
    z-index: 40;
}

.category-button:hover .button-label {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.category-button img {
    width: 65%;
    height: 65%;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: invert(80%) sepia(100%) saturate(300%) hue-rotate(170deg);
}

.category-button:hover img {
    transform: scale(1.1);
    filter: invert(100%) sepia(100%) saturate(10000%) hue-rotate(170deg);
}

.category-button.active {
    background: rgba(229, 9, 20, 0.7);
    box-shadow: 0 0 0 2px var(--batman-highlight),
                0 0 30px rgba(229, 9, 20, 0.7);
    animation: pulse-red 1.5s infinite;
}

.category-button.active::before {
    opacity: 0.7; /* zwiększona widoczność obwódki w stanie aktywnym */
    border-color: var(--batman-accent); /* czerwony akcent zamiast niebieskiego */
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(229, 9, 20, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 9, 20, 0); }
}

.category-button.active img {
    filter: brightness(0) invert(1);
}

/* Pozycje przycisków */
#categoryButton    { top: 150px; }
#electricButton    { top: 230px; }
#hardwareButton    { top: 310px; }
#reinforcementButton { top: 390px; }
#extrasButton      { top: 470px; }
#standardButton    { top: 550px; }


/* Panele opcji - Cyberpunk Style */
.viewer-panel {
  position: absolute;
  top: 20px;
  right: -400px;
  width: 350px;
  bottom: 20px;
  background: var(--batman-panel) !important;
  border: 1px solid var(--batman-highlight) !important;
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.3),
              inset 0 0 20px rgba(0, 240, 255, 0.1) !important;
  backdrop-filter: blur(10px) !important;
  border-radius: 10px 0 0 10px;
  padding: 15px;
  z-index: 100;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(0);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
}

.viewer-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, 
                              transparent, 
                              var(--batman-highlight), 
                              transparent);
    animation: panel-glow 3s infinite;
}

@keyframes panel-glow {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

@keyframes scanline {
    0% { top: 0; opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.viewer-panel.active {
    right: 20px;
    opacity: 1;
    pointer-events: auto;
}

.panel-header {
    color: var(--batman-highlight);
    padding: 15px 0;
    border-bottom: 1px solid var(--batman-highlight);
    text-align: center;
    background: var(--batman-panel);
    position: sticky;
    top: 0;
    z-index: 10;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
}

.panel-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.panel-content {
    overflow-y: auto;
    flex-grow: 1;
    padding-top: 10px;
    margin-top: -15px;
    scrollbar-width: thin;
    scrollbar-color: var(--batman-highlight) rgba(0,0,0,0.1);
}

.panel-content::-webkit-scrollbar {
    width: 6px;
}

.panel-content::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
}

.panel-content::-webkit-scrollbar-thumb {
    background-color: var(--batman-highlight);
    border-radius: 3px;
}

/* Przyciski zamknięcia - HUD Style */
.close-options,
.close-electric-options,
.close-hardware-options,
.close-reinforcement-options,
.close-extras-options,
.close-standard-options {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    color: var(--batman-highlight);
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 15;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
}

.close-options:hover,
.close-electric-options:hover,
.close-hardware-options:hover,
.close-reinforcement-options:hover,
.close-extras-options:hover,
.close-standard-options:hover {
    background: rgba(0, 240, 255, 0.1);
    transform: rotate(90deg);
}




/* Opcje standardowe - Tech Style */
/* Opcje standardowe - Batman Theme */
/* Opcje standardowe - zielony styl */
/* Opcje standardowe - styl jak zaznaczone */
/* Opcje standardowe - styl jak zaznaczone */
#standardOptionsWindow .option {
    background: rgba(20, 40, 20, 0.4);
    border-radius: 8px;
    padding: 12px 15px; /* Zmienione - usunięto lewy padding */
    margin-bottom: 10px;
    border: 1px solid #00ff00;
    position: relative;
}

#standardOptionsWindow .option::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #00ff00 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23000"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>') no-repeat center;
    background-size: 14px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.7);
}

/* Opcje standardowe - styl jak zaznaczone */
#standardOptionsWindow .option {
    background: rgba(20, 40, 20, 0.4); /* Zielone tło */
    border-radius: 8px;
    padding: 12px 15px 12px 40px; /* Więcej miejsca po lewej na ptaszka */
    margin-bottom: 10px;
    border: 1px solid #00ff00; /* Zielona obwódka */

    transition: all 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
    color: white;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3),
                inset 0 0 10px rgba(0, 255, 0, 0.1);
    list-style-type: none; /* Wyłącza domyślne znaczniki listy */
}



/* Tekst opcji */
#standardOptionsWindow .option-title {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    display: block; /* Zapobiega niepotrzebnym wcięciom */
    margin-left: 0; /* Usuwa margines */
}

#standardOptionsWindow .option-title strong {
    color: #00ff00;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.7);
    font-weight: normal; /* Wyłącza domyślne pogrubienie strong */
}

/* Efekt hover */
#standardOptionsWindow .option:hover {
    background: rgba(30, 60, 30, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 0, 0.4);
}
#standardOptionsWindow .option-checkbox {
    /* Ukryj checkboxy */
    display: none !important;
}

#standardOptionsWindow .option label {
    /* Usuń domyślne style dla etykiet */
    display: block;
    cursor: default;
}

/* Opcje dodatkowe - Batman Theme */
.option-box {
    display: flex;
    background: rgba(229, 9, 20, 0.05); /* Delikatne czerwone tło */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(229, 9, 20, 0.3); /* Czerwona obwódka */
    position: relative;
}

.option-box:hover {
    border-color: var(--batman-accent);
    background: rgba(229, 9, 20, 0.1); /* Mocniejsze czerwone tło */
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(229, 9, 20, 0.2); /* Czerwony cień */
}

.option-thumbnail {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.option-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
                             rgba(229, 9, 20, 0.1) 0%, 
                             transparent 50%,
                             rgba(229, 9, 20, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.option-box:hover .option-thumbnail::after {
    opacity: 0.3;
}

.option-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.5s ease;
}

.option-box:hover .option-thumbnail img {
    transform: scale(1.05);
}

.option-details {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    position: relative;
}

.option-title {
    color: white; /* Biały tekst przed zaznaczeniem */
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.option-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 8px;
    font-family: 'Rajdhani', sans-serif;
}

.option-price {
    color: var(--batman-accent); /* Czerwona cena przed zaznaczeniem */
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 5px rgba(229, 9, 20, 0.5);
    transition: all 0.3s;
}

.option-price::before {
    content: "+ ";
    font-weight: 700;
    display: none;
}

/* Styl dla aktywnej opcji */
.option-box.active {
    border-color: var(--batman-highlight);
    background: rgba(0, 240, 255, 0.1); /* Niebieskie tło po zaznaczeniu */
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.3),
                inset 0 0 20px rgba(0, 240, 255, 0.1);
}

.option-box.active .option-title {
    color: var(--batman-highlight); /* Niebieski tekst po zaznaczeniu */
}

.option-box.active .option-price {
    color: var(--batman-highlight); /* Niebieska cena po zaznaczeniu */
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
}

.option-box.active::after {
    content: 'SELECTED';
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--batman-highlight);
    color: var(--batman-dark);
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: 'Orbitron', sans-serif;
    z-index: 2;
}



/* Cena całkowita - HUD Display */
.total-price-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    min-height: 40px;
    z-index: 30;
}

.total {
    background: rgba(10, 10, 18, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 5px;
    padding: 12px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.3),
                inset 0 0 10px rgba(0, 240, 255, 0.2);
    border: 1px solid var(--batman-highlight);
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
}



.label {
    font-size: 1.1rem;
    color: var(--batman-text);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price {
    font-size: 1.4rem;
    color: var(--batman-highlight);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
}

/* Przyciski akcji - Cyber Style */
.button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 10px 0;
    flex-wrap: wrap;
    padding-bottom: 10px;
}

.styled-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--batman-dark);
    color: var(--batman-text);
    border: 1px solid var(--batman-highlight);
    border-radius: 5px;
    padding: 12px 24px;
    font-size: 16px;
    font-family: 'Orbitron', sans-serif;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2),
                inset 0 0 10px rgba(0, 240, 255, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    margin: 5px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.styled-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
                             transparent, 
                             rgba(0, 240, 255, 0.2), 
                             transparent);
    transition: all 0.5s ease;
}

.styled-button:hover {
    background-color: rgba(0, 240, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.4),
                inset 0 0 15px rgba(0, 240, 255, 0.2);
    color: var(--batman-highlight);
}

.styled-button:hover::before {
    left: 100%;
}

.button-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: invert(78%) sepia(33%) saturate(1553%) hue-rotate(149deg) brightness(101%) contrast(101%);
}

.order-button {
    background: linear-gradient(135deg, 
                             rgba(229, 9, 20, 0.7) 0%, 
                             rgba(229, 9, 20, 0.4) 100%);
    border: 1px solid var(--batman-accent);
    animation: pulse-red 2s infinite;
}

.order-button:hover {
    background: linear-gradient(135deg, 
                             rgba(229, 9, 20, 0.8) 0%, 
                             rgba(229, 9, 20, 0.5) 100%);
    color: white;
}

/* Lightboxy - Futuristic */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    background: var(--batman-panel);
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
    border: 1px solid var(--batman-highlight);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.5);
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
    border: 1px solid var(--batman-highlight);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--batman-highlight);
    font-size: 2.5rem;
    cursor: pointer;
    background: rgba(10, 10, 18, 0.8);
    padding: 5px 15px;
    border-radius: 5px;
    border: 1px solid var(--batman-highlight);
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(229, 9, 20, 0.7);
    color: white;
    transform: rotate(90deg);
}

/* Loader - Tech Style */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--batman-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
    transition: opacity 0.5s ease;
}

.loader-spinner {
    border: 5px solid rgba(0, 240, 255, 0.1);
    border-top: 5px solid var(--batman-highlight);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.loader-text {
    font-size: 1.2em;
    color: var(--batman-highlight);
    font-weight: bold;
    text-align: center;
    max-width: 80%;
    margin: 0 auto;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Formularz email */
#emailConfigForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: var(--batman-panel);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--batman-highlight);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: 600;
    color: var(--batman-highlight);
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    padding: 10px;
    border: 1px solid var(--batman-highlight);
    border-radius: 4px;
    font-family: inherit;
    background: rgba(0, 0, 0, 0.5);
    color: var(--batman-text);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--batman-accent);
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.5);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Selected options container */
#selectedOptionsContainer {
    position: absolute;
    bottom: 100px;
    left: 20px;
    background-color: rgba(10, 10, 18, 0.9);
    padding: 15px;
    border-radius: 8px;
    max-width: 300px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    border: 1px solid var(--batman-highlight);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    font-family: 'Rajdhani', sans-serif;
	    /* Styl paska przewijania */
    scrollbar-width: thin;
    scrollbar-color: var(--batman-highlight) rgba(0, 30, 60, 0.8);
}

#selectedOptionsContainer h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    text-align: center;
    color: var(--batman-highlight);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--batman-highlight);
    padding-bottom: 5px;
}

#selectedOptionsList {
    margin: 0;
    padding-left: 20px;
    list-style-type: none;
}

#selectedOptionsList li {
    margin-bottom: 8px;
    font-size: 14px;
    font-family: 'Rajdhani', sans-serif;
    color: var(--batman-text);
    position: relative;
    padding-left: 15px;
}

#selectedOptionsList li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--batman-highlight);
    font-size: 18px;
    line-height: 1;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Dodatkowe animacje */
@keyframes flicker {
    0% { opacity: 0.7; }
    10% { opacity: 0.8; }
    20% { opacity: 0.6; }
    30% { opacity: 0.9; }
    40% { opacity: 0.7; }
    50% { opacity: 1; }
    60% { opacity: 0.8; }
    70% { opacity: 0.9; }
    80% { opacity: 0.7; }
    90% { opacity: 0.8; }
    100% { opacity: 0.7; }
}

/* Dodaj tę klasę do elementów, które mają mieć efekt flicker */
.flicker {
    animation: flicker 5s infinite;
}

/* Responsywność */
/* Mobile-specific styles */
/* Mobile-specific styles (max-width: 768px) */
@media (max-width: 768px) {
	
	
    /* Resetujemy pozycjonowanie i style dla wszystkich przycisków sterujących */
    .fullscreen-button,
    #rotateButton,
    #resetButton,
    .dimensions-button {
        position: fixed !important;  /* Zmieniamy na fixed dla lepszego pozycjonowania */
        top: 90px !important;
        width: 35px !important;
        height: 35px !important;
        margin: 0 !important;
        z-index: 100 !important;
        background: rgba(0, 0, 0, 0.7) !important;
        border: 1px solid var(--batman-highlight) !important;
        border-radius: 50% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    /* Ustawiamy poszczególne przyciski w rzędzie */
    .fullscreen-button {
        left: 10px !important;
    }

    #rotateButton {
        left: 55px !important; /* 10px + 35px + 10px odstępu */
    }

    #resetButton {
        left: 100px !important; /* 55px + 35px + 10px odstępu */
    }

    .dimensions-button {
        left: 145px !important; /* 100px + 35px + 10px odstępu */
        display: flex !important; /* Wymuszamy wyświetlenie */
    }

    /* Zmniejszamy ikony */
    .fullscreen-button img,
    #rotateButton img,
    #resetButton img,
    .dimensions-button img {
        width: 18px !important;
        height: 18px !important;
    }

    /* Dostosowujemy pozycje przycisków kategorii */
    #categoryButton    { top: 140px !important; }
    #electricButton    { top: 190px !important; }
    #hardwareButton    { top: 240px !important; }
    #reinforcementButton { top: 290px !important; }
    #extrasButton      { top: 340px !important; }
    #standardButton    { top: 390px !important; }

    /* Ukrywamy oryginalny kontener viewer-controls */
    .viewer-controls {
        display: none !important;
    }

    /* Reszta stylów dla bardzo małych ekranów pozostaje bez zmian */
    #viewer {
        height: 75vh;
    }
    
    .model-name {
        font-size: 1rem;
    }
    
    .viewer-panel {
        padding: 8px;
    }
    
    .panel-header h3 {
        font-size: 1.1rem;
    }
    
    #selectedOptionsContainer {
        bottom: 130px;
        max-height: 80px;
    }
    
    #selectedOptionsList li {
        font-size: 8px;
    }
    
    .total {
        bottom: 2px;
        padding: 6px 12px;
    }
    
    .label {
        font-size: 0.8rem;
    }
    
    .price {
        font-size: 1rem;
    }
    
    .color-picker {
        padding: 8px 15px;
        bottom: 15%;
        max-width: 90%;
    }
    
    .color-option {
        width: 28px;
        height: 28px;
    }
    
    .color-option.default-color {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .color-separator {
        height: 24px;
    }

   
    #viewer-container {
        width: 99%;
        margin: 5px auto 0;
        border-radius: 13px;
    }
	
     .viewer-controls {
        position: absolute;
        top: 90px;
        left: 10px;
        right: auto;
        bottom: auto;
        flex-direction: row;
        gap: 8px;
        z-index: 100;
    }
    
    #resetButton, 
    #rotateButton, 
    .dimensions-button, 
    .fullscreen-button {
        position: relative;
        width: 35px;
        height: 35px;
        margin: 0;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
    }
    
    #resetButton img, 
    #rotateButton img, 
    .dimensions-button img, 
    .fullscreen-button img {
        width: 18px;
        height: 18px;
    }
    
    /* Dostosowanie pozycji przycisków kategorii */
    #categoryButton    { top: 140px; }
    #electricButton    { top: 190px; }
    #hardwareButton    { top: 240px; }
    #reinforcementButton { top: 290px; }
    #extrasButton      { top: 340px; }
    #standardButton    { top: 390px; }
    
    /* Pozostałe style dla bardzo małych ekranów */
    #viewer {
        height: 75vh;
    }
    
    .model-name {
        font-size: 1rem;
    }
    
    .viewer-panel {
        padding: 8px;
    }
    
    .panel-header h3 {
        font-size: 1.1rem;
    }
    
    #selectedOptionsContainer {
        bottom: 130px;
        max-height: 80px;
    }
    
    #selectedOptionsList li {
        font-size: 12px;
    }
    
    .total {
        bottom: 2px;
        padding: 6px 12px;
    }
    
    .label {
        font-size: 0.8rem;
    }
    
    .price {
        font-size: 1rem;
    }
    
    .color-picker {
        padding: 5px 10px;
        bottom: 15%;
    }
    
    .color-option {
        width: 15px;
        height: 15px;
    }
}

/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {
    /* Resetujemy pozycjonowanie i style dla wszystkich przycisków sterujących */
    .fullscreen-button,
    #rotateButton,
    #resetButton,

    /* Ustawiamy poszczególne przyciski w rzędzie */
    .fullscreen-button {
        left: 10px !important;
    }

    #rotateButton {
        left: 55px !important; /* 10px + 35px + 10px odstępu */
    }

    #resetButton {
        left: 100px !important; /* 55px + 35px + 10px odstępu */
    }


    /* Zmniejszamy ikony */
    .fullscreen-button img,
    #rotateButton img,
    #resetButton img,


    /* Dostosowujemy pozycje przycisków kategorii */
    #categoryButton    { top: 140px !important; }
    #electricButton    { top: 190px !important; }
    #hardwareButton    { top: 240px !important; }
    #reinforcementButton { top: 290px !important; }
    #extrasButton      { top: 340px !important; }
    #standardButton    { top: 390px !important; }

    /* Ukrywamy oryginalny kontener viewer-controls */
    .viewer-controls {
        display: none !important;
    }

    /* Reszta stylów dla bardzo małych ekranów pozostaje bez zmian */
    #viewer {
        height: 75vh;
    }
    
    .model-name {
        font-size: 1rem;
    }
    
    .viewer-panel {
        padding: 8px;
    }
    
    .panel-header h3 {
        font-size: 1.1rem;
    }
    
    #selectedOptionsContainer {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        max-height: 50vh !important;
        transform: translateY(100%) !important;
        transition: transform 0.3s ease, opacity 0.3s ease !important;
        opacity: 0 !important;
        pointer-events: none !important;
        border-radius: 15px 15px 0 0 !important;
        padding: 15px 15px 60px 15px !important;
        box-shadow: 0 -5px 30px rgba(0,0,0,0.5) !important;
        border: 1px solid var(--batman-highlight) !important;
        border-bottom: none !important;
        background: var(--batman-panel) !important;
    }

    #selectedOptionsContainer.visible {
        transform: translateY(0) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .options-toggle-handle {
        position: absolute !important;
        bottom: calc(100% - 1px) !important;
        left: 0 !important;
        right: 0 !important;
        height: 30px !important;
        background: var(--batman-primary) !important;
        border-radius: 15px 15px 0 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        cursor: pointer !important;
        border: 1px solid var(--batman-highlight) !important;
        border-bottom: none !important;
    }

    .options-toggle-handle::before {
        content: '' !important;
        width: 50px !important;
        height: 4px !important;
        background: var(--batman-highlight) !important;
        border-radius: 2px !important;
    }
    
    /* Resetujemy ewentualne transformacje rodziców */
    body, html, #viewer-container {
        transform: none !important;
    }
    
    #selectedOptionsList li {
        font-size: 12px;
    }
    
    .total {
        bottom: 2px;
        padding: 6px 12px;
    }
    
    .label {
        font-size: 0.8rem;
    }
    
    .price {
        font-size: 1rem;
    }
    
      .color-picker {
        /* Zachowujemy szerokość ale zmieniamy sposób wyświetlania */
        display: flex;
		bottom: 15%;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 6px; /* Zwiększamy odstęp między elementami */
        padding: 8px 12px;
        max-width: 90%;
        width: max-content; /* Dopasowuje szerokość do zawartości */
        min-width: 80%; /* Minimalna szerokość */
        margin: 0 auto; /* Wyśrodkowanie */
    }

    .color-option {
        width: 15px; /* Nieco większe niż poprzednio */
        height: 15px;
        flex-shrink: 0; /* Zapobiega zmniejszaniu */
        margin: 0; /* Reset marginesów */
    }

    .color-option.default-color {
        padding: 5px 10px;
        font-size: 10px;
        height: 24px;
        flex-shrink: 0;
    }

    .color-separator {
        height: 24px;
        width: 1px;
        margin: 0 2px;
        flex-shrink: 0;
    }

    /* Gwarancja, że elementy nie będą się zawijać zbyt wcześnie */
    .color-picker::after {
        content: "";
        flex-grow: 100;
    }
	

    #viewer-container {
        width: 99%;
        margin: 5px auto 0;
        border-radius: 13px;
    }
	
     .viewer-controls {
        position: absolute;
        top: 90px;
        left: 10px;
        right: auto;
        bottom: auto;
        flex-direction: row;
        gap: 8px;
        z-index: 100;
    }
    
    #resetButton, 
    #rotateButton, 
    .dimensions-button, 
    .fullscreen-button {
        position: relative;
        width: 35px;
        height: 35px;
        margin: 0;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
    }
    
    #resetButton img, 
    #rotateButton img, 
    .dimensions-button img, 
    .fullscreen-button img {
        width: 18px;
        height: 18px;
    }
    
    /* Dostosowanie pozycji przycisków kategorii */
    #categoryButton    { top: 140px; }
    #electricButton    { top: 190px; }
    #hardwareButton    { top: 240px; }
    #reinforcementButton { top: 290px; }
    #extrasButton      { top: 340px; }
    #standardButton    { top: 390px; }
    
    /* Pozostałe style dla bardzo małych ekranów */
    #viewer {
        height: 75vh;
    }
    
    .model-name {
        font-size: 1rem;
    }
    
    .viewer-panel {
        padding: 8px;
    }
    
    .panel-header h3 {
        font-size: 1.1rem;
    }
    
    #selectedOptionsContainer {
        bottom: 130px;
        max-height: 80px;
    }
    
    #selectedOptionsList li {
        font-size: 12px;
    }
    
    .total {
        bottom: 2px;
        padding: 6px 12px;
    }
    
    .label {
        font-size: 0.8rem;
    }
    
    .price {
        font-size: 1rem;
    }
    
    .color-picker {
        padding: 5px 10px;
        bottom: 155px;
    }
    
    .color-option {
        width: 30px;
        height: 30px;
    }
}
@media (max-width: 900px) and (orientation: landscape) {
    /* Ogólne dostosowanie interfejsu */
    #viewer {
        height: 85vh;
    }
    
    /* Przyciski sterujące - stała pozycja u góry */
    .fullscreen-button,
    #rotateButton,
    #resetButton,
    .dimensions-button {
        position: fixed !important;
        top: 70px !important;
        width: 30px !important;
        height: 30px !important;
        margin: 0 !important;
        z-index: 100 !important;
        background: rgba(0, 0, 0, 0.7) !important;
        border: 1px solid var(--batman-highlight) !important;
        border-radius: 50% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .fullscreen-button {
        left: 10px !important;
    }

    #rotateButton {
        left: 50px !important;
    }

    #resetButton {
        left: 90px !important;
    }

    .dimensions-button {
        left: 130px !important;
        display: flex !important;
    }

    .fullscreen-button img,
    #rotateButton img,
    #resetButton img,
    .dimensions-button img {
        width: 16px !important;
        height: 16px !important;
    }

    /* Przyciski kategorii - bardziej zwarte */
    #categoryButton    { top: 120px !important; width: 30px !important; height: 30px !important; }
    #electricButton    { top: 160px !important; width: 30px !important; height: 30px !important; }
    #hardwareButton    { top: 200px !important; width: 30px !important; height: 30px !important; }
    #reinforcementButton { top: 240px !important; width: 30px !important; height: 30px !important; }
    #extrasButton      { top: 280px !important; width: 30px !important; height: 30px !important; }
    #standardButton    { top: 320px !important; width: 30px !important; height: 30px !important; }

    .category-button img {
        width: 55% !important;
        height: 55% !important;
    }

    /* Color picker - stała pozycja na dole */
    .color-picker {
        position: fixed !important;
        bottom: 60px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: auto !important;
        max-width: 90% !important;
        padding: 6px 10px !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 5px !important;
        animation: none !important;
        z-index: 100 !important;
        margin: 0 !important;
    }

    .color-option {
        width: 22px !important;
        height: 22px !important;
    }

    .color-option.default-color {
        padding: 4px 8px !important;
        font-size: 9px !important;
        height: 22px !important;
    }

    .color-separator {
        height: 22px !important;
        width: 1px !important;
        margin: 0 2px !important;
    }

    /* Total price - stała pozycja na dole */
    .total-price-container {
        position: fixed !important;
        bottom: 10px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: auto !important;
        z-index: 100 !important;
        margin: 0 !important;
    }

    .total {
        padding: 6px 15px !important;
        font-size: 0.9rem !important;
    }

    .price {
        font-size: 1.1rem !important;
    }

    /* Panel wybranych opcji - stała pozycja po lewej */
    #selectedOptionsContainer {
        position: fixed !important;
        bottom: 10px !important;
        left: 10px !important;
        right: auto !important;
        max-width: 150px !important;
        max-height: 120px !important;
        height: auto !important;
        z-index: 100 !important;
        padding: 8px !important;
        overflow-y: auto !important;
    }

    #selectedOptionsContainer h3 {
        font-size: 14px !important;
        margin-bottom: 5px !important;
    }

    #selectedOptionsList {
        padding-left: 15px !important;
    }

    #selectedOptionsList li {
        font-size: 10px !important;
        margin-bottom: 5px !important;
    }

    /* Panele opcji - węższe i wyższe */
    .viewer-panel {
        width: 70% !important;
        max-height: 70vh !important;
        bottom: -100vh !important;
        right: auto !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: auto !important;
    }
    
    .viewer-panel.active {
        bottom: 15vh !important;
    }

    /* Optymalizacja wyświetlania opcji */
    .option-description {
        display: none !important;
    }
    
    .option-title {
        font-size: 0.8rem !important;
    }
    
    .option-price {
        font-size: 0.9rem !important;
    }
    
    .panel-header h3 {
        font-size: 1rem !important;
        padding: 10px 0 !important;
    }

    .option-thumbnail {
        width: 80px !important;
        height: 80px !important;
    }

    /* Ukrycie oryginalnych kontrolek */
    .viewer-controls {
        display: none !important;
    }

    /* Model header adjustments */
    .model-header {
        height: 50px !important;
    }

    .model-name {
        font-size: 1.1rem !important;
    }

    .model-icon {
        width: 30px !important;
        height: 30px !important;
    }
}