/* ==============================================
   صفحه‌های کالکشن — shoes.html و collection.html?c=<کلید>
   پایه‌ی تم (رنگ‌ها، فونت، فوتر) از MenCollection.css می‌آید.
   محصولات عکس بدون پس‌زمینه‌اند و روی زمینه‌ی تیره با نور موضعی و
   یک «قفسه»ی طلایی باریک نمایش داده می‌شوند؛ اشاره‌ای به قفسه‌های
   خود بوتیک.
   ============================================== */

:root{
    --ease:cubic-bezier(.16,1,.3,1);
    --card:#161513;
    --card-line:#252420;
}

/* ===========================
   Hero
=========================== */

.shoesHero{
    max-width:1300px;
    margin:0 auto;
    padding:128px 6% 26px;
    display:grid;
    grid-template-columns:minmax(0, 1fr) minmax(0, 1.3fr);
    align-items:center;
    gap:40px;
}

.heroCopy{
    grid-column:1;
    grid-row:1;
}

.heroStage{
    grid-column:2;
    grid-row:1;
}

.heroCopy h1{
    font-family:"Noto Serif Arabic", serif;
    font-size:clamp(56px, 7.5vw, 104px);
    font-weight:700;
    line-height:1.1;
}

.heroCopy p{
    max-width:34ch;
    margin-top:16px;
    color:#cfc9bd;
    font-size:18px;
    line-height:1.9;
}

.heroCopy p span{
    color:var(--gold);
    font-weight:600;
}

.heroStage{
    position:relative;
    aspect-ratio:16 / 10;
}

/* نور موضعی پشت کفش‌ها */
.heroStage::before{
    content:"";
    position:absolute;
    inset:0 4% 8%;
    background:radial-gradient(50% 58% at 50% 62%, rgba(255,240,205,.13), transparent 72%);
    pointer-events:none;
}

/* قفسه‌ی طلایی */
.heroStage::after{
    content:"";
    position:absolute;
    left:3%;
    right:3%;
    bottom:13%;
    height:1px;
    background:linear-gradient(90deg, transparent, rgba(212,175,55,.75) 18%, rgba(212,175,55,.75) 82%, transparent);
    box-shadow:0 0 18px rgba(212,175,55,.35);
}

.heroStage img{
    position:absolute;
    bottom:13%;
    width:auto;
    object-fit:contain;
    filter:drop-shadow(0 18px 16px rgba(0,0,0,.7));
    animation:heroIn 1s var(--ease) both;
}

.heroStage .h1{
    left:50%;
    height:84%;
    translate:-50% 0;
    z-index:2;
    animation-delay:.1s;
}

.heroStage .h0{
    right:3%;
    height:58%;
    z-index:1;
    animation-delay:.25s;
}

.heroStage .h2{
    left:3%;
    height:58%;
    z-index:1;
    animation-delay:.35s;
}

@keyframes heroIn{
    from{ opacity:0; transform:translateY(18px); }
}

/* ===========================
   Filters
=========================== */

.shoeFilters{
    position:sticky;
    top:92px;
    z-index:5;
    max-width:1300px;
    margin:10px auto 26px;
    padding:12px 6%;
    display:flex;
    justify-content:center;
    gap:10px;
    background:linear-gradient(var(--black) 75%, rgba(15,15,15,0));
}

.shoeFilters button{
    display:inline-flex;
    align-items:center;
    gap:8px;
    min-height:42px;
    padding:0 20px;
    border:1px solid var(--border);
    border-radius:50px;
    color:var(--gray);
    font-size:15px;
    white-space:nowrap;
    flex-shrink:0;
    transition:var(--transition);
}

.shoeFilters button:hover{
    border-color:var(--gold);
    color:var(--white);
}

.shoeFilters button[aria-pressed="true"]{
    background:var(--gold);
    border-color:var(--gold);
    color:#000;
    font-weight:600;
}

.shoeFilters .n{
    font-size:12px;
    opacity:.75;
    font-variant-numeric:tabular-nums;
}

/* ===========================
   Grid
=========================== */

