:root {
    --primary-color: #fc5021; 
    --primary-color-low: rgba(252, 80, 33, 0.5);
    --primary-color-dark: #d43f0b;

    --secondary-color: #adb5bd; 
    --secondary-color-low: rgba(173, 181, 189, 0.5);
    --secondary-color-dark: #6c757d;

    --tertiary-color: #e9ecef;
    --tertiary-color-low: rgba(233, 236, 239, 0.5);
    --tertiary-color-dark: #ced4da;

    --bg-color: #f2f4f8;
    --bg-color-low: rgba(248, 249, 250, 0.5);
    --bg-color-dark: #e4e7eb;

    --text-dark: #343a40;
    --text-dark-low: #495057b9;
    --text-dark-dark: #212529;

    --text-light: #f8f9fa;
    --text-light-low: rgba(248, 249, 250, 0.7);
    --text-light-dark: #e1e4e6;

    --button-color: #02337c; 
    --button-color-low: rgba(2, 51, 124, 0.5);
    --button-color-dark: #001a4d;

    --card-bg: #ffffff;
    --card-bg-low: #f3f2f2;
    --smoothline-color: var(--bg-color);
}

.topArea {
    margin-top: 1rem;
    height: auto;
    
}

.topArea .container {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border-radius: 10px;
}

.topArea .sliderRow {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 1rem;
}

.topArea .slider-wrapper {
    grid-column: span 7;
}

.topArea .slider-wrapper .slide {
    width: 100%;
    height: 100%;
    min-height: 275px;
    border-radius: 2px;
    overflow: hidden;
}

.topArea .slider-wrapper .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}


.topArea .cardRow {
    grid-column: span 3;
    height: 100%;
}

.topArea .cardRow .card {
    width: 100%;
    height: 96%;
    position: relative;
    display: flex;
}

.topArea .cardRow .card .clickArea {
    height: 100%;
    width: 50%;
}

.topArea .cardRow .card .clickArea .card-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.topArea .cardRow .card .clickArea .card-image img {
    width: 100%;
    height: 100%;
    /*object-fit: cover;*/
    object-position: center;
    pointer-events: none;
}

.topArea .categorySlider {
    overflow: hidden;
    padding-bottom: 20px;
}

.topArea .categorySlider .sliderArea {
    height: 100%;
    width: 100%;
}

.topArea .categorySlider .sliderArea .sliderItem {
    width: 10%;
    padding: 0.5rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
    display: block;
}

.topArea .categorySlider .sliderArea .sliderItem:hover {
    transform: translateY(-5px);
}

.topArea .categorySlider .sliderArea .sliderItem:hover .image {
    box-shadow: 0 8px 24px rgba(252, 80, 33, 0.2);
}

.topArea .categorySlider .sliderArea .sliderItem .image {
    width: 100px;
    height: 100px;
    /*background:#f2f2f2;*/
    border-radius: 50%;
    margin-bottom: 10px;
    padding: 1rem;
    position: relative;
    transition: box-shadow 0.3s ease;
}

.topArea .categorySlider .sliderArea .sliderItem .image .badge {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    border-radius: 10px;
    padding: 0rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
}

.topArea .categorySlider .sliderArea .sliderItem .image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    pointer-events: none;
}

.topArea .categorySlider .sliderArea .sliderItem .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
}


.topArea .categorySlider .sliderArea .sliderItem .content .title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
}


/* Category Slider Responsive */

@media (max-width: 1400px) {
    .topArea .cardRow {
        display: none!important;
    }

    .topArea .slider-wrapper {
        grid-column: span 10;
    }

    .topArea .slider-wrapper .slide {
        height: 250px;
    }

    .topArea .categorySlider .sliderArea .sliderItem {
        width: auto;
    }

    .topArea .categorySlider .sliderArea .sliderItem .image {
        width: 80px;
        height: 80px;
    }

    .topArea .categorySlider .sliderArea .sliderItem .content .title {
        font-size: 0.9rem;
    }

}

