/* استایل‌های عمومی */
.lhb-container {
    max-width: 1600px; /* یکسان با صفحه دسته‌بندی‌ها */
    margin: 0 auto;
    padding: 0 20px;
}

.lhb-container-fluid {
    width: 100%;
    padding: 0 20px;
}

.lhb-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.lhb-section-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.lhb-section-subtitle {
    font-size: 16px;
    color: #666;
    margin: 5px 0 0 0;
}

.lhb-view-all {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.lhb-view-all:hover {
    color: #005177;
    gap: 10px;
}

/* اسلایدر اصلی */
.lhb-hero-slider {
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    width: 100%;
    background: #f0f0f0;
}

/* اسلایدر تمام عرض */
.lhb-hero-slider.lhb-full-width {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: #f0f0f0;
}

.lhb-slider-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    min-height: 500px;
    background: #f0f0f0;
}

.lhb-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    background: #f0f0f0;
}

.lhb-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 500px;
    opacity: 0;
    transition: opacity 0.6s ease;
    display: none;
    background: #f0f0f0;
}

.lhb-slide.active {
    opacity: 1;
    z-index: 1;
    display: block;
}

.lhb-slide-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

.lhb-slide-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.lhb-slide-content {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    max-width: 500px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* محتوای اسلاید در حالت تمام عرض - برای نگه داشتن متن داخل container */
.lhb-full-width .lhb-slide-content {
    right: calc((100vw - 1600px) / 2 + 80px);
}

@media (max-width: 1650px) {
    .lhb-full-width .lhb-slide-content {
        right: 5%;
    }
}

.lhb-slide-content p {
    font-size: 18px;
    margin-bottom: 25px;
}

.lhb-slide-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
}

.lhb-slide-btn:hover {
    background: #005177;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,115,170,0.3);
}

/* دکمه‌های ناوبری اسلایدر */
.lhb-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.lhb-slider-nav:hover {
    background: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.lhb-slider-prev {
    right: 20px;
}

.lhb-slider-next {
    left: 20px;
}

.lhb-slider-nav span {
    font-size: 36px;
    line-height: 1;
}

/* نقاط ناوبری */
.lhb-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.lhb-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.lhb-slider-dot.active,
.lhb-slider-dot:hover {
    background: #fff;
    transform: scale(1.2);
}

/* بنرهای کمپین */
.lhb-campaign-banners {
    margin-bottom: 40px;
}

.lhb-banners-grid {
    display: grid;
    gap: 15px;
}

.lhb-grid-2 { grid-template-columns: repeat(2, 1fr); }
.lhb-grid-3 { grid-template-columns: repeat(3, 1fr); }
.lhb-grid-4 { grid-template-columns: repeat(4, 1fr); }
.lhb-grid-6 { grid-template-columns: repeat(6, 1fr); }

.lhb-banner-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.lhb-banner-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.lhb-banner-link {
    display: block;
    position: relative;
}

.lhb-banner-image {
    width: 100%;
    height: 200px;
}

.lhb-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.lhb-banner-item:hover .lhb-banner-image img {
    transform: scale(1.05);
}

.lhb-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    color: #fff;
}

.lhb-banner-overlay h3 {
    margin: 0;
    font-size: 18px;
}

/* دسته‌بندی‌ها - دقیقاً مشابه Elektroshop Wagner */
.lhb-featured-categories {
    margin-bottom: 40px;
}

.lhb-categories-grid {
    display: grid;
    gap: 18px;
}

.lhb-grid-3 { grid-template-columns: repeat(3, 1fr); }
.lhb-grid-4 { grid-template-columns: repeat(4, 1fr); }
.lhb-grid-5 { grid-template-columns: repeat(5, 1fr); }
.lhb-grid-6 { grid-template-columns: repeat(6, 1fr); }
.lhb-grid-8 { grid-template-columns: repeat(8, 1fr); }

