
@font-face {
    font-family: 'Mikhak';
    src: url('fonts/Mikhak[DSTY,KSHD,wght].woff2') format('woff2'),
        url('fonts/Mikhak[DSTY,KSHD,wght].ttf') format('truetype');
    font-style: normal;
    font-weight: normal;
}

@font-face {
    font-family: 'Mikhak-FD';
    src: url('fonts/Mikhak-FD[DSTY,KSHD,wght].woff2') format('woff2'),
        url('fonts/Mikhak-FD[DSTY,KSHD,wght].ttf') format('truetype');
    font-style: normal;
    font-weight: normal;
}

body {
    font-family: 'Mikhak', 'Tahoma', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background 0.3s, color 0.3s;
}

.fa-num
{
    font-family: 'Mikhak-FD';
}

:root {
    --bg-color: #ffffff;
    --text-color: #222;
    --card-bg: #f9f9f9;
}

body.dark {
    --bg-color: #1c1c1c;
    --text-color: #e0e0e0;
    --card-bg: #2a2a2a;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--card-bg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#darkModeToggle {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.splide {
    direction: rtl;
    max-width: 1000px;
    margin: auto;
}

.splide__slide {
    
    background: #f9f9f9;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

body.dark .splide__slide {
   background: #7a7a7a;
}

.splide__slide img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
}

.splide__pagination {
    bottom: -25px;
}

.splide__pagination li button {
    width: 12px;
    height: 12px;
    background-color: #999;
    border-radius: 50%;
    margin: 0 6px;
    transition: transform 0.3s ease;
}


.splide__pagination__page.is-active {
    background: #ccc;
    transform: scale(1.2);
}

.products {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 10px;
    /* display: flex; */
    justify-content: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.product-card {
    background: var(--card-bg);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 8px;
}

.badge-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.badge {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    color: #fff;
}

.badge.bazaar {
    background: #4CAF50;
}

.badge.myket {
    background: #00BCD4;
}

.badge.site {
    background: #FF9800;
}


@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.store-button-container {
    text-align: center;
    margin-top: 40px;
}

.store-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #4CAF50;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.store-button:hover {
    transform: scale(1.05);
}

.store-icon {
    font-size: inherit;
}

.store-icon img {
    width: 36px;
}

@media (min-width: 768px) {
    .splide__slide img {
        width: 300px;
        height: 300px;
        object-fit: cover;
        border-radius: 8px;
        /* اختیاری برای زیبایی */
    }
}

.mt-1 {
    margin-top: 1em;
}
.mt-2 {
    margin-top: 2em;
}
.mt-3 {
    margin-top: 3em;
}
.mt-4 {
    margin-top: 4em;
}