﻿
:root {
    --pink: #ff8fb3;
    --pink-light: #ffd1e3;
    --pink-pale: #fdf0f7;
    --pink-deep: #f2618c;
    --white: #ffffff;
    --gray-100: #f9f4f7;
    --gray-200: #f0e6ee;
    --gray-300: #d9c8d5;
    --gray-500: #9a7a90;
    --gray-800: #3d1f35;
    --black: #1a0a14;
    --accent: #ff8fb3;
    --radius: 4px;
}
a{
    color:black !important;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Vazirmatn", sans-serif;
    background: var(--white);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

img,
svg {
    display: block;
}

/* ===== Header ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 5%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-300);
    transition: background 0.3s, transform 0.4s ease, box-shadow 0.3s;
}

    header.hide {
        transform: translateY(-110%);
    }

    header.scrolled {
        box-shadow: 0 4px 24px rgba(233, 30, 140, 0.08);
    }

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    transition: background 0.25s;
}

    .icon-btn:hover {
        background: var(--pink-pale);
    }

.search-wrap {
    display: flex;
    align-items: center;
    background: var(--gray-100);
    border-radius: 100px;
    overflow: hidden;
    width: 0;
    opacity: 0;
    transition: width 0.35s ease, opacity 0.25s, padding 0.35s;
}

    .search-wrap.open {
        width: 220px;
        opacity: 1;
        padding: 0 6px;
    }

    .search-wrap input {
        border: none;
        background: transparent;
        font-family: inherit;
        font-size: 14px;
        padding: 10px 10px;
        width: 100%;
        outline: none;
        color: var(--black);
    }

.logo {
    font-family: "Vazirmatn", sans-serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0;
    direction: rtl;
    color: var(--black);
}

    .logo span {
        color: var(--pink);
    }

nav ul {
    display: flex;
    gap: 34px;
    list-style: none;
}

nav a {
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.2s;
}

    nav a::after {
        content: "";
        position: absolute;
        bottom: 0;
        right: 0;
        left: 0;
        height: 1.5px;
        background: var(--pink);
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 0.3s;
    }

    nav a:hover {
        color: var(--pink);
    }

        nav a:hover::after {
            transform: scaleX(1);
        }

.nav-toggle {
    display: none;
    font-size: 26px;
}

/* ===== Hero — full-height split with tall image ===== */
.hero {
    width: 100%;
}

.hero-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

    .hero-banner img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* لایه برای خوانا شدن متن */
    .hero-banner::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 90deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0) );
    }

.hero-content {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    z-index: 10;
    width: 50%;
    direction: rtl;
    text-align: right;
    color: #fff;
}

.eyebrow {
    display: inline-block;
    color: #ffd7e4;
    letter-spacing: 3px;
    margin-bottom: 18px;
    font-size: 15px;
}

.hero-content h1 {
    font-size: 65px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    line-height: 2;
    margin-bottom: 35px;
    color: #f3f3f3;
}

.hero-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    background: #ff8fb3;
    color: #fff;
    padding: 16px 38px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.35s;
}

    .btn:hover {
        transform: translateY(-4px);
        box-shadow: 0 15px 35px rgba(255, 90, 149, 0.35);
    }

.btn-outline {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
}
/* Hero right — vertical tall photo collage */
.hero-right {
    display: grid;
    gap: 4px;
    overflow: hidden;
}

.hero-img-top,
.hero-img-bottom {
    overflow: hidden;
    position: relative;
}

.hero-img-top {
    background: linear-gradient( 135deg, #ffd1e3 0%, #ff8fb3 50%, #f2618c 100% );
}

.hero-img-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    height: 640px;
}

.hero-img-b1 {
    background: #ffa8c5;
}

.hero-img-b2 {
    background: #ffa8c5;
}

