/**
 * Custom Header Styles for Balaji Patna Theme
 */

/* WordPress Admin Bar Fix - Remove top margin/padding */
html.admin-bar {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

html.admin-bar body {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

html.admin-bar .site-content,
html.admin-bar .content-area,
html.admin-bar .site-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Smooth Scroll - Only for manual scrolling and anchor links */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-padding-top: 100px; /* Account for fixed header */
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Prevent auto scroll on page load */
html {
    scroll-behavior: smooth;
}

/* Disable auto scroll - only manual scrolls will be smooth */
body {
    scroll-behavior: inherit;
}

/* Ensure no auto scroll on page load */
html:not(:target) {
    scroll-behavior: smooth;
}

/* App Download Banner (Mobile Only) */
.balaji-app-banner {
    background: #fff;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e0e0e0;
}

.balaji-app-banner .app-banner-content {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
}

.app-banner-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FF6B35 0%, #8B4C9F 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.app-banner-icon .icon-building {
    display: block;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 4px;
}

.app-banner-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.app-banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.app-banner-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

.app-banner-subtitle {
    font-size: 12px;
    color: #666;
}

.app-download-btn {
    background: #FF6B35;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.app-banner-close {
    background: none;
    border: none;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    padding: 0 5px;
}

/* Main Header */
.balaji-custom-header {
    background-color: #FF6B35;
    padding: 15px 20px;
    position: relative;
    z-index: 1000;
    margin-top: 0;
    top: 0;
}

/* WordPress Admin Bar Compatibility */
html.admin-bar .balaji-custom-header {
    margin-top: 0;
}

/* When admin bar is visible on desktop (32px height) */
@media screen and (min-width: 782px) {
    html.admin-bar .balaji-custom-header {
        margin-top: 0;
    }
    
    html.admin-bar body {
        margin-top: 0 !important;
    }
}

/* When admin bar is visible on mobile (46px height) */
@media screen and (max-width: 781px) {
    html.admin-bar .balaji-custom-header {
        margin-top: 0;
    }
    
    html.admin-bar body {
        margin-top: 0 !important;
    }
}

.header-container {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
    padding-bottom: 5px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Logo */
.header-logo {
    flex-shrink: 0;
}

.header-logo img {
    max-height: 50px;
    width: auto;
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}

.logo-icon {
    display: flex;
    gap: 4px;
    align-items: flex-end;
}

.icon-block {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.icon-block-1 {
    background: #FF6B35;
    height: 24px;
}

.icon-block-2 {
    background: #8B4C9F;
}

.logo-text-content {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

/* Shop by Categories Button */
.shop-categories-wrapper {
    position: relative;
}

.shop-categories-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.3s;
}

.shop-categories-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.shop-categories-btn .btn-text {
    line-height: 1.2;
}

.shop-categories-btn .btn-arrow {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.categories-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin-top: 10px;
    min-width: 250px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.shop-categories-wrapper:hover .categories-dropdown {
    display: block;
}

.categories-list {
    list-style: none;
    margin: 0;
    padding: 10px 0;
}

.categories-list li {
    margin: 0;
}

.categories-list a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: background 0.3s;
}

.categories-list a:hover {
    background: #f5f5f5;
}

/* Search Bar */
.header-search {
    flex: 1;
    min-width: 200px;
    max-width: 600px;
    position: relative;
}

.header-search form {
    display: flex;
    gap: 0;
    height: 48px;
}

.search-wrapper {
    position: relative;
    width: 100%;
    display: flex;
}

.search-field {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px 0 0 8px;
    font-size: 14px;
    outline: none;
}

.search-submit {
    background: #007bff;
    border: none;
    border-radius: 0 8px 8px 0;
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.search-submit:hover {
    background: #0056b3;
}

.search-submit svg {
    width: 20px;
    height: 20px;
}

/* Live Search Results */
.live-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin-top: 10px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    border: 1px solid #e0e0e0;
}

.search-results-list {
    padding: 10px 0;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f5f5f5;
    color: #333;
}

.search-result-image {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #f0f0f0;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-price {
    font-size: 13px;
    color: #007bff;
    font-weight: 600;
}

.search-loading,
.search-no-results,
.search-error {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.search-view-all {
    padding: 12px 20px;
    border-top: 1px solid #e0e0e0;
    background: #f8f8f8;
    text-align: center;
}

.search-view-all a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

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

/* Price Check Button */
.price-check-btn {
    background: #dc3545;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    border: 2px solid #fff;
    transition: background 0.3s;
}

.price-check-btn:hover {
    background: #c82333;
    color: #fff;
}

.price-check-btn span {
    line-height: 1.2;
}

.price-check-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Become a Seller Button */
.become-seller-btn {
    background: #007bff;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.3s;
}

.become-seller-btn:hover {
    background: #0056b3;
    color: #fff;
}

.become-seller-btn span {
    line-height: 1.2;
}

/* Cart Icon */
.header-cart {
    position: relative;
}

.cart-contents {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    position: relative;
}

.cart-contents svg {
    width: 28px;
    height: 28px;
}

.cart-count,
.header-cart .cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    border: 2px solid #fff;
}

/* Navigation Links */
.header-navigation {
    background: #fff;
    padding: 12px 20px;
    border-top: 1px solid #e0e0e0;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: #FF6B35;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu-content {
    background: #fff;
    width: 80%;
    max-width: 300px;
    height: 100%;
    padding: 20px;
    position: relative;
}

.mobile-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    color: #333;
    cursor: pointer;
    line-height: 1;
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    margin-top: 40px;
}

.mobile-nav-menu li {
    margin: 0 0 15px 0;
}

.mobile-nav-menu a {
    display: block;
    padding: 12px 0;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid #e0e0e0;
}

.mobile-nav-extra {
    margin-top: 0;
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

.mobile-shop-categories-btn {
    width: 100%;
    background: none;
    border: none;
    padding: 12px 0;
    text-align: left;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.mobile-categories-list {
    list-style: none;
    margin: 10px 0 0 0;
    padding: 0 0 0 20px;
    display: none;
}

.mobile-categories-list.active {
    display: block;
}

.mobile-categories-list li {
    margin: 0 0 10px 0;
}

.mobile-categories-list a {
    color: #666;
    font-size: 14px;
    border-bottom: none;
    padding: 8px 0;
}

/* Desktop Only */
.desktop-only {
    display: block;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .balaji-app-banner {
        display: block;
    }
    
    .header-container {
        padding: 10px 0;
        gap: 10px;
    }
    
    .header-logo {
        flex: 1;
    }
    
    .logo-text-content {
        font-size: 18px;
    }
    
    .header-search {
        order: 3;
        width: 100%;
        max-width: 100%;
    }
    
    .price-check-btn {
        padding: 10px 15px;
        font-size: 12px;
    }
    
    .price-check-btn span {
        writing-mode: horizontal-tb;
        text-orientation: mixed;
    }
    
    .header-navigation {
        display: none;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-menu li {
        border-bottom: 1px solid #e0e0e0;
    }
    
    .nav-menu a {
        display: block;
        padding: 12px 0;
    }
    
    .shop-categories-btn .btn-text {
        writing-mode: horizontal-tb;
        text-orientation: mixed;
    }
    
    .become-seller-btn span {
        writing-mode: horizontal-tb;
        text-orientation: mixed;
    }
}

@media (min-width: 769px) {
    .mobile-menu-overlay {
        display: none !important;
    }
}

/* Sticky Header */
.balaji-custom-header.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.balaji-custom-header.hidden-header {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* WordPress Admin Bar - Sticky Header Compatibility */
@media screen and (min-width: 782px) {
    html.admin-bar .balaji-custom-header.sticky-header {
        top: 32px !important; /* WordPress admin bar height on desktop */
    }
}

@media screen and (max-width: 781px) {
    html.admin-bar .balaji-custom-header.sticky-header {
        top: 46px !important; /* WordPress admin bar height on mobile */
    }
}

body.has-sticky-header {
    padding-top: 0;
}

/* Add padding when delivery banner is fixed to prevent content jump */
body:has(.delivery-banner-section.fixed-header) {
    padding-top: 0;
}

/* Fallback for browsers without :has() support */
.delivery-banner-section.fixed-header ~ * {
    /* Content will adjust automatically */
}

/* Remove any top margin from body when admin bar is present */
html.admin-bar body {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Ensure header doesn't overlap with admin bar */
#wpadminbar {
    z-index: 99999;
}

.balaji-custom-header {
    z-index: 9999;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.categories-dropdown {
    animation: slideDown 0.3s ease;
}

/* Customizer Control Styles */
.nav-items-repeater {
    margin-top: 10px;
}

.nav-items-list {
    margin-bottom: 15px;
}

.nav-item-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.nav-item-row .nav-item-label,
.nav-item-row .nav-item-url {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.nav-item-row .remove-nav-item {
    padding: 8px 15px;
}

.add-nav-item {
    margin-top: 10px;
}

/* Delivery Banner Section - Fixed on Scroll Up - Works on All Pages */
.delivery-banner-section {
    background: #f5f5f5;
    position: relative;
    z-index: 9998;
    transition: transform 0.3s ease, opacity 0.3s ease;
    width: 100%;
}

.delivery-banner-section.fixed-header {
    position: fixed !important;
    left: 0;
    right: 0;
    width: 100% !important;
    z-index: 9998;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
    animation: slideDownHeader 0.3s ease;
    /* Prevent flickering */
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.delivery-banner-section.hidden-header {
    position: fixed !important;
    left: 0;
    right: 0;
    width: 100% !important;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 9997;
}

@keyframes slideDownHeader {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.delivery-banner {
    padding: 12px 20px;
    border-radius: 8px 8px 0 0;
}

.delivery-banner-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.delivery-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.delivery-text {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
}

/* Quick Links Section */
.quick-links-section {
    background: #f5f5f5;
    padding: 10px 20px;
    border-radius: 0 0 8px 8px;
}

.quick-links-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-links-label {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.quick-links-items {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
    text-align: center;
}

.quick-link-item {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.quick-link-item:hover {
    color: #FF6B35;
    text-decoration: underline;
}

.quick-link-separator {
    color: #999;
}

/* Responsive Delivery Banner */
@media (max-width: 768px) {
    .delivery-banner {
        padding: 10px 15px;
        border-radius: 0;
    }
    
    .delivery-banner-content {
        justify-content: center;
    }
    
    .delivery-text {
        font-size: 13px;
    }
    
    .quick-links-section {
        padding: 8px 15px;
        border-radius: 0;
    }
    
    .quick-links-container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        text-align: center;
    }
    
    .quick-links-label {
        font-size: 13px;
        text-align: center;
    }
    
    .quick-links-items {
        font-size: 13px;
        justify-content: center;
        text-align: center;
    }
}

/* Image Slider Section */
.balaji-image-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: transparent;
}

.balaji-image-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    z-index: 1;
}

.slider-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.balaji-image-slider-wrapper[data-transition="zoom"] .slider-slide {
    transform: scale(1.2);
}

.balaji-image-slider-wrapper[data-transition="zoom"] .slider-slide.active {
    transform: scale(1);
}

.slider-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.1));
}

.slider-content-inner {
    text-align: center;
    color: #fff;
    padding: 20px;
    max-width: 800px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slider-title {
    font-size: 48px;
    font-weight: 900;
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    text-transform: uppercase;
}

.slider-description {
    font-size: 20px;
    margin: 0 0 25px 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    line-height: 1.5;
}

.slider-button {
    display: inline-block;
    padding: 15px 40px;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    border-radius: 5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.slider-button:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Navigation Arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: #333;
}

.slider-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.slider-nav-prev {
    left: 20px;
}

.slider-nav-next {
    right: 20px;
}

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

/* Dots/Pagination */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.slider-dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* Responsive Image Slider */
@media (max-width: 1024px) {
    .balaji-image-slider-wrapper {
        height: var(--slider-tablet-height, 450px) !important;
    }
    
    .slider-title {
        font-size: 36px;
    }
    
    .slider-description {
        font-size: 18px;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
    }
    
    .slider-nav-prev {
        left: 10px;
    }
    
    .slider-nav-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .balaji-image-slider-wrapper {
        height: var(--slider-mobile-height, 400px) !important;
    }
    
    .slider-image {
        object-fit: var(--slider-mobile-object-fit, cover);
    }
    
    .slider-title {
        font-size: 28px;
    }
    
    .slider-description {
        font-size: 16px;
    }
    
    .slider-button {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    .slider-nav {
        width: 35px;
        height: 35px;
    }
    
    .slider-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .slider-dots {
        bottom: 15px;
    }
    
    .slider-dot {
        width: 10px;
        height: 10px;
    }
    
    .promo-banner-nav svg {
        width: 16px;
        height: 16px;
    }
    
    .promo-product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .promo-product-frame {
        width: 70px;
        height: 70px;
    }
    
    .promo-product-title {
        font-size: 10px;
    }
    
    .promo-banner-title {
        font-size: 24px;
    }
    
    .promo-banner-subtitle {
        font-size: 20px;
        -webkit-text-stroke: 1px #fff;
    }
}

/* Brands Carousel Section */
.brands-section {
    background: #f5f5f5;
    padding: 30px 20px;
}

.brands-container {
    max-width: 1400px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: visible;
}

.brands-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.brands-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.brands-view-all-btn {
    background: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
}

.brands-view-all-btn:hover {
    background: #0056b3;
    color: #fff;
}

.brands-carousel-wrapper {
    position: relative;
    padding: 10px 0;
}

.brands-carousel {
    overflow-x: hidden;
    overflow-y: visible;
}

.brands-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
    padding: 5px 0;
}

.brand-item {
    flex: 0 0 auto;
    width: 150px;
    padding: 5px 0;
}

.brand-link {
    display: block;
    text-decoration: none;
    transition: transform 0.3s;
    position: relative;
}

.brand-link:hover {
    transform: translateY(-5px);
}

.brand-logo {
    width: 100%;
    height: 100px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s;
}

.brand-link:hover .brand-logo {
    border-color: #007bff;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}

.brand-placeholder {
    width: 100%;
    height: 100px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.brand-name-text {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-align: center;
    line-height: 1.3;
}

/* Responsive Brands Section */
@media (max-width: 768px) {
    .brands-section {
        padding: 20px 15px;
    }
    
    .brands-container {
        padding: 20px 15px;
    }
    
    .brands-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .brands-title {
        font-size: 20px;
    }
    
    .brands-view-all-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .brand-item {
        width: 120px;
    }
    
    .brand-logo,
    .brand-placeholder {
        height: 80px;
        padding: 10px;
    }
    
    .brand-name-text {
        font-size: 11px;
    }
}

/* Product Carousel Section (Hot Deals) */
.product-carousel-section {
    background: #fff;
    padding: 40px 20px;
    margin: 30px 0;
}

.product-carousel-container {
    max-width: 1400px;
    margin: 0 auto;
}

.product-carousel-header {
    margin-bottom: 25px;
}

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

.product-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-carousel-nav {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 10;
    color: #666;
}

.product-carousel-nav:hover:not(.disabled) {
    background: #FF6B35;
    border-color: #FF6B35;
    color: #fff;
    transform: scale(1.1);
}

.product-carousel-nav:active:not(.disabled) {
    transform: scale(0.95);
}

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

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

.product-carousel {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.product-carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
    will-change: transform;
}

.product-carousel-item {
    flex: 0 0 calc(25% - 15px);
    min-width: 0;
}

.product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
    flex: 1;
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.product-info {
    flex: 1;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    line-height: 1.4;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-pricing {
    margin-bottom: 10px;
}

.product-mrp {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.mrp-label {
    font-size: 12px;
    color: #999;
}

.mrp-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

.product-sale-price {
    font-size: 18px;
    font-weight: 700;
    color: #FF6B35;
    margin-bottom: 8px;
}

.price-unit {
    font-size: 13px;
    font-weight: 500;
    color: #666;
}

.product-discount {
    margin-bottom: 8px;
}

.discount-badge {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.product-brand {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* Responsive Product Carousel */
@media (max-width: 1200px) {
    .product-carousel-item {
        flex: 0 0 calc(33.333% - 14px);
    }
}

@media (max-width: 768px) {
    .product-carousel-section {
        padding: 30px 15px;
        margin: 20px 0;
    }
    
    .product-carousel-title {
        font-size: 24px;
    }
    
    .product-carousel-item {
        flex: 0 0 calc(50% - 10px);
    }
    
    .product-carousel-nav {
        width: 40px;
        height: 40px;
    }
    
    .product-carousel-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .product-image {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .product-carousel-item {
        flex: 0 0 calc(100% - 0px);
    }
    
    .product-carousel-wrapper {
        gap: 10px;
    }
}

