/* MODAL STİLLERİ - GÜNCELLENMİŞ */
.easybuy-subgroup-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.easybuy-subgroup-modal.show {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.easybuy-subgroup-modal-content {
    background: #1a1a1a;
    border-radius: 16px;
    width: 95%;
    max-width: 1400px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
}

.easybuy-subgroup-modal.show .easybuy-subgroup-modal-content {
    transform: translateY(0);
}

.easybuy-subgroup-modal-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #fff;
    padding: 25px 30px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid #444;
}

.easybuy-subgroup-modal-title {
    margin: 0;
    font-size: 1.6em;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.easybuy-subgroup-modal-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.easybuy-subgroup-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg) scale(1.1);
}

.easybuy-subgroup-modal-body {
    padding: 30px;
    background: #1a1a1a;
    color: #fff;
}

/* Modal içindeki ürün grid'i - KARE FORMAT */
.easybuy-subgroup-modal-body .easybuy-group-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* Modal içindeki ürün kartları - KARE FORMAT */
.easybuy-subgroup-modal-body .easybuy-group-product-card {
    background: linear-gradient(145deg, #2d2d2d, #252525);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #444;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    height: auto; /* Sabit yükseklik kaldırıldı */
    min-height: 480px; /* Minimum yükseklik */
}

.easybuy-subgroup-modal-body .easybuy-group-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.easybuy-subgroup-modal-body .easybuy-group-product-card:hover::before {
    transform: scaleX(1);
}

.easybuy-subgroup-modal-body .easybuy-group-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: #555;
}

.easybuy-subgroup-modal-body .easybuy-group-product-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.easybuy-subgroup-modal-body .easybuy-group-product-image {
    width: 100%;
    height: 160px; /* Daha küçük resim */
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 15px;
    background: #333;
    padding: 10px;
}

.easybuy-subgroup-modal-body .easybuy-group-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.easybuy-subgroup-modal-body .easybuy-group-product-name {
    color: #fff;
    font-size: 1.1em;
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
}

.easybuy-subgroup-modal-body .easybuy-group-product-price {
    color: #4CAF50;
    font-weight: bold;
    font-size: 1.3em;
    margin: 10px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.easybuy-subgroup-modal-body .custom-price {
    color: #4CAF50 !important;
}

/* MODAL İÇİ ADET KONTROLLERİ - GÖRÜNÜR OLMALI */
.easybuy-subgroup-modal-body .easybuy-group-quantity-controls {
    display: flex !important; /* Görünür yap */
    align-items: center;
    justify-content: center;
    background: #333;
    border-radius: 12px;
    padding: 8px;
    margin: 15px 0;
    border: 2px solid #444;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
    visibility: visible !important;
    opacity: 1 !important;
}

.easybuy-subgroup-modal-body .easybuy-group-qty-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    visibility: visible !important;
    opacity: 1 !important;
}

.easybuy-subgroup-modal-body .easybuy-group-qty-btn:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: scale(1.1);
}

.easybuy-subgroup-modal-body .easybuy-group-qty-input {
    background: #222;
    border: 2px solid #444;
    color: #fff;
    text-align: center;
    font-weight: bold;
    font-size: 1.2em;
    margin: 0 12px;
    padding: 8px;
    border-radius: 8px;
    min-width: 60px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.3);
    visibility: visible !important;
    opacity: 1 !important;
}

/* MODAL İÇİ BUTONLAR - GÖRÜNÜR OLMALI */
.easybuy-subgroup-modal-body .easybuy-group-add-cart-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 6px 15px rgba(39, 174, 96, 0.3);
    display: flex !important; /* Görünür yap */
    align-items: center;
    justify-content: center;
    gap: 8px;
    visibility: visible !important;
    opacity: 1 !important;
}

.easybuy-subgroup-modal-body .easybuy-group-add-cart-btn:hover {
    background: linear-gradient(135deg, #219653, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.4);
}

.easybuy-subgroup-modal-body .easybuy-view-product-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    margin-top: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    display: flex !important; /* Görünür yap */
    align-items: center;
    justify-content: center;
    gap: 8px;
    visibility: visible !important;
    opacity: 1 !important;
}

.easybuy-subgroup-modal-body .easybuy-view-product-btn:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(52, 152, 219, 0.4);
}

.easybuy-subgroup-modal-body .easybuy-option-label {
    color: #ccc;
    font-weight: 600;
}

.easybuy-subgroup-modal-body .easybuy-option-select,
.easybuy-subgroup-modal-body .easybuy-option-radios,
.easybuy-subgroup-modal-body .easybuy-option-checkboxes {
    background: #333;
    color: #fff;
    border: 2px solid #555;
    border-radius: 8px;
    padding: 10px;
}

