/* SolarTech — small helpers on top of Bootstrap (no build step) */
:root {
    --solar-green: #198754;
    --solar-green-dark: #146c43;
    --solar-hero-h: 600px;
}

body.site-solar {
    font-family: "Figtree", system-ui, -apple-system, sans-serif;
}

.text-gradient-brand {
    background: linear-gradient(90deg, var(--solar-green), #0d5031);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-slider-wrap {
    position: relative;
    overflow: hidden;
}

#heroSlider {
    position: relative;
    min-height: var(--solar-hero-h);
}

.hero-slide {
    transition: opacity 0.45s ease;
}

.hero-slide.d-none {
    display: none !important;
}

.slider-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.45);
}

.slider-dot.active-dot {
    background: #fff;
    opacity: 1;
}

@keyframes solar-fade-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-solar-fade-in {
    animation: solar-fade-in 0.9s ease-out;
}

/* Brands marquee row */
#brandsCarousel {
    display: flex;
    animation: scrollBrands 32s linear infinite;
}

@keyframes scrollBrands {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

#brandsCarousel:hover {
    animation-play-state: paused;
}

.brand-slide {
    flex: 0 0 auto;
    width: 200px;
    padding: 0 0.75rem;
}

@media (min-width: 768px) {
    .brand-slide {
        width: 250px;
    }
}

/* Product image carousel */
#imageCarousel {
    display: flex;
    transition: transform 0.45s ease;
}

#imageCarousel .carousel-slide {
    min-width: 100%;
}

.img-cover-h {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .img-cover-h {
        height: 400px;
    }
}

@media (min-width: 992px) {
    .img-cover-h {
        height: 500px;
    }
}

.thumbnail-btn {
    width: 5rem;
    height: 5rem;
    padding: 0;
    overflow: hidden;
    border-radius: 0.375rem;
}

.thumbnail-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery / lightbox */
.gallery-item.d-none {
    display: none !important;
}

#lightbox.modal-compat {
    background: rgba(0, 0, 0, 0.92);
}

#lightbox .lightbox-img {
    max-height: 85vh;
    width: 100%;
    object-fit: contain;
}

/* CMS rich text (unchanged class names from old templates) */
.prose {
    color: #374151;
    line-height: 1.75;
}
.prose h2 {
    color: #111827;
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.35em;
}
.prose h3 {
    color: #1f2937;
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: 1.25em;
    margin-bottom: 0.5em;
}
.prose p {
    margin-top: 1em;
    margin-bottom: 1em;
}
.prose ul,
.prose ol {
    margin-top: 1em;
    margin-bottom: 1em;
    padding-left: 1.5em;
}
.prose img {
    border-radius: 0.5rem;
    max-width: 100%;
    height: auto;
}
.prose a {
    color: var(--solar-green);
}
.prose table {
    width: 100%;
    margin: 1em 0;
    border-collapse: collapse;
}
.prose table th,
.prose table td {
    border: 1px solid #e5e7eb;
    padding: 0.5em 0.75em;
}

/* Product detail — related cards */
a.solar-related-card {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
a.solar-related-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-2px);
}

/* Gallery page (Bootstrap + no Tailwind) */
@keyframes solar-gallery-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item-solar {
    animation: solar-gallery-in 0.45s ease-out;
}

.gallery-item-solar.is-filtered-out {
    display: none !important;
}

#lightbox.solar-lightbox {
    background: rgba(0, 0, 0, 0.94);
    z-index: 1060;
}

a.solar-related-mini {
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
a.solar-related-mini:hover {
    border-color: rgba(25, 135, 84, 0.45) !important;
    background-color: var(--bs-success-bg-subtle) !important;
}