.hero-img-top,
.hero-img-b1,
.hero-img-b2 {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fashion-mannequin {
    width: 70%;
    height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
    transition: transform 0.6s ease;
}

.hero-img-top:hover .fashion-mannequin {
    transform: scale(1.04);
}
@media (max-width: 768px) {
    .search-wrap.open {
        width: 155px;
        opacity: 1;
        padding: 0 6px;
    }
    
    .hero-banner {
        min-height: 100svh;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

        .hero-banner img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center top;
        }

        /* گرادیان از پایین */
        .hero-banner::before {
            background: linear-gradient( to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.1) 100% );
        }

    .hero-content {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        padding: 0 24px 48px;
        box-sizing: border-box;
        text-align: center;
        direction: rtl;
    }

    .eyebrow {
        font-size: 12px;
        letter-spacing: 2px;
        margin-bottom: 12px;
    }

    .hero-content h1 {
        font-size: 36px;
        font-weight: 900;
        line-height: 1.25;
        margin-bottom: 14px;
    }

    .hero-content p {
        font-size: 15px;
        line-height: 1.85;
        margin-bottom: 28px;
        color: rgba(255, 255, 255, 0.88);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
        font-size: 15px;
    }

    .btn-outline {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.4);
    }
}
/* ===== Marquee ===== */
.marquee {
    background: #ffa8c5;
    overflow: hidden;
    padding: 14px 0;
    white-space: nowrap;
}

.marquee-track {
    display: inline-flex;
    animation: scroll-marquee 28s linear infinite;
}

    .marquee-track span {
        font-size: 13px;
        color: var(--white);
        padding: 0 28px;
        letter-spacing: 2px;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 28px;
        text-transform: uppercase;
    }

        .marquee-track span::after {
            content: "✦";
            font-size: 10px;
            opacity: 0.7;
        }

@keyframes scroll-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ===== Section headings ===== */
.section {
    padding: 100px 5%;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 20px;
}

    .section-head h2 {
        font-family: "Playfair Display", serif;
        font-size: clamp(28px, 4vw, 48px);
        font-weight: 700;
    }

    .section-head p {
        color: var(--gray-500);
        max-width: 380px;
        font-size: 15px;
    }

.tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--pink);
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

/* ===== Category Puzzle Grid ===== */
.categories {
    background: var(--gray-100);
}

.puzzle-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 6px;
}

.puzzle-cell {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
}

    .puzzle-cell:first-child {
        grid-row: 1/3; /* tall left cell */
    }

.puzzle-bg {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.puzzle-cell:hover .puzzle-bg {
    transform: scale(1.06);
}

.puzzle-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 180deg, transparent 30%, rgba(26, 10, 20, 0.75) 100% );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px 24px;
    color: var(--white);
    transition: background 0.3s;
}

.puzzle-cell:hover .puzzle-overlay {
    background: linear-gradient( 180deg, transparent 10%, rgba(26, 10, 20, 0.85) 100% );
}

.puzzle-cat-count {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--pink-light);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.puzzle-overlay h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
}

.puzzle-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.3s, transform 0.3s;
}

.puzzle-cell:hover .puzzle-arrow {
    background: var(--pink);
    transform: rotate(-45deg);
    border-color: var(--pink);
}