@media (max-width: 1099px) {
    .topArea .slider-wrapper {
        padding-top: 20px;
    }
    .topArea .slider-wrapper .slide {
        width: 80%;
        margin: 0 10px;
        border-radius: 20px;
    }
}

@media (max-width: 900px) {
    .topArea .slider-wrapper .slide {
        height: 200px;
    }
}

@media (max-width: 700px) {
    .topArea .slider-wrapper .slide {
        height: 150px!important;
        min-height: auto;
    }

    .topArea .slider-wrapper .flickity-button.next:hover svg {
        right: -1px;
    }

    .topArea .slider-wrapper .flickity-button.previous:hover svg {
        left: -1px;
    }

    .topArea .categorySlider .sliderArea .sliderItem .image {
        width: 60px;
        height: 60px;
    }

    .topArea .categorySlider .sliderArea .sliderItem .content .title {
        font-size: 0.8rem;
        max-width: 60px;
        text-align: center;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .topArea .categorySlider .sliderArea .sliderItem .image .badge {
        padding: 0rem 0.5rem;
        font-size: 0.7rem;
    }


}

@media (max-width: 500px) {
    .topArea .slider-wrapper .slide {
        height: 100px!important;
        min-height: auto;
        margin: 0 2px;
        border-radius: 8px;
        width: 90%;
    }


    .topArea .categorySlider .sliderArea .sliderItem .image {
        width: 50px;
        height: 50px;
    }

    .topArea .categorySlider .sliderArea .sliderItem .content .title {
        font-size: 0.7rem;
        max-width: 50px;
        text-align: center;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .topArea .categorySlider .sliderArea .sliderItem .image .badge {
        padding: 0rem 0.5rem;
        font-size: 0.6rem;
    }

    .topArea .slider-wrapper .flickity-button {
        display: none;
    }

    .topArea .slider-wrapper .flickity-page-dots {
        bottom: 0px;
    }

    .topArea .slider-wrapper .flickity-page-dots .dot {
        width: 6px;
        height: 6px;
    }

    .topArea .flickity-button {
        display: none;
    }
}





/* Top Cards Style */

.topCards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    height: auto;
}

.topCards .container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.topCards .container .cardRow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.topCards .cardRow .card {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    background: var(--card-bg);
    display: flex;
    flex-direction: column;
    justify-content: start;
    border-radius: 5px;
    padding: 1rem;
}

.topCards .cardRow .card .title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    padding-bottom: 1rem;
}

.topCards .cardRow .card .minicards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    height: 100%;
}

.topCards .cardRow .card .minicards .mini-card {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: start;
    border-radius: 10px;
    overflow: hidden;
}

.topCards .cardRow .card .minicards .mini-card .image {
    height: 180px; /* Default - büyük ekranlar için */
    width: 100%;
}

.topCards .cardRow .card .minicards .mini-card .image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* fill yerine cover - oranları korur */
    object-position: center;
    pointer-events: none;
}

/* Priced mini-card'lar için image yüksekliğini sabitle - tasarım bütünlüğü için */
.topCards .cardRow .card .minicards .mini-card.priced .image {
    height: 180px; /* Diğerleriyle aynı yükseklik */
    width: 100%;
    overflow: hidden; /* Taşan kısımları gizle */
}

.topCards .cardRow .card .minicards .mini-card .content {
    padding: 0.5rem;
    padding-left: 0.6rem;
}

.topCards .cardRow .card .minicards .mini-card .content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.topCards .cardRow .card .minicards .mini-card .content p {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-dark-low);
}

.topCards .cardRow .card .minicards .mini-card .badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary-color);
    padding: 0.1rem 0.6rem;
    border-radius:0 10px 0 10px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.topCards .cardRow .card .minicards.priced {
    grid-template-columns: repeat(2, 1fr);
}

.topCards .cardRow .card .minicards .mini-card.priced .content p {
    font-size: 0.75rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    /* word-break: break-all; */
    word-wrap: break-word;
 }


.topCards .cardRow .card .minicards .mini-card.priced .content .price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: auto;
    align-self: flex-end;

}

