/* =============================================
   İNDİRİMLİ ÜRÜNLER MOBİL DÜZELTMELERİ
   ============================================= */

/* Desktop için düzeltme (1025px ve üzeri) */
@media only screen and (min-width: 1025px) {
    /* İndirimli ürünler container */
    .panel-body.TabContentDiv.dailyOffersDivs {
        display: grid !important;
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 10px !important;
        padding: 10px !important;
        background: transparent !important;
    }
    
    /* Her bir ürün kutusu */
    .dailyOffersDivs .col-md-2.col-xs-6 {
        width: 100% !important;
        padding: 0 !important;
        border: none !important;
        margin: 0 !important;
    }
    
    /* Ürün kutusu içeriği - İlan kutusu gibi */
    .dailyOffersDivs .productBox {
        background: #2d3043 !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 6px !important;
        padding: 0 !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        box-shadow: 0 5px 5px 0 rgba(33, 33, 33, 0.09) !important;
        transition: all 0.2s ease !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    /* Dark theme olmayan için */
    body:not(.dark-theme) .dailyOffersDivs .productBox {
        background: rgba(241, 241, 241, 0.32) !important;
        border: 1px solid #eaeaea !important;
    }
    
    /* Ürün resmi container */
    .dailyOffersDivs .productBox > a:first-child {
        display: block !important;
        width: 100% !important;
        height: 140px !important;
        overflow: hidden !important;
        position: relative !important;
    }
    
    /* Ürün resmi - İlan kutusu gibi */
    .dailyOffersDivs .productBox img {
        width: 100% !important;
        height: 140px !important;
        object-fit: cover !important;
        border-radius: 0 !important;
        border-top-left-radius: 6px !important;
        border-top-right-radius: 6px !important;
    }
    
    /* İndirim etiketi */
    .dailyOffersDivs .productBox span.productDiscount {
        position: absolute !important;
        top: 5px !important;
        right: 5px !important;
        width: 50px !important;
        padding: 8px 4px !important;
        font-size: 16px !important;
        line-height: 13px !important;
        z-index: 2 !important;
    }
    
    .dailyOffersDivs .productBox span.productDiscount small {
        font-size: 9px !important;
    }
    
    /* İçerik alanı */
    .dailyOffersDivs .productBox > div {
        padding: 10px !important;
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Ürün başlığı */
    .dailyOffersDivs .productBox span.productTitle {
        font-size: 12px !important;
        padding: 0 !important;
        margin-bottom: 5px !important;
        line-height: 1.2 !important;
        height: 29px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: normal !important;
        font-weight: 500 !important;
    }
    
    /* Fiyat alanı */
    .dailyOffersDivs span.newPrice {
        font-size: 15px !important;
        display: block !important;
        margin-top: auto !important;
        font-weight: 700 !important;
    }
    
    .dailyOffersDivs span.oldPrice {
        font-size: 11px !important;
        margin-top: 2px !important;
        display: block !important;
    }
    
    /* Hemen Al butonu */
    .dailyOffersDivs button.btn.btn-hemen-al {
        width: calc(100% - 20px) !important;
        margin: 0 10px 10px 10px !important;
        height: 32px !important;
        font-size: 12px !important;
        padding: 0 !important;
    }
    
    /* Hover efekti - İlan kutusu gibi */
    .dailyOffersDivs .productBox:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3) !important;
    }
    
    body:not(.dark-theme) .dailyOffersDivs .productBox:hover {
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15) !important;
    }
}

/* Mobil için grid düzeni */
@media only screen and (max-width: 767px) {
    /* İndirimli ürünler container */
    .panel-body.TabContentDiv.dailyOffersDivs {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 10px !important;
        background: transparent !important;
    }
    
    /* Her bir ürün kutusu */
    .dailyOffersDivs .col-md-2.col-xs-6 {
        width: 100% !important;
        padding: 0 !important;
        border: none !important;
        margin: 0 !important;
    }
    
    /* Ürün kutusu içeriği */
    .dailyOffersDivs .productBox {
        background: #2d3043 !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 8px !important;
        padding: 12px !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
    }
    
    /* Dark theme olmayan için */
    body:not(.dark-theme) .dailyOffersDivs .productBox {
        background: #ffffff !important;
        border: 1px solid #e5e5e5 !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* Ürün resmi */
    .dailyOffersDivs .productBox img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16/9 !important;
        object-fit: cover !important;
        border-radius: 6px !important;
    }
    
    /* İndirim etiketi */
    .dailyOffersDivs .productBox span.productDiscount {
        position: absolute !important;
        top: 5px !important;
        right: 5px !important;
        width: 55px !important;
        padding: 10px 5px !important;
        font-size: 18px !important;
        line-height: 14px !important;
    }
    
    .dailyOffersDivs .productBox span.productDiscount small {
        font-size: 10px !important;
    }
    
    /* Ürün başlığı */
    .dailyOffersDivs .productBox span.productTitle {
        font-size: 13px !important;
        padding: 8px 0 !important;
        line-height: 1.3 !important;
        height: 34px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: normal !important;
    }
    
    /* Fiyat alanı */
    .dailyOffersDivs span.newPrice {
        font-size: 18px !important;
        display: block !important;
        margin-top: 5px !important;
    }
    
    .dailyOffersDivs span.oldPrice {
        font-size: 12px !important;
        margin-top: 2px !important;
    }
    
    /* Hemen Al butonu */
    .dailyOffersDivs button.btn.btn-hemen-al {
        width: 100% !important;
        margin-top: 10px !important;
        height: 36px !important;
        font-size: 13px !important;
    }
    
    /* Hover efekti */
    .dailyOffersDivs .productBox:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4) !important;
    }
    
    body:not(.dark-theme) .dailyOffersDivs .productBox:hover {
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15) !important;
    }
}

/* Çok küçük ekranlar için (iPhone SE gibi) */
@media only screen and (max-width: 380px) {
    .dailyOffersDivs .productBox span.productTitle {
        font-size: 12px !important;
        height: 32px !important;
    }
    
    .dailyOffersDivs span.newPrice {
        font-size: 16px !important;
    }
    
    .dailyOffersDivs button.btn.btn-hemen-al {
        height: 34px !important;
        font-size: 12px !important;
    }
}

/* Tablet için (768px - 1024px) */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .panel-body.TabContentDiv.dailyOffersDivs {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px !important;
        padding: 15px !important;
    }
    
    .dailyOffersDivs .col-md-2.col-xs-6 {
        width: 100% !important;
        padding: 0 !important;
        border: none !important;
        margin: 0 !important;
    }
    
    .dailyOffersDivs .productBox {
        background: #2d3043 !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 8px !important;
        padding: 15px !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
    }
    
    body:not(.dark-theme) .dailyOffersDivs .productBox {
        background: #ffffff !important;
        border: 1px solid #e5e5e5 !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    }
}
