/* Saunan lasiseinä - moderni sisällön esitystapa - Harmoniset värit ja selkeät fontit */

/* Piilotetaan WooCommerce automaattinen "Kuvaus" otsikko */
.woocommerce-tabs #tab-description h2:first-child,
.single-product .product .woocommerce-tabs .panel h2:first-child,
.product-description h2:first-of-type,
.entry-content h2:first-child {
    display: none !important;
}

/* Vaihtoehtoinen tapa: piilota kaikki "Kuvaus" h2:t */
h2:contains("Kuvaus") {
    display: none !important;
}

/* HTML5 Details/Summary Accordion tyylit */
.product-accordion {
    margin: 2rem 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-accordion:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.accordion-header {
    cursor: pointer;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    font-weight: 600;
    font-size: 1.3rem;
    color: #333;
    border: none;
    outline: none;
    transition: all 0.3s ease;
    position: relative;
    list-style: none;
}

.accordion-header::marker {
    display: none;
}

.accordion-header::-webkit-details-marker {
    display: none;
}

.accordion-header::after {
    content: '+';
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: bold;
    color: #4A90E2;
    transition: transform 0.3s ease;
}

.product-accordion[open] .accordion-header::after {
    transform: translateY(-50%) rotate(45deg);
}

.accordion-header:hover {
    background: linear-gradient(135deg, #e8f4f8 0%, #f0f8ff 100%);
    color: #4A90E2;
}

.product-accordion[open] .accordion-header {
    border-bottom: 1px solid #e0e0e0;
    background: linear-gradient(135deg, #4A90E2 0%, #357abd 100%);
    color: white;
}

.product-accordion[open] .accordion-header::after {
    color: white;
}

.accordion-content {
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Poistettu värikoodit - FAQ:n mukaiset harmaat tyylit */

/* Single Column Container */
.product-content-wrapper {
    max-width: 100%;
    margin: 2rem auto;
}

/* Yleiset osio-tyylit - modernit kortit */
.product-content-section {
    margin: 1.5rem 0;
    padding: 2rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 4px 16px rgba(74, 144, 226, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.1);
    transition: all 0.3s ease;
}

.product-content-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 144, 226, 0.15);
    border-color: rgba(74, 144, 226, 0.2);
}

/* VAIHTOEHTO 1: Punainen-keltainen (sivuston mukaan) */
.intro-section.variant-red {
    border-left: 6px solid #DC143C;
    background: linear-gradient(135deg, #FFF9E6 0%, #ffffff 100%);
    text-align: center;
    padding: 3rem 2rem;
    position: relative;
}

.intro-section.variant-red::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #DC143C 0%, #f0ad4e 50%, #DC143C 100%);
    border-radius: 12px 12px 0 0;
}

/* VAIHTOEHTO 2: Premium sininen */
.intro-section.variant-blue {
    border: none;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    text-align: center;
    padding: 3rem 2rem;
    position: relative;
    color: white;
}

.intro-section.variant-blue::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 50%, #fbbf24 100%);
    border-radius: 12px 12px 0 0;
}

.intro-section.variant-blue .main-title,
.intro-section.variant-blue .lead-text,
.intro-section.variant-blue .intro-description {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* INTRO-OSION UUSI LAYOUT */
.intro-section.variant-minimal {
    border: none;
    background: #ffffff;
    padding: 3rem 2rem;
    position: relative;
    box-shadow: 0 2px 12px rgba(220, 20, 60, 0.1);
}

.intro-section.variant-minimal::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #DC143C;
    border-radius: 2px;
}

/* Intro content layout */
.intro-content {
    display: grid;
    gap: 3rem;
    align-items: start;
}

@media (min-width: 992px) {
    .intro-content {
        grid-template-columns: 1.3fr 1fr;
        gap: 2.5rem;
        align-items: center;
    }
}

.intro-text {
    text-align: left;
}

@media (max-width: 991px) {
    .intro-text {
        text-align: center;
    }
}

/* Tyyppiset elementit - SELKEÄ TEEMA */
.intro-section.variant-minimal .main-title {
    color: #DC143C;
    margin-bottom: 1.5rem;
    text-align: inherit;
    font-size: 40px;
    line-height: 1.1;
    font-weight: 800;
}

.intro-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: #DC143C;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.intro-description {
    font-size: 18px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 2rem;
    font-weight: 500;
}

