:root {
    /* پالت رنگی بوتیک رسمی کفش و چرم */
    --bg-main: #f9f8f6;
    --bg-card: #ffffff;
    --bg-secondary: #f2efe9;
    --text-main: #1e1e1e;
    --text-muted: #6e6b66;
    /* رنگ‌های تاکیدی (چرم و برنز/طلایی مات) */
    --accent-bronze: #8c6d46;
    --accent-bronze-dark: #664d2d;
    --accent-gold-light: #c2aa84;
    /* کادربندی و سایه‌های ظریف و لوکس */
    --border-subtle: #e6e2db;
    --border-dark: #2a2a2a;
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 14px 35px rgba(28, 23, 18, 0.12);
}

@font-face {
    font-family: iransan;
    src: url(san.woff2);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text-main);
    font-family: iransan, Tahoma, sans-serif;
    background-color: var(--bg-main);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.25s ease;
}

.text-muted-custom {
    color: var(--text-muted);
}

/* پنل‌های شیک و بدون افکت‌های جیغ نئونی */
.glass-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
}

/* نوبار لوکس و مینی‌مال */
.navbar-custom {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-subtle);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.navbar-brand,
.nav-link {
    color: var(--text-main) !important;
    font-weight: 500;
}

    .navbar-brand:hover,
    .nav-link:hover,
    .nav-link:focus {
        color: var(--accent-bronze) !important;
    }

.navbar-toggler {
    border-color: var(--border-subtle);
}

    .navbar-toggler:focus {
        box-shadow: none;
    }

.dropdown-menu {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    min-width: 230px;
    padding: 8px;
    box-shadow: var(--shadow-hover);
}

.dropdown-item {
    color: var(--text-main);
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 0.92rem;
    transition: all 0.2s ease;
}

    .dropdown-item:hover,
    .dropdown-item:focus {
        background: var(--bg-secondary);
        color: var(--accent-bronze-dark);
        padding-right: 18px;
    }

.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu > .dropdown-menu {
        top: 0;
        right: 100%;
        margin-top: -1px;
        display: none;
    }

    .dropdown-submenu > .submenu-toggle::before {
        content: "‹";
        transform: rotateY(0deg);
        float: left;
        color: var(--accent-bronze);
        font-size: 16px;
        line-height: 1;
    }

/* اسلایدر هیرو */
.hero-slider .carousel-item img {
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.swiper-wrapper {
    height: auto !important;
}

.hero-caption {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(6px);
}

    .hero-caption h2,
    .hero-caption p {
        color: var(--text-main);
    }

/* تیتر بخش‌ها */
.section-title {
    position: relative;
    margin-bottom: 30px;
    padding-right: 14px;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
}

    .section-title::before {
        content: "";
        width: 4px;
        height: 24px;
        border-radius: 2px;
        background: var(--accent-bronze);
        flex: 0 0 auto;
    }

    .section-title::after {
        content: "";
        height: 1px;
        flex: 1;
        background: linear-gradient(to left, var(--border-subtle), transparent);
    }

/* کارت ویژگی‌ها */
.feature-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 24px;
    text-align: center;
    height: 100%;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

    .feature-box:hover {
        transform: translateY(-4px);
        border-color: var(--accent-bronze);
        box-shadow: var(--shadow-hover);
    }

    .feature-box p {
        color: var(--text-muted);
        margin-bottom: 0;
    }

/* کارت‌های محصول رسمی */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    min-height: 430px;
    position: relative;
}

    .product-card .btn-red,
    .product-card-lg .btn-red {
        position: absolute;
        left: 5%;
        right: 5%;
        width: 90% !important;
        bottom: 14px;
    }

    .product-card:hover {
        transform: translateY(-6px);
        border-color: var(--accent-bronze);
        box-shadow: var(--shadow-hover);
    }

.product-thumb {
    width: 100%;
    height: 230px;
    object-fit: contain;
    background: #fbfbfb;
    padding: 12px;
    display: block;
    transition: transform 0.4s ease;
}

.product-body {
    padding: 18px;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-main);
    line-height: 1.6;
}

/* قیمت کفش */
.product-price {
    color: var(--accent-bronze-dark);
    font-weight: 700;
    margin-bottom: 14px;
    font-size: 1.1rem;
}

/* دکمه رسمی (جایگزین دکمه قرمز گیمینگ) */
.btn-red {
    background: #1e1e1e;
    border: 1px solid #1e1e1e;
    color: #ffffff !important;
    border-radius: 4px;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.25s ease;
}

    .btn-red:hover {
        background: var(--accent-bronze);
        border-color: var(--accent-bronze);
        color: #ffffff !important;
        transform: translateY(-2px);
        box-shadow: 0 6px 14px rgba(140, 109, 70, 0.3);
    }

/* دکمه اوت‌لاین لایت */
.btn-outline-light-custom {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    padding: 10px 18px;
    transition: all 0.25s ease;
}

    .btn-outline-light-custom:hover {
        background: var(--bg-secondary);
        border-color: var(--text-main);
        color: var(--text-main);
    }

/* اسلایدر Swiper */
.swiper {
    padding: 10px 4px 46px;
}

