/**
 * Product Specifications Styling
 * Tabbed layout matching Ezytrail design
 */

.specifications-section {
    margin: 3rem 0;
}

.specifications-main-title {
    font-size: 30px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    text-align: center;
}

.specifications-wrapper {
    display: flex;
    gap: 0;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

/* Tab Navigation - Left Sidebar */
.specifications-tabs {
    flex: 0 0 280px;
    background-color: #fff;
    padding: 1.5rem 0;
}

.specifications-tab-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.specifications-tab-nav li {
    margin: 0;
    padding: 0;
    border-left: 3px solid transparent;
}

.specifications-tab-nav li.active {
    border-left-color: #1a2e6f;
}

.specifications-tab-nav li a {
    display: block;
    padding: 0.875rem 1.5rem;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 400;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.specifications-tab-nav li.active a {
    color: #1a2e6f;
    font-weight: 700;
}

.specifications-tab-nav li a:hover {
    color: #1a2e6f;
}

/* Tab Content - Right Panel */
.specifications-content {
    flex: 1;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    margin: 1rem;
}

.specifications-panel {
    display: none;
}

.specifications-panel.active {
    display: block;
}

.specifications-panel h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 1.5rem 0;
}

/* Specifications Table */
.specifications-table {
    width: 100%;
    border-collapse: collapse;
}

.specifications-table tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.specifications-table tr:last-child {
    border-bottom: none;
}

.specifications-table td {
    padding: 1rem 0;
    vertical-align: top;
}

.specifications-table .spec-feature {
    width: 40%;
    color: #1a1a1a;
    padding-right: 2rem;
}

.specifications-table .spec-feature strong {
    font-weight: 600;
}

.specifications-table .spec-description {
    width: 60%;
}

/* CTA Buttons */
.specifications-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 0;
    margin-top: 1rem;
}

.specifications-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.specifications-cta .btn-primary {
    background-color: #A52A2A;
    color: #fff;
    border: 2px solid #A52A2A;
}

.specifications-cta .btn-primary:hover {
    background-color: #8B2323;
    border-color: #8B2323;
}

.specifications-cta .btn-secondary {
    background-color: transparent;
    color: #A52A2A;
    border: 2px solid #A52A2A;
}

.specifications-cta .btn-secondary:hover {
    background-color: #A52A2A;
    color: #fff;
}

.specifications-tab-nav li a br {
    display: none !important;
}

.specifications-section p {
    text-align: center !important;
    font-size: 18px;
    margin-bottom: 25px;
}

/* Responsive Design */
@media (max-width: 900px) {
    .specifications-tabs {
        flex: 0 0 220px;
    }
}

@media (max-width: 768px) {
    .specifications-wrapper {
        flex-direction: column;
    }

    .specifications-tabs {
        flex: none;
        width: 100%;
        overflow-x: auto;
        padding: 0;
        -webkit-overflow-scrolling: touch;
    }

    .specifications-tab-nav {
        display: flex;
        white-space: nowrap;
        padding: 0.5rem;
    }

    .specifications-tab-nav li {
        border-left: none;
        border-bottom: 3px solid transparent;
        flex-shrink: 0;
    }

    .specifications-tab-nav li.active {
        border-left: none;
        border-bottom-color: #1a2e6f;
    }

    .specifications-tab-nav li a {
        padding: 0.75rem 1rem;
        border-bottom: none;
        font-size: 0.875rem;
    }

    .specifications-content {
        margin: 0;
        border-radius: 0;
        padding: 1.5rem;
    }

    .specifications-panel h3 {
        font-size: 1.25rem;
    }

    .specifications-table .spec-feature,
    .specifications-table .spec-description {
        width: auto;
        display: block;
        padding: 0.5rem 0;
    }

    .specifications-table .spec-feature {
        padding-right: 0;
        padding-bottom: 0.25rem;
    }

    .specifications-table tr {
        display: block;
        padding: 0.75rem 0;
    }

    .specifications-cta {
        flex-direction: column;
        align-items: center;
    }

    .specifications-cta a {
        width: 100%;
        max-width: 280px;
    }
}
