/* 3D PRINTING PAGE STYLES */
.printing-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 2rem;
}

.printing-section {
    margin-bottom: 2.5rem;
}

.printing-section h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.printing-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 1000px;
    margin: 0 auto;
}

/* Product Blocks */
.product-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 4rem 0;
    padding: 2rem;
    background: var(--card-bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--standard-shadow);
}

/* Product Images */
.product-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--standard-shadow);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-image img:hover {
    transform: scale(1.05);
}

/* Thumbnail Gallery */
.thumbnail-gallery {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail:hover {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

/* Product Info */
.product-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-info h2 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.product-info p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.product-details {
    background: rgba(184, 157, 113, 0.1);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(184, 157, 113, 0.2);
    border-radius: var(--border-radius);
}

.product-details p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.product-details p:last-child {
    margin-bottom: 0;
}

/* Color Options */
.color-options {
    margin-bottom: 2rem;
}

.color-options label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--text-color);
}

.color-selector {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.color-selector input[type="radio"] {
    display: none;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-selector input[type="radio"]:checked + .color-option {
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--primary-color);
}

/* Color Variants */
.color-option.white {
    background: #ffffff;
    border: 1px solid #ddd;
}

.color-option.black {
    background: #333333;
}

.color-option.gray {
    background: #888888;
}

.color-option.blue {
    background: #4a90e2;
}

.color-option.green {
    background: #7ed321;
}

.color-option.wood {
    background: linear-gradient(45deg, #8b4513, #daa520);
}

/* New Color Variants */
.color-option.signal-white {
    background: #fff;
    border: 1px solid #ddd;
}

.color-option.urban-gray {
    background: #C1C1C1;
}

.color-option.pistache-green {
    background: #ADC89F;
}

.color-option.chalk-blue {
    background: #8BB5DB;
}

/* Print Files Section */
.print-files-section {
    margin-bottom: 2rem;
}

.print-files-section h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.print-files-section p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.print-files-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    position: relative;
}

.print-files-section a:hover {
    color: var(--text-color);
}

.print-files-section a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.print-files-section a:hover::after {
    width: 100%;
    background-color: var(--text-color);
}

/* Ko-fi Button Styles */
.kofi-btn {
    background-color: #333333 !important;
    color: white !important;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 0.9em;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.kofi-btn:hover {
    background-color: #555555 !important;
    color: white !important;
    text-decoration: none !important;
}

/* Verhindert Unterstreichung bei Ko-fi Buttons */
.kofi-btn::after {
    display: none !important;
}

/* Offizielle Ko-fi Button Styles */
.kofi-official-btn {
    display: inline-block;
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
    vertical-align: middle;
}

.kofi-official-btn:hover {
    text-decoration: none !important;
    opacity: 0.85;
}

/* Verhindert Unterstreichung bei offiziellen Ko-fi Buttons */
.kofi-official-btn::after {
    display: none !important;
}

.kofi-official-btn img {
    border: none !important;
    vertical-align: middle;
    transition: opacity 0.3s ease;
}

/* Product Actions */
.product-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
}

.price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.shipping-note {
    font-size: 0.9rem;
    color: var(--text-color);
    margin: 0;
    opacity: 0.8;
    font-style: italic;
}

p.shipping-note {
    margin-bottom: 0 !important;
}

.cart-btn {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    padding: 0.8rem 1.5rem;
    font-weight: bold;
}

.cart-btn:hover {
    background: var(--text-color);
    border-color: var(--text-color);
    color: white;
}

.cart-btn i {
    font-size: 1.2rem;
}

/* Order overlay styles */
#order-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#order-overlay.show {
    opacity: 1;
}

.order-content {
    background-color: #fff;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    padding: 1rem;
    position: relative;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.order-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: #333;
}

.order-close {
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    color: #999;
}

.order-close:hover {
    color: #333;
}

.order-colors,
.order-quantity {
    flex: 1;
    min-width: 200px;
}

.order-colors label,
.order-quantity label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.order-quantity select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.order-price-calculation {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 2rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.price-row.total {
    border-top: 1px solid #ddd;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    font-weight: bold;
    font-size: 1.1rem;
}

.order-info {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: var(--accent-color);
    border-radius: 6px;
    border-left: 4px solid #b89d71;
    font-weight: 700;
}

.order-address {
    margin-bottom: 2rem;
}

.order-address h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: #333;
}