/* Category color backgrounds */
.pc-1 {
    background: linear-gradient(135deg, #ffb3cf, #ff8fb3, #f2618c);
}

.pc-2 {
    background: linear-gradient(135deg, #fff0f5, #ffd1e3, #ff8fb3);
}

.pc-3 {
    background: linear-gradient(135deg, #d9779e, #f2618c);
}

.pc-4 {
    background: linear-gradient(135deg, #ff9dbf, #ff8fb3);
}

/* ===== Cat filter buttons ===== */
.cat-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.cat-btn {
    padding: 11px 24px;
    border-radius: 100px;
    border: 1.5px solid var(--gray-300);
    font-weight: 600;
    font-size: 13px;
    transition: all 0.25s;
    background: transparent;
    color: var(--gray-800);
}

    .cat-btn.active,
    .cat-btn:hover {
        background: var(--pink);
        color: var(--white);
        border-color: var(--pink);
    }

/* ===== Product grid — vertical tall cards ===== */
.products-bg {
    background: var(--white);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

    .card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 40px rgba(233, 30, 140, 0.12);
    }

.card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: var(--pink);
    color: var(--white);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 100px;
    text-transform: uppercase;
}

.card-img {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.card-img-bg {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card:hover .card-img-bg {
    transform: scale(1.06);
}

.card-img svg {
    width: 70%;
    height: 70%;
}

.card-body {
    padding: 18px 18px 20px;
}

.card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--black);
}

.card .cat-label {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 14px;
}

.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price {
    font-weight: 800;
    font-size: 16px;
    color: var(--black);
}

    .price span {
        font-size: 12px;
        color: var(--gray-500);
        font-weight: 400;
    }

.add-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--pink);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.25s, transform 0.25s;
}

.card:hover .add-btn {
    background: var(--pink-deep);
    transform: scale(1.1);
}

/* ===== Load more ===== */
.load-more-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 48px;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--pink);
    border: 1.5px solid var(--pink);
    padding: 14px 36px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 14px;
    transition: background 0.25s, color 0.25s, transform 0.25s;
}

    .btn-load-more:hover {
        background: var(--pink);
        color: var(--white);
        transform: translateY(-3px);
    }

.load-more-count {
    font-size: 13px;
    color: var(--gray-500);
}

/* ===== Promo banner ===== */
.promo-banner {
    background: linear-gradient( 120deg, var(--pink-deep) 0%, var(--pink) 60%, #ff9dbf 100% );
    color: var(--white);
    padding: 60px 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s, box-shadow 0.4s;
}

    .promo-banner:hover {
        transform: translateY(-4px);
        box-shadow: 0 24px 50px rgba(233, 30, 140, 0.3);
    }

    .promo-banner::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient( circle at 80% 20%, rgba(255, 255, 255, 0.18), transparent 55% );
    }

.promo-text {
    position: relative;
    z-index: 2;
    max-width: 480px;
}

    .promo-text .tag {
        color: rgba(255, 255, 255, 0.7);
    }

    .promo-text h2 {
        font-family: "Playfair Display", serif;
        font-size: clamp(26px, 4vw, 42px);
        font-weight: 700;
        margin-bottom: 12px;
    }

    .promo-text p {
        color: rgba(255, 255, 255, 0.8);
        font-size: 15px;
        margin-bottom: 26px;
    }

.promo-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    color: var(--pink);
    padding: 14px 30px;
    border-radius: 100px;
    font-weight: 800;
    font-size: 14px;
    transition: background 0.25s, gap 0.25s;
}

.promo-banner:hover .promo-cta {
    gap: 16px;
}

/* ===== Popular products carousel ===== */
.popular {
    background: var(--gray-100);
}

.popular-row {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 14px;
    scroll-snap-type: x proximity;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

    .popular-row::-webkit-scrollbar {
        display: none;
    }

    .popular-row .card {
        min-width: 230px;
        scroll-snap-align: start;
    }

    .popular-row.expanded {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
        overflow-x: visible;
    }

.fire-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    color: var(--pink);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 100px;
}

/* ===== About ===== */
.about {
    background: var(--black);
    color: var(--white);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 70px;
    align-items: center;
}

.about-stats {
    display: flex;
    gap: 44px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat b {
    display: block;
    font-size: 38px;
    font-weight: 900;
    color: var(--pink-light);
}

.stat span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.about p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.9;
}

