/* MAIN CONTAINER */
.elw-container {
    display: flex;
    gap: 20px;
    align-items: stretch; /* 🔥 equal height for all */
}

/* 🔥 IMPORTANT FIX (ADD) */
.elw-container > div {
    display: flex;
    flex-direction: column;
}

/* ================= LEFT ================= */
.elw-left {
    width: 40%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    height: 100%;
}

/* THUMB */
.elw-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
}

.elw-thumb:hover {
    opacity: 0.9;
}

.elw-thumb.active {
    opacity: 1;
    border: 2px solid #000;
}

/* ================= CENTER ================= */
.elw-center {
    width: 50%;
    display: flex;
    align-items: stretch;
}

.elw-center img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================= RIGHT ================= */
.elw-right {
    width: 10%;
    display: flex;
    flex-direction: column;

    align-self: stretch; /* 🔥 FIX */
    height: auto;

    overflow-y: auto;
    background: #f5f5f5;
    padding: 15px 10px;
    text-align: center;
}

/* SHOP TITLE */
.elw-right::before {
    content: "SHOP:";
    display: block;
    width: 100%;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

/* PRODUCTS WRAPPER */
.elw-products {
    display: none;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

/* PRODUCT CARD */
.elw-products a {
    display: block;
    width: 100%;
    background: #fff;
    padding: 10px; /* 🔥 improved */
    transition: all 0.3s ease;
}

.elw-products a:hover {
    transform: scale(1.05);
}

/* PRODUCT IMAGE */
.elw-products img {
    width: 100%;
    height: 90px; /* 🔥 increased */
    object-fit: contain;
}

/* ================= RESPONSIVE ================= */

/* TABLET */
@media (max-width: 1024px) {
    .elw-container {
        flex-direction: column;
    }

    .elw-left,
    .elw-center,
    .elw-right {
        width: 100%;
    }

    .elw-right {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        height: auto;
    }

    .elw-products {
        flex-direction: row;
    }

    .elw-products a {
        min-width: 80px;
    }
}

/* MOBILE */
@media (max-width: 600px) {
    .elw-left {
        grid-template-columns: repeat(2, 1fr);
    }

    .elw-products img {
        height: 70px; /* 🔥 slightly bigger for mobile */
    }
}