/**
 * Responsive styles for Jacadi Theme
 */

/* Tablet Styles (768px - 1024px) */
@media screen and (max-width: 1024px) {
    /* Adjust container padding */
    .container {
        padding: 0 20px;
    }
    
    /* Main Hero Section - Tablet */
    .main-hero-container {
        height: 70vh;
    }
    
    .hero-right-container {
        padding: 0 40px;
    }
    
    .brand-name {
        font-size: 42px;
    }
    
    .brand-slogan {
        font-size: 24px;
        gap: 12px;
    }
    
    .slogan-dash {
        width: 25px;
    }
    
    .slogan-dot {
        font-size: 9px;
    }
    
    .logo-img {
        max-width: 100px;
    }
    
    .hero-button .btn {
        padding: 14px 35px;
        font-size: 13px;
    }
    
    /* Adjust header spacing */
    .header-main {
        padding: 15px 20px;
    }
    
    /* Adjust action bar */
    .action-bar-inner {
        flex-wrap: wrap;
    }
    
    .main-navigation {
        order: 3;
        flex-basis: 100%;
        margin-top: 15px;
    }
    
    .login-button {
        order: 1;
    }
    
    .shopping-cart {
        order: 2;
    }
    
    /* Adjust mega dropdown columns for 4-column layout */
    .mega-dropdown-inner {
        flex-wrap: wrap;
        padding: 15px;
        gap: 10px;
    }
    
    .dropdown-column {
        flex-basis: calc(50% - 5px);
        padding: 8px;
        min-width: 0;
    }
    
    .dropdown-column.image-view-all {
        flex-basis: 100%;
        order: -1;
        margin-bottom: 15px;
        padding: 10px;
    }
    
    .dropdown-image {
        max-width: 120px;
        margin-bottom: 15px;
    }
    
    /* Decrease hero height */
    .hero {
        height: 60vh;
    }
    
    /* Adjust section padding */
    .featured-categories,
    .product-highlights,
    .brand-story,
    .gallery-section,
    .newsletter-signup {
        padding: 40px 20px;
    }
    
    /* Adjust category grid */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Adjust brand story layout */
    .brand-story .container {
        flex-direction: column;
    }
    
    .story-content,
    .story-image {
        width: 100%;
    }
}

