/**
 * PATIOVISTA Glasschiebewand Produktseite
 * Basiert auf Premium Produktseiten-Design
 * 
 * Hinweis: Layout-Variablen werden aus styles.css übernommen
 * --layout-max-width, --layout-padding, etc.
 */

/* Breadcrumb - übernimmt Styles aus styles.css */

/* Product Hero */
.product-hero {
    max-width: var(--layout-max-width, 1600px);
    margin: 0 auto;
    padding: 40px var(--layout-padding, 60px) 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* Image Gallery */
.gallery-container {
    position: sticky;
    top: 140px;
}

.main-image {
    width: 100%;
    height: 600px;
    background: var(--color-bg-secondary);
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}

.main-image svg {
    width: 100%;
    height: 100%;
}

.badge {
    position: absolute;
    top: 30px;
    left: 30px;
    background: var(--color-primary);
    color: white;
    padding: 10px 20px;
    font-size: 11px;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.thumbnail {
    height: 100px;
    background: var(--color-bg-secondary);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 2px;
    overflow: hidden;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--color-primary);
}

.thumbnail svg {
    width: 100%;
    height: 100%;
}

/* Product Info */
.product-info {
    padding-bottom: 80px;
}

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

.product-category {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 15px;
}

.product-title {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 20px;
}

.product-subtitle {
    font-size: 20px;
    color: var(--color-text-light);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 30px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.stars {
    color: var(--color-accent);
    font-size: 18px;
}

.rating-text {
    color: var(--color-text-light);
    font-size: 14px;
}

/* Price Section */
.price-section {
    background: var(--color-bg-secondary);
    padding: 40px;
    border-radius: 4px;
    margin-bottom: 40px;
}

.price-label {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.price {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 500;
    margin-bottom: 10px;
}

.price-note {
    font-size: 14px;
    color: var(--color-text-light);
    font-weight: 300;
}

.delivery-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

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

.delivery-text {
    font-size: 14px;
    font-weight: 500;
}

/* Configuration */
.configuration {
    margin-bottom: 40px;
}

.config-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

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

.option-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
    display: block;
    letter-spacing: 0.5px;
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.option-btn {
    padding: 15px;
    border: 2px solid var(--color-border);
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-body);
    font-size: 14px;
    text-align: center;
    font-weight: 400;
}

.option-btn:hover {
    border-color: var(--color-primary);
}

.option-btn.active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: white;
}

.dimension-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--color-text-light);
}

.input-group input {
    padding: 12px;
    border: 2px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 14px;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.dimension-note {
    font-size: 12px;
    color: var(--color-text-light);
    margin-top: 10px;
    font-style: italic;
}

/* CTA Section */
.cta-section-products {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-primary,
.btn-secondary {
    padding: 20px 40px;
    font-family: var(--font-body);
    font-size: 16px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: 500;
    border: none;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-anthracite);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: white;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 30px 0;
    border-top: 1px solid var(--color-border);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.feature-text {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text);
}

/* Product Details Tabs */
.product-details {
    max-width: var(--layout-max-width, 1600px);
    margin: 60px auto;
    padding: 0 var(--layout-padding, 60px);
}

.tabs-container {
    background: white;
    border-radius: 4px;
    overflow: hidden;
}

.tabs {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
}

.tab {
    flex: 1;
    padding: 20px 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-light);
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.tab:hover {
    color: var(--color-primary);
}

.tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    background: white;
}

.tab-content {
    display: none;
    padding: 50px;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 30px;
}

.tab-content h3 {
    font-size: 22px;
    margin: 30px 0 15px;
    font-weight: 500;
}

.tab-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.tab-content ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.tab-content li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    font-size: 16px;
    color: var(--color-text-light);
}

.tab-content li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

/* Specs Grid */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 0;
}

.spec-item {
    padding: 25px;
    background: var(--color-bg);
    border-radius: 4px;
}

.spec-label {
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.spec-value {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-primary);
}

/* Downloads */
.downloads-intro {
    font-size: 16px;
    color: var(--color-text-light);
    margin-bottom: 30px;
}