.swiper-button-next,
.swiper-button-prev {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    box-shadow: var(--shadow-soft);
    transition: all 0.25s ease;
}

    .swiper-button-next:hover,
    .swiper-button-prev:hover {
        background: var(--accent-bronze);
        border-color: var(--accent-bronze);
        color: #ffffff;
    }

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 14px;
        font-weight: 700;
    }

.swiper-pagination-bullet {
    background: #bbb;
    opacity: 0.8;
}

.swiper-pagination-bullet-active {
    background: var(--accent-bronze);
    width: 22px;
    border-radius: 6px;
}

/* صفحه محصول و اسلایدرهای تکی */
.swiper-main {
    height: 440px;
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
    background: #ffffff;
    margin-bottom: 15px;
}

.swiper-thumbs {
    height: 90px;
    cursor: pointer;
}

    .swiper-thumbs .swiper-slide {
        border-radius: 4px;
        border: 1px solid var(--border-subtle);
        overflow: hidden;
        background: #ffffff;
    }

    .swiper-thumbs .swiper-slide-thumb-active {
        border: 2px solid var(--accent-bronze);
    }

.price-tag {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-bronze-dark);
}

.btn-glow {
    background: #1e1e1e;
    border: 1px solid #1e1e1e;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s ease;
}

    .btn-glow:hover {
        background: var(--accent-bronze);
        border-color: var(--accent-bronze);
        box-shadow: 0 6px 18px rgba(140, 109, 70, 0.25);
        transform: translateY(-2px);
    }

/* تب‌ها */
.nav-tabs {
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 25px;
}

.nav-link {
    color: var(--text-muted);
    border: none !important;
    font-weight: 500;
    padding: 12px 24px;
}

    .nav-link.active {
        color: var(--accent-bronze-dark) !important;
        border-bottom: 2px solid var(--accent-bronze) !important;
        background: transparent !important;
        font-weight: 700;
    }

.related-swiper {
    padding: 20px 0;
}

.results-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* کارت بزرگ محصولات */
.product-card-lg {
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    min-height: 500px;
}

    .product-card-lg:hover {
        transform: translateY(-6px);
        border-color: var(--accent-bronze);
        box-shadow: var(--shadow-hover);
    }

.product-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    background: var(--accent-bronze);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 2px;
    letter-spacing: 0.5px;
}

.product-thumb-wrap {
    position: relative;
    overflow: hidden;
    background: #ffffff;
}

    .product-thumb-wrap .product-thumb {
        width: 100%;
        height: 250px;
        object-fit: contain;
    }

.product-card-lg:hover .product-thumb {
    transform: scale(1.04);
}

.product-actions {
    position: absolute;
    left: 14px;
    top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.25s ease;
    z-index: 2;
}

.product-card:hover .product-actions,
.product-card-lg:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}

.icon-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    box-shadow: var(--shadow-soft);
    transition: all 0.25s ease;
}

    .icon-btn:hover {
        color: #fff;
        background: var(--accent-bronze);
        border-color: var(--accent-bronze);
    }

.product-category {
    color: var(--accent-bronze);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 6px;
    display: inline-block;
    text-transform: uppercase;
}

