/* =========================================================
   Hamin Graphical Frontend
   طراحی گرافیکی فروشگاه:
   کارت‌ها، هیرو، دسته‌بندی‌ها، badges و موبایل
   ========================================================= */


/* =========================================================
   رنگ‌های اصلی حامین
   ========================================================= */

:root {
    --hamin-pink: #ee6ca8;
    --hamin-purple: #8b5bd6;
    --hamin-lilac: #efe7ff;
    --hamin-pink-soft: #fff0f7;
    --hamin-mint: #e8faf7;
    --hamin-ink: #40364a;
}


/* =========================================================
   پس‌زمینه و عمق بصری
   ========================================================= */

body {
    background:
        radial-gradient(
            circle at 8% 8%,
            rgba(238, 108, 168, .08),
            transparent 28%
        ),
        radial-gradient(
            circle at 92% 18%,
            rgba(139, 91, 214, .08),
            transparent 28%
        ),
        #fffaf7;
}


/* =========================================================
   هیرو گرافیکی
   ========================================================= */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

.hero::before {
    width: 260px;
    height: 260px;
    background: rgba(238, 108, 168, .13);
    top: -90px;
    right: -70px;
}

.hero::after {
    width: 220px;
    height: 220px;
    background: rgba(139, 91, 214, .12);
    bottom: -90px;
    left: 35%;
}


/* =========================================================
   کارت محصول حرفه‌ای‌تر
   ========================================================= */

.card {
    position: relative;
    transition:
        transform .22s ease,
        box-shadow .22s ease;
}

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    pointer-events: none;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .65);
}

.card:hover {
    transform: translateY(-7px);
    box-shadow:
        0 20px 42px rgba(87, 54, 100, .13);
}


/* =========================================================
   تصویر محصول
   ========================================================= */

.pimg {
    position: relative;
    overflow: hidden;
}

.pimg::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .28);
    top: -50px;
    left: -35px;
}

.pimg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    display: block;
}


/* =========================================================
   دکمه افزودن به سبد
   ========================================================= */

.add {
    transition: .2s ease;
}

.add:hover {
    transform: translateY(-1px);
}


/* =========================================================
   دسته‌بندی‌های تصویری
   ========================================================= */

.catgrid a {
    position: relative;
    overflow: hidden;
    transition: .2s ease;
}

.catgrid a::before {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background:
        linear-gradient(
            135deg,
            rgba(238, 108, 168, .12),
            rgba(139, 91, 214, .12)
        );
    left: -25px;
    bottom: -25px;
}

.catgrid a:hover {
    transform: translateY(-5px);
    box-shadow:
        0 18px 35px rgba(87, 54, 100, .11);
}


/* =========================================================
   دکمه‌ها
   ========================================================= */

.btn,
.add,
.cartlink {
    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 25px rgba(139, 91, 214, .22);
}


/* =========================================================
   موبایل
   ========================================================= */

@media (max-width: 650px) {

    .hero {
        background:
            linear-gradient(
                145deg,
                #fff,
                #fff1f7 58%,
                #f1ecff
            );
    }

    .catgrid a {
        min-height: 125px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}


/* =========================================================
   گزینه‌های ارسال
   ========================================================= */

.shipping-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    margin: 10px 0;
    border: 1px solid #eee;
    border-radius: 16px;
    background: #fff;
}

.shipping-option input {
    width: auto;
}

.shipping-option span {
    flex: 1;
}


/* =========================================================
   پیام ارسال رایگان
   ========================================================= */

.free-note {
    padding: 12px 14px;
    margin: 12px 0;
    border-radius: 14px;
    background: #eefaf1;
    color: #176b35;
}


/* =========================================================
   راهنمای کوچک
   ========================================================= */

.hint {
    opacity: .75;
    font-size: 13px;
}


/* =========================================================
   صفحه حساب کاربری
   ========================================================= */

.accountpage .formbox {
    box-shadow:
        0 18px 50px rgba(0, 0, 0, .06);
}


/* =========================================================
   پیام‌های تیکت
   ========================================================= */

.ticketmsg {
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #eee;
    border-radius: 14px;
    background: #fff;
}

.ticketmsg small {
    display: block;
    color: #888;
    margin: 4px 0 8px;
}

.ticketmsg p {
    margin: 0;
    line-height: 1.9;
}
