/* .header-cards-container { */
    /* gap: 5px;
    /* justify-content: center; */
    /*display: grid;
    grid-template-columns: auto auto auto auto auto auto auto auto auto auto auto auto;
    justify-items: center;
    justify-content: center; */
/* } */

.header-cards-container > div {
    /* display: flex;
    gap: 10px; */
    /* flex-direction: column;
    justify-content: center;
    align-items: center; */
    border: 2px solid #6832ff;
    border-radius: 10px;
    padding: 5px;
    /* margin: 20px 0; */
    /* max-width: min-content;
    max-height: min-content; */
}
/*
.header-cards-container > div img {
    max-width: 125px;
} */

.header-card {
    display: flex;
    gap: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px solid #6832ff;
    border-radius: 10px;
    padding: 5px;
    margin: 20px 0;
    max-width: min-content;
    max-height: min-content;
}

.header-card img {
    max-width: 125px;
}

.order-card img {
    border-radius: 100%;
    width: 250px;
}

.text-main {
    color: #6832ff;
}


.row-1 {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 10px;
    margin-bottom:0;
}

.img-card {
    border: 3px solid #9058f1;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;

    flex:1;
    min-height:140px;
    padding:12px 8px;
}

.img-card img {
    width: 60px;
    height:60px;
    object-fit:contain;
}

.img-card p {
    overflow: hidden;
    text-align: center;
    line-height: 1.5;
    height: 3em; /* 2 × line-height */
    overflow-wrap: anywhere;
    margin: 0;
    padding-top: 3px;
    font-size: 14px;



    flex:1;
    display:flex;
    align-items:center;
    justify-content:center;
}

.img-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    align-content:start;
}

/*.img-card-link {*/
/*    color: inherit;*/
/*    text-decoration: none;*/
/*}*/

.img-card-link{
    display: flex;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.row-2 {
    display: grid;
    grid-template-columns: 2fr 5fr 2fr;
    gap: 10px;
    align-items:start;
    margin-top:0;
}

.p_1 {
    display: none
}

.video-box{
    position:relative;
    border-radius:14px;
    overflow:hidden;
    cursor:pointer;
}

.custom-video{
    width:100%;
    display:block;
}

.play-btn{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-45%,-50%);
    width:70px;
    height:70px;

    /* رنگ دکمه */
    background:linear-gradient(135deg,#ff5a7a,#ff3d5e);

    border-radius:50%;
    color:white;
    font-size:30px;
    display:flex;
    align-items:center;
    justify-content:center;

    /* سایه */
    box-shadow:0 10px 25px rgba(255,70,100,0.45);

    position:absolute;
}

.play-icon{
    transform:translateX(3px);
}

/* حلقه سفید دور دکمه */
.play-btn::after{
    content:'';
    position:absolute;
    width:110px;
    height:110px;
    border-radius:50%;
    border:2px solid rgba(255,255,255,0.5);
}

.play-btn::before{
    content:'';
    position:absolute;
    width:110px;
    height:110px;
    border-radius:50%;
    border:2px solid rgba(255,255,255,0.4);
    animation:pulse 2s infinite;
}

.content-box img {
    max-width: 100%;
    height: auto;
}

.content-box {
    overflow: hidden;
}

@keyframes pulse{
    0%{transform:scale(1);opacity:1;}
    100%{transform:scale(1.4);opacity:0;}
}

@media (max-width: 1023px) {
    .p_1 {
        display: block;
    }
    .p_2 {
        display: none;
    }

    .row-1 {
        grid-template-columns: repeat(7, 1fr);
        justify-content: center;
        align-items: center;
        justify-items: center;
        align-content: center;
    }

    .img-container{
        display:none;
    }

    .row-2{
        grid-template-columns:1fr;
    }
}

@media (max-width: 678px) {

    .row-1 {
        grid-template-columns: repeat(4, 1fr);
    }
    .video {
        flex-direction: column;
    }
}

@media (max-width: 555px) {
    .order-wrapper img {
        max-width: 70px !important;
    }

    /* .img-card {
        transform: scale(0.7);
    } */
}
.custom-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.custom-modal.show {
    display: flex;
}

.custom-modal-dialog {
    width: 420px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    animation: pop .15s ease;
}

@keyframes pop {
    from { transform: scale(.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.custom-modal-header {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    font-weight: bold;
}

.close-btn {
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
}

.custom-modal-body {
    padding: 16px;
}

.custom-modal-footer {
    padding: 12px 16px;
    border-top: 1px solid #eee;
}

.hint-box {
    font-size: 12px;
    color: #777;
    background: #f8f8f8;
    padding: 10px;
    border-radius: 8px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.filter-option {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    user-select: none;
}
.filter-option span {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
}

.modal-body .filter-options {
    padding: 10px 5px;
}
.filter-option input {
    appearance: none;
    -webkit-appearance: none;

    width: 22px;
    height: 22px;

    border: 2px solid #333;
    border-radius: 4px;      /* مربع */

    cursor: pointer;
    position: relative;

    margin: 0;
    flex-shrink: 0;
}
.filter-option input:checked {
    background: #8b5cf6;
    border-color: #8b5cf6;
}
.filter-option input:checked::after {
    content: "✓";

    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    font-size: 14px;
    font-weight: bold;
}


#neighborhood-list{
    scrollbar-width: thin;
}

.neighborhood-item{

    padding:8px 18px;
    border-radius:8px;
    font-size:14px;
    transition:.2s;
    cursor:pointer;
    user-select:none;
}

.neighborhood-item.active{

    background:#8b5cf6;
    color:#fff;
    border-color:#8b5cf6;
}



.guild-box{
    margin:25px auto;
}

.guild-breadcrumb{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:18px;
}

.guild-breadcrumb a{
    color:#666;
    text-decoration:none;
    font-size:14px;
    transition:.2s;
}

.guild-breadcrumb a:hover{
    color:#8B5CF6;
}

.guild-breadcrumb i{
    color:#bbb;
    font-size:11px;
}

.guild-breadcrumb .active{
    color:#8B5CF6;
    font-weight:700;
}


.guild-children{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.guild-chip{
    display:flex;
    align-items:center;
    gap:8px;
    padding:5px 15px;
    border:1px solid #ddd;
    border-radius:999px;
    color:#444;
    text-decoration:none;
    transition:.2s;
    background:white;
    font-size: 12px;
}

.guild-chip:hover{

    background:#8B5CF6;
    border-color:#8B5CF6;
    color:white;

}

.guild-chip small{
    opacity:.7;
    font-size:11px;
}
