/* MAIN IMAGE */
.main-image img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

/* GALLERY GRID */
.gallery-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.gallery-item img.small-img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
}

.more-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    pointer-events: none;
}

/* MODAL */
.gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.gallery-modal-content {
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

#galleryMainImg {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 10px;
    margin-bottom: 12px;
}

.close-btn {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.gallery-thumbs .thumb {
    width: 70px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.7;
}

.gallery-thumbs .thumb:hover {
    opacity: 1;
}

/* ===== INFO ===== */
.sp-title {
    font-weight: 800;
    margin-bottom: 12px;
}

.sp-meta div {
    margin-bottom: 6px;
    font-size: 15px;
}

.sp-price {
    margin-top: 20px;
    font-size: 28px;
    font-weight: 800;
    color: #0a6847;
}

/* ===== CONTENT ===== */
.sp-content h4 {
    font-weight: 700;
    margin-bottom: 10px;
}

.product-info {
    line-height: 1.7;
    font-size: 15px;
}

/* ===== MODAL ===== */
.gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.gallery-modal-content img {
    max-width: 90%;
    max-height: 90%;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}