.shoeGrid{
    max-width:1300px;
    margin:0 auto 96px;
    padding:0 6%;
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:22px;
    scroll-margin-top:160px;
}

/* کالکشنی با یک یا دو محصول (مثل «ست»): کارت‌ها وسط‌چین */
.shoeGrid.isFew{
    grid-template-columns:repeat(var(--n, 2), minmax(0, 300px));
    justify-content:center;
}

.noScript{
    grid-column:1 / -1;
    padding:60px 20px;
    text-align:center;
    color:var(--gray);
}

.shoeCard{
    position:relative;
    overflow:hidden;
    border-radius:18px;
    border:1px solid var(--card-line);
    background:radial-gradient(90% 70% at 50% 36%, #25231f 0%, #171614 60%, #121211 100%);
    opacity:0;
    animation:cardIn .6s var(--ease) forwards;
    animation-delay:calc(var(--i, 0) * 40ms);
    transition:border-color .3s;
}

@keyframes cardIn{
    from{ opacity:0; translate:0 16px; }
    to{ opacity:1; translate:0 0; }
}

.shoeLink{
    display:block;
    color:inherit;
}

.shoeImg{
    position:relative;
    aspect-ratio:1 / 1;
}

/* قفسه‌ی طلایی کم‌رنگ زیر هر کفش */
.shoeImg::after{
    content:"";
    position:absolute;
    left:16%;
    right:16%;
    bottom:8%;
    height:1px;
    background:linear-gradient(90deg, transparent, rgba(212,175,55,.3), transparent);
}

.shoeImg img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:contain;
    padding:9% 9% 9%;
    filter:drop-shadow(0 14px 12px rgba(0,0,0,.6));
    transition:opacity .45s ease, transform .6s var(--ease);
}

.shoeImg .alt{
    opacity:0;
}

.shoeCard.isPhoto .shoeImg img{
    object-fit:cover;
    padding:0;
    filter:none;
}

@media (hover:hover){

    .shoeCard:hover{
        border-color:rgba(212,175,55,.45);
    }

    .shoeCard:hover .shoeImg .main:not(:only-child){
        opacity:0;
    }

    .shoeCard:hover .shoeImg .alt{
        opacity:1;
        transform:scale(1.03);
    }

    .shoeCard:hover .shoeImg .main:only-child{
        transform:scale(1.04);
    }

}

.shoeInfo{
    padding:2px 16px 16px;
}

