﻿.spec-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px 20px;
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.08);
    max-width: 1200px;
    margin: 0 auto;
}

.spec-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.accent-bar {
    width: 34px;
    height: 6px;
    background: linear-gradient(90deg,var(--accent), #f7c07a);
    border-radius: 4px;
}

.spec-title {
    font-weight: 600;
    font-size: 18px;
    color: var(--text);
}

/* Grid layout for items */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    align-items: start;
}

/* Individual item row (icon + label + value) */
.spec-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 6px;
}

.spec-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.01));
    border: 1px solid rgba(0,0,0,0.03);
    color: var(--muted);
    font-size: var(--icon-size);
}

.spec-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.spec-label {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spec-value {
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

    /* Right aligned special cases e.g. long text at end */
    .spec-value.end {
        margin-left: auto;
        color: #6b7280;
        font-weight: 500;
    }

/* subtle horizontal rule below items */
.divider {
    height: 1px;
    background: var(--border);
    margin-top: 12px;
    border-radius: 2px;
}

/* Responsive */
@media (max-width: 992px) {
    .spec-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width: 560px) {
    .spec-grid {
        grid-template-columns: 1fr;
    }

    .spec-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }
}


.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.main-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: #f0f0f0;
}

    .main-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.thumbnail-slider-wrapper {
    position: relative;
    padding: 0 50px;
}

.thumbnail-slider {
    overflow: hidden;
    position: relative;
}

.thumbnail-track {
    display: flex;
    gap: 10px;
    transition: transform 0.3s ease;
}

.thumbnail {
    flex: 0 0 calc(20% - 8px);
    height: 100px;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

    .thumbnail:hover {
        border-color: #ff9800;
        transform: scale(1.05);
    }

    .thumbnail.active {
        border-color: #ff9800;
    }

    .thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

    .slider-btn:hover {
        background: #ff9800;
        border-color: #ff9800;
        color: white;
    }

    .slider-btn:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

        .slider-btn:disabled:hover {
            background: white;
            border-color: #ddd;
            color: #333;
        }

    .slider-btn.prev {
        left: 0;
    }

    .slider-btn.next {
        right: 0;
    }

@media (max-width: 768px) {
    .main-image {
        height: 300px;
    }

    .thumbnail {
        flex: 0 0 calc(33.333% - 7px);
    }

    .thumbnail-slider-wrapper {
        padding: 0 40px;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .thumbnail {
        flex: 0 0 calc(50% - 5px);
    }
}