.product-rating {
    color: #d4a017;
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .product-rating span {
        color: var(--text-muted);
    }

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.price-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.old-price {
    color: #999;
    font-size: 0.88rem;
    text-decoration: line-through;
}

.stock-status {
    font-size: 0.82rem;
    color: #2b7a4b;
    font-weight: 600;
}

/* صفحه‌بندی مینی‌مال */
.pagination-custom .page-link,
.custom-pagination .page-link {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px !important;
    margin: 0 4px;
    font-weight: 600;
    transition: all 0.2s ease;
}

    .pagination-custom .page-link:hover,
    .custom-pagination .page-link:hover {
        background: var(--bg-secondary);
        border-color: var(--accent-bronze);
        color: var(--accent-bronze);
    }

.pagination-custom .page-item.active .page-link,
.custom-pagination .page-item.active .page-link {
    background: #1e1e1e !important;
    border-color: #1e1e1e !important;
    color: #ffffff !important;
}

.custom-pagination .page-item.disabled .page-link {
    background: #f4f4f4;
    color: #aaa;
    border-color: var(--border-subtle);
    cursor: not-allowed;
}

/* فوتر رسمی */
footer {
    margin-top: 60px;
    background: #1a1a1a;
    color: #dedede;
    border-top: 1px solid #2e2e2e;
    padding: 50px 0 20px;
}

    footer a {
        color: #c7c7c7;
    }

        footer a:hover {
            color: var(--accent-gold-light);
        }

.footer-divider,
hr.footer-divider {
    border-color: rgba(255, 255, 255, 0.08);
}

/* جستجو و نتایج */
.serachResult {
    display: block;
    position: absolute;
    background: white;
    z-index: 2000;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    box-shadow: var(--shadow-hover);
}

/* دسته‌بندی‌ها (طرح آکسفورد و کفش) */
.category-link {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
    display: block;
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover .category-img {
    transform: scale(1.08);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.category-title {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    letter-spacing: 1px;
}

.catTitle {
    color: var(--text-main) !important;
}

/* سبد خرید مینی‌مال و کلاسیک */
.cart-link {
    position: relative;
    display: inline-block;
}

.cart-badge {
    position: absolute;
    top: -6px;
    left: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 50%;
    background: var(--accent-bronze);
    color: white;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    font-weight: bold;
}

.cart-image {
    width: 90px;
    height: 90px;
    object-fit: contain;
    background: #fbfbfb;
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
}

.cart-summary {
    position: sticky;
    top: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 20px;
}

.quantity-box {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    overflow: hidden;
}

    .quantity-box a {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: var(--text-main);
        background-color: var(--bg-secondary);
        font-size: 16px;
        transition: background 0.2s;
    }

        .quantity-box a:hover {
            background-color: #e5e0d8;
        }

.quantity-number {
    min-width: 36px;
    text-align: center;
    font-weight: 600;
}

.btn-purple {
    color: #fff;
    border: none;
    background: #1e1e1e;
    border-radius: 4px;
}

    .btn-purple:hover {
        background: var(--accent-bronze);
        color: #fff;
    }

/* تایمر شمارش معکوس حراج فصلی */
.countdown-wrapper {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    direction: rtl;
    background: var(--bg-secondary);
}

.countdown-box {
    padding: 40px;
    border-radius: 6px;
    background: white;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    min-width: 480px;
}

.countdown-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
}

.timePart {
    background: #eeeeee;
    color: black;
    display: inline-block;
    border-radius: 10px;
    padding: 5px 0px 0px 5px;
}

.timeBack {
    position: relative;
    border-radius: 10px;
    min-height: 300px;
}

.timeBack {
    position: relative;
    border-radius: 10px;
    min-height: 300px;
}
.timeFront {
    position: absolute;
    bottom: 10px;
    z-index: 2;
    right: 10px;
}
.timeBkg {
    position: absolute;
    left: 0px;
    right: 0px;
    bottom: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: cover;
    opacity: 0.7;
    object-position: center;
    border-radius: 10px;
}
.countdown-timer {
    font-size: 2.8rem;
    font-weight: 700;
    direction: ltr;
    color: var(--accent-bronze-dark);
}

/* نظرات و امتیازات کفش */
.stars-display .star {
    color: #d1d1d1;
    transition: color .2s;
}

    .stars-display .star.active {
        color: #c49a45;
    }

.stars-input .star-input {
    color: #d1d1d1;
    transition: color .15s, transform .15s;
    user-select: none;
    cursor: pointer;
}

    .stars-input .star-input:hover {
        transform: scale(1.15);
    }

    .stars-input .star-input.active,
    .stars-input .star-input.hover-active {
        color: #c49a45;
    }

.comment-item {
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    background: #ffffff;
    padding: 16px;
    transition: border-color .2s;
}

    .comment-item:hover {
        border-color: var(--accent-bronze);
    }

/* دکمه بازگشت به بالا مینی‌مال */
#btnBackToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    width: 46px;
    height: 46px;
    border-radius: 4px;
    background: #1e1e1e;
    color: #ffffff;
    border: 1px solid #333;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
}

    #btnBackToTop:hover {
        background: var(--accent-bronze);
        border-color: var(--accent-bronze);
        transform: translateY(-2px);
    }

    #btnBackToTop.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

/* علاقه‌مندی‌ها (Wishlist) */
.btn-wishlist {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
    background: #ffffff;
    color: var(--text-main);
    transition: all 0.2s ease;
}

    .btn-wishlist:hover {
        border-color: #8c6d46;
        color: #8c6d46;
    }

    .btn-wishlist.active {
        background-color: #8c6d46;
        border-color: #8c6d46;
        color: #ffffff;
    }

/* مدیا کوئری‌ها و بهینه‌سازی موبایل/دسکتاپ */
@media (min-width: 992px) {
    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
    }

    .navbar .dropdown-menu li:hover > .dropdown-menu {
        display: block;
    }

    .sticky-sidebar {
        position: sticky;
        top: 100px;
    }

    .row-cols-lg-8 {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
    }

        .row-cols-lg-8 > * {
            width: 100%;
        }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #ffffff;
        padding: 16px;
        border-radius: 6px;
        margin-top: 10px;
        border: 1px solid var(--border-subtle);
        box-shadow: var(--shadow-soft);
    }

    .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        margin-top: 8px;
        box-shadow: none;
    }

    .dropdown-submenu > .dropdown-menu {
        right: 0;
        margin-top: 8px;
        padding-right: 12px;
        display: none;
    }

        .dropdown-submenu > .dropdown-menu.show {
            display: block;
        }

    .dropdown-submenu > .submenu-toggle::before {
        content: "+";
    }

    .product-thumb {
        height: 200px;
    }
}

@media (max-width: 575.98px) {
    .hero-slider .carousel-item img {
        height: 220px;
    }

    .product-thumb {
        height: 160px;
        object-fit: contain;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }

    .hero-caption {
        padding: 16px;
    }

    .price-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media print {
    .navbar,
    .dontPrint,
    #btnBackToTop {
        display: none !important;
    }
}