.downloads-grid,
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.download-item,
.download-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
    padding: 25px;
    transition: all 0.3s;
    cursor: pointer;
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    background: white;
}

.download-item:hover,
.download-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.download-icon-wrapper {
    margin-bottom: 20px;
}

.download-icon {
    width: 36px;
    height: 36px;
    stroke: var(--color-text-light);
    transition: stroke 0.3s;
}

.download-card:hover .download-icon {
    stroke: var(--color-primary);
}

.download-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.download-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 10px;
    color: var(--color-text);
}

.download-description {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 15px;
    line-height: 1.6;
    font-weight: 300;
    flex: 1;
}

.download-meta,
.download-size {
    font-size: 13px;
    color: var(--color-text-light);
    font-weight: 400;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 1200px) {
    .product-hero {
        gap: 60px;
        padding: 40px var(--layout-padding-tablet, 40px) 0;
    }
    
    .product-details {
        padding: 0 var(--layout-padding-tablet, 40px);
    }
}

@media (max-width: 900px) {
    .product-hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 30px var(--layout-padding-tablet, 40px) 0;
    }
    
    .gallery-container {
        position: static;
    }
    
    .main-image {
        height: 400px;
    }
    
    .product-title {
        font-size: 42px;
    }
    
    .tabs {
        overflow-x: auto;
    }
    
    .tab {
        white-space: nowrap;
    }
    
    .tab-content {
        padding: 30px;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .product-details {
        padding: 0 var(--layout-padding-tablet, 40px);
        margin: 40px auto;
    }
}