.lhb-category-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    overflow: visible;
    transition: all 0.25s ease;
    aspect-ratio: 1 / 0.95; /* مربع یا کمی افقی */
    display: flex;
    flex-direction: column;
}

.lhb-category-item:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-color: #bbb;
    transform: translateY(-3px);
}

.lhb-category-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
    padding: 15px 12px 12px 12px;
}

.lhb-category-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.lhb-category-image img {
    max-width: 85%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.lhb-category-item:hover .lhb-category-image img {
    transform: scale(1.05);
}

.lhb-category-info {
    padding: 0 5px;
    text-align: center;
    margin-top: auto;
}

.lhb-category-name {
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    color: #2c2c2c;
    line-height: 1.35;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lhb-category-count {
    font-size: 11px;
    color: #888;
    display: none; /* مخفی - مثل Elektroshop */
    margin-top: 4px;
}

/* برندها - مشابه Elektroshop Wagner */
.lhb-brand-showcase {
    padding: 50px 0;
    margin-bottom: 40px;
}

.lhb-bg-white {
    background: #fff;
}

.lhb-bg-gray {
    background: #f8f8f8;
}

.lhb-bg-gradient {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.lhb-brand-showcase .lhb-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.lhb-brand-showcase .lhb-section-title {
    position: relative;
    display: inline-block;
    padding: 0 30px;
}

.lhb-brand-showcase .lhb-section-title::before,
.lhb-brand-showcase .lhb-section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 100px;
    height: 1px;
    background: #ddd;
}

.lhb-brand-showcase .lhb-section-title::before {
    right: 100%;
    margin-right: 30px;
}

.lhb-brand-showcase .lhb-section-title::after {
    left: 100%;
    margin-left: 30px;
}

.lhb-brands-grid {
    display: grid;
    gap: 0;
    border: 1px solid #e0e0e0;
    background: #fff;
}

.lhb-brands-per-row-4 { grid-template-columns: repeat(4, 1fr); }
.lhb-brands-per-row-5 { grid-template-columns: repeat(5, 1fr); }
.lhb-brands-per-row-6 { grid-template-columns: repeat(6, 1fr); }
.lhb-brands-per-row-8 { grid-template-columns: repeat(8, 1fr); }
.lhb-brands-per-row-10 { grid-template-columns: repeat(10, 1fr); }

.lhb-brand-item {
    background: #fff;
    border-left: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    padding: 25px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    transition: all 0.3s;
}

.lhb-brand-item:hover {
    background: #fafafa;
    transform: scale(1.05);
    z-index: 1;
}

.lhb-brand-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.lhb-brand-logo {
    max-width: 100%;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s;
}

.lhb-brands-grayscale .lhb-brand-logo {
    filter: grayscale(100%);
    opacity: 0.6;
}

.lhb-brands-grayscale .lhb-brand-item:hover .lhb-brand-logo {
    filter: grayscale(0%);
    opacity: 1;
}

.lhb-brand-placeholder {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-align: center;
}

/* بلوک محتوایی */
.lhb-content-block {
    margin-bottom: 40px;
}

.lhb-content-block.lhb-has-border {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.lhb-content-inner {
    max-width: 100%;
}

.lhb-content-inner h2,
.lhb-content-inner h3,
.lhb-content-inner h4 {
    margin-top: 0;
}

/* محصولات - Carousel */
.lhb-products-section {
    margin-bottom: 50px;
}

.lhb-products-carousel-wrapper {
    position: relative;
    padding: 0 60px;
}

.lhb-products-carousel {
    overflow: hidden;
    margin: 0 -10px;
}

.lhb-products-grid {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
    padding: 0 10px;
}

.lhb-grid-5 .lhb-product-item { flex: 0 0 calc(20% - 16px); }
.lhb-grid-6 .lhb-product-item { flex: 0 0 calc(16.666% - 17px); }

.lhb-product-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.lhb-product-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-color: #0073aa;
}

.lhb-product-image {
    position: relative;
    background: #f5f5f5;
    /* افزایش 20% نسبت به حالت قبلی */
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.lhb-product-image a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.lhb-product-image img {
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.lhb-product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.lhb-badge-sale {
    background: #e74c3c;
}

.lhb-badge-featured {
    background: #f39c12;
}

.lhb-product-info {
    padding: 12px;
}

/* نام برند - همیشه نمایش داده شود */
.lhb-product-brand {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

/* عنوان محصول - فقط در hover نمایش داده شود */
.lhb-product-title {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 20px;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 5;
    font-size: 13px;
    line-height: 1.5;
}

.lhb-product-item:hover .lhb-product-title {
    opacity: 1;
    visibility: visible;
}

.lhb-product-title a {
    color: #fff;
    text-decoration: none;
}

.lhb-product-title a:hover {
    color: #fff;
}

.lhb-product-rating {
    margin-bottom: 8px;
}

.lhb-product-price {
    font-size: 16px;
    font-weight: 700;
    color: #0073aa;
    margin-bottom: 8px;
    text-align: center;
}

.lhb-product-price del {
    font-size: 13px;
    color: #999;
    margin-left: 8px;
}

.lhb-product-actions {
    margin-top: 8px;
}

.lhb-product-actions .button {
    width: 100%;
    text-align: center;
    padding: 8px 12px;
    font-size: 13px;
}

/* دکمه‌های ناوبری Carousel */
.lhb-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 2px solid #e0e0e0;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.lhb-carousel-nav:hover {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
    box-shadow: 0 3px 10px rgba(0,115,170,0.3);
}

.lhb-carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.lhb-carousel-prev {
    right: 5px;
}

.lhb-carousel-next {
    left: 5px;
}

.lhb-carousel-nav svg {
    width: 24px;
    height: 24px;
}

/* ریسپانسیو */
@media (max-width: 1024px) {
    .lhb-grid-6 .lhb-product-item { 
        flex: 0 0 calc(33.333% - 14px); 
    }
    
    .lhb-brands-per-row-8,
    .lhb-brands-per-row-10 {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 768px) {
    .lhb-grid-6 .lhb-product-item { 
        flex: 0 0 calc(50% - 10px); 
    }
    
    .lhb-brands-per-row-4,
    .lhb-brands-per-row-5,
    .lhb-brands-per-row-6,
    .lhb-brands-per-row-8,
    .lhb-brands-per-row-10 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .lhb-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .lhb-section-title {
        font-size: 22px;
    }
    
    .lhb-slider-wrapper {
        height: 350px;
    }
    
    .lhb-slide-content {
        right: 5%;
        max-width: 300px;
    }
    
    .lhb-slide-content h2 {
        font-size: 28px;
    }
    
    /* تنظیم اندازه تصویر در تبلت */
    .lhb-product-image {
        height: 220px;
    }
    
    .lhb-product-image img {
        max-width: 85%;
        max-height: 85%;
    }
    
    /* دکمه‌های carousel در تبلت */
    .lhb-products-carousel-wrapper {
        padding: 0 50px;
    }
    
    .lhb-carousel-nav {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .lhb-grid-6 .lhb-product-item { 
        flex: 0 0 calc(100% - 10px); 
    }
    
    .lhb-brands-per-row-4,
    .lhb-brands-per-row-5,
    .lhb-brands-per-row-6,
    .lhb-brands-per-row-8,
    .lhb-brands-per-row-10 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* تنظیم اندازه تصویر در موبایل */
    .lhb-product-image {
        height: 250px;
    }
    
    .lhb-product-image img {
        max-width: 95%;
        max-height: 95%;
    }
    
    /* دکمه‌های carousel در موبایل */
    .lhb-products-carousel-wrapper {
        padding: 0 45px;
    }
    
    .lhb-carousel-nav {
        width: 35px;
        height: 35px;
    }
    
    .lhb-carousel-prev {
        right: 2px;
    }
    
    .lhb-carousel-next {
        left: 2px;
    }
}