.about-quote {
    margin-top: 32px;
    padding: 20px 22px;
    border-right: 3px solid var(--pink);
    background: rgba(233, 30, 140, 0.08);
    border-radius: 0 10px 10px 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 30px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

    .about-feature .icon {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        flex-shrink: 0;
        background: rgba(233, 30, 140, 0.15);
        color: var(--pink-light);
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .about-feature .icon svg {
            width: 20px;
            height: 20px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
        }

    .about-feature b {
        display: block;
        font-size: 14px;
        font-weight: 700;
        margin-bottom: 3px;
    }

    .about-feature span {
        font-size: 12.5px;
        color: rgba(255, 255, 255, 0.55);
    }

.about-visual {
    aspect-ratio: 3/4;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #ffd1e3, #ff8fb3, #d9779e);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-badge {
    position: relative;
    background: var(--white);
    color: var(--pink);
    padding: 16px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

    .about-badge b {
        font-size: 26px;
        font-weight: 900;
        line-height: 1;
        display: block;
    }

    .about-badge span {
        font-size: 11px;
        font-weight: 600;
        margin-top: 4px;
        line-height: 1.4;
        display: block;
    }

/* ===== Contact ===== */
.contact {
    background: var(--gray-100);
}

.contact-wrap {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: stretch;
}

.contact-card {
    background: var(--white);
    border-radius: 20px;
    padding: 44px;
    box-shadow: 0 20px 50px -20px rgba(233, 30, 140, 0.12);
}

    .contact-card h3 {
        font-size: 20px;
        font-weight: 800;
        margin-bottom: 26px;
    }

.field {
    margin-bottom: 18px;
}

    .field label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 8px;
        color: var(--gray-800);
    }

    .field input,
    .field textarea {
        width: 100%;
        padding: 14px 16px;
        border: 1.5px solid var(--gray-300);
        border-radius: 10px;
        font-family: inherit;
        font-size: 15px;
        background: var(--gray-100);
        transition: border-color 0.25s, background 0.25s;
    }

        .field input:focus,
        .field textarea:focus {
            outline: none;
            border-color: var(--pink);
            background: var(--white);
        }

.contact-submit {
    width: 100%;
    justify-content: center;
    background: var(--pink);
    color: var(--white);
    border-radius: 100px;
}

    .contact-submit:hover {
        background: var(--pink-deep);
    }

.contact-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    background: var(--black);
    color: var(--white);
    border-radius: 20px;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    flex: 1;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

    .info-item .icon {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        flex-shrink: 0;
        background: rgba(233, 30, 140, 0.18);
        color: var(--pink-light);
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .info-item .icon svg {
            width: 19px;
            height: 19px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
        }

    .info-item b {
        display: block;
        font-size: 12px;
        color: rgba(255, 255, 255, 0.5);
        margin-bottom: 4px;
        font-weight: 500;
    }

    .info-item span {
        font-size: 16px;
        font-weight: 700;
    }

.map-box {
    border-radius: 20px;
    min-height: 150px;
    background: radial-gradient( circle at 30% 30%, rgba(233, 30, 140, 0.3), transparent 55% ), linear-gradient(135deg, #1c1c1c, #0a0a0a);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    .map-box::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient(rgba(233, 30, 140, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(233, 30, 140, 0.07) 1px, transparent 1px);
        background-size: 26px 26px;
    }

.map-pin {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--white);
}

    .map-pin .pin-dot {
        width: 46px;
        height: 46px;
        border-radius: 50% 50% 50% 0;
        background: var(--pink);
        transform: rotate(-45deg);
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 10px 30px rgba(233, 30, 140, 0.5);
    }

        .map-pin .pin-dot svg {
            transform: rotate(45deg);
            width: 20px;
            height: 20px;
            stroke: var(--white);
            fill: none;
            stroke-width: 2;
        }

    .map-pin span {
        font-size: 12px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.7);
    }

/* ===== Scroll reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

    .reveal.in {
        opacity: 1;
        transform: translateY(0);
    }

/* ===== Modal ===== */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 10, 20, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s;
}

    .overlay.open {
        display: flex;
        opacity: 1;
    }

.modal {
    background: var(--white);
    width: 100%;
    max-width: 920px;
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.3s;
}

.overlay.open .modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 5;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--gray-300);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s;
}

    .modal-close:hover {
        border-color: var(--pink);
    }

