:root {
    --primary-color: #2F58CD;
    --primary-color-rgb: 47, 88, 205;
    --secondary-color: #379237;
    --background-color: #F8F9FA;
    --text-color: #343A40;
    --accent-color: #FFC107;
    --card-background-color: #FFFFFF;
    --header-bg-color: #FFFFFF; /* Header için beyaz arka plan */
    --header-text-color: #343A40; /* Header için koyu metin */
    --header-border-color: #E0E0E0; /* Header alt çizgisi için açık gri */
    --footer-bg-color: #343A40; /* Footer için koyu gri arka plan */
    --footer-text-color: #F8F9FA;   /* Footer için açık renk metin */
}

/* Temel Reset ve Genel Stiller */
body, h1, h2, h3, p, ul, li, a, form, input, button {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif; /* Poppins fontu eklendi */
}

body {
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

header {
    background: var(--header-bg-color);
    color: var(--header-text-color);
    padding-top: 20px; /* Biraz azaltıldı */
    padding-bottom: 20px; /* Eklendi */
    min-height: auto; /* Değiştirildi */
    border-bottom: 1px solid var(--header-border-color); /* Değiştirildi */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Hafif bir gölge eklendi */
}

header a {
    color: var(--header-text-color);
    text-decoration: none;
    text-transform: none; /* Kaldırıldı */
    font-size: 16px;
    font-weight: 500; /* Biraz daha belirgin */
}

header a:hover {
    color: var(--primary-color);
}

header .logo {
    float: left;
    font-size: 24px;
    font-weight: bold;
}

header .logo img {
    max-height: 45px;
    width: auto;
    vertical-align: middle;
}

header nav {
    float: right;
    margin-top: 10px;
}

header nav ul {
    list-style: none;
}

header nav ul li {
    display: inline;
    padding: 0 20px 0 20px;
}

/* Ana menü için yeni stiller */
.main-menu {
    display: flex;
    align-items: center;
}

.main-menu li a {
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.main-menu li a:hover {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
}

/* Arama çubuğu stillerini kaldırdık */

main {
    padding: 20px 0;
}

footer {
    background: var(--footer-bg-color);
    color: var(--footer-text-color);
    text-align: center;
    padding: 40px 0; /* Padding arttırıldı */
    margin-top: 40px; /* Margin arttırıldı */
}

footer nav ul li {
    display: inline;
    padding: 0 10px;
}

footer nav a {
    color: var(--footer-text-color);
    text-decoration: none;
}

footer a {
    color: var(--footer-text-color);
    text-decoration: none;
}

footer a:hover {
    color: var(--primary-color);
}

/* Hero Section */
#hero {
    background: var(--primary-color);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 30px;
}

#hero h1 {
    font-size: 2.8em;
    margin-bottom: 15px;
    font-weight: 700;
    border-bottom: none;
    display: block;
    color: #fff;
}

#hero p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

/* Content Sections */
.content-section {
    margin-bottom: 40px;
    padding: 20px;
    background-color: var(--card-background-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

.content-section h2 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 25px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    display: inline-block;
}

.content-section h1 {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
    display: inline-block;
}

.content-section h2 i, .content-section h1 i {
    margin-right: 10px;
}

.content-section h1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

/* Coupon Grid */
.coupon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Varsayılan olarak 4 sütun */
    gap: 20px;
}

.coupon-card {
    background-color: var(--card-background-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Taşan içeriği kesecek */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.coupon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.coupon-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px 15px 0 15px; /* İçten boşluk ekledim */
}

.coupon-card .store-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-right: 15px;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    padding: 5px;
    background-color: #fff;
}

.coupon-card h3 {
    font-size: 1.15em;
    color: var(--text-color);
    font-weight: 600;
    line-height: 1.3;
}

.coupon-description {
    font-size: 0.9em;
    margin-bottom: 15px;
    flex-grow: 1;
    color: #555;
    line-height: 1.5;
    padding: 0 15px; /* İçten boşluk ekledim */
}

.coupon-details {
    font-size: clamp(0.7rem, 1.8vw, 0.8rem); /* Dinamik font boyutu */
    color: #777;
    margin-bottom: 15px; /* Boşluk azaldı */
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 0 15px; /* İçten boşluk ekledim */
}

.coupon-details span {
    display: inline-flex;
    align-items: center; /* İkon ve metin dikeyde ortalı kalsın */
    white-space: nowrap;
    flex-shrink: 1; /* Elemanların küçülmesine izin ver */
    min-width: 0;   /* Küçülürken minimum genişlik limiti olmasın */
}

.coupon-details .expiry-date {
    /* Gerekirse özel stil, örn: flex-shrink: 0; */
}

.coupon-details .usage-count {
    /* Gerekirse özel stil, örn: text-align: right; flex-grow: 1; */
}

.coupon-details i {
    margin-right: 5px;
    color: #999; /* İkon rengi biraz daha soluk */
    flex-shrink: 0; /* İkonlar küçülmesin */
}

.btn-show-coupon, .btn-get-code {
    display: block; /* inline-block'dan block'a çevrilerek tam genişlikte olacak */
    background-color: var(--secondary-color); /* Eski yeşil renge geri döndü */
    color: #fff;
    padding: 12px 15px;
    text-decoration: none;
    border-radius: 0; /* Köşeler kaldırıldı */
    text-align: center;
    font-weight: 600; /* Biraz daha kalın */
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-top: auto; /* Butonu kartın en altına iter */
}

.btn-show-coupon:hover, .btn-get-code:hover {
    background-color: #2c7a2c; /* Eski hover rengi geri döndü */
    transform: scale(1.03); /* Hover'da hafif büyüme animasyonu */
}

/* Store Logos Section */
.logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around; /* veya space-between */
    align-items: center;
    gap: 20px;
}

