*, *::before, *::after {
        box-sizing: border-box;
    }

    :root {
        --background-color: #f8f9fa;
        --text-color: #333;
        --card-background: #fff;
        --card-shadow: rgba(0, 0, 0, 0.1);
        --button-background: #007bff;
        --button-text-color: #fff;
        --review-card-bg: #ffffff;
        --review-card-hover-bg: #f1f1f1;
        --star-color: #ffc107;
    }

    body {
        background-color: var(--background-color);
        color: var(--text-color);
        font-family: 'Poppins', sans-serif;
        transition: background-color 0.3s, color 0.3s;
    }

    a {
        color: #007bff;
        transition: color 0.3s;
    }

    .btn {
        background-color: var(--button-background);
        color: var(--button-text-color);
        transition: background-color 0.3s, color 0.3s;
    }

    .btn:hover {
        background-color: #0056b3;
        color: var(--button-text-color);
    }

    .section-banner {
    background: linear-gradient(90deg, #FC2203, #ff9900); /* Using #ff6600 and #ff9900 */
        color: #fff;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
        border-radius: 8px;
        margin-bottom: 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        font-size: 0.9rem;
        margin-top: -30px;
        transition: background 0.3s, color 0.3s;
    }

    .section-banner .banner-title {
        font-size: 1.1rem; 
        font-weight: bold;
        display: flex;
        align-items: center;
    }

    .section-banner .banner-title i {
        margin-right: 8px;
        font-size: 1.2rem;
    }

    .section-banner .see-all {
        color: #fff;
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: bold;
    }

    .category-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px; 
    justify-items: stretch;
}

.category-card {
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 4px 8px var(--card-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    width: auto;
    box-sizing: border-box;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px var(--card-shadow);
}

.category-card .img-wrapper {
    width: 100%;
    padding-top: 56.25%; /* 16:9 nisbəti */
    position: relative;
    overflow: hidden;
}

.category-card .img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.category-card .category-name {
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    color: var(--text-color);
    padding: 10px 0; 
    margin: 0;
    text-decoration: none;
    border-top: 1px solid #ccc;
    flex-shrink: 0; 
}

.category-card a {
    text-decoration: none;
    color: inherit;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

    .main-slide {
        position: relative;
        margin-bottom: 10px;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 8px var(--card-shadow);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-slide img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 8px;
    }

    .main-slide .caption {
        position: absolute;
        bottom: 15px;
        left: 15px;
        color: white;
        background: rgba(0, 0, 0, 0.6);
        padding: 8px 16px;
        border-radius: 6px;
        max-width: 80%;
        display: none;
    }

    .main-slide .caption h5 {
        font-size: 1.4rem;
        font-weight: bold;
        margin-bottom: 4px;
    }

    .main-slide .caption p {
        font-size: 0.95rem;
        opacity: 0.9;
        margin: 0;
    }

/* Böyük ekranlar (Desktop) */
@media (min-width: 1024px) {
    .category-row {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .category-card {
        max-width: 310px;
    }
}

/* Planşet və orta ölçülü cihazlar (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .category-row {
        grid-template-columns: repeat(3, 1fr); /* 3 sütun */
        gap: 8px; 
    }

    .category-card {
        width: 100%; 
    }

    .category-card .category-name {
        font-size: 1rem; 
        padding: 8px 0;
    }

    .main-slide {
        width: 100%;
        aspect-ratio: 16 / 9; /* Sabit en:hündürlük nisbəti */
        background-color: #000; /* İstəsən dəyişə bilərsən */
        overflow: hidden;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px var(--card-shadow);
    }

    .main-slide img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* Şəkil tam görünür, qırılma olmur */
        object-position: center;
        border-radius: 8px;
    }

    .main-slide .caption {
        bottom: 10px;
        left: 10px;
        max-width: 95%;
        display: none;
    }

    #main-slider .carousel-indicators li {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }

    .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        margin: 0 auto;
    }
}


/* Mobil (768px-dən kiçik) */
@media (max-width: 767px) {
    .category-row {
        grid-template-columns: repeat(2, 1fr); /* 2 sütun */
        gap: 8px;
    }

    .category-card {
        width: 100%;
    }

    .category-card .category-name {
        font-size: 1rem;
        padding: 8px 0;
    }
}

    .reviews-section .review-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }

    .review-card {
        background-color: var(--review-card-bg);
        border-radius: 8px;
        padding: 20px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        transition: transform 0.3s, box-shadow 0.3s;
        display: flex;
        flex-direction: column;
        height: 100%;
        position: relative;
    }

    .review-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 12px var(--card-shadow);
    }

    .review-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start; 
        margin-bottom: 15px;
    }

    

    .review-user-info {
        flex-grow: 1;
        margin-left: 15px;
        display: flex;
        flex-direction: column;
    }

    .username {
        font-weight: bold;
        font-size: 1rem;
        margin-bottom: 5px;
        display: block;
    }

    .date {
        font-size: 0.85rem;
        color: #777;
        display: block; 
    }

    .review-rating {
        display: flex;
        align-items: center;
        margin-top: 5px; 
    }

    .review-rating i {
        color: var(--star-color); 
        margin-right: 2px;
        font-size: 1rem; 
    }

    .review-rating i.empty {
        color: #e4e5e9; 
    }

    .review-product {
        font-size: 0.9rem;
        color: #555;
        margin-bottom: 10px;
    }

    .review-product strong {
        color: #333;
    }

    .review-comment {
        font-size: 0.95rem;
        color: #222222;
        flex-grow: 1;
    }

@media (max-width: 1024px) {
        .review-avatar {
            width: 40px;
            height: 40px;
            font-size: 1rem;
        }

        .username {
            font-size: 0.9rem;
        }

        .date {
            font-size: 0.75rem;
        }

        .review-comment {
            font-size: 0.85rem;
        }

        .review-product {
            font-size: 0.85rem;
        }
    .main-slide .caption {
            bottom: 10px;
            left: 10px;
            max-width: 95%;
                display: none;

        }

        #main-slider .carousel-indicators li {
            width: 8px;
            height: 8px;
            margin: 0 3px;
        }
        .review-rating i {
            font-size: 0.9rem;
        }
    }

    /* Anonim Username Maskalama Üçün Stil */
    .masked-username .star-icon {
        color: #ffc107;
        margin-left: 2px;
    }