/* Product detail page - Zalando-style layout */

/* Header nur oben sichtbar, scrollt beim Runterscrollen aus dem Bild (nicht sticky) */
body:has(.product-detail) .header {
    position: relative !important;
    top: auto !important;
}

.product-detail {
    padding: 24px 0 80px;
}

/* Weniger Abstand vor der Features-Sektion (Kostenloser Versand …), gleiche Weiß-Farbe und Schrift wie Rest der Seite */
.product-detail + .features {
    padding-top: 0;
    padding-bottom: 32px;
    background: #fff;
}

.product-detail + .features .feature-item h3,
.product-detail + .features .feature-item {
    font-family: var(--font-primary);
}

.product-detail + .features .feature-item {
    padding-top: 8px;
    padding-bottom: 12px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

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

.product-breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    margin: 0;
}

.product-breadcrumb li::after {
    content: "/";
    margin-left: 6px;
}

.product-breadcrumb li:last-child::after {
    content: "";
}

.product-breadcrumb a {
    color: #666;
    text-decoration: none;
}

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

.product-gallery {
    position: sticky;
    top: 100px;
}

.product-gallery-main {
    width: 100%;
    aspect-ratio: 1;
    background: #f5f5f5;
    margin-bottom: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-gallery-thumbnails {
    display: flex;
    gap: 12px;
}

.product-thumb {
    width: 80px;
    height: 80px;
    padding: 0;
    border: 2px solid transparent;
    background: #f5f5f5;
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
    transition: border-color 0.2s;
}

.product-thumb:hover,
.product-thumb.active {
    border-color: #000;
}

.product-thumb-hidden {
    display: none !important;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info {
    padding-top: 0;
}

.product-detail-brand {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #666;
    margin-bottom: 8px;
    font-family: var(--font-primary);
    font-weight: 600;
}

h1.product-detail-title,
.product-detail-title {
    font-family: var(--font-primary);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--primary-color);
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.product-rating-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.product-rating-stars {
    color: #f6a800;
    font-size: 14px;
    letter-spacing: 1px;
}

.product-rating-link {
    border: none;
    background: none;
    padding: 0;
    font-size: 13px;
    color: #666;
    text-decoration: underline;
    cursor: pointer;
}

.product-detail-price {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.product-detail-price-note {
    font-size: 13px;
    color: #666;
    margin-top: -4px;
    margin-bottom: 12px;
}

.product-detail-material {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

.product-detail-description {
    font-family: var(--font-primary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 28px;
    color: var(--text-color);
}

.product-detail-highlights {
    margin: 0 0 24px;
    padding-left: 18px;
    font-family: var(--font-primary);
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.6;
}

.product-detail-highlights li + li {
    margin-top: 4px;
}

.product-color-option {
    margin-bottom: 24px;
}

.product-color-header {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 10px;
}

.product-color-current {
    font-size: 14px;
    font-weight: 600;
}

.product-option-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

.product-color-swatches {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.color-swatch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-color);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.color-swatch:hover {
    border-color: #999;
}

.color-swatch.active {
    border-color: var(--primary-color, #000);
    box-shadow: 0 0 0 1px var(--primary-color, #000);
}

.color-swatch-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.color-swatch-name {
    font-weight: 500;
}

.product-detail-specs {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 24px;
    margin-bottom: 32px;
    font-size: 14px;
}

.product-detail-specs dt {
    color: #666;
    font-weight: 400;
}

.product-detail-specs dd {
    margin: 0;
    color: var(--text-color);
}

.product-more-details {
    margin-bottom: 0;
    margin-left: -20px;
    margin-right: -20px;
    border-top: none;
    border-bottom: 2px solid #000;
    background: #fff;
}

.product-more-details:first-of-type {
    border-top: 2px solid #000;
}

.product-more-details:last-of-type {
    border-bottom: 2px solid #000;
}

.product-more-details-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 36px;
    font-weight: 600;
    font-size: 17px;
    font-family: var(--font-primary);
    color: #000;
    cursor: pointer;
    list-style: none;
    user-select: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.product-more-details-summary::-webkit-details-marker {
    display: none;
}

.product-more-details-icon {
    font-size: 10px;
    transition: transform 0.35s ease-out;
}

.product-more-details[open] .product-more-details-icon,
.product-more-details.open .product-more-details-icon {
    transform: rotate(180deg);
}

.product-more-details-content {
    display: block !important;
    padding: 0 36px 16px;
    border-top: 2px solid #000;
    font-size: 13px;
    font-family: var(--font-primary);
    color: #000;
    line-height: 1.6;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease-out;
}

.product-more-details[open] .product-more-details-content,
.product-more-details.open .product-more-details-content {
    border-top: none;
}

.product-more-details-content p {
    margin: 12px 0 0;
}

.product-more-details-content p:first-child {
    margin-top: 16px;
}

.product-delivery-box {
    background: #fff;
    color: #000;
    margin-bottom: 32px;
    border-radius: 4px;
    overflow: hidden;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid #000;
}

.product-delivery-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #000;
}

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

.product-delivery-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-delivery-icon svg {
    width: 20px;
    height: 20px;
}

.product-detail-actions {
    margin-top: 16px;
    margin-bottom: 0;
}

.btn-buy {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.product-detail-actions .btn-buy {
    display: block;
    width: 100%;
    text-align: center;
}

.btn-buy:hover {
    background: #333;
}

.btn-buy:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-paypal {
    margin-top: 8px;
    background: #FFC439;
    color: #111;
}

.btn-paypal:hover {
    background: #e0b000;
}

.checkout-container {
    margin-top: 24px;
    min-height: 400px;
}

.checkout-error {
    color: #c00;
    font-size: 14px;
    margin-top: 12px;
}

.product-sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #ffffff;
    border-top: 1px solid #ddd;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.06);
    z-index: 1000;
}

.product-sticky-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.product-sticky-title {
    font-size: 13px;
    color: #555;
}

.product-sticky-price {
    font-size: 16px;
    font-weight: 600;
}

.product-sticky-button {
    padding-inline: 20px;
}

/* Footer nur auf Produktseite: MwSt.-Hinweis */
.footer-price-note {
    font-size: 10px;
    color: #888;
    margin: 0 0 6px 0;
    text-align: center;
}

/* Return / thank you page */
.return-page {
    padding: 80px 0;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.return-content {
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}

.return-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
}

.return-success-icon svg {
    width: 100%;
    height: 100%;
}

.return-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 16px;
}

.return-text {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text-color);
}

.return-status {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

.return-content .btn-buy {
    margin-top: 8px;
}

@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .product-gallery {
        position: static;
    }

    .product-detail-title {
        font-size: 20px;
    }

    .product-detail-price {
        font-size: 20px;
    }

    .product-detail {
        padding-top: 16px;
        padding-bottom: 96px;
    }

    .product-sticky-bar {
        display: flex;
    }

    .product-detail-actions {
        display: none;
    }
}