.logo-grid img {
    max-height: 60px;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.logo-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Latest Coupons List */
.coupon-list-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.coupon-list-item:last-child {
    border-bottom: none;
}

.store-logo-small {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 15px;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    padding: 4px;
}

.coupon-info h4 {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 3px;
}

.coupon-info p {
    font-size: 0.9em;
    color: #555;
}

.coupon-list-item .btn-get-code {
    margin-left: auto;
    padding: 8px 12px;
    font-size: 0.9em;
}

/* Page Layout (Main Content & Sidebar) */
.page-layout {
    display: flex;
    gap: 30px; /* Ana içerik ve sidebar arası boşluk */
    flex-wrap: wrap; /* Ekran küçüldüğünde öğelerin aşağı kaymasını sağlar */
}

.main-content {
    flex: 1;
    min-width: 0; /* Flex öğelerin min-width'ini 0 yaparak taşmayı önler */
    max-width: 100%; /* Taşma olmaması için */
}

.sidebar {
    width: 320px; /* Sabit genişlik */
    flex-shrink: 0; /* Sidebar'ın küçülmesini engelle */
    background-color: var(--card-background-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    align-self: flex-start; /* Sidebar'ın yukarıda başlamasını sağlar */
}

/* Sidebar Widgets */
.widget {
    margin-bottom: 30px;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

.widget-title i {
    margin-right: 8px;
}

/* Search Widget */
.search-widget form {
    display: flex;
}

.search-widget input[type="text"] {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 0.95em;
}

.search-widget button {
    padding: 10px 15px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 0.95em;
}

.search-widget button:hover {
    background-color: #2547a7; /* var(--primary-color-dark) */
}

/* Sidebar içindeki arama alanı için özel mobil düzenlemeleri */
@media (max-width: 1100px) {
    .search-widget input[type="text"] {
        padding: 8px;
        font-size: 0.9em;
        height: 36px;
    }
    
    .search-widget button {
        padding: 8px 10px;
        font-size: 0.9em;
        height: 36px;
    }
}

@media (max-width: 768px) {
    .sidebar .search-widget input[type="text"] {
        padding: 6px 8px;
        font-size: 0.85em;
        height: 34px;
    }
    
    .sidebar .search-widget button {
        padding: 6px 8px;
        font-size: 0.85em;
        height: 34px;
    }
}

/* Info Widget */
.info-widget p {
    font-size: 0.9em;
    line-height: 1.7;
    margin-bottom: 10px;
}

.info-widget .read-more {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
}

.info-widget .read-more:hover {
    text-decoration: underline;
}

/* Categories Widget - Bu sınıf artık popular-coupons-widget oldu, stilleri ona göre ayarlayalım */
.popular-coupons-widget ul { /* .categories-widget ul idi */
    list-style: none;
}

.popular-coupons-widget ul li { /* .categories-widget ul li idi */
    margin-bottom: 10px; /* Biraz boşluk arttırıldı */
}

.popular-coupons-widget ul li a { /* .categories-widget ul li a idi */
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.95em;
    transition: color 0.2s ease;
    display: block; /* Daha iyi tıklama alanı için */
}

.popular-coupons-widget ul li a:hover {
    color: var(--primary-color);
}

/* .categories-widget ul li a::before seçicisini kaldırıyoruz veya yorum satırına alıyoruz
.popular-coupons-widget ul li a::before {
    content: "\f0da"; // FontAwesome Angle Right
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 8px;
    color: var(--accent-color);
}
*/

.popular-coupons-widget ul li a.all-stores-link strong {
    color: var(--secondary-color);
}

.popular-coupons-widget ul li a.all-stores-link:hover strong {
    color: var(--primary-color);
}

/* Product Grid & Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Her satırda 4 kart */
    gap: 20px;
}

.product-card {
    background-color: var(--card-background-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-image-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding-top: 45%; /* 4:3 aspect ratio (height/width * 100) - VEYA istediğiniz bir oran */
    background-color: #f0f0f0; /* Resim yüklenene kadar gösterilecek arka plan */
}

.product-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Konteynerin yüksekliğine göre ayarlanacak */
    object-fit: cover;
    border-radius: 6px 6px 0 0;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image-container img {
    transform: scale(1.05);
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent-color);
    color: var(--text-color); /* veya #fff */
    padding: 5px 10px;
    font-size: 0.8em;
    font-weight: 600;
    border-radius: 4px;
    z-index: 1;
}

.product-info {
    padding: 15px;
    text-align: left;
    flex-grow: 1; /* Kartın alt kısmını doldurur */
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
    line-height: 1.3;
}

.product-store {
    font-size: 0.8em;
    color: #777;
    margin-bottom: 12px;
}

.product-price {
    margin-bottom: 15px;
    margin-top: auto;
    white-space: nowrap; /* Fiyatların alt satıra kaymasını önler */
    display: flex; /* Fiyatları daha iyi hizalamak için */
    align-items: center; /* Dikey olarak ortala */
    flex-wrap: nowrap; /* Sarma olmayacak */
}

.original-price {
    font-size: 0.85em;
    color: #999;
    text-decoration: line-through;
    margin-right: 8px;
    flex-shrink: 0; /* Küçülmesini önle */
}

.current-price {
    font-size: 1.25em;
    font-weight: 700;
    color: var(--primary-color);
    flex-shrink: 0; /* Küçülmesini önle */
}

.btn-view-deal {
    display: block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 15px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-top: 10px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.btn-view-deal:hover {
    background-color: #2547a7;
    transform: scale(1.03);
}

.btn-view-deal:active {
    transform: scale(0.98);
}

/* Responsive Adjustments (Basic) */
@media (min-width: 1201px) {
    .coupon-grid {
        grid-template-columns: repeat(4, 1fr); /* Büyük ekranlarda 4 kart yan yana */
    }
}

@media (max-width: 1200px) {
    .coupon-grid {
        grid-template-columns: repeat(3, 1fr); /* Tablet ve küçük laptop: 3 kart */
    }
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .coupon-grid {
        grid-template-columns: repeat(2, 1fr); /* Büyük tablet: 2 kart */
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .coupon-grid {
        grid-template-columns: 1fr; /* Mobil: Tek sütun */
        gap: 15px; /* Kartlar arası boşluğu azalt */
    }
    .product-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Mobil için kupon kartı iyileştirmeleri */
    .coupon-card {
        width: 100%;
        margin: 0 auto;
    }
    
    .coupon-card .store-logo {
        width: 45px;
        height: 45px;
    }
    
    .coupon-card h3 {
        font-size: 1.05em;
        line-height: 1.25;
    }
    
    /* Kupon kodunu göster butonunu daha belirgin yap */
    .btn-show-coupon, .btn-get-code {
        padding: 10px;
        font-size: 0.9em;
    }
}

@media (max-width: 768px) {
    .container {
        width: 90%; /* Mobil için container genişliği */
    }

    header {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    header .logo {
        float: none; /* float özelliğini kaldır */
        display: block; /* Blok element yap */
        text-align: center; /* İçindeki metni ortala */
        margin: 0 auto 20px auto; /* Üst-alt 0, sağ-sol auto ile ortala, alta 20px boşluk */
        font-size: 22px;
    }

    header nav {
        float: none; /* float özelliğini kaldır */
        display: block; /* Blok element yap */
        width: 100%;    /* Tam genişlik almasını sağla */
        text-align: center; /* İçindeki inline-block ul elemanını ortala */
        margin-top: 0;
    }

    header nav ul {
        display: inline-block; /* Nav içindeki text-align:center ile ortalanabilmesi için */
        list-style: none;
        padding: 0;     /* UL padding'ini sıfırla */
        margin: 0;      /* UL margin'ini sıfırla */
    }

    header nav ul li {
        display: block;   /* Liste elemanlarını alt alta sırala */
        padding: 0;       /* ÖNEMLİ: Masaüstü kuralından gelen padding'i sıfırla */
        margin: 0 0 10px 0; /* Sadece alt boşluk ver, sağ-sol margin olmasın */
    }

    header nav ul li:first-child { /* Mobil menüde ilk sıradaki elemanı (Ana Sayfa) gizle */
        display: none;
    }
    
    /* Mobil menüde "Kategoriler" menüsünü gizle */
    header nav ul li:nth-child(5) {
        display: none;
    }

    header nav ul li:last-child {
        margin-bottom: 0;
    }

    header nav ul li a {
        display: block;   /* Linkin tıklama alanını genişlet */
        padding: 10px 15px; /* Link içine dikey ve yatay padding */
        font-size: 16px;  /* Mobil menü için okunabilir font boyutu */
        text-decoration: none;
        /* color: var(--header-text-color); /* Gerekirse renk belirtilebilir */
        /* background-color: rgba(var(--primary-color-rgb), 0.05); /* Hafif arka plan */
        /* border-radius: 4px; */
    }

    header .search-bar { /* Eğer varsa arama çubuğu için de ayarlar */
        float: none;
        display: block; /* Blok element yap */
        width: 90%; /* Genişliğini ayarla */
        margin: 15px auto 0 auto; /* Ortala ve üst boşluk ver */
        text-align: center;
    }

    header .search-bar input[type="text"] {
        width: 100%; /* Kapsayıcısına göre tam genişlik */
        /* padding, border vs. zaten genel kurallardan gelecektir */
    }

    #hero h1 {
        font-size: 2em;
    }

    #hero p {
        font-size: 1em;
    }

    /* Mobil görünümde her satırda 1 kart olacak şekilde değiştirildi */
    .coupon-grid, .product-grid {
        grid-template-columns: 1fr; /* Mobil: Tek satırda 1 kart */
        gap: 15px; /* Kartlar arası boşluğu azalt */
    }

    .page-layout {
        flex-direction: column;
    }

    .main-content,
    .sidebar {
        width: 100%; /* Küçük ekranlarda tam genişlikte göster */
        max-width: 100%; /* Küçük ekranlarda tam genişlikte göster */
        min-width: 0; /* Küçük ekranlarda min-width sıfırla */
    }

    .sidebar {
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    header .search-bar input[type="text"] {
        min-width: auto;
        width: calc(100% - 80px); /* Buton genişliğine göre ayar */
    }

    .coupon-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        font-size: clamp(0.65rem, 2vw, 0.75rem); /* Mobil için de clamp, ya da sabit 0.7rem */
    }
    
    /* Mobil görünümde kupon kartlarının genişliğini düzenle */
    .coupon-card {
        max-width: 100%;
    }
    
    /* Logo boyutunu sabit yap */
    .coupon-card-header {
        padding: 12px 12px 0 12px;
    }
    
    /* Kartın içindeki boşlukları küçült */
    .coupon-description {
        padding: 0 12px;
        margin-bottom: 10px;
        font-size: 0.85em;
    }
    
    .coupon-details {
        padding: 0 12px;
        margin-bottom: 10px;
    }
    
    /* Özellikle trendyol ve hepsiburada logolarının düzgün görünmesi için */
    img[src*="trendyol"], img[src*="hepsiburada"] {
        object-fit: contain;
    }
}

/* Mobil cihazlar için kupon kartı ve buton iyileştirmeleri */
@media (max-width: 380px) {
    .coupon-card {
        border-radius: 6px;
    }
    
    .coupon-card .store-logo {
        width: 40px;
        height: 40px;
    }
    
    .coupon-card h3 {
        font-size: 0.95em;
        line-height: 1.2;
    }
    
    .coupon-description {
        font-size: 0.8em;
        line-height: 1.4;
    }
    
    .coupon-details span {
        font-size: 0.7em;
    }
    
    .btn-show-coupon, .btn-get-code {
        padding: 8px;
        font-size: 0.85em;
    }
    
    /* Trendyol ve Hepsiburada gibi mağaza logolarını düzeltme */
    .coupon-card-header {
        align-items: flex-start;
    }
}

/* Popular Stores Widget */
.popular-stores-widget ul {
    list-style: none;
    margin-bottom: 15px;
}

.popular-stores-widget ul li {
    margin-bottom: 8px;
}

.popular-stores-widget ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.95em;
    transition: color 0.2s ease;
    display: block;
}

.popular-stores-widget ul li a:hover {
    color: var(--primary-color);
}

.view-all-link {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
}

.view-all-link:hover {
    text-decoration: underline;
}

.view-all-link i {
    margin-left: 5px;
}

/* Text Align & Margin Utilities */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

/* Button for View All */
.btn-view-all {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-view-all:hover {
    background-color: #2547a7; /* var(--primary-color-dark) */
}

.btn-view-all i {
    margin-left: 8px;
}

/* Tag Cloud Widget (Placeholder) */
.tag-cloud-widget .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center; /* Dikeyde ortalamak için */
}

.tag-cloud-widget .tag-list a {
    text-decoration: none;
    color: var(--primary-color);
    background-color: #e9ecef; /* Açık gri arka plan */
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9em; /* Temel boyut, JavaScript ile değişebilir */
    transition: background-color 0.2s ease, color 0.2s ease;
}

.tag-cloud-widget .tag-list a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Info Bar on Archive Pages */
.info-bar {
    background-color: #e9ecef;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 25px;
    font-size: 0.95em;
}

/* Pagination */
.pagination a {
    color: var(--primary-color);
    padding: 8px 12px;
    text-decoration: none;
    transition: background-color .3s;
    border: 1px solid #ddd;
    margin: 0 2px;
    border-radius: 4px;
}

.pagination a.active {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.pagination a:hover:not(.active) {
    background-color: #f0f0f0;
}

/* Coupon Detail Page Specific Styles */
#coupon-detail-page .content-section h2 { /* content-section içindeki h2'ler için genel stil */
    font-size: 1.6em; /* Kategori detay ile aynı boyutta */
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block; 
}

#coupon-detail-page .content-section h2 i {
    margin-right: 10px;
}

.coupon-detail-content {
    padding-bottom: 20px;
    margin-bottom: 30px; /* Altındaki bölümle arayı aç */
    border-bottom: 1px solid #eee;
}

.coupon-detail-header {
    display: flex;
    align-items: flex-start; /* Logo ve başlık alanını üste hizala */
    margin-bottom: 25px; /* Biraz daha boşluk */
}

.coupon-store-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-right: 25px; /* Boşluk artırıldı */
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 8px;
    background-color: #fff;
    flex-shrink: 0; /* Logonun küçülmesini engelle */
}