/* Mobile Styles (up to 767px) */
@media screen and (max-width: 767px) {
    /* Make header fixed for mobile */
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1001;
        background: white;
    }
    
    /* Add padding to body to account for fixed header */
    body {
        padding-top: 60px;
    }
    
    /* Main Hero Section - Mobile */
    .main-hero-container {
        height: 100vh;
        background-position: 25% center;
        background-size: cover;
    }
    
    .main-hero-content {
        flex-direction: column;
    }
    
    .hero-left-container {
        width: 100%;
        height: 45%;
    }
    
    .hero-right-container {
        width: 100%;
        height: 55%;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
        background-color: rgba(255, 255, 255, 0.9);
    }
    
    .brand-logo {
        margin-bottom: 25px;
        justify-content: center;
    }
    
    .logo-img {
        max-width: 90px;
    }
    
    .brand-name {
        font-size: 36px;
        margin-bottom: 15px;
        letter-spacing: 0.06em;
    }
    
    .brand-slogan {
        font-size: 20px;
        margin-bottom: 30px;
        font-weight: 300;
        gap: 10px;
    }
    
    .slogan-dash {
        width: 20px;
    }
    
    .slogan-dot {
        font-size: 8px;
    }
    
    .hero-button .btn {
        padding: 14px 32px;
        font-size: 13px;
        letter-spacing: 0.18em;
    }
    
    /* Adjust promotion banner for mobile */
    .top-bar {
        padding: 6px 0;
        font-size: 12px;
    }
    
    /* Hide action bar on mobile */
    .action-bar {
        display: none;
    }

    /* Hide mega dropdown container on mobile */
    .mega-dropdown-container {
        display: none !important;
    }
    
    /* Show mobile toggle */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Branding centered */
    .site-branding {
        text-align: center;
        padding: 10px 0;
    }
    
    /* Adjust mobile menu when active */
    .mobile-menu.active {
        display: block;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        z-index: 1000;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-top: 20px;
    }
    
    /* Update mobile menu for dropdowns */
    .mobile-menu .menu-item {
        position: relative;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        padding: 12px 0;
    }
    
    .mobile-menu .menu-item > a {
        display: block;
        padding: 5px 0;
        font-size: 16px;
        font-weight: 500;
        color: #333;
        text-decoration: none;
    }
    
    .mobile-menu .menu-item:last-child {
        border-bottom: none;
    }
    
    /* Mobile submenu styling for new 3-column layout */
    .mobile-submenu {
        padding: 15px 0;
        border-top: 1px solid #eee;
        background: #f8f8f8;
        margin-top: 10px;
    }
    
    .mobile-submenu-column {
        margin-bottom: 20px;
    }
    
    .mobile-submenu-column:last-of-type {
        margin-bottom: 10px;
    }
    
    .mobile-submenu-column h4 {
        font-size: 12px;
        font-weight: 500;
        color: #666;
        margin-bottom: 10px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    
    .mobile-submenu-column .submenu li {
        margin-bottom: 8px;
    }
    
    .mobile-submenu-column .submenu a {
        font-size: 14px;
        color: #333;
        padding: 5px 0;
        display: block;
        letter-spacing: 0.02em;
        transition: all 0.3s ease;
    }
    
    .mobile-submenu-column .submenu a:hover {
        color: #666;
        letter-spacing: 0.1em;
    }
    
    .view-all-mobile {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #ddd;
        text-align: center;
    }
    
    .view-all-mobile .view-all-link {
        font-size: 13px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        transition: all 0.3s ease;
        display: inline-block;
    }
    
    .view-all-mobile .view-all-link:hover {
        letter-spacing: 0.1em;
        color: #666;
        transform: translateY(-1px);
    }
    
    /* Decrease hero height further */
    .hero {
        height: 50vh;
    }
    
    .hero-content {
        padding: 20px;
        max-width: 100%;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    /* Single column layouts */
    .category-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    /* Adjust newsletter form */
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input[type="email"] {
        margin-bottom: 10px;
    }
    
    /* Footer adjustments */
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-menu ul {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-menu li {
        margin-bottom: 10px;
    }
    
    /* Gallery section mobile styles */
    .gallery-section {
        padding: 40px 15px;
    }
    
    .gallery-section h2 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
}

/* Small Mobile Styles (up to 480px) */
@media screen and (max-width: 480px) {
    .site-title {
        font-size: 20px;
    }
    
    /* Main Hero Section - Small Mobile */
    .main-hero-container {
        height: 80vh;
    }
    
    .hero-right-container {
        padding: 25px 15px;
    }
    
    .logo-img {
        max-width: 75px;
    }
    
    .brand-name {
        font-size: 30px;
        margin-bottom: 12px;
    }
    
    .brand-slogan {
        font-size: 18px;
        margin-bottom: 25px;
        gap: 8px;
    }
    
    .slogan-dash {
        width: 15px;
    }
    
    .slogan-dot {
        font-size: 7px;
    }
    
    .hero-button .btn {
        padding: 12px 28px;
        font-size: 12px;
        letter-spacing: 0.16em;
    }
    
    .top-bar {
        padding: 5px 0;
        font-size: 11px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .category-item {
        height: 200px;
    }
    
    .product-image {
        height: 200px;
    }
    
    section h2 {
        font-size: 1.5rem;
    }
    
    /* Gallery section small mobile adjustments */
    .gallery-section {
        padding: 30px 10px;
    }
    
    .gallery-section h2 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
}

