/* Gemeinsame Styles für alle Seiten */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    color: #333;
}

/* Navigation Styles für Produktseiten */
.nav-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.back-button {
    background-color: #0000EE;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.back-button:hover {
    background-color: #551A8B;
}

/* Container für Produktseiten */
.product-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px 20px;
}

.product-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

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

.product-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.1em;
    color: #0000EE;
    margin-bottom: 15px;
}

.product-description {
    color: #666;
    line-height: 1.4;
}

/* Zusätzliche Styles für Produktdetailseite */

/* Hintergrund für den Produktinhalt, damit er nicht durch den Canvas scheint */
body {
    background-color: #f0f0f0; /* Gleiche Farbe wie dein ursprünglicher body-Hintergrund */
}

/* Entferne z-index von product-detail-container und anderen, damit der Canvas darüber schwebt */
.product-detail-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 20px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    position: relative; /* Position relative beibehalten */
    background-color: #f0f0f0; /* Hintergrundfarbe für den Container, um Canvas dahinter zu verdecken */
    z-index: 1; /* Sicherstellen, dass der Inhalt über dem Logo-Hintergrund liegt */
}

/* Entferne z-index von diesen Elementen */
.product-image-section,
.product-info-section,
.nav-container {
    position: relative; /* Muss relativ oder absolut sein, damit z-index funktioniert */
    /* z-index wird hier nicht mehr benötigt, da der Canvas einen expliziten hohen z-index hat */
    z-index: 2; /* Diese Elemente sollen über dem product-detail-container liegen */
}


.product-main-image {
    width: 100%;
    height: 500px;
    background-color: #f5f5f5; /* Entfernt das Gittermuster, da es jetzt ein echtes Bild ist */
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Sicherstellen, dass das Bild innerhalb des Containers bleibt */
}

.current-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Bild so skalieren, dass es den Container ausfüllt und dabei das Seitenverhältnis beibehält */
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.thumbnail {
    width: 80px;
    height: 80px;
    background-color: #f5f5f5; /* Entfernt das Gittermuster */
    border: 2px solid #ddd;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Sicherstellen, dass das Bild innerhalb des Containers bleibt */
    transition: border-color 0.2s;
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #0000EE;
}

.product-info-section {
    padding-top: 20px;
}

.product-title {
    font-size: 2.2em;
    margin-bottom: 10px;
    color: #333;
    font-weight: normal;
}

.product-price {
    font-size: 1.8em;
    color: #0000EE;
    margin-bottom: 30px;
    font-weight: bold;
}

.product-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 40px;
    font-size: 16px;
}

.product-options {
    margin-bottom: 40px;
}

.option-group {
    margin-bottom: 25px;
}

.option-label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

.size-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-option {
    padding: 12px 18px;
    border: 2px solid #ddd;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: bold;
    min-width: 50px;
    text-align: center;
}

.size-option:hover {
    border-color: #0000EE;
    background-color: #f0f0ff;
}

.size-option.selected {
    border-color: #0000EE;
    background-color: #0000EE;
    color: white;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-input {
    width: 60px;
    padding: 8px;
    border: 2px solid #ddd;
    text-align: center;
    font-size: 16px;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border: 2px solid #ddd;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.2s;
}

.quantity-btn:hover {
    border-color: #0000EE;
    background-color: #f0f0ff;
}

.buy-section {
    border-top: 2px solid #eee;
    padding-top: 30px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 18px;
    background-color: #0000EE;
    color: white;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 15px;
}

.add-to-cart-btn:hover {
    background-color: #551A8B;
}

.buy-now-btn {
    width: 100%;
    padding: 18px;
    background-color: #333;
    color: white;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.buy-now-btn:hover {
    background-color: #555;
}

.product-details {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.details-title {
    font-size: 1.4em;
    margin-bottom: 20px;
    color: #333;
}

.details-list {
    list-style: none;
    padding: 0;
}

.details-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.details-list li:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: bold;
    color: #333;
}

.detail-value {
    color: #666;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .product-container {
        padding: 60px 15px 15px;
    }
    
    .product-title {
        font-size: 2em;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .nav-container {
        top: 10px;
        left: 10px;
    }
    
    .back-button {
        padding: 8px 16px;
        font-size: 12px;
    }

    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 60px 15px 20px;
    }

    .product-image-section {
        position: static;
    }

    .product-main-image {
        height: 350px;
    }

    .product-title {
        font-size: 1.8em;
    }

    .product-price {
        font-size: 1.5em;
    }

    .size-options {
        justify-content: center;
    }
}