.coupon-title-area h1 {
    font-size: 2em; /* Standart başlık boyutu */
    color: var(--primary-color);
    margin-bottom: 8px; /* Mağaza ismiyle arayı ayarla */
    line-height: 1.3;
}

.store-name-detail {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 15px; /* Açıklama ile arayı aç */
}

.store-name-detail a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.store-name-detail a:hover {
    text-decoration: underline;
}

.coupon-main-info {
    margin-bottom: 25px; /* Etiketlerle arasını aç */
}

.coupon-full-description {
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-color); /* Ana metin rengi */
}

.coupon-meta {
    margin-bottom: 25px;
    font-size: 0.95em; /* Biraz büyütüldü */
    color: var(--text-color);
    display: flex; /* Yan yana gelmeleri için */
    flex-wrap: wrap; /* Gerekirse alt satıra geçsin */
    gap: 15px; /* Öğeler arası boşluk */
}

.coupon-meta .meta-item {
    display: inline-flex; /* İkon ve metni hizalamak için */
    align-items: center;
    margin-right: 0; /* Gap ile yönetiliyor */
    margin-bottom: 0; /* Gap ile yönetiliyor */
    background-color: #f8f9fa; /* Hafif arka plan */
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #e9ecef;
}

.coupon-meta .meta-item i {
    margin-right: 8px; /* İkon ve metin arası */
    color: var(--secondary-color);
    font-size: 1.1em; /* İkonları biraz büyüt */
}