.modal-actions {
    position: absolute;
    top: 18px;
    left: 66px;
    z-index: 5;
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.25s;
}

    .action-btn:hover {
        border-color: var(--pink);
    }

    .action-btn.liked {
        background: var(--pink);
        border-color: var(--pink);
        color: var(--white);
    }

    .action-btn svg {
        width: 17px;
        height: 17px;
    }

.modal-gallery {
    background: var(--gray-100);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gallery-main {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .gallery-main svg {
        width: 80%;
        height: 80%;
    }

.gallery-thumbs {
    display: flex;
    gap: 10px;
}

.thumb {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    background: var(--white);
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    cursor: pointer;
}

    .thumb.active {
        border-color: var(--pink);
    }

    .thumb svg {
        width: 100%;
        height: 100%;
    }

.modal-info {
    padding: 50px 40px 40px;
}

    .modal-info .cat-label {
        font-size: 12px;
        color: var(--gray-500);
        margin-bottom: 8px;
        display: block;
    }

    .modal-info h2 {
        font-size: 26px;
        font-weight: 800;
        margin-bottom: 10px;
    }

.stars {
    color: var(--pink);
    font-size: 15px;
    margin-bottom: 16px;
}

    .stars span {
        color: var(--gray-500);
        font-size: 13px;
        margin-right: 6px;
    }

.modal-price {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--pink);
}

.modal-desc {
    color: var(--gray-500);
    font-size: 15px;
    margin-bottom: 26px;
}

.modal-info .btn {
    width: 100%;
    justify-content: center;
}

.stock-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #1a8c4a;
    font-weight: 700;
    margin-bottom: 22px;
}

    .stock-note::before {
        content: "";
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #1a8c4a;
    }

.option-block {
    margin-bottom: 22px;
}

    .option-block > label {
        display: block;
        font-size: 13px;
        font-weight: 700;
        margin-bottom: 10px;
    }

.size-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.size-btn {
    width: 46px;
    height: 44px;
    border-radius: 8px;
    border: 1.5px solid var(--gray-300);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

    .size-btn:hover {
        border-color: var(--pink);
    }

    .size-btn.active {
        background: var(--pink);
        color: var(--white);
        border-color: var(--pink);
    }

.qty-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.qty-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--gray-300);
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s;
}

    .qty-btn:hover {
        border-color: var(--pink);
    }

.qty-val {
    font-size: 17px;
    font-weight: 800;
    min-width: 24px;
    text-align: center;
}

.reviews {
    margin-top: 36px;
    border-top: 1px solid var(--gray-200);
    padding-top: 24px;
}

    .reviews h4 {
        font-size: 15px;
        font-weight: 800;
        margin-bottom: 16px;
    }

.review {
    margin-bottom: 16px;
}

.review-head {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}

    .review-head .r-stars {
        color: var(--pink);
        font-weight: 400;
    }

.review p {
    font-size: 14px;
    color: var(--gray-500);
}

.related {
    margin-top: 30px;
    border-top: 1px solid var(--gray-200);
    padding-top: 24px;
}

    .related h4 {
        font-size: 15px;
        font-weight: 800;
        margin-bottom: 16px;
    }

.related-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.related-item {
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}

    .related-item:hover {
        border-color: var(--pink);
        transform: translateY(-3px);
    }

    .related-item .related-img {
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 8px;
    }

        .related-item .related-img svg {
            width: 100%;
            height: 100%;
        }

    .related-item .related-name {
        font-size: 12px;
        font-weight: 700;
        margin-bottom: 4px;
    }

    .related-item .related-price {
        font-size: 12px;
        color: var(--gray-500);
    }