.topCards .cardRow .card .minicards .mini-card.priced .content .price .oldPrice {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-dark-low);
    text-decoration: line-through;
    text-decoration-color: red;
}

.topCards .cardRow .card .cardColumn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding-bottom: 0.2rem;
}

.topCards .cardRow .card .cardColumn .mini-card {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: start;
    border-radius: 10px;
    overflow: hidden;
}

.topCards .cardRow .card .cardColumn .mini-card .image {
    width: 100%;
}

.topCards .cardRow .card .cardColumn .mini-card .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

/* TopCards Responsive */
@media (max-width: 1400px) {
    .topCards .container .cardRow {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .topCards .cardRow .card .minicards .mini-card .image {
        height: 165px; /* Ölçeklendirilmiş */
    }
    
    /* Priced mini-card'lar için aynı yükseklik */
    .topCards .cardRow .card .minicards .mini-card.priced .image {
        height: 165px;
    }
}

@media (max-width: 992px) {
    .topCards .cardRow .card .title {
        font-size: 1.1rem;
        padding-bottom: 0.8rem;
    }
    
    .topCards .cardRow .card .minicards .mini-card .image {
        height: 155px; /* Ölçeklendirilmiş */
    }
    
    /* Priced mini-card'lar için aynı yükseklik */
    .topCards .cardRow .card .minicards .mini-card.priced .image {
        height: 155px;
    }
    
    .topCards .cardRow .card .minicards .mini-card .content h3 {
        font-size: 0.9rem;
    }
    
    .topCards .cardRow .card .minicards .mini-card .content p {
        font-size: 0.75rem;
    }
    
    .topCards .cardRow .card .minicards .mini-card.priced .content .price {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .topCards .container .cardRow {
        grid-template-columns: 1fr;
    }
    
    .topCards .cardRow .card {
        padding: 0.75rem;
    }
    
    .topCards .cardRow .card .minicards {
        gap: 0.75rem;
    }
    
    .topCards .cardRow .card .minicards .mini-card .image {
        height: 170px; /* İstenilen boyut */
    }
    
    /* Priced mini-card'lar için aynı yükseklik */
    .topCards .cardRow .card .minicards .mini-card.priced .image {
        height: 170px;
    }
}

@media (max-width: 576px) {
    .topCards .cardRow .card .title {
        font-size: 1rem;
        padding-bottom: 0.6rem;
    }
    
    .topCards .cardRow .card .minicards .mini-card .image {
        height: 150px; /* Ölçeklendirilmiş */
    }
    
    /* Priced mini-card'lar için aynı yükseklik */
    .topCards .cardRow .card .minicards .mini-card.priced .image {
        height: 150px;
    }
    
    .topCards .cardRow .card .minicards .mini-card .content {
        padding: 0.3rem 0.4rem;
    }
    
    .topCards .cardRow .card .minicards .mini-card .content h3 {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
    }
    
    .topCards .cardRow .card .minicards .mini-card .badge {
        font-size: 0.7rem;
        padding: 0.1rem 0.4rem;
    }
    
    .topCards .cardRow .card .minicards .mini-card.priced .content .price {
        margin-top: 0.2rem;
    }
}

@media (max-width: 400px) {
    .topCards .cardRow .card {
        padding: 0.5rem;
    }
    
    .topCards .cardRow .card .minicards {
        gap: 0.5rem;
    }
    
    .topCards .cardRow .card .minicards .mini-card .image {
        height: 130px; /* Ölçeklendirilmiş */
    }
    
    /* Priced mini-card'lar için aynı yükseklik */
    .topCards .cardRow .card .minicards .mini-card.priced .image {
        height: 130px;
    }
    
    .topCards .cardRow .card .minicards .mini-card .content {
        padding: 0.2rem 0.3rem;
    }
    
    .topCards .cardRow .card .minicards .mini-card.priced .content .price {
        font-size: 0.8rem;
    }
    
    .topCards .cardRow .card .minicards .mini-card.priced .content .price .oldPrice {
        font-size: 0.7rem;
    }
    
    .topCards .cardRow .card .minicards .mini-card .content p {
        font-size: 0.7rem;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }
}