.coupon-meta .meta-item strong {
    font-weight: 600; /* Kalınlığı ayarla */
}

.btn-reveal-coupon {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 14px 30px; /* Biraz daha büyük buton */
    font-size: 1.15em; /* Yazı boyutu büyütüldü */
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 6px; /* Kenar yuvarlaklığı güncellendi */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.btn-reveal-coupon:hover {
    background-color: #2547a7; /* Koyu primary */
    transform: translateY(-2px);
}

.btn-reveal-coupon i {
    margin-right: 10px; /* İkon ve yazı arası */
}

.coupon-tags-section {
    margin-top: 25px; /* Üstteki butonla arasını aç */
    margin-bottom: 25px; /* Alttaki bölümle arasını aç */
    padding-top: 15px;
    border-top: 1px dashed #ccc; /* Daha belirgin çizgi */
}

.coupon-tags-section strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1em;
    color: var(--text-color);
}

.coupon-tags-section .tag-link {
    display: inline-block;
    background-color: #e9ecef; /* Daha açık arka plan */
    border-radius: 15px; /* Daha yuvarlak */
    padding: 6px 12px; /* Padding ayarlandı */
    margin: 0 5px 5px 0; /* Boşluklar ayarlandı */
    font-size: 0.9em; /* Boyut ayarlandı */
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #dee2e6;
}

.coupon-tags-section .tag-link:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 'How to Use' ve Diğer Benzer Bölümler için Genel Stil */
#how-to-use-coupon, #other-store-coupons, #related-tag-coupons {
    margin-bottom: 30px;
}

#how-to-use-coupon p,
#how-to-use-coupon ol li {
    font-size: 0.95em;
    line-height: 1.7;
    color: var(--text-color);
}

#how-to-use-coupon ol {
    margin-left: 25px; /* Liste içeriği için boşluk */
    margin-bottom: 20px;
    padding-left: 0; /* Tarayıcı varsayılanını sıfırla */
}
#how-to-use-coupon ol li {
    margin-bottom: 10px; /* Liste elemanları arası boşluk */
}

/* Compact Grid Kupon Kartları için ek iyileştirmeler */
.compact-grid .coupon-card {
    padding: 15px;
    display: flex; /* İçeriği daha iyi hizalamak için */
    flex-direction: column;
    justify-content: space-between; /* Başlık ve butonu ayır */
}

.compact-grid .coupon-card-header {
    margin-bottom: 10px; /* Başlık ve buton arası */
}

.compact-grid .coupon-card-header h3 {
    font-size: 1em; 
    line-height: 1.3; /* Satır yüksekliği */
    font-weight: 600; /* Biraz daha belirgin */
    color: var(--text-color);
}
.compact-grid .coupon-card .store-logo {
    width: 40px;
    height: 40px;
    padding: 4px;
    margin-right: 12px; /* Logo ve başlık arası */
    flex-shrink: 0;
}

.compact-grid .coupon-card .btn-show-coupon {
    font-size: 0.9em;
    padding: 8px 12px;
    width: 100%; /* Buton kartı doldursun */
    margin-top: 10px; /* Başlıkla arasında boşluk */
}

/* Modal Styles */
.modal {
    display: none; /* Başlangıçta gizli */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    text-align: center;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    transition: color 0.2s ease;
}

.close-button:hover,
.close-button:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

.modal-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center; /* İçeriği ortala */
    flex-direction: column; /* Dikey hizala */
}

.modal-store-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px; /* Başlıkla arasında boşluk */
}

.modal-header h3 {
    font-size: 1.5em;
    color: var(--primary-color);
    margin: 0;
}

#modalBody {
    margin-bottom: 25px;
}

#modalBody p {
    font-size: 1em;
    margin-bottom: 15px;
}

.coupon-code-display {
    background-color: #f0f8ff; /* Açık mavi */
    border: 2px dashed var(--primary-color);
    padding: 15px;
    font-size: 1.6em;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 20px;
    border-radius: 5px;
    cursor: text;
}

.btn-modal-action {
    display: inline-block;
    background-color: var(--secondary-color);
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1em;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-modal-action:hover {
    background-color: #2c7a2c; /* Koyu secondary */
}

.copy-feedback {
    font-size: 0.9em;
    color: var(--secondary-color);
    margin-top: 10px;
    height: 1em; /* Boşluk kaplaması için */
}

.modal-footer {
    font-size: 0.85em;
    color: #777;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.modal-footer small {
    display: block;
    margin-top: 5px;
}

/* Mağaza Detay Sayfası Özel Stilleri */
.store-header-info {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 25px;
    border-radius: 10px;
    background-color: #f8f9fa;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--primary-color);
}

.store-header-info::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 100%;
    background: linear-gradient(to left, rgba(var(--primary-color-rgb), 0.05), transparent);
    z-index: 1;
    pointer-events: none;
}

.store-page-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
    margin-right: 30px;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 10px;
    background-color: #fff;
    flex-shrink: 0; /* Logo küçülmesin */
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.store-header-info:hover .store-page-logo {
    transform: scale(1.05);
}

.store-title-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.store-title-area h1 {
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 12px;
    position: relative;
    font-weight: 600;
    line-height: 1.2;
}

.store-website-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-color);
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    max-width: 200px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    border: none;
}

.store-website-link:hover {
    background-color: #2c7a2c;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.15);
}

.store-website-link i {
    margin-right: 8px;
    font-size: 1.1em;
}

.store-meta-info {
    display: flex;
    gap: 15px;
    margin-top: 5px;
    color: #666;
    font-size: 0.9em;
}

.store-meta-info span {
    display: flex;
    align-items: center;
}

.store-meta-info i {
    margin-right: 5px;
    color: var(--primary-color);
}

