/* ===== Discover Your Stone — Frontend Styles ===== */

.dys-app *{
    box-sizing:border-box;
}

.dys-app{
    background:#f4f1ec;
    font-family:Arial,sans-serif;
    color:#333;
    padding:20px 0;
}

.dys-container{
    max-width:1280px;
    margin:30px auto;
    padding:0 20px;
    display:grid;
    grid-template-columns:1fr 280px;
    gap:30px;
}

.dys-grid{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:16px;
}

.dys-card{

    border-radius:14px;
    overflow:hidden;
    cursor:pointer;
    background:#e8dfd3;
    transition:.25s;
    position:relative;
}

.dys-card:hover{
    transform:translateY(-3px);
}

.dys-card.dys-active{
    outline:4px solid #b38d57;
}

.dys-card img{
    width:100%;
    height:auto;

}

.dys-card .dys-card-name{
    font-size:11px;
    text-align:center;
    padding:4px 2px;
    background:rgba(255,255,255,.85);
    line-height:1.2;
    position:absolute;
    bottom:0;
    left:0;
    right:0;
    opacity:0;
    transition:opacity .2s;
}

.dys-card:hover .dys-card-name,
.dys-card.dys-active .dys-card-name{
    opacity:1;
}

.dys-emoji{
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:30px;
}

.dys-sidebar{
    display:flex;
    flex-direction:column;
    gap:24px;
}

.dys-box{
    background:#fff;
    border:1px solid #e5ddd3;
    border-radius:20px;
    padding:24px;
    position:sticky;
    top:20px;
}

.dys-box h3{
    font-size:14px;
    letter-spacing:1px;
    text-transform:uppercase;
    margin-bottom:20px;
}

.dys-selected-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:8px;
}

.dys-slot{
    aspect-ratio:1;
    border:2px dashed #ddd2c7;
    border-radius:10px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#bbb;
    overflow:hidden;
}

.dys-slot img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.dys-status{
    text-align:center;
    margin:20px 0;
    color:#777;
}

.dys-btn{
    width:100%;
    height:56px;
    border:none;
    border-radius:999px;
    background:#c8c2bd;
    color:white;
    font-weight:bold;
    letter-spacing:1px;
    cursor:not-allowed;
    font-size:14px;
}

.dys-btn.dys-active{
    background:#b38d57;
    cursor:pointer;
}

/* ===== Results ===== */

.dys-results-wrap{
    max-width:1280px;
    margin:30px auto;
    padding:0 20px;
}

.dys-result-section{
    background:#fff;
    border:1px solid #e5ddd3;
    border-radius:20px;
    padding:30px;
    margin-bottom:24px;
}

.dys-result-header{
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:20px;
    padding-bottom:16px;
    border-bottom:1px solid #eee;
}

.dys-result-stone-thumb img{
    width:60px;
    height:60px;
    object-fit:cover;
    border-radius:10px;
}

.dys-result-stone-title{
    font-size:22px;
    font-weight:700;
    margin:0;
}

.dys-no-results{
    color:#999;
}

.dys-product-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
    gap:18px;
}

.dys-product-card{
    display:block;
    text-decoration:none;
    color:#333;
    border:1px solid #eee;
    border-radius:14px;
    overflow:hidden;
    transition:.2s;
}

.dys-product-card:hover{
    transform:translateY(-3px);
    box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.dys-product-card-image img{
    width:100%;
    height:160px;
    object-fit:cover;
    display:block;
}

.dys-product-card-name{
    font-size:14px;
    font-weight:600;
    padding:10px 12px 2px;
}

.dys-product-card-price{
    font-size:13px;
    color:#b38d57;
    padding:0 12px 12px;
}

/* ===== Popup ===== */

.dys-popup-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.6);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:9999;
}

.dys-popup-box{
    width:900px;
    max-width:95%;
    background:#fff;
    display:grid;
    grid-template-columns:1fr 1fr;
    border-radius:18px;
    overflow:hidden;
    position:relative;
    animation:dys-pop .25s ease;
}

@keyframes dys-pop{
    from{transform:scale(.8);opacity:0}
    to{transform:scale(1);opacity:1}
}

.dys-popup-left img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.dys-popup-right{
    padding:40px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:10px;
    text-align:left;
}

.dys-popup-right h2{
    font-size:22px;
    font-weight:400;
}

.dys-popup-right h1{
    font-size:64px;
    font-weight:800;
    line-height:1;
}

.dys-popup-right p{
    font-size:16px;
    color:#666;
    margin-bottom:20px;
}

.dys-popup-btn{
    padding:14px 20px;
    border-radius:8px;
    border:none;
    cursor:pointer;
    font-weight:600;
    margin-bottom:10px;
}

.dys-popup-btn.dys-popup-yes{
    background:#6b6bd6;
    color:#fff;
}

.dys-popup-btn.dys-popup-no{
    background:#fff;
    border:1px solid #ddd;
}

.dys-popup-close{
    position:absolute;
    top:10px;
    right:14px;
    font-size:26px;
    cursor:pointer;
    color:#333;
}

@media(max-width:1024px){

    .dys-container{
        grid-template-columns:1fr;
    }

    .dys-grid{
        grid-template-columns:repeat(4,1fr);
    }

    .dys-popup-box{
        grid-template-columns:1fr;
    }

    .dys-popup-left{
        display:none;
    }
}