.easybuy-subgroup-modal-body .easybuy-option-select option {
    background: #333;
    color: #fff;
    padding: 8px;
}

/* Alt grup header stil güncellemesi */
.easybuy-subgroup-header {
    cursor: pointer;
    padding: 20px;
    background: linear-gradient(135deg, #34495e, #2c3e50);
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid transparent;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.easybuy-subgroup-header:hover {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-color: #3498db;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.easybuy-subgroup-header-left h3 {
    color: #fff;
    margin: 0;
    font-size: 1.3em;
    font-weight: 600;
}

.easybuy-subgroup-product-count {
    color: #bdc3c7;
    font-size: 0.95em;
    background: rgba(255,255,255,0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.easybuy-subgroup-modal-open-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 6px 15px rgba(231, 76, 60, 0.3);
}

.easybuy-subgroup-modal-open-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.4);
}

/* CANLI SEPET GÖSTERİMİ */
.easybuy-live-cart {
    position: fixed;
    top: 120px;
    right: 25px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    z-index: 1000;
    max-width: 320px;
    border-left: 5px solid #3498db;
    display: none;
    backdrop-filter: blur(10px);
}

.easybuy-live-cart-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-weight: bold;
    color: #ecf0f1;
    border-bottom: 2px solid #34495e;
    padding-bottom: 12px;
    font-size: 1.1em;
}

.easybuy-live-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #34495e;
    transition: all 0.3s ease;
}

.easybuy-live-cart-item:hover {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 10px;
    margin: 0 -10px;
}

.easybuy-live-cart-item:last-child {
    border-bottom: none;
}

.easybuy-live-cart-item-name {
    flex: 1;
    color: #ecf0f1;
    font-size: 0.95em;
    line-height: 1.3;
}

.easybuy-live-cart-item-price {
    color: #27ae60;
    font-weight: bold;
    margin-left: 15px;
    font-size: 1em;
}

.easybuy-live-cart-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 3px solid #34495e;
    font-weight: bold;
    color: #3498db;
    font-size: 1.1em;
    text-align: center;
}

/* ANA SAYFA GRUP KARTLARI - DİKEY KARE FORMAT */
.easybuy-group-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.easybuy-group-product-card {
    background: linear-gradient(145deg, #2d2d2d, #252525);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #444;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    height: auto; /* Sabit yükseklik kaldırıldı */
    min-height: 480px; /* Minimum yükseklik */
}

.easybuy-group-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--group-color, #3498db), var(--group-color-dark, #2ecc71));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.easybuy-group-product-card:hover::before {
    transform: scaleX(1);
}

.easybuy-group-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: #555;
}

.easybuy-group-product-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.easybuy-group-product-image {
    width: 100%;
    height: 160px; /* Daha küçük resim */
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 15px;
    background: #333;
    padding: 10px;
}

.easybuy-group-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.easybuy-group-product-name {
    color: #fff;
    font-size: 1.1em;
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
}

.easybuy-group-product-price {
    color: #4CAF50;
    font-weight: bold;
    font-size: 1.3em;
    margin: 10px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* ANA SAYFA ADET KONTROLLERİ */
.easybuy-group-quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333;
    border-radius: 12px;
    padding: 8px;
    margin: 15px 0;
    border: 2px solid #444;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
}

.easybuy-group-qty-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.easybuy-group-qty-btn:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: scale(1.1);
}

.easybuy-group-qty-input {
    background: #222;
    border: 2px solid #444;
    color: #fff;
    text-align: center;
    font-weight: bold;
    font-size: 1.2em;
    margin: 0 12px;
    padding: 8px;
    border-radius: 8px;
    min-width: 60px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.3);
}

.easybuy-group-add-cart-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    box-shadow: 0 6px 15px rgba(39, 174, 96, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.easybuy-group-add-cart-btn:hover {
    background: linear-gradient(135deg, #219653, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.4);
}

.easybuy-view-product-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.easybuy-view-product-btn:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(52, 152, 219, 0.4);
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .easybuy-subgroup-modal-content {
        width: 98%;
        margin: 10px;
    }
    
    .easybuy-subgroup-modal-header {
        padding: 20px;
    }
    
    .easybuy-subgroup-modal-body {
        padding: 20px;
    }
    
    .easybuy-subgroup-modal-title {
        font-size: 1.3em;
    }
    
    .easybuy-subgroup-modal-open-btn {
        padding: 10px 18px;
        font-size: 0.9em;
    }
    
    .easybuy-subgroup-modal-body .easybuy-group-products-grid,
    .easybuy-group-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .easybuy-group-product-card {
        min-height: 460px;
        padding: 15px;
    }
    
    .easybuy-live-cart {
        position: fixed;
        bottom: 20px;
        top: auto;
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .easybuy-subgroup-modal-body .easybuy-group-products-grid,
    .easybuy-group-products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .easybuy-group-product-card {
        min-height: 440px;
    }
}

/* Alt grup ürün konteynırını gizle */
.easybuy-subgroup-products-container {
    display: none !important;
}

/* Grup header renk düzeltmesi */
.easybuy-product-group-header {
    background: linear-gradient(135deg, #2c3e50, #34495e) !important;
    color: #fff !important;
    border-radius: 12px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2) !important;
    border: none !important;
    padding: 20px !important;
}

.easybuy-product-group-header:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3) !important;
}

