:root {
    --white: #ffffff;
    --cream: #F2ECDE;
    --cream-2: #EAE1CC;
    --black: #1B1B1A;
    --steel: #7C8B90;
    --steel-dark: #57646A;
    --text-muted: #6b6b66;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #1b1b1a;
    font-size: 1.3rem;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.icon-link:hover {
    background: rgba(27, 27, 26, 0.06);
    color: #000;
    transform: scale(1.05);
}

.icon-link:active {
    transform: scale(0.95);
}

/* دکمه خروج */
.logout-btn {
    background: transparent !important;
    color: #1b1b1a;
}

.logout-btn:hover {
    background: rgba(220, 53, 69, 0.08) !important;
    color: #dc3545 !important;
}

/* بدج تعداد سبد */
.badge-cart {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #dc3545;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* برای دستگاه‌های کوچک */
@media (max-width: 576px) {
    .icon-link {
        width: 34px;
        height: 34px;
        font-size: 1.1rem;
    }

    .header-icons {
        gap: 0.4rem;
    }
}

* {
    font-family: 'Vazirmatn', sans-serif;
}

body {
    color: var(--black);
    background: var(--white);
}

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

main {
    min-height: 80vh;
}

.cart-icon-link {
    position: relative;
    color: var(--black);
    font-size: 1.25rem;
}

.cart-icon-link .badge-count {
    position: absolute;
    top: -8px;
    left: -10px;
    background: var(--black);
    color: var(--white);
    font-size: .62rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eyebrow {
    letter-spacing: .5px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--steel-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: .6rem;
}

.eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--black);
    display: inline-block;
}

.section-title {
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: .3rem;
}

.section-sub {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 560px;
}

/* ---------- Topbar ---------- */
.topbar {
    background: var(--black);
    color: #e9e6dd;
    font-size: .82rem;
}

.topbar a {
    color: #e9e6dd;
}

.topbar a:hover {
    color: var(--cream);
}

.topbar .divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, .25);
    display: inline-block;
}

/* ---------- Header ---------- */
.site-header {
    background: var(--white);
    border-bottom: 1px solid #eee6d4;
}

.brand {
    font-weight: 800;
    font-size: 1.55rem;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
}

.brand .mark {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--black);
    color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.brand small {
    display: block;
    font-size: .7rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 2px;
}

.main-nav .nav-link {
    color: var(--black);
    font-weight: 600;
    font-size: .95rem;
    padding: .5rem 1rem;
    position: relative;
}

.main-nav .nav-link::after {
    content: "";
    position: absolute;
    right: 1rem;
    left: 1rem;
    bottom: .25rem;
    height: 2px;
    background: var(--black);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .2s ease;
}

.main-nav .nav-link:hover::after {
    transform: scaleX(1);
}

.btn-outline-dark-custom {
    border: 1.5px solid var(--black);
    color: var(--black);
    font-weight: 700;
    border-radius: 8px;
    padding: .5rem 1.1rem;
    font-size: .88rem;
}

.btn-outline-dark-custom:hover {
    background: var(--black);
    color: var(--white);
}

.btn-dark-custom {
    background: var(--black);
    color: var(--white);
    border: 1.5px solid var(--black);
    font-weight: 700;
    border-radius: 8px;
    padding: .5rem 1.1rem;
    font-size: .88rem;
}

.btn-dark-custom:hover {
    background: var(--steel-dark);
    border-color: var(--steel-dark);
    color: var(--white);
}

/* ---------- Footer ---------- */
footer {
    background: var(--black);
    color: #cfc9b8;
    padding-top: 4rem;
}

footer h6 {
    color: var(--white);
    font-weight: 800;
    margin-bottom: 1.1rem;
    font-size: .95rem;
}

footer .brand {
    color: var(--white);
}

footer .brand .mark {
    background: var(--cream);
    color: var(--black);
}

footer p {
    font-size: .86rem;
    line-height: 1.9;
    color: #b9b3a0;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul li {
    margin-bottom: .6rem;
}

footer ul li a {
    color: #cfc9b8;
    font-size: .87rem;
}

footer ul li a:hover {
    color: var(--white);
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #4a4a45;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #cfc9b8;
    margin-left: .5rem;
}

.footer-social a:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.enamad-badge {
    background: #242422;
    border: 1px solid #3b3b37;
    border-radius: 10px;
    padding: .7rem .9rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .75rem;
    color: #cfc9b8;
    width: fit-content;
}

.enamad-badge i {
    font-size: 1.3rem;
    color: var(--cream);
}

.footer-bottom {
    border-top: 1px solid #333330;
    margin-top: 3rem;
    padding: 1.2rem 0;
    font-size: .8rem;
    color: #9a9483;
}