@font-face {
    font-family: 'IBMPlexMono';
    src: url('/assets/WebPlus_IBM_VGA_9x16.woff') format('woff');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'IBMPlexMono', monospace;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #00bcd4;
    color: #000;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 0;
}

body {
    background: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
    padding: 0;
    margin: 0;
}

header {
    background: #0a0a0a;
    border-bottom: 1px solid #222;
    padding: 20px 40px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.header-btn {
    color: #999;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid #333;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.2s;
    white-space: nowrap;
}

.header-btn:hover {
    color: #fff;
    border-color: #00bcd4;
    background: rgba(0, 188, 212, 0.1);
}

.header-btn-login {
    background: transparent;
    color: #fff;
    border: none;
    font-weight: bold;
}

.header-btn-login:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.header-highlight {
    background: #00bcd4;
    color: #000;
    padding: 6px 12px;
    margin-bottom: 16px;
    font-size: 11px;
    letter-spacing: 0.5px;
    display: inline-block;
}

h1 {
    font-size: 24px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    color: #fff;
}

h2 {
    font-size: 48px;
    margin: 60px 0 32px 0;
    letter-spacing: -0.5px;
    color: #fff;
    font-weight: normal;
    line-height: 1.2;
}

h3 {
    font-size: 20px;
    margin: 40px 0 16px 0;
    letter-spacing: 0.3px;
    color: #fff;
    font-weight: normal;
}

nav {
    margin-top: 16px;
    font-size: 13px;
}

nav a {
    color: #999;
    text-decoration: none;
    margin-right: 24px;
    transition: color 0.2s;
}

nav a:hover {
    color: #fff;
}

a {
    color: #00bcd4;
    text-decoration: none;
}

a:visited {
    color: #00acc1;
}

a:hover {
    text-decoration: underline;
}

main {
    min-height: 70vh;
    font-size: 16px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
}

p {
    margin-bottom: 20px;
    color: #b0b0b0;
    line-height: 1.7;
}

ul, ol {
    margin: 20px 0 20px 32px;
}

li {
    margin-bottom: 12px;
    color: #b0b0b0;
    line-height: 1.7;
}

strong {
    font-weight: bold;
    color: #fff;
}

footer {
    border-top: 1px solid #222;
    margin-top: 80px;
    padding: 32px 40px;
    text-align: center;
    font-size: 12px;
    color: #666;
}

code {
    background: #1a1a1a;
    padding: 3px 8px;
    border: 1px solid #333;
    font-size: 13px;
    color: #00bcd4;
}

.warning {
    border: 1px solid #444;
    padding: 20px;
    margin: 32px 0;
    background: #1a1a1a;
    font-size: 14px;
}

.critical {
    border: 1px solid #00bcd4;
    padding: 20px;
    margin: 32px 0;
    background: #0a1a1a;
    color: #fff;
    font-size: 14px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.product-card {
    border: 1px solid #333;
    padding: 24px;
    background: #2973B2f0f;
    transition: border-color 0.2s;
}

.product-card:hover {
    border-color: #00bcd4;
}

.product-card h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
}

.product-subtitle {
    color: #666;
    font-size: 12px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-card p {
    margin-bottom: 16px;
}

.product-card a {
    color: #00bcd4;
    text-decoration: none;
    font-size: 14px;
}

.product-card a:hover {
    text-decoration: underline;
}

.product-detail {
    max-width: 1000px;
    margin: 0 auto;
}

.product-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
    align-items: center;
}

.product-image {
    background: #2973B2f0f;
    border: 1px solid #333;
    padding: 40px;
    text-align: center;
}

.product-image img {
    max-width: 100%;
    height: auto;
}

.product-info h2 {
    margin: 0 0 8px 0;
}

.product-tagline {
    color: #666;
    font-size: 14px;
    margin-bottom: 16px;
}

.product-price {
    font-size: 24px;
    color: #00bcd4;
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-block;
    background: #00bcd4;
    color: #000;
    padding: 12px 32px;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.5px;
    margin-top: 16px;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #00acc1;
    text-decoration: none;
}

.product-section {
    margin-bottom: 48px;
    border-bottom: 1px solid #222;
    padding-bottom: 32px;
}

.product-section:last-child {
    border-bottom: none;
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.model-card {
    border: 1px solid #333;
    padding: 20px;
    background: #2973B2f0f;
}

.model-card h4 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #fff;
}

.model-card p {
    font-size: 13px;
    margin-bottom: 8px;
}

.cta-section {
    text-align: center;
    padding: 40px 0;
    background: #2973B2f0f;
    border: 1px solid #333;
    margin-top: 60px;
}

.cta-section h3 {
    margin-bottom: 20px;
}

.config-note {
    background: #2973B2f0f;
    border: 1px solid #00bcd4;
    padding: 12px;
    font-size: 11px;
    font-family: monospace;
    color: #00bcd4;
    margin-bottom: 24px;
}

.product-section h4 {
    font-size: 16px;
    color: #fff;
    margin: 20px 0 12px 0;
}

.configurator {
    display: grid !important;
    grid-template-columns: 380px 1fr !important;
    gap: 32px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px 40px;
    width: 100%;
}

.configurator-images {
    position: sticky;
    top: 80px;
    height: fit-content;
}

.image-gallery {
    width: 100%;
    max-width: 380px;
    position: relative;
}

.image-carousel {
    position: relative;
}

.image-gallery #main-image {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    margin-bottom: 12px;
    display: block;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #2973B2;
    border: 1px solid #2973B2;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    transition: background 0.2s, color 0.2s;
}