@media (max-width: 600px) {
    .product-hero {
        padding: 20px var(--layout-padding-mobile, 20px) 0;
    }
    
    .product-title {
        font-size: 32px;
    }
    
    .product-subtitle {
        font-size: 17px;
    }
    
    .price {
        font-size: 36px;
    }
    
    .option-grid {
        grid-template-columns: 1fr;
    }
    
    .dimension-inputs {
        grid-template-columns: 1fr;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ========================================
   FLEXIBLES DIMENSIONS-SYSTEM V3.0
   Hinzugefügt: 2026-01-15
   ======================================== */

/* DIMENSIONS-FELDER - NEBENEINANDER */
.dimension-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.input-group input[type="number"],
.input-group input[type="text"] {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Work Sans', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.input-group input:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

/* MASSANGABEN UNTER DEM FELD */
.input-group small {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
    letter-spacing: 0.3px;
    display: block;
}

/* DIMENSIONS DISPLAY - ZENTRAL */
.dimension-display {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 15px;
    margin-top: 15px;
}

.dimension-value {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.dimension-sqm {
    font-size: 16px;
    color: #8B7355;
    font-weight: 500;
}

/* ZUSATZINFO-BOXEN (Produktspezifisch) */
.dimension-info {
    margin-top: 15px;
}

.pane-info-box,
.roof-info-box,
.glass-info-box {
    background: #e8f4f8;
    border: 2px solid #d0e8f0;
    padding: 15px;
    border-radius: 6px;
}

.pane-info-box strong,
.roof-info-box strong,
.glass-info-box strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.pane-count {
    font-size: 16px;
    color: #2c3e50;
    margin: 5px 0;
}

.pane-width {
    font-size: 18px;
    color: #0066cc;
    font-weight: 600;
    margin: 5px 0;
}

.pane-width .highlight {
    color: #0066cc;
    font-weight: 700;
}

/* WARNING MESSAGE */
.warning-message {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-left: 4px solid #ffc107;
    padding: 12px 15px;
    border-radius: 4px;
    margin-top: 15px;
    font-size: 14px;
    color: #856404;
    line-height: 1.5;
}

.warning-message strong {
    font-weight: 600;
}

/* ========================================
   RAL-FARBAUSWAHL
   ======================================== */

.color-swatch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.color-swatch-item {
    position: relative;
}

.color-swatch-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.color-swatch-label {
    display: block;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    overflow: hidden;
}

.color-swatch-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* RAL-Farbbox */
.color-swatch-box {
    width: 100%;
    height: 90px;
    border: 2px solid #e0e0e0;
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 5px;
}

/* Aufpreis-Badge */
.color-surcharge {
    background: rgba(255,255,255,0.95);
    color: #2c3e50;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Farb-Informationen */
.color-swatch-info {
    background: white;
    padding: 10px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 4px 4px;
}

.color-swatch-name {
    font-size: 13px;
    font-weight: 500;
    color: #2c3e50;
    line-height: 1.3;
    letter-spacing: 0.3px;
}

/* SELECTED STATE */
.color-swatch-item input[type="radio"]:checked + .color-swatch-label {
    transform: translateY(-2px);
}

.color-swatch-item input[type="radio"]:checked + .color-swatch-label .color-swatch-box {
    border-color: #2c3e50;
    border-width: 3px;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.2);
}

.color-swatch-item input[type="radio"]:checked + .color-swatch-label .color-swatch-info {
    border-color: #2c3e50;
    border-width: 2px 3px 3px 3px;
    background: #f8f9fa;
}

.color-swatch-item input[type="radio"]:checked + .color-swatch-label .color-swatch-name {
    color: #2c3e50;
    font-weight: 600;
}

/* CHECKMARK */
.color-swatch-item input[type="radio"]:checked + .color-swatch-label .color-swatch-box::after {
    content: '✓';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    background: #2c3e50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .dimension-inputs {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .color-swatch-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .color-swatch-box {
        height: 70px;
    }
    
    .color-swatch-name {
        font-size: 12px;
    }
     
    .dimension-value {
        font-size: 18px;
    }
    
    .dimension-sqm {
        font-size: 14px;
    }
    
    .pane-width {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .color-swatch-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .input-group input[type="number"],
    .input-group input[type="text"] {
        font-size: 14px;
        padding: 10px 14px;
    }
}

/* ========================================
   ZUBEHÖR-SECTION
   ======================================== */

   .accessories-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.option-subtitle {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: #666;
    margin-top: 5px;
    letter-spacing: 0.3px;
}

.accessories-grid {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

/* ACCESSORY ITEM */
.accessory-item {
    position: relative;
}

.accessory-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.accessory-label {
    display: block;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accessory-label:hover {
    border-color: #2c3e50;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* CHECKED STATE */
.accessory-checkbox:checked + .accessory-label {
    border-color: #2c3e50;
    border-width: 3px;
    background: #f8f9fa;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

/* HEADER */
.accessory-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.accessory-checkbox-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: 2px solid #ccc;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    transition: all 0.3s ease;
}

.accessory-checkbox-icon svg {
    width: 18px;
    height: 18px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

.accessory-checkbox:checked + .accessory-label .accessory-checkbox-icon {
    background: #2c3e50;
    border-color: #2c3e50;
}

.accessory-checkbox:checked + .accessory-label .accessory-checkbox-icon svg {
    opacity: 1;
    transform: scale(1);
    stroke: white;
}

/* INFO */
.accessory-info {
    flex: 1;
}

.accessory-name {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    letter-spacing: 0.3px;
}

.accessory-price {
    font-size: 15px;
    font-weight: 600;
    color: #8B7355;
}

/* DESCRIPTION */
.accessory-description {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

/* QUANTITY INFO */
.accessory-quantity-info {
    margin-top: 12px;
    padding: 8px 12px;
    background: #e8f4f8;
    border-radius: 4px;
    font-size: 13px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke: #0066cc;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .accessories-section {
        margin-top: 20px;
        padding-top: 20px;
    }
    
    .accessory-label {
        padding: 15px;
    }
    
    .accessory-header {
        gap: 12px;
    }
    
    .accessory-checkbox-icon {
        width: 24px;
        height: 24px;
    }
    
    .accessory-name {
        font-size: 15px;
    }
    
    .accessory-price {
        font-size: 14px;
    }
    
    .accessory-description {
        font-size: 13px;
    }
}