.form-row {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.order-actions {
    display: flex;
    justify-content: flex-end;
}

.color-quantity-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.color-quantity-table th {
    text-align: left;
    padding: 0.5rem;
    border-bottom: 1px solid #ddd;
}

.color-quantity-table td {
    padding: 0.8rem 0.5rem;
    border-bottom: 1px solid #eee;
}

.color-display {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.color-circle {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #ddd;
}

.color-circle.signal-white {
    background-color: #f2f2f2;
    border: 1px solid #ddd;
}

.color-circle.urban-gray {
    background-color: #575757;
}

.color-circle.pistache-green {
    background-color: #8eb57a;
}

.color-circle.chalk-blue {
    background-color: #a4c4d9;
}

.quantity-select {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-error-message {
    background-color: #ffebee;
    color: #d32f2f;
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #d32f2f;
    border-radius: 4px;
    font-weight: 700;
}

.form-error-message.info-message {
    background-color: #e1f5fe;
    color: #0277bd;
    border-left-color: #0277bd;
}

.form-error-message.success-message {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-left-color: #2e7d32;
}

.order-content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 90vh;
    padding-right: 0.5rem;
}

.order-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #fff;
}

#order-form {
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 1rem;
    padding-left: 0;
    padding-bottom: 1.5rem;
}

/* 3D PRINTING PAGE - MOBILE RESPONSIVE */
@media (max-width: 480px) {
    /* 3D PRINTING PAGE - SMALL MOBILE */
    .printing-content {
        padding: 15px 0.5rem;
    }

    .printing-section h1 {
        font-size: 1.8rem;
    }

    .product-block {
        margin: 2rem 0;
        padding: 1rem;
    }

    .thumbnail-gallery {
        gap: 0.3rem;
    }

    .thumbnail {
        width: 50px;
        height: 50px;
    }

    .product-details {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .color-option {
        width: 25px;
        height: 25px;
    }

    .price {
        font-size: 1.3rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .order-content {
        padding: 1rem 0.5rem 1rem 1rem;
        width: 95%;
    }
    
    .order-product-selection {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-group {
        min-width: 100%;
    }

    #order-form {
        padding-right: 0.8rem;
        padding-left: 0;
    }
}

@media (max-width: 900px) {
    /* 3D PRINTING PAGE - MOBILE */
    .printing-content {
        padding: 20px 1rem;
    }

    .product-block {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 3rem 0;
        padding: 1.5rem;
    }

    .product-block:nth-child(even) .product-images,
    .product-block:nth-child(even) .product-info {
        order: unset;
    }

    .product-info h2 {
        font-size: 1.5rem;
    }

    .product-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .price-container {
        align-items: center;
        text-align: center;
    }

    .cart-btn {
        justify-content: center;
        width: 100%;
    }
}

/* Abtropfgestell specific overlay styles */
.abtropfgestell-config h4 {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1.1rem;
}

.length-config {
    margin-bottom: 1.5rem;
}

.length-config label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--text-color);
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.length-slider {
    flex: 1;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.length-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}

.length-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.length-input {
    width: 80px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 1rem;
}

.calculation-display {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.calc-row:last-child {
    margin-bottom: 0;
}

.calc-row.total {
    border-top: 1px solid #ddd;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Color styling for Abtropfgestell calculation display */
.calculation-display #display-price {
    color: #333333;
}

/* Color styling for total price in order overlay */
.order-price-calculation .price-row.total {
    color: var(--primary-color);
}

.color-selection {
    margin-bottom: 1.5rem;
}

.color-selection h4 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 1.1rem;
}

.color-options-overlay {
    display: flex;
    flex-direction: row;
    gap: 0.8rem;
    justify-content: flex-start;
}

.color-option-label {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0.3rem;
    border: 2px solid transparent;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.color-option-label:hover {
    background: rgba(184, 157, 113, 0.1);
    border-color: rgba(184, 157, 113, 0.3);
}

.color-option-label input[type="radio"] {
    display: none;
}

.color-option-label input[type="radio"]:checked + .color-circle {
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--primary-color);
}

.color-option-label .color-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
    cursor: pointer;
}

@media (max-width: 768px) {
    .slider-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }
    
    .length-input {
        width: 100%;
    }
    
    .color-options-overlay {
        gap: 0.6rem;
    }
    
    .color-option-label .color-circle {
        width: 35px;
        height: 35px;
    }
} 