.carousel-arrow:hover {
    background: #2973B2;
    color: #000;
}

.carousel-arrow.prev {
    left: 10px;
}

.carousel-arrow.next {
    right: 10px;
}

.image-counter {
    position: absolute;
    bottom: 24px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #2973B2;
    padding: 4px 8px;
    font-size: 12px;
    border: 1px solid #2973B2;
}

.image-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.main-image {
    cursor: pointer;
}

.thumb-image {
    cursor: pointer;
}

.image-thumbs img {
    width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    cursor: pointer;
    transition: opacity 0.2s, border 0.2s;
    opacity: 0.5;
    border: 2px solid transparent;
}

.image-thumbs img:hover {
    opacity: 0.8;
}

.image-thumbs img.active {
    opacity: 1;
    border: 2px solid #2973B2;
}

.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    cursor: pointer;
}

.modal-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 95%;
    max-height: 95%;
    border: 1px solid #00bcd4;
}

.configurator-options h2 {
    margin: 0 0 8px 0;
}

.config-subtitle {
    color: #666;
    font-size: 13px;
    margin-bottom: 16px;
}

.config-price {
    font-size: 28px;
    color: #00bcd4;
    margin-bottom: 32px;
    line-height: 1.4;
}

.crypto-price {
    font-size: 14px;
    color: #666;
    display: block;
    margin-top: 8px;
}

.config-option {
    margin-bottom: 20px;
}

.config-option label {
    display: block;
    font-size: 12px;
    margin-bottom: 6px;
    color: #fff;
}

.config-option select,
.config-option textarea {
    width: 100%;
    background: #0f0f0f;
    border: 1px solid #333;
    color: #e0e0e0;
    font-size: 13px;
    padding: 10px;
    font-size: 13px;
    font-family: 'IBMPlexMono', monospace;
}

.config-option select:focus,
.config-option textarea:focus {
    outline: none;
    border-color: #00bcd4;
}

.config-option textarea {
    resize: vertical;
}

.config-option input[type="checkbox"] {
    margin-right: 8px;
}

.config-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 32px 0;
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: #00bcd4;
    border: 1px solid #00bcd4;
    padding: 12px 32px;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-align: center;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #00bcd4;
    color: #000;
}

.config-info {
    background: #2973B2f0f;
    border: 1px solid #333;
    padding: 16px;
    font-size: 12px;
}

.config-info p {
    margin-bottom: 8px;
}

.capacity-btn {
    flex: 1;
    padding: 10px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #999;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'IBMPlexMono', monospace;
    font-size: 13px;
}

.capacity-btn:hover {
    border-color: #2973B2;
    color: #2973B2;
}

.capacity-btn.active {
    background: #2973B2;
    color: #000;
    border-color: #2973B2;
}

.bay-box {
    background: #1a1a1a;
    border: 2px solid #333;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.bay-box:hover {
    border-color: #2973B2;
}

.bay-box.filled {
    background: #1a1d20;
    border-color: #2973B2;
}

.bay-icon {
    display: none;
}

.bay-label {
    font-size: 9px;
    color: #666;
    margin-bottom: 2px;
}

.bay-status {
    font-size: 9px;
    color: #2973B2;
    font-weight: bold;
}

@media (max-width: 900px) {
    .configurator {
        grid-template-columns: 1fr !important;
        padding: 10px;
    }
    
    .configurator-images {
        position: relative;
        top: 0;
    }

    .product-hero {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .model-grid {
        grid-template-columns: 1fr;
    }
    
    .config-actions {
        grid-template-columns: 1fr;
    }
}

/* Slider styling for all range inputs */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    background: #00bcd4;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: #00bcd4;
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: #00bcd4;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.cart-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #111;
    border: 1px solid #333;
}

