/* =====================================================
   softa.css  —  Product page styles
   ===================================================== */

:root {
    --softa-fade: 0.28s ease;
    --softa-radius: 12px;
    --softa-thumb: 78px;
    --softa-shadow: 0 4px 20px rgba(0,0,0,.09);
}

/* ══ PRODUCT SECTION ══ */
.product-section {
    padding: 56px 0 64px;
    background: #fff;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    align-items: start;
}

/* ══ GALLERY ══ */
.softa-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.main-image-wrap {
    position: relative;
    border-radius: var(--softa-radius);
    overflow: hidden;
    background: #f5f5f5;
    box-shadow: var(--softa-shadow);
    cursor: zoom-in;
    aspect-ratio: 4 / 3;
    border: 1px solid #e8e8e8;
}

.main-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity var(--softa-fade), transform .38s ease;
}

.main-image-wrap img.fading {
    opacity: 0;
    transform: scale(1.02);
}

.main-image-wrap:hover img:not(.fading) {
    transform: scale(1.025);
}

.zoom-hint {
    position: absolute;
    bottom: 12px;
    right: 14px;
    background: rgba(24,118,53,.82);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    padding: 5px 11px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    pointer-events: none;
    backdrop-filter: blur(4px);
    transition: opacity .2s;
}

.main-image-wrap:hover .zoom-hint { opacity: .9; }

/* Thumbnails */
.softa-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumb {
    width: var(--softa-thumb);
    height: var(--softa-thumb);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    transition: border-color .2s, transform .18s, box-shadow .2s;
    background: #f0f0f0;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.thumb:hover {
    border-color: var(--primary, #187635);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24,118,53,.2);
}

.thumb.active {
    border-color: var(--primary, #187635);
    box-shadow: 0 0 0 1px var(--primary);
}

/* ══ PRODUCT INFO ══ */
.softa-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 4px;
}

.softa-title {
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 700;
    color: var(--dark, #333);
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.softa-tags {
    font-size: .5em;
    font-weight: 600;
    color: var(--primary, #187635);
    letter-spacing: .04em;
    text-transform: uppercase;
}

.softa-divider {
    height: 3px;
    width: 56px;
    background: var(--primary, #187635);
    border-radius: 2px;
}

/* ══ EXPAND BUTTON ══ */
.softa-expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1.5px solid var(--primary, #187635);
    color: var(--primary, #187635);
    font-size: 13px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 30px;
    cursor: pointer;
    transition: background .22s, color .22s, box-shadow .22s;
    width: fit-content;
    letter-spacing: .02em;
}

.softa-expand-btn:hover {
    background: var(--primary, #187635);
    color: #fff;
    box-shadow: 0 4px 14px rgba(24,118,53,.25);
}

.softa-expand-btn:hover .expand-icon { stroke: #fff; }

.expand-icon {
    stroke: var(--primary, #187635);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), stroke .22s;
    flex-shrink: 0;
}

/* ══ COLLAPSIBLE DETAILS ══ */
.softa-details-wrap {
    /* JS controls max-height, overflow, opacity */
}

/* Description groups */
.softa-desc {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-top: 4px;
}

.softa-group-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primary, #187635);
    margin-bottom: 10px;
}

.softa-group-title svg {
    flex-shrink: 0;
    stroke: var(--primary, #187635);
}

.softa-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding-left: 2px;
}

.softa-group ul li {
    position: relative;
    padding-left: 16px;
    font-size: 14px;
    line-height: 1.65;
    color: #555;
}

.softa-group ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary, #187635);
    opacity: .6;
}

/* Lead paragraph */
.softa-lead {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    border-left: 3px solid var(--primary, #187635);
    padding-left: 14px;
    margin-top: -4px;
    text-align: justify;
}

/* Tech specs table */
.softa-table-wrap {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e4e8ef;
}

.softa-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.softa-table td {
    padding: 8px 12px;
    vertical-align: top;
    line-height: 1.5;
    border-bottom: 1px solid #edf0f5;
}

.softa-table tr:last-child td { border-bottom: none; }

.softa-table td:first-child {
    font-weight: 600;
    color: #444;
    width: 48%;
    background: #f8faf8;
}

.softa-table td:last-child { color: #555; }

.softa-table tr:hover td { background: #f2f8f4; }
.softa-table tr:hover td:first-child { background: #eaf4ed; }

/* CTA button */
.softa-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background-color: var(--primary, #187635);
    color: #fff;
    text-decoration: none;
    padding: 13px 26px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    transition: background-color .25s, transform .15s, box-shadow .25s;
    width: fit-content;
    margin-top: 4px;
}

.softa-cta:hover {
    background-color: var(--primary-light, #2a8c48);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24,118,53,.3);
}

.softa-cta svg { flex-shrink: 0; }

/* ══ LIGHTBOX ══ */
.softa-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.softa-lightbox.open { display: flex; }

.lb-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 92vw;
    max-height: 90vh;
}

.lb-img {
    max-width: 88vw;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
    object-fit: contain;
    display: block;
    transition: opacity var(--softa-fade);
    animation: lbIn .25s ease;
}

.lb-img.fading { opacity: 0; }

@keyframes lbIn {
    from { opacity: 0; transform: scale(.93); }
    to   { opacity: 1; transform: scale(1); }
}

.lb-close,
.lb-prev,
.lb-next {
    position: fixed;
    background: rgba(255,255,255,.13);
    border: 1.5px solid rgba(255,255,255,.2);
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .15s;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.lb-close { top: 20px; right: 20px; width: 44px; height: 44px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

.lb-close:hover  { background: rgba(255,255,255,.28); }
.lb-prev:hover   { background: rgba(255,255,255,.28); transform: translateY(-50%) translateX(-3px); }
.lb-next:hover   { background: rgba(255,255,255,.28); transform: translateY(-50%) translateX(3px); }

.lb-counter {
    position: fixed;
    bottom: 22px; left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.6);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    user-select: none;
}

/* ══ GREEN BANNER ══ */
.green-banner {
    background-color: rgba(24, 118, 54, 0.9);
    color: white;
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 0;
}

.green-banner h2 {
    font-size: clamp(22px, 4vw, 28px);
    margin-bottom: 15px;
    font-weight: 600;
}

.green-banner p {
    font-size: clamp(14px, 3vw, 16px);
    max-width: 800px;
    margin: 0 auto;
}

/* ══ RESPONSIVE ══ */
@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .product-section { padding: 36px 0 48px; }
}

@media (max-width: 600px) {
    .lb-prev { left: 6px; }
    .lb-next { right: 6px; }
    .lb-close { top: 12px; right: 12px; }
    --softa-thumb: 64px;
    .thumb { width: 64px; height: 64px; }
    .softa-title { font-size: 19px; }
}