/* Mağaza Detay Responsif Düzenlemeler */
@media (max-width: 768px) {
    .store-header-info {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .store-page-logo {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .store-title-area {
        align-items: center;
    }
    
    .store-title-area h1 {
        font-size: 1.8em;
        text-align: center;
    }
    
    .store-website-link {
        margin-top: 5px;
    }
    
    .store-meta-info {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .store-header-info {
        padding: 15px;
    }
    
    .store-page-logo {
        width: 90px;
        height: 90px;
    }
    
    .store-title-area h1 {
        font-size: 1.5em;
    }
}

/* Süresi Dolmuş Kupon Kartları */
.expired-grid .coupon-card.expired-coupon-card {
    background-color: #f8f9fa; /* Daha soluk bir arka plan */
    opacity: 0.75;
    border-color: #e9ecef;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.expired-coupon-card:hover {
    transform: none; /* Hover efekti olmasın */
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.expired-coupon-card .coupon-card-header h3 {
    color: #6c757d; /* Daha soluk başlık rengi */
}

.expired-coupon-card .coupon-description {
    color: #6c757d;
}

.expiry-date-expired {
    color: #dc3545; /* Kırmızımsı bir renk */
    font-weight: 600;
}

.coupon-status-expired {
    background-color: #6c757d;
    color: #fff;
    text-align: center;
    padding: 8px 10px;
    border-radius: 0 0 8px 8px; /* Kartın altına yapışık */
    font-weight: 600;
    font-size: 0.9em;
    margin: 15px -20px -20px -20px; /* Kartın padding'ini sıfırlar */
}

/* Mağaza Detay Sayfasındaki Ürün Kartları için Ek Stiller (Gerekirse) */
#store-products-section .product-card .product-store {
    /* Eğer mağaza ismini ürün kartında tekrar göstermek isterseniz 
       display: block; 
       margin-bottom: 8px; 
    */
    display: none; /* Genellikle mağaza sayfasında gereksiz */
}

/* Sayfalama için genel iyileştirmeler (varsa eksiklikler) */
.pagination {
    margin-top: 30px;
    text-align: center;
}

.pagination span {
    padding: 8px 12px;
    margin: 0 2px;
    color: #6c757d;
}

/* Arama Sayfası Stillemesi */
.search-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.search-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.search-header h1 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.8em;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    font-weight: 600;
}

.search-header h1 i {
    margin-right: 10px;
    color: var(--primary-color);
}

.search-page-form {
    margin-top: 20px;
}

.search-input-container {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.search-page-form input[type="text"] {
    flex: 1;
    padding: 15px 20px;
    border: none;
    font-size: 1.1em;
    outline: none;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.search-page-form .search-btn {
    padding: 15px 25px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.search-page-form .search-btn:hover {
    background-color: var(--secondary-color);
}

.search-page-form .search-btn i {
    margin-right: 8px;
}

/* Bilgi Çubuğu Stillemesi */
.info-bar {
    background-color: #f0f5ff;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.info-bar p {
    margin: 0;
    display: flex;
    align-items: center;
}

.info-bar p i {
    margin-right: 10px;
    color: var(--primary-color);
}

.result-count {
    display: flex;
    align-items: center;
}

.result-count i {
    margin-right: 10px;
    color: var(--primary-color);
}

.result-text {
    font-weight: 500;
}

.result-type-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.count-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85em;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}

.count-badge i {
    margin-right: 5px;
}

.count-coupon {
    background-color: #e3f2fd;
    color: #1565c0;
}

.count-product {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.count-store {
    background-color: #fff3e0;
    color: #e65100;
}

/* Sonuç Başlıkları Stillemesi */
.section-header {
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.section-header h2 {
    color: var(--text-color);
    font-size: 1.5em;
    margin: 0;
    display: flex;
    align-items: center;
}

.section-header h2 i {
    margin-right: 10px;
    color: var(--primary-color);
}

/* Sonuç Bölümü Ayarları */
.result-section {
    margin-bottom: 35px;
    position: relative;
    border-radius: 10px;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.result-section:last-child {
    margin-bottom: 0;
}

.search-results-container {
    margin-bottom: 25px;
}

/* Daha Fazla Göster Butonları */
.view-more-container {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.btn-load-more {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-load-more:hover {
    background-color: #e0e0e0;
}

.btn-load-more:disabled {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.65;
}

.btn-load-more .fas {
    margin-right: 8px;
}

/* Yükleniyor göstergesi için (isteğe bağlı) */
.loading-spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: text-bottom;
    border: .2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
    margin-left: 5px;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

/* Sonuç Bulunamadı Stillemesi */
.no-results {
    padding: 50px 20px;
    text-align: center;
    background-color: #fff;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.no-results-content {
    max-width: 500px;
    margin: 0 auto;
}

.no-results-content i {
    color: #ddd;
    margin-bottom: 20px;
}

.no-results-content h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.5em;
}

.no-results-content p {
    color: #777;
}

/* Tablet ve Mobil İçin Düzenlemeler */
@media (max-width: 768px) {
    .info-bar {
        flex-direction: column;
    }
    
    .result-count {
        margin-bottom: 10px;
    }
    
    .result-type-counts {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .search-input-container {
        flex-direction: column;
    }
    
    .search-page-form input[type="text"] {
        border-radius: 8px 8px 0 0;
    }
    
    .search-page-form .search-btn {
        border-radius: 0 0 8px 8px;
        width: 100%;
    }
    
    .count-badge {
        padding: 4px 8px;
        font-size: 0.8em;
    }
}

/* Sayfalama İyileştirmeleri */
.pagination {
    margin-top: 30px;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 14px;
    text-decoration: none;
    color: var(--text-color);
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    margin: 0 2px;
    transition: all 0.3s ease;
}

.pagination a.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination a:hover:not(.active) {
    background-color: #f5f5f5;
}

/* Tüm Mağazalar Sayfası Stilleri */
.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.store-card-detailed {
    background-color: var(--card-background-color);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-card-detailed:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.store-card-detailed .store-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    text-decoration: none;
    color: var(--text-color);
    height: 100%;
}

.store-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 120px;
    height: 120px;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    background-color: #fff;
}

.store-card-detailed .store-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.store-card-detailed .store-name {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
    color: var(--primary-color);
}

.store-description-short {
    font-size: 0.85em;
    line-height: 1.4;
    color: #666;
    text-align: center;
    margin-bottom: 15px;
    padding: 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.store-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: auto;
}

.coupon-count, .product-count {
    display: inline-flex;
    align-items: center;
    font-size: 0.85em;
    padding: 5px 10px;
    border-radius: 20px;
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
}

.coupon-count i, .product-count i {
    margin-right: 5px;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .stores-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 480px) {
    .stores-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .store-logo-container {
        width: 100px;
        height: 100px;
    }
    
    .store-stats {
        flex-direction: column;
    }
}

/* Kategoriler Sayfası Stilleri */
.categories-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 20px;
}

.category-card {
    background-color: var(--card-background-color);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    padding: 20px;
    transition: box-shadow 0.2s ease;
}

.category-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.category-header {
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.category-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--text-color);
}

.category-title a {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.category-title a:hover {
    color: var(--secondary-color);
}

.category-title i {
    margin-right: 10px;
    color: var(--primary-color);
}

.category-count, .subcategory-count {
    color: #777;
    font-size: 0.8em;
    font-weight: normal;
    margin-left: 5px;
}

.category-description {
    font-size: 0.95em;
    color: #666;
    line-height: 1.5;
    margin-top: 5px;
}

/* Kategori içerik düzeni */
.category-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.category-visual-content {
    flex: 1;
    min-width: 300px;
    max-width: 500px; /* Maksimum genişlik belirliyorum */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.content-subtitle {
    font-size: 1em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
    border-bottom: 1px dashed #eee;
    padding-bottom: 8px;
}

/* Popüler Mağaza Logoları */
.category-popular-stores {
    margin-bottom: 15px;
    max-width: 500px; /* Maksimum genişlik belirliyorum */
}

.category-store-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.store-logo-item {
    width: 60px;
    height: 60px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    padding: 5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-logo-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.store-logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Popüler Ürünler */
.category-products-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    max-width: 500px; /* Maksimum genişlik belirliyorum */
}

.product-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    display: block;
    text-decoration: none;
}

.product-preview-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    }

.product-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-discount-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: var(--accent-color);
    color: var(--text-color);
    font-size: 0.7em;
    padding: 2px 5px;
    border-radius: 4px;
    font-weight: 600;
}

.preview-price {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.8em;
    padding: 4px;
    text-align: center;
    font-weight: 600;
}

/* Popüler Kupon */
.category-coupon-preview {
    margin-bottom: 15px;
    max-width: 300px; /* Maksimum genişlik belirliyorum */
}

.preview-coupon-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
    width: 100%; /* Genişliği container'a göre ayarlıyorum */
    max-width: 300px; /* Maksimum genişlik belirliyorum */
}

.preview-coupon-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.preview-coupon-header {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.preview-store-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 10px;
    border: 1px solid #f5f5f5;
    border-radius: 5px;
    padding: 3px;
}

.preview-coupon-header h5 {
    font-size: 0.9em;
    margin: 0;
    line-height: 1.3;
    color: #333;
}

.btn-preview-coupon {
    display: block;
    padding: 8px;
    text-align: center;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 600;
    transition: background-color 0.2s ease;
    max-width: 300px; /* Maksimum genişlik belirliyorum */
}

.btn-preview-coupon:hover {
    background-color: var(--secondary-color);
}

/* Alt Kategoriler Düzenlemesi */
.subcategories-list {
    flex: 1;
    min-width: 250px;
}

.subcategories-list ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
}

.subcategories-list li {
    margin-bottom: 8px;
}

.subcategories-list a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 0.9em;
    padding: 5px 8px;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.subcategories-list a:hover {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
}

.subcategories-list i {
    margin-right: 6px;
    font-size: 0.8em;
    color: var(--primary-color);
}

/* Responsive Ayarlar */
@media (max-width: 768px) {
    .category-content-wrapper {
        flex-direction: column;
    }
    
    .subcategories-list ul {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .store-logo-item {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 576px) {
    .category-products-preview,
    .category-store-logos {
        justify-content: center;
    }
    
    .subcategories-list ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stores-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .store-logo-container {
        width: 100px;
        height: 100px;
    }
    
    .store-stats {
        flex-direction: column;
    }
}

/* Info Article Stilleri */
.info-article {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.article-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.info-section {
    margin-bottom: 25px;
    padding-bottom: 15px;
}

.info-section h2, 
.info-section h3 {
    font-size: 1.3em;
    color: var(--text-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center; /* Başlığı ortala */
}

.info-section h2 i, 
.info-section h3 i {
    margin-right: 10px;
    color: var(--primary-color);
}

.info-section p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.info-section ul.info-list {
    list-style-type: none;
    padding-left: 5px;
    margin-bottom: 15px;
}

.info-section ul.info-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.info-section ul.info-list li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 5px;
}

/* Steps Container Stilleri */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 25px 0;
}

.step {
    display: flex;
    gap: 15px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    align-items: baseline; /* Dikey hizalamayı taban çizgisine göre yap */
}

.step-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    border-radius: 50%;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    font-size: 1.1em;
    margin-bottom: 8px;
    color: var(--text-color);
}

.step-content p {
    margin-bottom: 0;
    color: #555;
}

/* Sonuç bölümü */
.conclusion {
    background-color: #f0f5ff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.conclusion p {
    margin-bottom: 10px;
}

.conclusion p:last-child {
    margin-bottom: 0;
}

/* Bilgi kartları stil */
.info-card-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 25px 0;
}

.info-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
}

.card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.5em;
}

.info-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.2em;
}

