* {
    box-sizing: border-box;
}

body {
    background-color: black;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
}

.container {
    text-align: center;
    max-width: 1200px;
    width: 100%;
    padding: 20px;
}

.main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    width: 100%;
}

.logo-section {
    flex-shrink: 0;
}

.logo-section img {
    width: 900px;
    height: auto;
    display: block;
}

.main-buttons {
    margin: 30px 0;
}

.main-buttons a {
    display: inline-block;
    padding: 12px 25px;
    margin: 10px;
    border: 2px solid #ff4d4d;
    color: #ff4d4d;
    background: transparent;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.main-buttons a:hover {
    background-color: #ff4d4d;
    color: white;
    transform: translateY(-2px);
}

/* Order Form Styles */
.order-form {
    display: none;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(255, 77, 77, 0.2);
    border: 1px solid #333;
    flex-shrink: 0;
    width: 800px;
    text-align: left;
}

.order-form.active {
    display: block;
    animation: slideIn 0.5s ease-out;
}

/* Hide logo when order form is active on small screens */
.order-form.active ~ .main-buttons {
    display: none;
}

@media (max-width: 1366px) {
    .order-form.active {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        z-index: 1000;
        overflow-y: auto;
        margin: 0;
        border-radius: 0;
        background: #0a0a0a;
    }

    .container:has(.order-form.active) .logo-section {
        display: none;
    }
    
    .container:has(.order-form.active) .main-buttons {
        display: none;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    color: #ff4d4d;
    margin-bottom: 10px;
    font-size: 2em;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #333;
    border-radius: 3px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff4d4d, #ff6b6b);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.step {
    display: none;
}

.step.active {
    display: block;
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.step h3 {
    color: #ff4d4d;
    margin-bottom: 20px;
    text-align: center;
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.option-card {
    background: #2a2a2a;
    border: 2px solid #444;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.option-card:hover {
    border-color: #ff4d4d;
    background: #333;
    transform: translateY(-5px);
}

.option-card.selected {
    border-color: #ff4d4d;
    background: linear-gradient(135deg, #ff4d4d20, #ff4d4d10);
}

.option-card h4 {
    color: #ff4d4d;
    margin-bottom: 10px;
}

.option-card p {
    color: #ccc;
    font-size: 0.9em;
}

/* Modern Chips Configuration Styles */
.chips-config {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-group {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 25px;
    border: 2px solid #444;
    transition: all 0.3s ease;
}

.input-group:hover {
    border-color: #ff4d4d;
    box-shadow: 0 5px 20px rgba(255, 77, 77, 0.1);
}

.input-label {
    display: block;
    color: #ff4d4d;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.chips-input-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.chips-input {
    width: 100%;
    background: #1a1a1a;
    border: 2px solid #444;
    border-radius: 8px;
    padding: 15px 20px;
    color: white;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
}

.chips-input:focus {
    outline: none;
    border-color: #ff4d4d;
    box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.2);
}

.chips-input::-webkit-inner-spin-button,
.chips-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.chips-input[type="number"] {
    -moz-appearance: textfield;
}

.quick-select {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.quick-btn {
    padding: 8px 16px;
    background: #333;
    border: 1px solid #555;
    border-radius: 6px;
    color: #ccc;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-btn:hover {
    background: #ff4d4d;
    border-color: #ff4d4d;
    color: white;
    transform: translateY(-2px);
}

.price-breakdown {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 25px;
    border: 2px solid #444;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #444;
}

.price-row:last-child {
    border-bottom: none;
    padding-top: 20px;
    margin-top: 10px;
    border-top: 2px solid #ff4d4d;
}

.price-label {
    color: #999;
    font-size: 0.95em;
}

.price-value {
    color: white;
    font-weight: bold;
    font-size: 1.1em;
}

.price-row.total .price-label {
    color: #ff4d4d;
    font-size: 1.1em;
    font-weight: bold;
}

.price-row.total .price-value {
    color: #ff4d4d;
    font-size: 1.4em;
}

.delivery-badge {
    background: linear-gradient(135deg, #ff4d4d, #ff6b6b);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(255, 77, 77, 0.3);
}

.delivery-badge h4 {
    color: white;
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.delivery-badge p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.95em;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.form-navigation a {
    display: inline-block;
    padding: 12px 25px;
    margin: 10px;
    border: 2px solid #ff4d4d;
    color: #ff4d4d;
    background: transparent;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #ff4d4d;
    color: white;
}

.btn-primary:hover {
    background: #ff3333;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #ff4d4d;
    border: 2px solid #ff4d4d;
}

.btn-secondary:hover {
    background: #ff4d4d;
    color: white;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.summary {
    background: #2a2a2a;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #ff4d4d;
}

.summary h4 {
    color: #ff4d4d;
    margin-bottom: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    padding: 5px 0;
    border-bottom: 1px solid #444;
}

.contact-info {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.footer {
    position: fixed;
    bottom: 10px;
    right: 10px;
}

.footer a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer a:hover {
    opacity: 1;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.billing-form .input-group {
    margin-bottom: 20px;
}

select.chips-input {
    cursor: pointer;
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border: 1px solid #444;
    max-height: 200px;
    overflow-y: auto;
    border-radius: 0 0 8px 8px;
    z-index: 10;
    margin-top: 5px;
    list-style: none;
    padding: 0;
}

.suggestions li {
    padding: 10px 15px;
    cursor: pointer;
    color: #ccc;
    transition: background 0.2s;
}

.suggestions li:hover,
.suggestions li.active {
    background: #333;
    color: white;
}

/* Modernes Card-Design für die Zusammenfassung */
.order-summary {
    background: linear-gradient(135deg, #1e1e1e, #2b2b2b);
    border-radius: 12px;
    padding: 30px;
    padding-top: 0;
    border: 1px solid #444;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.order-summary h4 {
    grid-column: 1 / -1;
    color: #ff4d4d;
    margin-bottom: 15px;
    font-size: 1.6em;
    text-align: center;
}

.summary-row {
    display: flex;
    flex-direction: column;
}

.summary-row span:first-child {
    color: #999;
    font-size: 0.9em;
}

.summary-row span:last-child {
    color: #fff;
    font-weight: bold;
    font-size: 1.1em;
    margin-top: 3px;
}

/* Optional: über beide Spalten ziehen (z.B. Preis) */
.summary-row.full {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #444;
}

.summary-row.full span:first-child {
    font-size: 1.2em;
    color: #ff4d4d;
    font-weight: bold;
}

.summary-row.full span:last-child {
    font-size: 1.4em;
    color: #ff4d4d;
}

/* Preloader Styles */
.order-preloader {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-radius: 15px;
    overflow: hidden;
}

.order-preloader.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-content {
    text-align: center;
    animation: fadeInUp 0.5s ease-out;
}

.spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    position: relative;
}

.spinner-circle {
    width: 100%;
    height: 100%;
    border: 4px solid rgba(255, 77, 77, 0.1);
    border-top-color: #ff4d4d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-circle::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 4px solid rgba(255, 77, 77, 0.1);
    border-right-color: #ff6b6b;
    border-radius: 50%;
    animation: spin 1.5s linear infinite reverse;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.preloader-content h3 {
    color: #ff4d4d;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.preloader-content p {
    color: #999;
    font-size: 0.95em;
}

/* Success Message Styles */
.order-success {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    z-index: 1000;
    border-radius: 15px;
    overflow: hidden;
}

.order-success.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-content {
    text-align: center;
    animation: fadeInUp 0.5s ease-out;
    max-width: 600px;
    padding: 40px;
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #ff4d4d, #ff6b6b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s ease-out 0.3s both;
}

.success-icon svg {
    width: 50px;
    height: 50px;
    color: white;
    animation: checkmark 0.6s ease-out 0.8s both;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes checkmark {
    0% {
        stroke-dasharray: 50;
        stroke-dashoffset: 50;
    }
    100% {
        stroke-dasharray: 50;
        stroke-dashoffset: 0;
    }
}

.success-content h3 {
    color: #ff4d4d;
    margin-bottom: 15px;
    font-size: 2em;
}

.success-content p {
    color: #ccc;
    margin-bottom: 20px;
}

.success-details {
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
}

.success-details p {
    margin: 10px 0;
    color: #999;
}

.success-details span {
    color: #ff4d4d;
    font-weight: bold;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse animation for button */
.order-success .btn-primary {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.order-success .btn-primary {
    background: linear-gradient(135deg, #0070ba, #003087);
    border: none;
    font-size: 1.2em;
    padding: 15px 30px;
    animation: pulse 2s infinite;
}

.order-success .btn-primary:hover {
    background: linear-gradient(135deg, #003087, #001654);
}

.order-success .btn-secondary {
    background: transparent;
    border: 2px solid #ff4d4d;
    color: #ff4d4d;
    margin-top: 10px;
}

.order-success .btn-secondary:hover {
    background: #ff4d4d;
    color: white;
}

/* Account Configuration Styles */
.account-type-selection h4 {
    color: #ff4d4d;
    margin-bottom: 20px;
    text-align: center;
}

.level-configuration {
    animation: fadeIn 0.5s ease-in;
}

.level-inputs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.level-inputs .input-group {
    flex: 1;
}

.level-price-breakdown {
    animation: slideIn 0.5s ease-out;
}

.level-info-box {
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.level-info-box h5 {
    color: #ff4d4d;
    margin: 0 0 10px 0;
    font-size: 1.1em;
}

.level-info-box p {
    color: #ccc;
    margin: 0;
    font-size: 0.95em;
    line-height: 1.5;
}

#levelDetails {
    font-size: 0.9em;
    line-height: 1.6;
}

/* Item Configuration Styles */
.item-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid #333;
}

.tab-btn {
    background: transparent;
    border: none;
    color: #999;
    padding: 15px 25px;
    font-size: 1.1em;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-btn:hover {
    color: #ff4d4d;
}

.tab-btn.active {
    color: #ff4d4d;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ff4d4d;
}

.item-count {
    background: rgba(255, 77, 77, 0.2);
    color: #ff4d4d;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.9em;
    font-weight: bold;
}

.item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    background: #2a2a2a;
    border: 2px solid #444;
    border-radius: 25px;
    padding: 12px 45px 12px 20px;
    color: white;
    font-size: 1em;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #ff4d4d;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.filter-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-info span {
    color: #999;
}

.clear-btn {
    background: transparent;
    border: 1px solid #666;
    color: #999;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-btn:hover {
    border-color: #ff4d4d;
    color: #ff4d4d;
}

.items-container {
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 25px;
    padding-right: 10px;
    padding-top: 10px;
}

.items-container::-webkit-scrollbar {
    width: 8px;
}

.items-container::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.items-container::-webkit-scrollbar-thumb {
    background: #ff4d4d;
    border-radius: 4px;
}

.items-grid {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.items-grid.active {
    display: grid;
}

.item-card {
    background: #2a2a2a;
    border: 2px solid #444;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.item-card:hover {
    border-color: #ff4d4d;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 77, 77, 0.2);
}

.item-card.selected {
    border-color: #ff4d4d;
    background: linear-gradient(135deg, #ff4d4d20, #ff4d4d10);
}

.item-card[data-category="backgrounds"] .item-image {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
}

#backgroundsGrid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

#outfitsGrid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); 
    gap: 20px;
}

.item-card[data-category="outfits"] .item-image {
    position: relative;
    width: 100%;
    height: 220px; 
    overflow: hidden;
}

.item-card[data-category="outfits"] .item-image img {
    height: 100%;
    max-width: 100%;
    object-fit: contain; 
    object-position: center;
    padding-top: 10px;
}

.item-image {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.item-card:hover .item-image img {
    transform: scale(1.1);
}

.item-overlay {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.8);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    color: #ff4d4d;
}

.item-info {
    padding: 15px;
}

.item-info h5 {
    color: white;
    margin: 0 0 8px 0;
    font-size: 1em;
}

.item-price {
    color: #ff4d4d;
    font-weight: bold;
    font-size: 1.1em;
    margin: 0;
}

.item-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
}

.item-checkbox input {
    display: none;
}

.item-checkbox label {
    display: block;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #666;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.item-card.selected .item-checkbox label {
    background: #ff4d4d;
    border-color: #ff4d4d;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.item-card.selected .checkmark {
    opacity: 1;
    color: white;
}

.selected-items-summary {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border: 2px solid #444;
}

.selected-items-summary h4 {
    color: #ff4d4d;
    margin: 0 0 20px 0;
}

.selected-items-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.selected-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #1a1a1a;
    border-radius: 8px;
    margin-bottom: 10px;
}

.selected-item-name {
    color: white;
    flex: 1;
}

.selected-item-price {
    color: #ff4d4d;
    margin: 0 15px;
}

.remove-item {
    background: transparent;
    border: 1px solid #666;
    color: #999;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-item:hover {
    border-color: #ff4d4d;
    color: #ff4d4d;
}

.items-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 2px solid #444;
    font-size: 1.2em;
    font-weight: bold;
}

.items-total span:first-child {
    color: #999;
}

.items-total span:last-child {
    color: #ff4d4d;
}

#backgroundsReviewGrid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

#outfitsReviewGrid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
}

.items-review-container {
    background: #2a2a2a;
    border-radius: 15px;
    padding: 30px;
    border: 2px solid #444;
}

.items-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #444;
}

.items-review-header h4 {
    color: #ff4d4d;
    margin: 0;
    font-size: 1.5em;
}

.items-total-count {
    color: #999;
    font-size: 1.1em;
}

.items-total-count span {
    color: #ff4d4d;
    font-weight: bold;
}

.items-by-category {
    margin-bottom: 30px;
}

.category-section {
    margin-bottom: 30px;
}

.category-section h5 {
    color: white;
    margin: 0 0 20px 0;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-items-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.review-item {
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.review-item:hover {
    border-color: #ff4d4d;
    transform: translateY(-3px);
}

.review-item[data-category="backgrounds"] .review-item-image {
    width: 100%;
    height: 100px;
    overflow: hidden;
}

.review-item[data-category="outfits"] .review-item-image {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: #f0f0f0;
}

.review-item[data-category="outfits"] .review-item-image img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
}

.review-item-image {
    width: 100%;
    height: 100px;
    overflow: hidden;
}

.review-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-item-info {
    padding: 10px;
    text-align: center;
}

.review-item-info h6 {
    color: white;
    margin: 0 0 5px 0;
    font-size: 0.9em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-item-id {
    color: #666;
    font-size: 0.8em;
    margin: 0 0 5px 0;
}

.review-item-price {
    color: #ff4d4d;
    font-weight: bold;
    margin: 0;
}

.items-price-summary {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.price-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: #ccc;
}

.price-summary-row.total {
    border-top: 2px solid #ff4d4d;
    padding-top: 15px;
    margin-top: 10px;
    font-size: 1.2em;
    font-weight: bold;
    color: white;
}

.price-summary-row.total span:last-child {
    color: #ff4d4d;
}

.edit-selection-note {
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.3);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.edit-selection-note p {
    color: #ff4d4d;
    margin: 0;
    font-size: 0.95em;
}

.policy-acceptance {
    margin: 20px 0;
}

.checkbox-group {
    margin-top: 15px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 10px;
}

.checkbox-item input[type="checkbox"] {
    margin-top: 2px;
    min-width: 16px;
}

.checkbox-item label {
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
}

.checkbox-item label a {
    color: #007bff;
    text-decoration: none;
}

.checkbox-item label a:hover {
    text-decoration: underline;
}

/* TABLET OPTIMIZATIONS (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        padding: 15px;
    }

    .logo-section img {
        width: 700px;
        max-width: 100%;
    }

    .order-form {
        width: 90%;
        max-width: 700px;
        padding: 25px;
    }

    .form-header h2 {
        font-size: 1.8em;
    }

    .option-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }

    .option-card {
        padding: 18px;
    }

    .chips-input {
        font-size: 1.1em;
        padding: 12px 18px;
    }

    .input-group {
        padding: 20px;
    }

    .quick-select {
        justify-content: center;
    }

    .quick-btn {
        padding: 10px 18px;
        font-size: 0.95em;
        min-height: 44px;
    }

    .price-breakdown {
        padding: 20px;
    }

    .form-navigation {
        gap: 15px;
    }

    .btn {
        padding: 14px 28px;
        font-size: 1.05em;
        min-height: 44px;
    }

    .order-summary {
        padding: 25px;
        gap: 15px;
    }

    .summary-row span:last-child {
        font-size: 1.05em;
    }

    .level-inputs {
        gap: 15px;
    }

    .item-tabs {
        gap: 15px;
        margin-bottom: 25px;
    }

    .tab-btn {
        padding: 12px 20px;
        font-size: 1em;
        min-height: 44px;
    }

    .item-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .search-box {
        max-width: none;
    }

    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    #outfitsGrid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .items-review-container {
        padding: 25px;
    }
}

/* MOBILE OPTIMIZATIONS (up to 768px) */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .main-content {
        flex-direction: column;
        gap: 20px;
    }

    .logo-section {
        min-width: auto;
    }

    .logo-section img {
        width: 100%;
        max-width: 500px;
    }

    .main-buttons {
        margin: 20px 0;
    }

    .main-buttons a {
        display: block;
        margin: 10px auto;
        max-width: 280px;
        padding: 15px 25px;
        font-size: 1.1em;
        min-height: 44px;
    }

    .order-form {
        width: 100%;
        max-width: none;
        padding: 20px;
        margin: 0 5px;
        border-radius: 12px;
    }

    /* Fullscreen form for mobile */
    .order-form.active {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        max-width: none;
        z-index: 1000;
        overflow-y: auto;
        margin: 0;
        border-radius: 0;
        background: #0a0a0a;
        padding: 15px;
    }

    .form-header h2 {
        font-size: 1.6em;
        margin-bottom: 15px;
    }

    .step h3 {
        font-size: 1.4em;
        margin-bottom: 15px;
    }

    .option-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 15px 0;
    }

    .option-card {
        padding: 15px;
        text-align: left;
        min-height: 60px;
    }

    .option-card h4 {
        font-size: 1.1em;
        margin-bottom: 8px;
    }

    .option-card p {
        font-size: 0.85em;
    }

    .chips-config {
        gap: 20px;
    }

    .input-group {
        padding: 18px;
        margin-bottom: 15px;
    }

    .input-label {
        font-size: 1em;
        margin-bottom: 12px;
    }

    .chips-input {
        font-size: 1.1em;
        padding: 14px 16px;
    }

    .quick-select {
        justify-content: center;
        gap: 8px;
    }

    .quick-btn {
        padding: 10px 14px;
        font-size: 0.85em;
        flex: 1;
        min-width: 0;
        text-align: center;
        min-height: 44px;
    }

    .price-breakdown {
        padding: 18px;
    }

    .price-row {
        padding: 10px 0;
    }

    .price-label {
        font-size: 0.9em;
    }

    .price-value {
        font-size: 1em;
    }

    .price-row.total .price-label {
        font-size: 1em;
    }

    .price-row.total .price-value {
        font-size: 1.2em;
    }

    .delivery-badge {
        padding: 15px;
    }

    .delivery-badge h4 {
        font-size: 1.1em;
    }

    .delivery-badge p {
        font-size: 0.9em;
    }

    .form-navigation {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }

    .btn {
        padding: 14px 20px;
        font-size: 1.05em;
        width: 100%;
        text-align: center;
        min-height: 44px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .order-summary {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 12px;
    }

    .order-summary h4 {
        font-size: 1.4em;
        margin-bottom: 20px;
    }

    .summary-row {
        padding: 8px 0;
        border-bottom: 1px solid #444;
    }

    .summary-row:last-child {
        border-bottom: none;
    }

    .summary-row span:first-child {
        font-size: 0.85em;
    }

    .summary-row span:last-child {
        font-size: 1em;
        margin-top: 2px;
    }

    .summary-row.full {
        grid-column: 1;
        flex-direction: row;
        justify-content: space-between;
        padding: 12px 0;
        margin-top: 10px;
        border-top: 2px solid #ff4d4d;
        border-bottom: none;
    }

    .summary-row.full span:first-child {
        font-size: 1.1em;
    }

    .summary-row.full span:last-child {
        font-size: 1.3em;
    }

    .level-inputs {
        flex-direction: column;
        gap: 15px;
    }

    .item-tabs {
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 20px;
    }

    .tab-btn {
        padding: 10px 15px;
        font-size: 0.95em;
        min-height: 44px;
        flex: 1;
        min-width: 120px;
    }

    .item-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .search-box {
        max-width: none;
    }

    .filter-info {
        justify-content: space-between;
    }

    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    #backgroundsGrid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    #outfitsGrid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .item-card[data-category="outfits"] .item-image {
        height: 180px;
    }

    .items-review-container {
        padding: 20px;
    }

    .items-review-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .review-items-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .footer {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 30px;
        text-align: center;
        padding: 20px;
    }

    .footer a {
        display: block;
        margin: 10px 0;
        font-size: 0.9em;
    }
}

/* SMALL MOBILE OPTIMIZATIONS (up to 480px) */
@media (max-width: 480px) {
    .container {
        padding: 8px;
    }

    .logo-section img {
        max-width: 400px;
    }

    .order-form {
        padding: 15px;
        margin: 0 2px;
    }

    .form-header h2 {
        font-size: 1.4em;
    }

    .step h3 {
        font-size: 1.2em;
    }

    .option-card {
        padding: 12px;
    }

    .option-card h4 {
        font-size: 1em;
    }

    .input-group {
        padding: 15px;
    }

    .input-label {
        font-size: 0.95em;
    }

    .chips-input {
        font-size: 1em;
        padding: 12px 14px;
    }

    .quick-select {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .quick-btn {
        padding: 8px 10px;
        font-size: 0.8em;
        min-height: 40px;
    }

    .price-breakdown {
        padding: 15px;
    }

    .price-label,
    .price-value {
        font-size: 0.85em;
    }

    .price-row.total .price-label {
        font-size: 0.95em;
    }

    .price-row.total .price-value {
        font-size: 1.1em;
    }

    .btn {
        padding: 12px 18px;
        font-size: 1em;
        min-height: 40px;
    }

    .order-summary {
        padding: 15px;
    }

    .order-summary h4 {
        font-size: 1.3em;
    }

    .summary-row span:first-child {
        font-size: 0.8em;
    }

    .summary-row span:last-child {
        font-size: 0.95em;
    }

    .summary-row.full span:first-child {
        font-size: 1em;
    }

    .summary-row.full span:last-child {
        font-size: 1.2em;
    }

    .tab-btn {
        font-size: 0.9em;
        padding: 8px 12px;
        min-width: 100px;
    }

    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    #outfitsGrid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}

/* VERY SMALL MOBILE (up to 320px) */
@media (max-width: 320px) {
    .logo-section img {
        max-width: 300px;
    }

    .order-form {
        padding: 12px;
    }

    .form-header h2 {
        font-size: 1.3em;
    }

    .step h3 {
        font-size: 1.1em;
    }

    .quick-select {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-btn {
        font-size: 0.75em;
        padding: 6px 8px;
        min-height: 36px;
    }

    .btn {
        font-size: 0.95em;
        padding: 10px 15px;
        min-height: 36px;
    }

    .tab-btn {
        font-size: 0.85em;
        min-width: 80px;
    }

    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

/* LANDSCAPE ORIENTATION OPTIMIZATIONS */
@media (max-height: 600px) and (orientation: landscape) {
    .container {
        padding: 10px;
    }

    .main-content {
        margin-bottom: 20px;
    }

    .logo-section img {
        max-width: 400px;
    }

    .order-form {
        max-height: 80vh;
        overflow-y: auto;
    }

    .form-header {
        margin-bottom: 20px;
    }

    .form-header h2 {
        font-size: 1.5em;
    }

    .step h3 {
        font-size: 1.3em;
        margin-bottom: 15px;
    }

    .input-group {
        padding: 15px;
    }

    .form-navigation {
        margin-top: 15px;
    }
}

/* ACCESSIBILITY IMPROVEMENTS */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* HIGH CONTRAST MODE */
@media (prefers-contrast: high) {
    .option-card {
        border-width: 3px;
    }

    .chips-input {
        border-width: 3px;
    }

    .btn {
        border-width: 3px;
    }
}

/* SMALL PC SCREENS / NETBOOKS (1025px - 1366px) */
@media (min-width: 1025px) and (max-width: 1366px) {
    .container {
        max-width: 1000px;
        padding: 18px;
    }

    .logo-section img {
        width: 750px;
        max-width: 100%;
    }

    .order-form {
        width: 85%;
        max-width: 750px;
        padding: 28px;
    }

    .form-header h2 {
        font-size: 1.9em;
    }

    .step h3 {
        font-size: 1.5em;
    }

    .option-grid {
        grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
        gap: 18px;
    }

    .option-card {
        padding: 19px;
    }

    .input-group {
        padding: 22px;
    }

    .chips-input {
        font-size: 1.15em;
        padding: 13px 19px;
    }

    .price-breakdown {
        padding: 22px;
    }

    .order-summary {
        padding: 28px;
        gap: 18px;
    }

    .order-summary h4 {
        font-size: 1.5em;
    }

    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 18px;
    }

    #outfitsGrid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }

    .items-review-container {
        padding: 28px;
    }

    .btn {
        padding: 13px 26px;
        font-size: 1.03em;
    }
}

/* VERY SMALL PC SCREENS / OLD LAPTOPS (1025px - 1280px) */
@media (min-width: 1025px) and (max-width: 1280px) {
    .container {
        max-width: 900px;
    }

    .logo-section img {
        width: 650px;
    }

    .order-form {
        width: 90%;
        max-width: 650px;
        padding: 25px;
    }

    .form-header h2 {
        font-size: 1.7em;
    }

    .option-grid {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        gap: 16px;
    }

    .option-card {
        padding: 17px;
    }

    .input-group {
        padding: 20px;
    }

    .chips-input {
        font-size: 1.1em;
        padding: 12px 17px;
    }

    .quick-select {
        justify-content: center;
        gap: 8px;
    }

    .quick-btn {
        padding: 9px 15px;
        font-size: 0.9em;
    }

    .price-breakdown {
        padding: 20px;
    }

    .order-summary {
        padding: 25px;
        gap: 16px;
    }

    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    #outfitsGrid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .level-inputs {
        gap: 16px;
    }

    .item-tabs {
        gap: 16px;
    }

    .tab-btn {
        padding: 13px 22px;
        font-size: 1.05em;
    }
}

/* NETBOOK SCREENS (1025px - 1200px) */
@media (min-width: 1025px) and (max-width: 1200px) {
    .container {
        max-width: 800px;
        padding: 15px;
    }

    .logo-section img {
        width: 600px;
    }

    .order-form {
        width: 95%;
        max-width: 600px;
        padding: 22px;
    }

    /* Fullscreen form for netbooks */
    .order-form.active {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        max-width: none;
        z-index: 1000;
        overflow-y: auto;
        margin: 0;
        border-radius: 0;
        background: #0a0a0a;
        padding: 20px;
    }

    .form-header h2 {
        font-size: 1.6em;
    }

    .step h3 {
        font-size: 1.4em;
    }

    .option-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 15px;
    }

    .option-card {
        padding: 16px;
    }

    .option-card h4 {
        font-size: 1.05em;
    }

    .input-group {
        padding: 18px;
    }

    .input-label {
        font-size: 1.05em;
    }

    .chips-input {
        font-size: 1.05em;
        padding: 11px 16px;
    }

    .quick-select {
        gap: 7px;
    }

    .quick-btn {
        padding: 8px 14px;
        font-size: 0.85em;
    }

    .price-breakdown {
        padding: 18px;
    }

    .price-label {
        font-size: 0.9em;
    }

    .price-value {
        font-size: 1.05em;
    }

    .delivery-badge {
        padding: 18px;
    }

    .delivery-badge h4 {
        font-size: 1.15em;
    }

    .form-navigation {
        gap: 12px;
    }

    .btn {
        padding: 11px 22px;
        font-size: 1em;
    }

    .order-summary {
        padding: 22px;
        gap: 15px;
    }

    .order-summary h4 {
        font-size: 1.4em;
    }

    .summary-row span:first-child {
        font-size: 0.85em;
    }

    .summary-row span:last-child {
        font-size: 1.05em;
    }

    .summary-row.full span:first-child {
        font-size: 1.15em;
    }

    .summary-row.full span:last-child {
        font-size: 1.35em;
    }

    .level-inputs {
        gap: 15px;
    }

    .item-tabs {
        gap: 15px;
        margin-bottom: 25px;
    }

    .tab-btn {
        padding: 12px 20px;
        font-size: 1em;
    }

    .item-controls {
        gap: 15px;
    }

    .search-box {
        max-width: 350px;
    }

    .items-container {
        max-height: 450px;
    }

    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    #backgroundsGrid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    #outfitsGrid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }

    .items-review-container {
        padding: 22px;
    }

    .items-review-header h4 {
        font-size: 1.4em;
    }

    .review-items-grid {
        gap: 12px;
    }

    #backgroundsReviewGrid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }

    #outfitsReviewGrid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}

/* LOW HEIGHT SCREENS (Netbooks with low vertical resolution) */
@media (min-width: 1025px) and (max-height: 768px) {
    .container {
        padding: 12px;
    }

    .main-content {
        margin-bottom: 20px;
    }

    .logo-section img {
        width: 500px;
        max-width: 100%;
    }

    .order-form {
        max-height: 85vh;
        overflow-y: auto;
        padding: 20px;
    }

    .form-header {
        margin-bottom: 20px;
    }

    .form-header h2 {
        font-size: 1.5em;
    }

    .step h3 {
        font-size: 1.3em;
        margin-bottom: 15px;
    }

    .option-grid {
        margin: 15px 0;
    }

    .option-card {
        padding: 15px;
    }

    .input-group {
        padding: 16px;
        margin-bottom: 12px;
    }

    .chips-config {
        gap: 18px;
    }

    .price-breakdown {
        padding: 16px;
    }

    .delivery-badge {
        padding: 16px;
    }

    .form-navigation {
        margin-top: 20px;
    }

    .order-summary {
        padding: 18px;
        gap: 12px;
    }

    .items-container {
        max-height: 350px;
    }

    .items-review-container {
        padding: 18px;
    }

    .footer {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 20px;
        text-align: center;
        padding: 15px;
    }

    .footer a {
        margin: 0 10px;
        font-size: 0.9em;
    }
}

/* SQUARE SCREENS (1024x1024 or similar) */
@media (min-width: 1025px) and (max-width: 1200px) and (max-height: 1200px) {
    .main-content {
        flex-direction: column;
        gap: 30px;
    }

    .logo-section img {
        width: 550px;
    }

    .order-form {
        width: 90%;
        max-width: 650px;
    }

    .items-container {
        max-height: 400px;
    }
}

/* FOCUS IMPROVEMENTS FOR TOUCH DEVICES */
@media (hover: none) {
    .option-card:hover {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }

    .quick-btn:hover {
        transform: none;
    }

    .item-card:hover {
        transform: none;
    }

    .item-card:hover .item-image img {
        transform: none;
    }

    /* Increase touch targets */
    .btn {
        min-height: 44px;
    }

    .quick-btn {
        min-height: 44px;
    }

    .option-card {
        min-height: 60px;
    }

    .tab-btn {
        min-height: 44px;
    }
}