/* Ana Wrapper */
.hab-frontend-wrapper {
    width: 100%;
    margin: 20px 0;
}

/* Marka Grid Alanı */
.hab-brands-container {
    width: 100%;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

.hab-brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* Marka Kartı */
.hab-brand-card {
    background: #fff;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hab-brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-color: #0073aa;
}

.hab-brand-card.active {
    background: #0073aa;
    color: #fff;
    border-color: #005a87;
}

.hab-brand-logo-wrapper {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.hab-brand-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hab-brand-logo-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #666;
}

.hab-brand-card.active .hab-brand-logo-placeholder {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.hab-brand-name-text {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    word-wrap: break-word;
}

.hab-brand-card.active .hab-brand-name-text {
    color: #fff;
}

/* Popup Modal */
.hab-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hab-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
}

.hab-popup-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 950px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 1;
    animation: hab-popup-fade-in 0.3s ease;
    overflow: hidden;
}

@keyframes hab-popup-fade-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hab-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid #f0f0f0;
    background: linear-gradient(to bottom, #fafafa 0%, #ffffff 100%);
}

.hab-popup-title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: #333;
    letter-spacing: -0.5px;
}

.hab-popup-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 50%;
}

.hab-popup-close:hover {
    color: #000;
    background: #f0f0f0;
    transform: rotate(90deg);
}

.hab-popup-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: #c0c0c0 #f5f5f5;
}

.hab-popup-body::-webkit-scrollbar {
    width: 8px;
}

.hab-popup-body::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

.hab-popup-body::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 4px;
}

.hab-popup-body::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

.hab-loading {
    text-align: center;
    padding: 60px 40px;
    color: #666;
    font-size: 16px;
}

/* Ürün Listesi */
.hab-products-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hab-product-item {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f0f0f0;
    position: relative;
}

.hab-product-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0073aa 0%, #005a87 100%);
    border-radius: 12px 12px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hab-product-item:hover::before {
    opacity: 1;
}

.hab-product-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.hab-product-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.hab-product-info {
    flex: 1;
    min-width: 0;
    padding-right: 10px;
}

.hab-product-name {
    margin: 0 0 18px 0;
    font-size: 22px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
    letter-spacing: -0.3px;
    position: relative;
    padding-bottom: 12px;
}

.hab-product-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #0073aa 0%, transparent 100%);
    border-radius: 2px;
}

.hab-product-features {
    color: #555;
    line-height: 1.8;
}

.hab-features-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hab-features-list li {
    margin-bottom: 10px;
    padding-left: 24px;
    position: relative;
    font-size: 15px;
    line-height: 1.6;
}

.hab-features-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #0073aa;
    font-weight: bold;
    font-size: 16px;
}

.hab-features-list li:last-child {
    margin-bottom: 0;
}

.hab-product-image-wrapper {
    flex-shrink: 0;
    width: 220px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f2f5 100%);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.hab-product-item:hover .hab-product-image-wrapper {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
}

.hab-product-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.hab-product-item:hover .hab-product-image {
    transform: scale(1.05);
}

.hab-no-product-image {
    color: #999;
    font-size: 14px;
    text-align: center;
    padding: 30px 20px;
    font-style: italic;
}

/* Boş Durum */
.hab-empty-state {
    text-align: center;
    padding: 60px 40px;
    color: #666;
}

.hab-empty-state p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
    .hab-brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hab-brands-container {
        padding: 15px;
    }
    
    .hab-brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .hab-brand-card {
        padding: 12px;
    }
    
    .hab-brand-logo-wrapper {
        height: 70px;
    }
    
    .hab-brand-logo-placeholder {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .hab-brand-name-text {
        font-size: 12px;
    }
    
    .hab-popup-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .hab-popup-header {
        padding: 20px 25px;
    }
    
    .hab-popup-title {
        font-size: 22px;
    }
    
    .hab-popup-body {
        padding: 25px 20px;
    }
    
    .hab-products-list {
        gap: 20px;
    }
    
    .hab-product-item {
        padding: 22px;
    }
    
    .hab-product-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .hab-product-image-wrapper {
        width: 100%;
        height: 200px;
        order: -1;
    }
    
    .hab-product-name {
        font-size: 20px;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .hab-features-list li {
        font-size: 14px;
        margin-bottom: 8px;
        padding-left: 22px;
    }
    
    .hab-features-list li:before {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hab-brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}