.info-card p {
    font-size: 0.95em;
    color: #666;
}

/* FAQ Bölümü Stilleri */
.faq-container {
    margin: 20px 0;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 15px;
    background-color: #f9f9f9;
    cursor: pointer;
}

.faq-question h4 {
    margin: 0;
    font-size: 1.1em;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.faq-question h4 i {
    margin-right: 10px;
    color: var(--primary-color);
}

.faq-answer {
    padding: 15px;
    background-color: white;
    border-top: 1px solid #eee;
}

.faq-answer p {
    margin-bottom: 10px;
}

.faq-answer ul {
    padding-left: 20px;
    margin-bottom: 10px;
}

.faq-answer ul li {
    margin-bottom: 5px;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .info-card-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .step {
        flex-direction: column;
    }
    
    .step-number {
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .info-card-container {
        grid-template-columns: 1fr;
    }
}

/* Faydalar bölümü */
.benefits-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 25px 0;
}

.benefit {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.benefit i {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.benefit h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: var(--text-color);
}

.benefit p {
    font-size: 0.9em;
    color: #666;
}

/* Call to Action Bölümü */
.call-to-action {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #2547a7; /* Koyu mavi tonu */
}

.btn-secondary {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: rgba(var(--primary-color-rgb), 0.1);
}

.btn-primary i,
.btn-secondary i {
    margin-right: 8px;
}

/* Mobil uyumlu düzenlemeler */
@media (max-width: 992px) {
    .benefits-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .benefits-container {
        grid-template-columns: 1fr;
    }
    
    .call-to-action {
        flex-direction: column;
        align-items: center;
    }
}

/* İmaj Containeri */
.info-image {
    margin: 20px 0;
    text-align: center;
}

.info-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.image-caption {
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

/* Kategori Detay Sayfası - Alt Kategori Çipleri */
.subcategories-section {
    margin-bottom: 30px;
}

.subcategories-section h2 {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

.subcategory-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.subcategory-chip {
    display: inline-flex;
    align-items: center;
    background-color: #f0f0f0;
    color: var(--text-color);
    padding: 8px 15px;
    border-radius: 20px; /* Daha yuvarlak kenarlar */
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.2s ease-in-out;
    border: 1px solid #e0e0e0;
}

.subcategory-chip:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.subcategory-chip i {
    margin-right: 8px;
    font-size: 0.9em;
}

.subcategory-chip .chip-count {
    font-size: 0.85em;
    margin-left: 5px;
    background-color: rgba(0,0,0,0.1);
    padding: 2px 6px;
    border-radius: 10px;
}

.subcategory-chip:hover .chip-count {
    background-color: rgba(255,255,255,0.2);
    color: #fff;
}

/* Kategori Detay Sayfası - Genel Bölüm Başlıkları (Kuponlar, Ürünler) */
.category-section {
    margin-bottom: 30px;
}

.category-section h2 {
    font-size: 1.6em; /* Biraz daha büyük */
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block; /* Alt çizginin sadece başlık altında olmasını sağlar */
}

/* Genel Listeleme Sayfası Modalı İyileştirmeleri */
#listModalBody .modal-coupon-description {
    font-size: 1.05em; /* Açıklama yazı boyutu biraz büyütüldü */
    color: #333; /* Açıklama rengi koyulaştırıldı */
    margin-bottom: 15px;
    line-height: 1.6;
    text-align: left; /* Açıklama sola yaslı */
}

#listModalBody .coupon-code-placeholder {
    margin-top: 15px;
    margin-bottom: 10px;
}

#listModalBody .modal-info-label {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 5px;
    text-align: center;
}

#listModalBody .coupon-code-display {
    /* Mevcut .coupon-code-display stilleri zaten var, gerekirse burada override edilebilir */
    /* Örneğin, modal içindeyse font boyutu biraz daha küçük olabilir */
    font-size: 1.4em; /* Örnek */
    padding: 12px;
}