.intro-value {
    font-size: 16px;
    line-height: 1.5;
    color: #555;
    margin-bottom: 2rem;
}

.intro-custom {
    font-size: 15px;
    line-height: 1.5;
    color: #666;
    font-weight: 500;
    margin-bottom: 2rem;
    padding: 1.2rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #DC143C;
}

/* DEFAULT (nykyinen punainen-keltainen) */
.intro-section {
    border-left: 6px solid #DC143C;
    background: linear-gradient(135deg, #FFF9E6 0%, #ffffff 100%);
    text-align: center;
    padding: 3rem 2rem;
    position: relative;
}

.intro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #DC143C 0%, #f0ad4e 50%, #DC143C 100%);
    border-radius: 12px 12px 0 0;
}


/* Pääotsikko - sivun mukaiset tyylit */
.main-title {
    font-size: 42px;
    font-weight: 700;
    color: #333;
    margin: 0 0 2rem 0;
    text-align: center;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Numerofaktat yksinkertainen rivi */
.intro-facts {
    display: flex;
    gap: 2.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .intro-facts {
        justify-content: space-between;
        gap: 1rem;
    }
}

.fact-item {
    text-align: left;
    flex: 1;
    min-width: 100px;
}

.fact-number {
    font-size: 18px;
    font-weight: 700;
    color: #DC143C;
    margin-bottom: 0.25rem;
    display: block;
}

.fact-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    line-height: 1.2;
}

/* Kuva-osio */
.intro-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    max-width: 400px;
    height: 300px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.image-placeholder p {
    color: #6c757d;
    font-style: italic;
    margin: 0;
}

.intro-hero-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.intro-hero-image:hover {
    transform: scale(1.01);
}

.lead-text {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 400;
}