.easybuy-product-group-header h2 {
    color: #fff !important;
    font-size: 1.5em !important;
    font-weight: 700 !important;
}

.easybuy-group-description {
    color: #bdc3c7 !important;
    font-size: 1em !important;
}

/* Ürün grupları için koyu tema */
.easybuy-product-group-section {
    background: #2d2d2d !important;
    border: 1px solid #444 !important;
    border-radius: 16px !important;
    margin-bottom: 30px !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2) !important;
    overflow: hidden;
}

.easybuy-group-products-container {
    background: #1a1a1a !important;
    padding: 20px !important;
}

/* Kategori bölümleri için koyu tema */
.easybuy-products-section {
    background: #2d2d2d !important;
    border: 1px solid #444 !important;
    border-radius: 16px !important;
    margin-bottom: 30px !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2) !important;
    overflow: hidden;
}

.easybuy-product-card {
    background: linear-gradient(145deg, #2d2d2d, #252525) !important;
    border: 1px solid #444 !important;
    border-radius: 16px !important;
    transition: all 0.3s ease !important;
}

.easybuy-product-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.3) !important;
}

.easybuy-product-name {
    color: #fff !important;
}

.easybuy-product-special,
.easybuy-product-normal {
    color: #4CAF50 !important;
    font-weight: bold !important;
}

/* Banner düzenlemeleri */
.easybuy-banner-item {
    background: #2d2d2d !important;
    border: 1px solid #444 !important;
    border-radius: 16px !important;
    overflow: hidden;
    transition: all 0.3s ease !important;
}

.easybuy-banner-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.3) !important;
}

.easybuy-banner-title {
    color: #fff !important;
}

.easybuy-banner-description {
    color: #ccc !important;
}

/* Hoş geldiniz bölümü */
.easybuy-welcome-section {
    background: linear-gradient(135deg, #2c3e50, #34495e) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 16px !important;
    padding: 30px !important;
    margin-bottom: 30px !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2) !important;
    text-align: center;
}

/* Loading spinner */
.easybuy-loading {
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(10px);
}

.easybuy-spinner {
    border: 4px solid #333 !important;
    border-top: 4px solid #3498db !important;
    width: 60px !important;
    height: 60px !important;
}

/* Modern Scrollbar */
.easybuy-subgroup-modal-content::-webkit-scrollbar {
    width: 8px;
}

.easybuy-subgroup-modal-content::-webkit-scrollbar-track {
    background: #2d2d2d;
    border-radius: 4px;
}

.easybuy-subgroup-modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    border-radius: 4px;
}

.easybuy-subgroup-modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2980b9, #27ae60);
}

/* Rozet stilleri */
.easybuy-group-product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.easybuy-group-product-badge {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 3px 8px rgba(231, 76, 60, 0.3);
}

.badge-2mp { background: linear-gradient(135deg, #3498db, #2980b9); }
.badge-4mp { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.badge-5mp { background: linear-gradient(135deg, #e67e22, #d35400); }
.badge-8mp { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.badge-renkli { background: linear-gradient(135deg, #1abc9c, #16a085); }
.badge-sesli { background: linear-gradient(135deg, #f39c12, #e67e22); }
.badge-starlight { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.badge-ir { background: linear-gradient(135deg, #34495e, #2c3e50); }
.badge-channel { background: linear-gradient(135deg, #27ae60, #219653); }
.badge-4k { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.badge-poe { background: linear-gradient(135deg, #f39c12, #d35400); }

/* Modal içindeki elementlerin görünürlüğünü garanti et */
.easybuy-subgroup-modal-body * {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Özellikle buton ve adet kontrolleri için */
.easybuy-subgroup-modal-body .easybuy-group-quantity-controls,
.easybuy-subgroup-modal-body .easybuy-group-add-cart-btn,
.easybuy-subgroup-modal-body .easybuy-view-product-btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}