#listModalBody .modal-info-text-below-code {
    font-size: 0.8em; /* İstenen küçültme */
    color: #666;
    margin-top: 8px;
    text-align: center;
    line-height: 1.4;
}

#listModalActions .btn-modal-action {
    /* Butonun yazı boyutunu gerekirse buradan ayarlayabilirsiniz */
    font-size: 1em; /* Mevcut buton yazı boyutuna göre ayarlanır */
}

#listModal .modal-footer p {
    font-size: 0.8em; /* Footer metni biraz küçültüldü */
    margin-top: 10px;
}

/* ========================================= */
/* Popüler Etiketler ve Öneriler Stil Düzeltmeleri (kupon-detay.php) */
/* ========================================= */

.tag-group {
    margin-bottom: 25px; /* Gruplar arası boşluk */
}

.tag-group h3 {
    font-size: 1.2em; /* Biraz küçültüldü */
    color: var(--text-color);
    margin-bottom: 12px; /* Başlık ve etiket listesi arası boşluk */
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.tag-group h3 i {
    margin-right: 8px;
    color: var(--primary-color);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Etiketler arası hem yatay hem dikey boşluk */
}

.tag-item {
    display: inline-flex; /* İkon ve metni yan yana getirip hizalamak için */
    align-items: center;  /* Dikeyde ortala */
    background-color: #f0f0f0;
    color: #333;
    padding: 6px 12px;
    border-radius: 15px; /* Daha yuvarlak kenarlar */
    font-size: 0.85em;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
}

.tag-item:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.tag-item i {
    margin-right: 6px; /* İkon ve metin arası boşluk */
    font-size: 0.9em; /* İkon boyutunu metne göre ayarla */
}

/* Mevcut .coupon-tags-section .tag-link stillerini de gözden geçirebiliriz,
   ancak yukarıdakiler daha genel .tag-item için olacak.
   Eğer .coupon-tags-section içindeki tag-link'ler farklı görünmeli ise
   o zaman oradaki kuralları ayrıca düzenlemek gerekebilir.
   Şimdilik genel .tag-item kuralları ile deneyelim. */

/* Dinamik Font Boyutu ve Sığdırma (clamp) */
/* Örnek, bu kupon-detay için değil, genel bir not */
/*
.dynamic-text {
    font-size: clamp(1rem, 2.5vw, 1.5rem); 
}
*/

#listModal .modal-footer p {
    font-size: 0.8em;
} 

/* ========================================= */
/* 404 Hata Sayfası Stilleri */
/* ========================================= */

.error-page {
    text-align: center;
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.error-header {
    margin-bottom: 40px;
}

.error-header h1 {
    font-size: 6rem;
    color: var(--primary-color);
    margin: 0;
    line-height: 1;
}

.error-header h2 {
    font-size: 2rem;
    margin: 10px 0 20px;
    color: var(--text-color);
}

.error-header p {
    font-size: 1.1rem;
    color: #555;
}

.error-solutions {
    margin-bottom: 40px;
}

.error-solutions h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.error-solutions ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.error-solutions ul li {
    margin: 5px;
}

.error-solutions ul li a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f0f0f0;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.error-solutions ul li a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.error-suggestions {
    margin-top: 40px;
}

.error-suggestions h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* 404 sayfasında kupon gridini ortalı göster */
.error-suggestions .coupon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .error-suggestions .coupon-grid {
        grid-template-columns: repeat(2, minmax(250px, 300px));
    }
}

@media (min-width: 992px) {
    .error-suggestions .coupon-grid {
        grid-template-columns: repeat(2, minmax(280px, 320px));
    }
}

/* Responsive Ayarlar */
@media (max-width: 768px) {
    .error-header h1 {
        font-size: 4rem;
    }
    
    .error-header h2 {
        font-size: 1.6rem;
    }
    
    .error-solutions ul {
        flex-direction: column;
        align-items: center;
    }
    
    .error-solutions ul li a {
        width: 100%;
        min-width: 200px;
    }
}

/* Sayfa Başlıkları */
.page-title {
    position: relative;
    margin-bottom: 25px;
    padding-bottom: 15px;
    font-size: 2em;
    font-weight: 600;
    color: var(--primary-color);
    display: inline-block;
}

.page-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

.page-title i {
    margin-right: 10px;
    color: var(--primary-color);
}

@media (max-width: 1100px) and (min-width: 769px) {
    .sidebar {
        width: 192px; /* 320px'in %40 daralması (320px - 320px * 0.4 = 192px) */
    }
}