.intro-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Tilausohje-osio - Sales-appealing card */
.ordering-section {
    border-left: 6px solid #5cb85c;
    background: linear-gradient(135deg, #f0fff4 0%, #ffffff 100%);
    position: relative;
}

.ordering-section::before {
    content: '\2713';
    position: absolute;
    top: -10px;
    right: -10px;
    background: #5cb85c;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(92, 184, 92, 0.3);
}

.ordering-steps {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
}

.ordering-steps li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.ordering-steps li {
    font-size: 1.1rem;
}

.ordering-steps li {
    font-size: 16px !important;
    line-height: 1.6;
}

.ordering-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: #4A90E2;
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.notice-box {
    background: #fff8e7;
    border: 1px solid #f0ad4e;
    border-radius: 6px;
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
}

.notice-box p {
    margin: 0;
    color: #8a6d3b;
}

/* Saranat-osio */
.hinges-section {
    border-left: 6px solid #f0ad4e;
    background: linear-gradient(135deg, #fffbf0 0%, #ffffff 100%);
}


.hinge-options {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .hinge-options {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.hinge-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    background: #fff;
    transition: all 0.3s ease;
}

.hinge-card:hover {
    border-color: #fd7e14;
    box-shadow: 0 4px 12px rgba(253, 126, 20, 0.1);
    transform: translateY(-2px);
}

.hinge-card h4 {
    color: #4A90E2;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f8f9fa;
    font-size: 1.25rem;
    font-weight: 600;
}

.standard-hinge h4::before { content: "● "; color: #28a745; }
.deluxe-hinge h4::before { content: "● "; color: #ffc107; }
.premium-hinge h4::before { content: "● "; color: #dc3545; }

.tech-note {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 6px;
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
}

/* Kulmapyöristykset-osio */
.corners-section {
    border-left: 6px solid #6f42c1;
    background: linear-gradient(135deg, #f8f5ff 0%, #ffffff 100%);
}


.corners-intro {
    background: #f8f5ff;
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.benefits-list {
    list-style: none;
    padding-left: 0;
}

.benefits-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.benefits-list li::before {
    content: "●";
    position: absolute;
    left: 0;
    color: #4A90E2;
    font-weight: bold;
    font-size: 1.2rem;
}

.processing-quality {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 6px;
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
}

/* Esimerkit-osio */
.examples-section {
    border-left: 6px solid #17a2b8;
    background: linear-gradient(135deg, #f0fdff 0%, #ffffff 100%);
}


.example-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 2rem;
    overflow: hidden;
    background: #fff;
}

.example-card h4 {
    background: linear-gradient(135deg, #333, #515151);
    color: white;
    padding: 1rem 1.5rem;
    margin: 0;
    font-size: 18px;
}

.config-instructions {
    padding: 1.5rem;
}

.config-instructions ul {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin: 1rem 0;
}

.fitting-options {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .fitting-options {
        grid-template-columns: 1fr 1fr;
    }
}

.fitting-option {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
    text-align: center;
}

.fitting-image {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1rem 0;
}

.important-note {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    padding: 0.75rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.recommendation {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 6px;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
}

.example-image,
.responsive-image {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Kiinnikkeet-osio */
.fittings-section {
    border-left: 6px solid #dc3545;
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
}


.section-tags {
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.fittings-overview {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.fittings-categories {
    display: grid;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

@media (min-width: 768px) {
    .fittings-categories {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.fitting-category {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
}

.fitting-category h4 {
    color: #4A90E2;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f8f9fa;
    font-size: 1.25rem;
    font-weight: 600;
}

.u-list-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.technical-details {
    margin: 1rem 0;
}

.technical-details h5 {
    color: #495057;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.dimensions-table {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 1rem;
    margin-top: 1rem;
}

.finish-options {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.finish-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    list-style: none;
}

.finish-list li {
    padding: 0.5rem;
    background: #fff;
    border-radius: 4px;
    text-align: center;
    font-size: 16px;
}

.finish-notes {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 6px;
    padding: 1rem 1.5rem;
    margin-top: 1rem;
}

.order-confirmation {
    background: linear-gradient(135deg, #e6ffed 0%, #f0fff4 100%);
    border: 2px solid #c3e6cb;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.confirmation-highlight h4 {
    color: #155724;
    margin-bottom: 1rem;
}

.highlight-text {
    color: #28a745;
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.6;
}

.confirmation-items {
    background: #fff;
    border-radius: 6px;
    padding: 1rem 2rem;
    margin: 1rem 0;
}

.included-documentation {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1.5rem;
}

/* Galleria-osio */
.gallery-section {
    border-left: 6px solid #e83e8c;
    background: linear-gradient(135deg, #fdf2f8 0%, #ffffff 100%);
}


.gallery-showcase {
    display: grid;
    gap: 3rem;
    margin-top: 2rem;
}

.showcase-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.showcase-item h4 {
    color: #4A90E2;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.4;
}

.gallery-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin: 1.5rem 0;
    transition: transform 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.02);
}

.image-pair {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .image-pair {
        grid-template-columns: 1fr 1fr;
    }
}

.lighting-notice {
    background: linear-gradient(135deg, #fff8e1 0%, #fffbf0 100%);
    border: 2px solid #ffe082;
    border-radius: 8px;
    padding: 2rem;
    margin-top: 3rem;
}

.lighting-notice h4 {
    color: #4A90E2;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.lighting-notice p {
    line-height: 1.7;
    color: #424242;
}

/* Valaistusolosuhteet-osio - käyttää normaalia accordion-tyyliä */
.lighting-section {
    border-left: 6px solid #FFA500;
    background: linear-gradient(135deg, #FFF8E1 0%, #ffffff 100%);
}

/* Footer-osio - pelkkää tekstiä ilman korttia */
.footer-section {
    margin: 2rem 0;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    text-align: center;
}

.contact-links h4 {
    margin: 0;
    font-size: 18px;
}

.contact-links {
    font-size: 16px;
}

.contact-links li {
    font-size: 16px !important;
}

.contact-links a {
    color: #4A90E2;
    text-decoration: none;
    font-weight: 500;
}

.contact-links a:hover {
    color: #357abd;
    text-decoration: underline;
}

/* Modern Responsiivisuus */
@media (max-width: 767px) {
    .product-content-wrapper {
        margin: 1rem auto;
    }

    .product-content-section {
        margin: 1rem 0;
        padding: 1.5rem;
    }

    .intro-section {
        padding: 2rem 1.5rem;
    }

    .main-title {
        font-size: 32px;
    }

    .lead-text {
        font-size: 16px;
    }

    .intro-description {
        font-size: 15px;
    }

    .ordering-steps li {
        padding-left: 3rem;
    }

    .ordering-steps li::before {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }

    .hinge-options,
    .fittings-categories {
        grid-template-columns: 1fr;
    }

    .finish-list {
        grid-template-columns: 1fr;
    }

    .accordion-content h1 {
        font-size: 28px;
    }

    .accordion-content h2 {
        font-size: 24px;
    }

    .accordion-content h3 {
        font-size: 20px;
    }

    .accordion-content h4 {
        font-size: 18px;
    }
}

/* Print-tyylit */
@media print {
    .product-content-section {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
        margin: 1rem 0;
    }

    .gallery-image,
    .responsive-image,
    .fitting-image {
        max-width: 100%;
        page-break-inside: avoid;
    }
}

/* Accordionit yhtenäisiksi FAQ:n kanssa - EI MUUTETA FAQ:TA! */

/* HTML5 Details/Summary Accordion tyylit - FAQ:n mukaiset */
.product-accordion {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    margin: 0 0 16px 0;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    background-color: #fff;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.product-accordion:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-accordion[open] {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.12);
}

.accordion-header {
    padding: 18px 24px;
    background: linear-gradient(to right, #f0fff4, #f9fff9);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    border-bottom: 1px solid transparent;
    width: 100%;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #166534;
    letter-spacing: 0.01em;
    margin: 0;
    border: none;
    outline: none;
    list-style: none;
    position: relative;
}

.product-accordion[open] .accordion-header {
    background: linear-gradient(to right, #5cb85c, #449d44);
    border-bottom-color: rgba(0, 0, 0, 0.05);
    color: white;
}

.accordion-header:hover {
    background: linear-gradient(to right, #dcfce7, #bbf7d0);
    color: #14532d;
}

.accordion-header::marker {
    display: none;
}

.accordion-header::-webkit-details-marker {
    display: none;
}

.accordion-header::after {
    position: relative;
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    background-image:
        linear-gradient(to right, #777 0%, #777 100%),
        linear-gradient(to bottom, #777 0%, #777 100%);
    background-size: 18px 2px, 2px 18px;
    background-position: center center, center center;
    background-repeat: no-repeat;
    content: '';
}

.product-accordion[open] .accordion-header::after {
    background-image: linear-gradient(to right, #777 0%, #777 100%);
    background-size: 18px 2px;
}

.accordion-content {
    padding: 20px 24px;
    background: #fff;
    animation: none;
}

/* Accordionien sisäiset otsikot sivun värimaailman mukaisesti */

/* Accordion sisältöjen otsikot - parempi hierarkia */
.accordion-content h1 {
    font-size: 32px;
    margin: 2rem 0 1.5rem 0;
    color: #333;
    font-weight: 700;
    line-height: 1.2;
}

.accordion-content h2 {
    font-size: 28px;
    margin: 2rem 0 1.5rem 0;
    color: #333;
    font-weight: 700;
    line-height: 1.3;
}

.accordion-content h3 {
    font-size: 24px;
    margin: 1.5rem 0 1rem 0;
    color: #333;
    font-weight: 600;
    line-height: 1.3;
}

.accordion-content h4 {
    font-size: 20px;
    margin: 1.5rem 0 1rem 0;
    color: #4A90E2;
    font-weight: 600;
    line-height: 1.4;
}

.accordion-content h5 {
    font-size: 16px;
    margin: 1rem 0 0.5rem 0;
    color: #515151;
    font-weight: 600;
    line-height: 1.4;
}

.accordion-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 1.25rem;
}

.accordion-content ul,
.accordion-content ol {
    font-size: 14px;
    line-height: 1.42857143;
    color: #333;
}

.accordion-content ul li,
.accordion-content ol li {
    margin-bottom: 8px;
}

/* Hinge-kortit */
.hinge-card h4 {
    color: #9FAFF1 !important;
    font-size: 18px !important;
    margin: 10px 0 !important;
    font-weight: 600 !important;
}

/* Example-kortit */
.example-card h4 {
    font-size: 18px !important;
    color: #9FAFF1 !important;
    margin: 10px 0 !important;
    font-weight: 600 !important;
}

.example-card h5 {
    font-size: 14px !important;
    color: #515151 !important;
    margin: 10px 0 !important;
    font-weight: 600 !important;
}

/* Fitting-kategoria otsikot */
.fitting-category h4 {
    font-size: 18px !important;
    color: #9FAFF1 !important;
    margin: 10px 0 !important;
    font-weight: 600 !important;
}

/* Gallery showcase */
.showcase-item h4 {
    font-size: 18px !important;
    color: #9FAFF1 !important;
    margin: 10px 0 !important;
    font-weight: 600 !important;
}

.lighting-notice h4 {
    font-size: 18px !important;
    color: #9FAFF1 !important;
    margin: 10px 0 !important;
    font-weight: 600 !important;
}

/* ======================================
   LISÄTARVIKKEET (ACCESSORIES CARD)
   ====================================== */

/* Ohjeteksti */
.accessories-order-note {
    margin: 0 0 1.5rem 0;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #81c784, #66bb6a);
    border-left: 5px solid #2e7d32;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.accessories-order-note p {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Kategoriakohtaiset sisäiset accordionit (category="all" -tilassa) */
.accessories-category-accordion {
    margin-bottom: 1rem;
    border: 1px solid #e8e8e8;
}

.accessories-category-accordion .accordion-header {
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
}

.accessories-category-accordion[open] .accordion-header {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.accessories-category-accordion .accordion-content {
    padding: 1.5rem;
}

/* Grid-layout */
.accessories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Tuote-item */
.accessory-display-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.25rem;
    background: #fff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.accessory-display-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #4CAF50;
}

/* Kuva */
.accessory-image {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: #f9f9f9;
    border-radius: 6px;
    overflow: hidden;
}

.accessory-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.accessory-display-item:hover .accessory-image img {
    transform: scale(1.05);
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
}

/* Tiedot */
.accessory-title {
    font-size: 13px;
    font-weight: 600;
    color: #2a2a2a;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.accessory-description {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin: 0 0 0.75rem 0;
    flex: 1;
}

.accessory-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #4CAF50;
    margin: 0.5rem 0;
}

.accessory-price .vat-text {
    font-size: 0.75rem;
    font-weight: 400;
    color: #888;
    margin-left: 0.25rem;
}

/* Metatiedot */
.accessory-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f0f0f0;
    font-size: 0.75rem;
    color: #888;
}

.accessory-sku,
.accessory-unit {
    padding: 0.2rem 0.5rem;
    background: #f5f5f5;
    border-radius: 3px;
}

/* Ei lisätarvikkeita */
.no-accessories {
    text-align: center;
    padding: 2rem 1.5rem;
    color: #999;
    font-style: italic;
}

/* Mobiilioptimointi */
@media (max-width: 768px) {
    .accessories-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1rem;
    }

    .accessory-image {
        height: 140px;
    }

    .category-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .accessories-grid {
        grid-template-columns: 1fr;
    }
}

/* ======================================
   MODAL (kuvan klikkaus → lisätiedot)
   ====================================== */

.accessory-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.accessory-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
}

.accessory-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.accessory-modal-close:hover,
.accessory-modal-close:focus {
    color: black;
    text-decoration: none;
}

.accessory-modal-image-container {
    text-align: center;
    margin: 15px 0;
}

.accessory-modal-image-container img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.accessory-modal-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.accessory-modal-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.accessory-modal-thumbnail:hover {
    border-color: #007bff;
}

.accessory-modal-description {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.accessory-modal-description h4 {
    margin-top: 15px;
    margin-bottom: 5px;
    color: #333;
    font-size: 1rem;
}

.accessory-modal-description p {
    margin-bottom: 10px;
    color: #555;
    line-height: 1.5;
}

/* ======================================
   IMAGE-INFO-TEXT (klikkaa lisätietoja)
   ====================================== */

.image-info-text {
    font-size: 11px;
    color: #666;
    text-align: center;
    margin-top: 5px;
    font-style: italic;
}

.accessory-image img {
    cursor: pointer;
}

.accessory-image img:hover + .image-info-text {
    color: #4CAF50;
}

/* ======================================
   VARIAATIOT (väri/koko dropdown)
   ====================================== */

.accessory-variant-selector {
    margin-top: 1rem;
}

.accessory-variant-selector label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-weight: 600;
    color: #333;
}

.accessory-variant-select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 1rem;
    cursor: pointer;
}

.accessory-variant-select:hover {
    border-color: #4CAF50;
}

.no-variant-selected {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.9);
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
}

.variant-image {
    position: relative;
    min-height: 150px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accessory-with-variations .variation-description,
.accessory-with-variations .variation-price {
    margin-top: 0.5rem;
}

/* ======================================
   SUB-TUOTTEET (alatuotteet) - VAIN SEO-KORTILLE
   ====================================== */

.accessories-section .sub-accessories-display {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #f1f8f4;
    border-radius: 4px;
    border-left: 3px solid #4CAF50;
}

.accessories-section .sub-accessories-title {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4CAF50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.accessories-section .sub-accessories-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.accessories-section .sub-accessory-item {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 0.75rem;
    padding: 0.5rem;
    background: white;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.accessories-section .sub-accessory-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.accessories-section .sub-accessory-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.accessories-section .sub-accessory-name {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.accessories-section .sub-accessory-description {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.3;
}

.accessories-section .sub-accessory-price {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4CAF50;
}




/* SIIRRETTY Uploads/Excel---Themes/lisaosat_lisatuotteet.php tyylit tänne */


/* Lisätarvikelistan tyylit */
.custom-accessories-container {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    max-width: 100%;
    box-sizing: border-box;
}
.accessories-title {
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.accessories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
}
.accessory-item {
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 10px;
    background: #fff;
    transition: box-shadow 0.3s, height 0.3s;
    cursor: pointer;
    position: relative;
}
/* Korkeampi kortti tuotteille, joilla on variaatioita */
.accessory-with-variations {
    min-height: 280px;
}
.accessory-item:hover {
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}
.accessory-item::before {
    content: '<?php echo $t['add']; ?>';
    position: absolute;
    right: 10px;
    top: 10px;
    background-color: #f8f8f8;
    color: #666;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 3px;
}
.accessory-item.selected::before {
    content: '<?php echo $t['added']; ?>';
    background-color: #4CAF50;
    color: white;
}
.accessory-image {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    position: relative;
}
.accessory-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.2s;
}
.accessory-image img:hover {
    transform: scale(1.05);
}
.variation-image {
    position: relative;
}
.no-variant-selected {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(240, 240, 240, 0.8);
    color: #666;
    font-size: 14px;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    z-index: 1;
}
.no-image {
    width: 100%;
    height: 100%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}
.accessory-info {
    margin-bottom: 15px;
}
.accessory-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
}
.accessory-description {
    font-size: 13px;
    color: #777;
    line-height: 1.4;
    margin-bottom: 5px;
}
.accessory-price {
    font-size: 14px;
    font-weight: bold;
    color: #4CAF50;
    margin-top: 6px;
}
.accessory-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.accessory-variant {
    margin-bottom: 5px;
}
.accessory-variant-select {
    width: 100%;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background-color: white;
}
.accessory-quantity {
    display: flex;
    align-items: center;
}
.accessory-qty {
    width: 70px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    transition: background-color 0.3s;
}
.accessory-qty:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}
.accessory-qty-text {
    margin-left: 5px;
    color: #555;
}
.accessory-item.selected .accessory-qty {
    background-color: #e8f5e9;
    border-color: #4CAF50;
}
.accessory-item.selected {
    border-color: #4CAF50;
    background-color: #f0f9f0;
}
.accessory-modal-data, .variant-data {
    display: none;
}

/* Alatuotteiden tyylit */
.sub-accessories-container {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}
.sub-accessories-container h5 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #555;
}
.sub-accessory-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    margin-bottom: 8px;
    border: 1px solid #f0f0f0;
    border-radius: 3px;
    background-color: #f9f9f9;
    gap: 10px;
}
.sub-accessory-info {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 10px;
}
.sub-accessory-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-right: 10px;
    cursor: pointer;
    transition: transform 0.2s;
}
.sub-accessory-image:hover {
    transform: scale(1.1);
}
.sub-accessory-details {
    flex: 1;
}
.sub-accessory-name {
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 2px;
}
.sub-accessory-description {
    font-size: 12px;
    color: #777;
    margin-bottom: 2px;
}
.sub-accessory-price {
    font-size: 12px;
    font-weight: bold;
    color: #4CAF50;
    margin-top: 3px;
}
.sub-accessory-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.sub-accessory-checkbox-label {
    margin-left: 3px;
    font-size: 12px;
}
.sub-accessory-quantity {
    display: flex;
    align-items: center;
}
.sub-accessory-qty {
    width: 70px;
    min-width: 70px;
    padding: 2px 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 12px;
}
.sub-accessory-qty:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}
.sub-accessory-qty-text {
    margin-left: 3px;
    font-size: 12px;
    color: #555;
}

@media (max-width: 768px) {
    .accessories-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    .accessory-image {
        height: 80px;
    }
    .accessory-description {
        display: none;
    }
    .sub-accessory-controls {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Modaalin tyylit */
.accessory-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

.accessory-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    width: 80%;
    max-width: 800px;
}

.accessory-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.accessory-modal-close:hover,
.accessory-modal-close:focus {
    color: black;
    text-decoration: none;
}

.accessory-modal-image-container {
    text-align: center;
    margin: 15px 0;
}

.accessory-modal-image-container img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.accessory-modal-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.accessory-modal-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid #eee;
    cursor: pointer;
    transition: border-color 0.3s;
}

.accessory-modal-thumbnail:hover {
    border-color: #007bff;
}

.accessory-modal-description {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.accessory-modal-description h4 {
    margin-top: 15px;
    margin-bottom: 5px;
    color: #333;
}

/* Zoom-modaalin tyylit */
.image-zoom-modal {
    display: none;
    position: fixed;
    z-index: 1010;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.85);
}

.image-zoom-modal-content {
    margin: 5% auto;
    width: 90%;
    max-width: 900px;
    text-align: center;
}

.image-zoom-modal-close {
    color: #fff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    margin-right: 15px;
    margin-bottom: 10px;
}

.image-zoom-modal-close:hover,
.image-zoom-modal-close:focus {
    color: #ccc;
    text-decoration: none;
}

.image-zoom-container {
    margin: 10px 0;
}

.image-zoom-container img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

#zoomed-image-title {
    color: #fff;
    margin-top: 15px;
    text-align: center;
    font-size: 16px;
}

/* Lisää tyylit select-kentän korostusanimaatiolle */
@keyframes highlight-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 165, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 165, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 165, 0, 0); }
}

.highlight-select {
    animation: highlight-pulse 1s ease-in-out;
    border-color: orange !important;
}

/* Lisää tämä CSS-tyyleihin */
.image-info-text {
    font-size: 11px;
    color: #666;
    text-align: center;
    margin-top: 5px;
    font-style: italic;
}

.accessory-image {
    position: relative;
}

.accessory-image img:hover + .image-info-text {
    color: #4CAF50;
}

/* Zoomattavan kuvan tyyli */
.zoomable-image {
    cursor: zoom-in !important;
}


/* Kategoriaan liittyvät tyylit */
.accessories-category {
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
}

.accessories-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.category-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #4CAF50;
    display: inline-block;
}

/* Mobiilioptimointi kategorioille */
@media (max-width: 768px) {
    .category-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .accessories-category {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
}



/* Enhanced Category Accordion Styles */

/* Base styles for the category container */
details.accessories-category {
  border: none;
  margin-bottom: 15px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}

details.accessories-category:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Beautiful summary styling */
summary.category-title {
  font-size: 16px;
  font-weight: 600;
  color: #2a2a2a;
  cursor: pointer;
  list-style: none;
  padding: 15px 20px;
  margin: 0;
  background: linear-gradient(to right, #f9f9f9, #ffffff);
  border-left: 4px solid #4CAF50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  transition: all 0.2s ease;
}

summary.category-title:hover {
  background: linear-gradient(to right, #f5f5f5, #fafafa);
}

/* Remove default arrow */
summary.category-title::-webkit-details-marker {
  display: none;
}

/* Custom arrow with smooth rotation */
summary.category-title::after {
  content: "";
  width: 12px;
  height: 12px;
  border-right: 2px solid #4CAF50;
  border-bottom: 2px solid #4CAF50;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  position: absolute;
  right: 20px;
  top: 18px;
}

details[open] > summary.category-title::after {
  transform: rotate(-135deg);
  top: 22px;
}

/* Content area styling */
details.accessories-category .accessories-grid {
  padding: 5px 20px 20px;
  background-color: #ffffff;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease;
}

details[open] > .accessories-grid {
  opacity: 1;
  transform: translateY(0);
  max-height: 3000px;
}

details:not([open]) > .accessories-grid {
  max-height: 0;
  padding-top: 0;
  margin-top: 0;
  padding-bottom: 0;
}

/* Add subtle animation when opening/closing */
details.accessories-category {
  transition: margin 0.3s ease;
}

details[open].accessories-category {
  margin-bottom: 20px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  summary.category-title {
    font-size: 15px;
    padding: 12px 15px;
  }
  
  summary.category-title::after {
    width: 10px;
    height: 10px;
    right: 15px;
    top: 16px;
  }
  
  details[open] > summary.category-title::after {
    top: 20px;
  }
  
  details.accessories-category .accessories-grid {
    padding: 5px 15px 15px;
  }
}

/* Additional polish - category count badge */
summary.category-title .category-count {
  background-color: #4CAF50;
  color: white;
  font-size: 12px;
  font-weight: normal;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 10px;
  display: inline-block;
}

/* Make the last category look consistent with others */
details.accessories-category:last-child {
  margin-bottom: 15px;
}