.cart-table th,
.cart-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #222;
}

.cart-table th {
    background: #0a0a0a;
    color: #00bcd4;
    font-weight: normal;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.cart-table tbody tr:hover {
    background: rgba(0, 188, 212, 0.05);
}

.cart-table tfoot td {
    font-size: 18px;
    padding: 20px 16px;
    border-top: 2px solid #00bcd4;
}

.config-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 12px;
    color: #999;
}

.config-list li {
    padding: 2px 0;
}

.quantity-input {
    width: 60px;
    padding: 8px;
    background: #0a0a0a;
    border: 1px solid #333;
    color: #e0e0e0;
    font-size: 13px;
    text-align: center;
}

.quantity-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-small {
    padding: 6px 12px;
    font-size: 11px;
    background: #00bcd4;
    color: #000;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-small:hover {
    background: #00d4ea;
}

.btn-danger {
    padding: 8px 16px;
    font-size: 12px;
    background: #d32f2f;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-danger:hover {
    background: #f44336;
}

.cart-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin: 20px 0;
    flex-wrap: wrap;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #999;
}

.cart-info {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: #111;
    border: 1px solid #333;
}

.cart-info h3 {
    margin-top: 0;
}

.cart-info ul {
    list-style: none;
    padding: 0;
}

.cart-info li {
    padding: 8px 0;
    border-bottom: 1px solid #222;
}

.cart-info li:last-child {
    border-bottom: none;
}

.success-message,
.error-message {
    padding: 16px;
    margin: 20px 0;
    border-radius: 4px;
}

.success-message {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4caf50;
    color: #4caf50;
}

.error-message {
    background: rgba(211, 47, 47, 0.1);
    border: 1px solid #d32f2f;
    color: #f44336;
}

.account-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.account-section {
    background: #111;
    border: 1px solid #333;
    padding: 24px;
}

.account-section h3 {
    margin-top: 0;
    color: #00bcd4;
}

.account-security {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: rgba(211, 47, 47, 0.1);
    border: 1px solid #d32f2f;
}

.add-to-cart-form {
    margin: 20px 0;
    padding: 20px;
    background: #111;
    border: 1px solid #333;
}

.add-to-cart-form label {
    display: block;
    margin: 12px 0 4px 0;
    color: #00bcd4;
    font-size: 13px;
}

.add-to-cart-form select,
.add-to-cart-form input[type="number"],
.add-to-cart-form input[type="text"] {
    width: 100%;
    padding: 10px;
    background: #0a0a0a;
    border: 1px solid #333;
    color: #e0e0e0;
    font-size: 14px;
    margin-bottom: 12px;
}

.add-to-cart-form select:focus,
.add-to-cart-form input:focus {
    outline: none;
    border-color: #00bcd4;
}

.add-to-cart-form button[type="submit"] {
    width: 100%;
    margin-top: 12px;
}

.cart-message {
    padding: 12px;
    margin: 12px 0;
    border-radius: 4px;
    font-size: 13px;
}

.cart-message.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4caf50;
    color: #4caf50;
}

.cart-message.error {
    background: rgba(211, 47, 47, 0.1);
    border: 1px solid #d32f2f;
    color: #f44336;
}

.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.checkout-section {
    background: #111;
    border: 1px solid #333;
    padding: 24px;
    margin: 20px 0;
}

.checkout-section h3 {
    margin-top: 0;
    color: #00bcd4;
}

.shipping-option {
    padding: 16px;
    margin: 12px 0;
    background: #0a0a0a;
    border: 1px solid #333;
    cursor: pointer;
    transition: border-color 0.2s;
}

.shipping-option:hover {
    border-color: #00bcd4;
}

.shipping-option input[type="radio"] {
    margin-right: 12px;
}

.shipping-option label {
    cursor: pointer;
    display: inline-block;
}

.payment-info {
    background: #0a0a0a;
    border: 1px solid #333;
    padding: 16px;
    margin: 16px 0;
}

.payment-info h4 {
    margin: 0 0 12px 0;
    color: #00bcd4;
    font-size: 14px;
}

.payment-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.payment-info li {
    padding: 8px 0;
}

.checkout-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin: 20px 0;
}

.checkout-security {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: rgba(0, 188, 212, 0.1);
    border: 1px solid #00bcd4;
}

.checkout-security h3 {
    margin-top: 0;
}

.checkout-security ul {
    list-style: none;
    padding: 0;
}

.checkout-security li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 188, 212, 0.2);
}

.checkout-security li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .cart-table {
        font-size: 12px;
    }
    
    .cart-table th,
    .cart-table td {
        padding: 8px;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .header-container {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .header-actions {
        flex-wrap: wrap;
    }
}