/* Buton stilleri için mobil iyileştirmeler */
@media (max-width: 576px) {
    .btn-show-coupon, .btn-get-code {
        border-radius: 0 0 8px 8px; /* Alt köşeleri yuvarla */
        text-align: center;
        font-weight: 600;
        line-height: 1.2;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* İndirim kartları için ayarlar */
    .product-card .btn-view-deal {
        padding: 10px;
        font-size: 0.9em;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Kupon detayları düzenlemesi */
    .coupon-details {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .coupon-details span {
        white-space: normal; /* Metin mobilde taşabilir */
        text-align: left;
    }
}

/* Çok küçük mobil ekranlar (iphone SE gibi) için ek düzenlemeler */
@media (max-width: 350px) {
    .coupon-card-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .coupon-card .store-logo {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .coupon-card h3 {
        text-align: center;
    }
    
    .coupon-description {
        text-align: center;
    }
    
    .btn-show-coupon, .btn-get-code {
        font-size: 0.8em;
    }
}

/* Mobil cihazlar için logo ve resim iyileştirmeleri */
@media (max-width: 576px) {
    /* Store logolar için iyileştirmeler */
    .coupon-card .store-logo {
        object-fit: contain;
        background-color: white;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Ürün görsellerini merkezi ve sabit boyutta göster */
    .product-image-container {
        height: 0;
        padding-top: 75%; /* 4:3 oran için */
    }
    
    /* Ürün adları için iki satıra sığdır */
    .product-title {
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        max-height: 2.6em;
    }
}

/* Görsel optimizasyonları */
@media (max-width: 480px) {
    /* Kupon kartlarında logo ve metin düzeni */
    .coupon-card-header {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 10px;
    }
    
    /* Doğru boyutta store logo için */
    .store-logo {
        padding: 3px;
    }
}

/* Özel logo düzeltmeleri */
@media (max-width: 576px) {
    /* TrendyOL ve Hepsiburada gibi daha geniş logoları görüntü boyutunu sınırlandırarak göster */
    .coupon-card .store-logo[src*="trendyol"],
    .coupon-card .store-logo[src*="hepsiburada"] {
        object-fit: contain;
        max-width: 100%;
        background-color: white;
    }
    
    /* Geniş logoları içeren kart başlıkları için düzenlemeler */
    .coupon-card-header {
        overflow: visible;
    }
    
    /* Küçük bir düzeltmeyi uygula - Kupon kartı başlıklarının üstüne boşluk ekle */
    .coupon-card {
        padding-top: 5px;
    }
}

/* PRD.md dosyasına eklenecek: Mobil UI iyileştirmeleri tamamlandı */

/* Sidebar'da arama alanı yükseklik düzenleme */
@media (max-width: 768px) {
    .sidebar .widget.search-widget input[type="text"] {
        height: 34px;
        font-size: 0.85em;
        padding: 5px 8px;
    }
    
    .sidebar .widget.search-widget button {
        height: 34px;
        padding: 5px 8px;
        font-size: 0.85em;
    }
    
    .sidebar .widget.search-widget {
        margin-bottom: 20px;
    }
    
    .sidebar .widget-title {
        font-size: 1.1em;
        margin-bottom: 10px;
    }
}

/* İndirim Kodu Nedir? başlık ve arama alanı optimize */
@media (max-width: 768px) {
    .sidebar .widget.info-widget h3.widget-title,
    .sidebar .widget.search-widget h3.widget-title {
        font-size: 1em;
        padding-bottom: 6px;
    }
    
    .sidebar .widget.info-widget .read-more {
        font-size: 0.85em;
    }
    
    .sidebar .widget.info-widget p {
        font-size: 0.85em;
        line-height: 1.6;
        margin-bottom: 8px;
    }
    
    /* Arama alanı için ek düzenlemeler */
    .sidebar .search-widget form {
        height: 36px;
    }
}

/* Arama kutusu boyutlarını küçültme */
@media (max-width: 992px) {
    .sidebar .search-widget input[type="text"],
    .sidebar .search-widget button {
        box-sizing: border-box;
        height: 36px;
        line-height: 1;
    }
    
    .sidebar .search-widget input[type="text"] {
        width: calc(100% - 40px);
    }
    
    .sidebar .search-widget button {
        width: 40px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Sidebar arama alanını daha kompakt hale getirme */
@media (max-width: 576px) {
    .sidebar .widget.search-widget h3.widget-title {
        font-size: 0.95em;
        margin-bottom: 8px;
    }
    
    .sidebar .search-widget form {
        height: 32px;
    }
    
    .sidebar .search-widget input[type="text"],
    .sidebar .search-widget button {
        height: 32px;
        min-height: 32px;
    }
    
    .sidebar .search-widget input[type="text"] {
        font-size: 0.8em;
        padding: 4px 6px;
        background-color: #f9f9f9;
    }
    
    .sidebar .search-widget button {
        width: 32px;
    }
}

/* Sidebar üzerindeki arama kutusu için daha kompakt stil */
@media (max-width: 576px) {
    .sidebar .search-widget button span {
        display: none; /* "Ara" metnini mobilde gizle */
    }
    
    .sidebar .search-widget button:after {
        content: "\f002"; /* FontAwesome arama ikonu */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 0.9em;
    }
    
    .sidebar .search-widget {
        margin-bottom: 15px;
    }
    
    .sidebar .widget-title {
        font-size: 0.95em;
    }
}

/* Mobil görünümde kupon kartları için ek düzenlemeler */
@media (max-width: 768px) {
    .coupon-card {
        width: 100%;
        margin: 0 auto 15px;
        max-width: 450px; /* Daha geniş ekranlarda bile çok genişlememesi için */
    }
    
    .coupon-card-header {
        display: flex;
        align-items: center;
    }
    
    .coupon-card h3 {
        font-size: 1.1em;
        line-height: 1.4;
    }
    
    .coupon-description {
        font-size: 0.95em;
        line-height: 1.5;
    }
    
    /* Butonları daha belirgin yap */
    .btn-show-coupon, .btn-get-code {
        padding: 12px;
        font-size: 1em;
        font-weight: 600;
    }
    
    /* Son kuponu gör butonu merkezde olsun */
    .content-section .btn-view-all {
        display: block;
        max-width: 280px; 
        margin: 20px auto 10px;
        text-align: center;
    }
    
    /* Kenar boşluklarını düzenle */
    .coupon-grid {
        margin: 0 auto;
    }
}

/* Sosyal Medya Paylaşım Butonları */
.social-share-buttons {
    margin-top: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.share-label {
    font-size: 0.9em;
    color: #666;
    margin-right: 5px;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.share-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.facebook-share {
    background-color: #3b5998;
}

.twitter-share {
    background-color: #1DA1F2;
}

.whatsapp-share {
    background-color: #25D366;
}

.email-share {
    background-color: #7F7F7F;
}

/* Mağaza detay sayfasındaki paylaşım butonları için özel stil */
.store-share {
    margin-top: 15px;
}

.store-share .share-button {
    width: 36px;
    height: 36px;
    font-size: 0.85em;
}

/* Mobil görünüm için düzenlemeler */
@media (max-width: 768px) {
    .social-share-buttons {
        justify-content: center;
    }
    
    .store-share {
        margin-top: 15px;
    }
}