* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    /* background: linear-gradient(180deg, #5b9cf7, #57befd); */
    background-image: url(PageuseImg/Render-Body-Bg.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* HEADER */
.page-header {
    text-align: center;
    padding: 40px 20px 10px;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 600;
    color: #f8f8f8;
    text-shadow: 5px 3px 9px black;
}

.page-header p {
    font-size: 20px;
    margin-top: 8px;
    color: #ffff;
    text-shadow: 2px 2px 3px black;
}

/* MAIN CONTAINER */
.box-container {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 30px;
    width: 92vw;
    max-width: 1400px;
    margin: 40px auto;
    padding: 30px;
    /* background: rgba(255, 255, 255, 0.65); */
    border-radius: 24px;
    backdrop-filter: blur(50px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.87);
    /* border: 3px solid yellow; */
}

/* LEFT PREVIEW */
.mainImg {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
}

.mainImg img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.4s ease;
}

.mainImg img.fade {
    opacity: 0.6;
}

.room-label {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.85);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
}

.left .apply-options {
    margin-top: 18px;
    justify-content: center;
}

/* RIGHT PANEL */
.right {
    box-sizing: border-box;
    background-image: url(PageuseImg/Render-Right-side-Stone-type-Bg.png);
    background-size: cover;
    background-position: left;
    background-repeat: no-repeat;
    /* background: rgba(255, 255, 255, 0.9); */
    border-radius: 20px;
    /* height: 430px; */
    border: 3px solid white;
    transition: 0.3s;
    padding: 24px;
}

.right:hover {
    border: 3px solid rgb(249, 249, 60);
}

.right h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 22px;
}

/* STONE TYPE DROPDOWN */

.stone-type {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.stone-type select {
    width: 100%;
    padding: 14px;
    border-radius: 40px;
    font-size: 20px;
    font-weight: 600;
    border: none;
    outline: none;
    background: linear-gradient(135deg, #c8dbe6, #a7c6d6);
    cursor: pointer;
}

/* STONE GRID */
.stone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 14px;

    max-height: 320px;
    overflow-y: auto;

    padding-right: 6px;
}

.stone-grid li {
    list-style: none;
    width: 90%;

    height: 70px; /* 🔥 FIXED HEIGHT → no overlap ever */

    border-radius: 14px;
    overflow: hidden;

    display: flex;
}

.stone-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    border-radius: 14px;
    display: block;

    cursor: pointer;
    border: 2px solid transparent;

    transition: transform 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
}

.stone-grid img:hover {
    transform: scale(1.05);
}

.stone-grid img.active {
    border-color: #6cb6e8;
    box-shadow: 0 0 0 3px rgba(108, 182, 232, 0.3);
}

.coming-soon {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    color: black;

    border-radius: 12px;
}

/* APPLY OPTIONS */
.apply-options {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.apply-options button {
    flex: 1;
    min-width: 110px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #cbdced;
    background: linear-gradient(135deg, #3fa8ee, #0961e6);
    color: #ffff;
    cursor: pointer;
    font-weight: 500;
    transition: 0.3s;
}

.apply-options button.active {
    background: linear-gradient(135deg, #6cb6e8, #9cd3f2);
    color: #fff;
    border: none;
}

/* RESPONSIVE */
/* TABLET & SMALL LAPTOP */
@media (max-width: 900px) {

    .left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .apply-options {
        width: 100%;
    }

    .box-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .right {
        padding: 20px;
    }

    .stone-grid {
        max-height: 260px;
        grid-template-columns: repeat(3, 1fr);
    }
}

/* LARGE MOBILE */
@media (max-width: 600px) {

    .apply-options {
        justify-content: center;
    }

    .apply-options button {
        flex: unset;
        width: 48%;
    }

    .stone-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* SMALL MOBILE */
@media (max-width: 400px) {

    .page-header h1 {
        font-size: 24px;
    }

    .apply-options button {
        width: 100%;
    }

    .stone-grid {
        max-height: 220px;
        gap: 10px;
    }
}