/* ===== Auth modal ===== */
.auth-modal {
    background: var(--white);
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    position: relative;
    padding: 46px 38px 38px;
    transform: translateY(30px);
    transition: transform 0.3s;
}

.overlay.open .auth-modal {
    transform: translateY(0);
}

.auth-modal .modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
}

.auth-head {
    text-align: center;
    margin-bottom: 30px;
}

    .auth-head .logo {
        font-size: 22px;
        justify-content: center;
        display: flex;
        margin-bottom: 10px;
    }

    .auth-head p {
        color: var(--gray-500);
        font-size: 14px;
    }

.auth-view {
    display: none;
}

    .auth-view.active {
        display: block;
    }

    .auth-view .btn {
        width: 100%;
        justify-content: center;
        margin-top: 6px;
    }

.auth-links {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-top: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

    .auth-links a {
        font-weight: 700;
        color: var(--pink);
    }

.auth-switch {
    text-align: center;
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 22px;
}

    .auth-switch a {
        font-weight: 800;
        color: var(--black);
    }

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--pink);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 2000;
}

    .toast.show {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

/* ===== Footer ===== */
.footer-top {
    background: var(--black);
    color: var(--white);
    padding: 80px 5% 50px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

    .footer-top p {
        color: rgba(255, 255, 255, 0.55);
        font-size: 14px;
        margin-top: 16px;
        max-width: 280px;
    }

.footer-col h5 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 18px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s;
}

    .footer-col a:hover {
        color: var(--pink-light);
    }

.social-row {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, transform 0.25s;
}

    .social-btn svg {
        width: 17px;
        height: 17px;
        stroke: rgba(255, 255, 255, 0.7);
    }

    .social-btn:hover {
        background: var(--pink);
        transform: translateY(-4px);
    }

        .social-btn:hover svg {
            stroke: var(--white);
        }

.enamad-box {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    border: 1px solid rgba(233, 30, 140, 0.2);
}

.enamad-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: var(--pink);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .enamad-icon svg {
        width: 24px;
        height: 24px;
        stroke: var(--white);
    }

.enamad-text {
    font-size: 11px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
}

    .enamad-text b {
        display: block;
        font-size: 12px;
        color: var(--white);
    }

.footer-bottom {
    background: var(--black);
    color: rgba(255, 255, 255, 0.35);
    padding: 22px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-right {
        height: 50vw;
    }

    .puzzle-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 280px 280px;
    }

    .puzzle-cell:first-child {
        grid-row: auto;
    }

    .about,
    .contact-wrap {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    nav {
        position: fixed;
        top: 66px;
        right: 0;
        left: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px 5%;
        border-bottom: 1px solid var(--gray-300);
        display: none;
    }

        nav.open {
            display: flex;
        }

        nav ul {
            flex-direction: column;
            gap: 18px;
        }

    .nav-toggle {
        display: block;
    }

    .modal {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .puzzle-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .puzzle-cell:first-child {
        aspect-ratio: 3/2.5;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }
}

.imgheader {
    width: 22px;
    height: 22px;
}

.puzzle-cell {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    min-height: 280px;
}

.puzzle-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: 0.5s ease;
}

.puzzle-cell:hover .puzzle-bg {
    transform: scale(1.08);
}

.puzzle-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    background: linear-gradient( to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.2), transparent );
    color: #fff;
    z-index: 2;
}

    .puzzle-overlay h3 {
        margin: 0;
        font-size: 24px;
        font-weight: 700;
    }

.puzzle-cat-count {
    display: inline-block;
    width: max-content;
    padding: 6px 12px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    margin-bottom: 10px;
}


.stars {
    font-size: 30px;
    cursor: pointer;
    user-select: none;
    direction: ltr;
}

.star {
    color: #ccc;
    transition: color 0.2s;
}

    .star.active {
        color: #ffcc00;
    }