.shoeInfo h3{
    min-height:3.2em;
    font-size:15px;
    font-weight:600;
    line-height:1.6;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.shoeInfo p{
    display:flex;
    align-items:baseline;
    justify-content:space-between;
    gap:8px;
    margin-top:8px;
    font-size:13px;
}

.shoeInfo p span{
    color:var(--gray);
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.shoeInfo p b{
    flex-shrink:0;
    color:var(--gold);
    font-weight:600;
}

.shoeWish{
    position:absolute;
    top:10px;
    left:10px;
    z-index:2;
    width:38px;
    height:38px;
    display:grid;
    place-items:center;
    border-radius:50%;
    border:1px solid rgba(255,255,255,.08);
    background:rgba(15,15,15,.6);
    color:#ddd;
    transition:color .25s, background .25s, transform .25s;
}

.shoeWish svg{
    width:18px;
    height:18px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linejoin:round;
}

.shoeWish:hover{
    background:#000;
    color:#fff;
}

.shoeWish.liked{
    color:#ff3355;
}

.shoeWish.liked svg{
    fill:currentColor;
}

.shoeWish:active{
    transform:scale(.9);
}

/* ===========================
   Responsive
=========================== */

@media (max-width:1100px){
    .shoeGrid{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
}

@media (max-width:900px){

    .shoesHero{
        grid-template-columns:1fr;
        gap:10px;
        padding:96px 20px 8px;
    }

    .heroStage,
    .heroCopy{
        grid-column:1;
        grid-row:auto;
    }

    .heroStage{
        aspect-ratio:4 / 3;
        max-width:560px;
        width:100%;
        margin:0 auto;
    }

    .heroCopy{
        text-align:center;
    }

    .heroCopy p{
        margin:10px auto 0;
        font-size:16px;
    }

    .shoeFilters{
        top:70px;
        justify-content:flex-start;
        overflow-x:auto;
        scrollbar-width:none;
        padding:10px 16px;
        margin:8px 0 16px;
    }

    .shoeFilters::-webkit-scrollbar{
        display:none;
    }

    .shoeFilters button{
        min-height:38px;
        padding:0 16px;
        font-size:14px;
    }

}

@media (min-width:601px) and (max-width:900px){
    .shoeFilters{ top:86px; }
}

@media (max-width:700px){

    .shoeGrid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
        gap:12px;
        padding:0 12px;
        margin-bottom:60px;
    }

    .shoeCard{
        border-radius:16px;
    }

    .shoeInfo{
        padding:0 11px 12px;
    }

    .shoeInfo h3{
        font-size:13.5px;
    }

    .shoeInfo p{
        font-size:12px;
        margin-top:6px;
    }

    /* در کارت‌های باریک موبایل فقط قیمت؛ نوع کفش در فیلترها معلوم است */
    .shoeInfo p span{
        display:none;
    }

    .shoeWish{
        top:8px;
        left:8px;
        width:36px;
        height:36px;
    }

}

@media (prefers-reduced-motion: reduce){

    .heroStage img,
    .shoeCard{
        animation:none;
        opacity:1;
    }

}

/* ===========================
   ناموجود
=========================== */

.shoeCard.isSoldOut .shoeImg img{
    filter:grayscale(1) brightness(.8) drop-shadow(0 14px 12px rgba(0,0,0,.6));
}

.shoeCard.isSoldOut .shoeInfo p b{
    color:#ff6b6f;
}

.soldOutTag{
    position:absolute;
    top:12px;
    right:12px;
    z-index:2;
    padding:5px 12px;
    border-radius:30px;
    background:rgba(15,15,15,.82);
    border:1px solid rgba(229,72,77,.6);
    color:#ff6b6f;
    font-size:12px;
    font-weight:700;
}

@media (max-width:700px){
    .soldOutTag{
        top:10px;
        right:10px;
        padding:4px 10px;
        font-size:11px;
    }
}

/* ===========================
   پوشاک با عکس مدل (دورس، هودی، کاپشن، ...) — collection.html
   پایین عکس‌ها جایی است که کادر عکاسی بدن را بریده؛ آن لبه با
   ماسک محو می‌شود تا مدل از دل زمینه‌ی تیره بیرون بیاید.
=========================== */

.shoeCard.isModel .shoeImg{
    aspect-ratio:4 / 5;
    overflow:hidden;
}

.shoeCard.isModel .shoeImg::after{
    display:none;
}

.shoeCard.isModel .shoeImg img{
    object-position:50% 100%;
    padding:7% 6% 0;
    -webkit-mask-image:linear-gradient(to top, transparent 0, #000 18%);
    mask-image:linear-gradient(to top, transparent 0, #000 18%);
    filter:drop-shadow(0 10px 18px rgba(0,0,0,.55));
    transform-origin:50% 100%;
}

.shoeCard.isModel.isSoldOut .shoeImg img{
    filter:grayscale(1) brightness(.8);
}

/* پسوند نام عکس می‌گوید کادر عکاسی بدن را کجا بریده (js/export در scratchpad):
   -full: سر تا پا در کادر | -top: فقط بالا بریده (شلوار از کمر) | -tb: بالا و پایین */
.shoeCard.isModel .shoeImg img[src*="-full"]{
    object-position:50% 50%;
    padding:6%;
    -webkit-mask-image:none;
    mask-image:none;
}

.shoeCard.isModel .shoeImg img[src*="-top"]{
    object-position:50% 0;
    padding:0 6% 6%;
    -webkit-mask-image:linear-gradient(to bottom, transparent 0, #000 16%);
    mask-image:linear-gradient(to bottom, transparent 0, #000 16%);
    transform-origin:50% 0;
}

.shoeCard.isModel .shoeImg img[src*="-tb"]{
    object-position:50% 50%;
    padding:0 6%;
    -webkit-mask-image:linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
    mask-image:linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
    transform-origin:50% 50%;
}

.apparelPage .heroStage img[src*="-full"]{
    bottom:4%;
    -webkit-mask-image:none;
    mask-image:none;
}

.apparelPage .heroStage .h1[src*="-top"]{ height:94%; }
.apparelPage .heroStage .h0[src*="-top"],
.apparelPage .heroStage .h2[src*="-top"]{ height:80%; }

.apparelPage .heroStage img[src*="-top"]{
    bottom:4%;
    -webkit-mask-image:linear-gradient(to bottom, transparent 0, #000 18%);
    mask-image:linear-gradient(to bottom, transparent 0, #000 18%);
}

.apparelPage .heroStage img[src*="-tb"]{
    -webkit-mask-image:linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%);
    mask-image:linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%);
}

/* تیتر هر سری طرح (کروم هارتس، ون‌گوگ، ...) — تمام عرض گرید */
.seriesHead{
    grid-column:1 / -1;
    display:flex;
    align-items:baseline;
    flex-wrap:wrap;
    gap:4px 16px;
    margin-top:30px;
    padding-bottom:14px;
    border-bottom:1px solid transparent;
    border-image:linear-gradient(to left, rgba(212,175,55,.55), rgba(212,175,55,.08) 60%, transparent) 1;
}

.seriesHead:first-child{
    margin-top:0;
}

.seriesHead h2{
    font-family:"Noto Serif Arabic", serif;
    font-size:clamp(22px, 2.4vw, 30px);
    font-weight:700;
    line-height:1.4;
}

.seriesHead p{
    flex:1;
    min-width:0;
    color:var(--gray);
    font-size:14px;
}

.seriesHead span{
    margin-inline-start:auto;
    color:var(--gold);
    font-size:13px;
    font-weight:600;
    white-space:nowrap;
}

@media (max-width:700px){
    .seriesHead{
        margin-top:20px;
        padding-bottom:10px;
        gap:2px 10px;
    }
    .seriesHead p{
        order:3;
        flex-basis:100%;
        font-size:13px;
    }
}

.apparelPage .heroStage{
    aspect-ratio:16 / 11;
}

.apparelPage .heroStage::after{
    bottom:0;
}

.apparelPage .heroStage img{
    bottom:0;
    filter:drop-shadow(0 14px 22px rgba(0,0,0,.6));
    -webkit-mask-image:linear-gradient(to top, transparent 0, #000 22%);
    mask-image:linear-gradient(to top, transparent 0, #000 22%);
}

.apparelPage .heroStage .h1{
    height:100%;
}

.apparelPage .heroStage .h0{
    right:8%;
    height:84%;
}

.apparelPage .heroStage .h2{
    left:8%;
    height:84%;
}

/* دو محصول کنار هم */
.apparelPage .heroStage .p0,
.apparelPage .heroStage .p1{
    height:96%;
    animation-delay:.1s;
}

.apparelPage .heroStage .p0{ right:12%; z-index:2; }
.apparelPage .heroStage .p1{ left:12%; animation-delay:.25s; }

/* عکس محصول بدون مدل (شلوار): کامل دیده شود، روی قفسه بنشیند و محو نشود */
.apparelPage .heroStage .isFlat{
    bottom:5%;
    -webkit-mask-image:none;
    mask-image:none;
    filter:drop-shadow(0 16px 18px rgba(0,0,0,.6));
}

.apparelPage .heroStage .h1.isFlat{ height:90%; }
.apparelPage .heroStage .h0.isFlat,
.apparelPage .heroStage .h2.isFlat{ height:74%; }

/* کارت عکس محصول بدون مدل در صفحه‌های پوشاک: کادر عمودی مثل بقیه */
.apparelPage .shoeCard:not(.isModel):not(.isPhoto) .shoeImg{
    aspect-ratio:4 / 5;
}

/* یک عکس ثابت (کالکشنی که هنوز عکس مدل ندارد) */
.apparelPage .heroStage .isSolo{
    height:92%;
    bottom:4%;
    /* لبه‌ی بالا (کمر شلوار / چوب‌لباسی) نرم محو شود */
    -webkit-mask-image:linear-gradient(to bottom, transparent 0, #000 14%);
    mask-image:linear-gradient(to bottom, transparent 0, #000 14%);
}

/* کالکشن بدون هیرو: متن وسط صفحه */
.shoesHero.noStage{
    grid-template-columns:1fr;
    text-align:center;
}

.shoesHero.noStage .heroCopy p{
    margin-inline:auto;
}

@media (max-width:900px){
    .apparelPage .heroStage{
        aspect-ratio:5 / 4;
    }
    .apparelPage .heroStage .h0{ right:2%; }
    .apparelPage .heroStage .h2{ left:2%; }
    .apparelPage .heroStage .p0{ right:6%; }
    .apparelPage .heroStage .p1{ left:6%; }
}

/* ===========================
   متن هیروی collection.html
=========================== */

.colCrumb{
    display:flex;
    gap:8px;
    margin-bottom:6px;
    color:var(--gray);
    font-size:14px;
}

.colCrumb a{
    /* ناحیه‌ی لمس بزرگ‌تر بدون تغییر چیدمان */
    padding:10px 6px;
    margin:-10px -6px;
    color:var(--gray);
    transition:color .25s;
}

.colCrumb a:hover{
    color:var(--gold);
}

.colCrumb span:last-child{
    color:#cfc9bd;
}

.apparelPage .heroCopy p #heroCount{
    display:block;
    margin-bottom:4px;
    font-size:15px;
}

.apparelPage .heroCopy p #heroCount:empty{
    display:none;
}

.apparelPage .heroCopy p .colIntro{
    color:inherit;
    font-weight:400;
}

@media (max-width:900px){
    .colCrumb{
        justify-content:center;
    }
}

/* ===========================
   فیلتر بدون محصول (مثلاً «جاگر» تا وقتی مدلش اضافه شود)
=========================== */

.shoeFilters button.isEmpty .n{
    padding:1px 7px;
    border-radius:20px;
    border:1px solid rgba(212,175,55,.35);
    color:var(--gold);
    font-size:11px;
    opacity:1;
}

.shoeFilters button.isEmpty[aria-pressed="true"] .n{
    border-color:rgba(0,0,0,.35);
    color:#000;
}

.soonState{
    grid-column:1 / -1;
    max-width:520px;
    margin:10px auto 0;
    padding:46px 24px;
    border:1px dashed rgba(212,175,55,.3);
    border-radius:18px;
    text-align:center;
}

.soonState h2{
    font-family:"Noto Serif Arabic", serif;
    font-size:24px;
    margin-bottom:10px;
}

.soonState p{
    color:var(--gray);
    font-size:15px;
    line-height:1.9;
}

.soonState a{
    display:inline-flex;
    align-items:center;
    min-height:44px;
    margin-top:18px;
    padding:0 24px;
    border-radius:50px;
    border:1px solid var(--gold);
    color:var(--gold);
    font-weight:600;
    transition:background .25s, color .25s;
}

.soonState a:hover{
    background:var(--gold);
    color:#000;
}

/* عکس‌های معمولی (با پس‌زمینه) در صفحه‌ی پوشاک کادر عمودی بگیرند */
.apparelPage .shoeCard.isPhoto .shoeImg{
    aspect-ratio:4 / 5;
    overflow:hidden;
}

.apparelPage .shoeCard.isPhoto .shoeImg::after{
    display:none;
}

/* ===========================
   هیروی صفحه‌ی کفش — عکس‌های جدید از کنار پهن‌اند، پس اندازه بر اساس عرض
=========================== */
body[data-collection="shoes"] .heroStage img{
    height:auto;
    max-height:none;
}

body[data-collection="shoes"] .heroStage .h1{
    width:58%;
    bottom:14%;
}

body[data-collection="shoes"] .heroStage .h0,
body[data-collection="shoes"] .heroStage .h2{
    width:40%;
    bottom:30%;
    opacity:.92;
}

body[data-collection="shoes"] .heroStage .h0{ right:0; }
body[data-collection="shoes"] .heroStage .h2{ left:0; }
