/* Desktop-first approach: Largest to smallest breakpoints */

/* Large screens (1280px and below) */
@media screen and (max-width: 1280px) {
    /* Recommended shops section */
    .recommended-shops {
        min-height: 500px;
        height: 500px;
    }
    
    .random-shop-card {
        height: 400px;
        width: 100%;
        max-width: 100%;
    }
    
    .random-shop-content {
        padding: 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    /* Schedule section */
    .schedule {
        width: 100%;
        padding: 1rem;
        box-sizing: border-box;
    }

    .shop-cards-container {
        width: 100%;
        gap: 1.5rem;
        padding: 1rem;
        box-sizing: border-box;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .shop-card {
        min-height: 250px;
    }

    /* Random shop info */
    .random-shop-info {
        width: 90%;
        height: 70%;
        padding: 0.4rem;
        max-height: 320px;
    }

    .random-shop-info h3 {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
        text-align: center;
    }

    .random-shop-description {
        font-size: 0.85rem;
        line-height: 1.2;
        margin-bottom: 0.6rem;
        max-height: 100px;
        overflow-y: hidden;
        text-align: center;
    }

    .shop-header {
        margin-bottom: 0.6rem;
        justify-content: center;
    }

    .shop-icon {
        width: 32px;
        height: 32px;
    }

    /* Schedule title */
    .schedule-title {
        text-align: center;
        margin-bottom: 1.5rem;
        min-height: 50px;
        height: 50px;
        min-width: auto;
        max-width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .schedule-title h2 {
        text-align: center;
        font-size: 1.8rem;
        margin: 0;
        flex: 1;
        width: 100%;
        display: block;
    }

    .current-shops h2,
    .no-shops h2 {
        text-align: center;
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }
}

/* Medium-large screens (1200px and below) */
@media (max-width: 1200px) {
    .combined-section {
        min-width: auto;
        max-width: 100%;
        padding: 1rem;
        width: calc(100% - 2rem);
        margin: 1rem auto;
    }

    .current-shops {
        width: calc(100% - 2rem);
        max-width: 1200px;
        margin: 0 auto 2rem auto;
        padding: 1rem;
    }

    .other-shops-container {
        max-width: 900px;
        gap: 1.2rem;
    }
}

/* Medium screens (992px and below) */
@media screen and (max-width: 992px) {


    /* Recommended shops section */
    .recommended-shops {
        min-height: 450px;
        height: 450px;
        width: 100%;
    }
    
    .random-shop-card {
        height: 350px;
        width: 100%;
    }
    
    .carousel-navigation {
        padding: 8px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .carousel-dots {
        gap: 0.3rem;
        max-width: 80%;
    }

    /* Schedule section */
    .schedule {
        padding: 0.75rem;
    }

    .shop-cards-container {
        gap: 0.5rem;
        padding: 0.3rem;
        margin: 0 auto;
    }

    .shop-card {
        min-height: 220px;
    }

    /* Schedule title */
    .schedule-title {
        margin-bottom: 1.2rem;
        font-size: 1.6rem;
    }

    .current-shops h2,
    .no-shops h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    /* Featured shop heading styles */
    .featured-shop h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .other-shops-container {
        max-width: 800px;
        gap: 1rem;
    }
    
    .shop .shop-info {
        padding: 0.4rem;
    }
    
    .shop .shop-icon {
        width: 25px;
        height: 25px;
    }
    
    .shop .shop-time {
        font-size: 0.85rem;
    }
}

/* Tablets and smaller (768px and below) */
@media screen and (max-width: 768px) {
    /* Schedule title styles */
    .schedule-title {
        min-height: 50px;
        height: 50px;
        width: 100%;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
        font-size: 1.4rem;
    }

    .schedule-title h2 {
        font-size: 1.4rem;
    }

    .tag-filter-icon {
        font-size: 1.3rem;
        padding: 0.4rem;
    }
    
    /* Header section */
    header {
        padding: 0.5rem 1rem;
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        z-index: 1000;
        background: var(--header-background);
        box-sizing: border-box;
    }
    
    .header-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        position: relative;
        width: 100%;
        display: flex;
        padding: 0 0.5rem;
    }
    
    header h1 {
        font-size: 1.5rem;
        margin-bottom: 0;
    }
    
    .header-logo {
        width: 32px;
        height: 32px;
    }
    
    .logo-container {
        gap: 0.5rem;
    }
    
    .header-right {
        display: flex;
        align-items: center;
        gap: 0.8rem;
    }
    
    .header-actions {
        order: 1;
        margin-right: 0.5rem;
    }
    
    nav {
        order: 3;
    }
    
    .mobile-menu-toggle {
        order: 2;
    }
    
    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .header-action-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    /* Main content padding */
    main {
        padding-top: var(--header-height, 60px);
    }

    /* Combined section */
    .combined-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: calc(100% - 1rem);
        padding: 0.5rem;
        margin: 1.5rem auto;
    }

    .details-btn {
        display: none;
    }

    /* Recommended shops section */
    .recommended-shops {
        min-height: 400px;
        height: auto;
        width: 100%;
        padding: 0.5rem;
        padding-bottom: 60px;
        box-sizing: border-box;
        position: relative;
    }
    
    .carousel-navigation {
        position: absolute;
        bottom: 0;
        left: 0;
        padding: 8px;
        width: 100%;
        box-sizing: border-box;
        background: rgba(0, 0, 0, 0.1);
        border-radius: 0 0 12px 12px;
    }
    
    .carousel-dots {
        gap: 0.3rem;
        max-width: 80%;
    }

    .random-shop-card {
        height: 350px;
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
    }
    
    .random-shop-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        padding: 0.5rem;
        box-sizing: border-box;
    }

    .random-shop-info {
        width: 90%;
        height: 500px;
        padding: 0.5rem;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Schedule section */
    .schedule {
        padding: 0.5rem;
        overflow-x: hidden;
    }

    .shop-cards-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.5rem;
        padding: 0.25rem;
    }

    .shop-card {
        min-height: 200px;
    }

    .shop-card-info h3 {
        font-size: 1rem;
    }

    /* No shops message */
    .no-shops-message {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 2rem 1rem;
        margin: 1.5rem auto;
        width: 90%;
        max-width: 600px;
        box-sizing: border-box;
    }

    .no-shops-message i {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .current-shops h2,
    .no-shops h2 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    /* Featured shop styles */
    .featured-shop h3 {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
        text-align: center;
    }
    
    .featured-shop-container {
        height: 250px;
    }

    .featured-shop-description {
        max-height: 40px;
    }
    
    /* Time badge styles */
    .time-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.85rem;
        margin: 0.3rem 0;
    }

    .other-shops-container {
        max-width: 600px;
        gap: 0.8rem;
        justify-content: space-around;
    }
    
    .shop-content {
        padding: 0.75rem;
    }

    .current-shops h2 {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .global-time {
        margin-left: 0;
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    .open-shops-count {
        font-size: 0.8rem;
    }

    .shop-filters {
        margin: 1rem 0;
        padding: 0.3rem;
        gap: 0.3rem;
    }

    .filter-tag {
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
    }

    .other-shops-container {
        padding: 0.5rem;
    }
    
    .shop {
        min-width: 180px;
        height: 180px;
        margin-right: -90px;
    }

    .shop:hover {
        transform: translateY(-15px) scale(1.1);
    }
}

/* Small tablets and large phones (552px and below) */
@media screen and (max-width: 552px) {
    /* Featured shop section */
    .featured-shop-info {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .featured-shop-details {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .shop-metadata {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .time-badge {
        order: -1; /* Move time badge to top */
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }

    .shop-tags-container {
        width: 100%;
        justify-content: center;
    }

    .featured-shop-description {
        display: none;
    }

    .featured-shop-time {
        order: 1;
        width: 100%;
        justify-content: center;
        margin: 0.5rem 0;
    }

    .featured-shop-tags {
        order: 2;
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }

    .other-shops-container {
        max-width: 95%;
        gap: 0.7rem;
    }
    
    .shop-content {
        padding: 0.6rem;
    }
    
    .shop .shop-info {
        padding: 0.3rem;
    }
    
    .shop .shop-icon {
        width: 22px;
        height: 22px;
        margin-right: 0.3rem;
    }
    
    .shop .shop-time {
        font-size: 0.8rem;
    }
}

/* Mobile devices (480px and below) */
@media screen and (max-width: 480px) {
    /* Combined section */
    .combined-section {
        padding: 0.25rem;
        width: calc(100% - 0.5rem);
        margin: 1rem auto;
        gap: 1.5rem;
    }

    /* Current shops section */
    .current-shops {
        min-width: 90%;
        max-width: 90%;
        padding: 1rem;
        min-height: 350px;
        width: calc(100% - 0.5rem);
        margin: 0 auto 2rem auto;
    }

    /* Recommended shops section */
    .recommended-shops {
        min-height: 350px;
        padding: 0.5rem;
        padding-bottom: 60px;
        width: 100%;
        box-sizing: border-box;
        position: relative;
    }
    
    .random-shop-card {
        height: 350px;
        width: 100%;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .random-shop-content {
        padding: 0.5rem;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .random-shop-image {
        width: 180px;
        height: 180px;
        border-radius: 50%;
        object-fit: cover;
        margin: 0 auto;
    }
    
    .random-shop-info {
        width: 100%;
        height: 90%;
        padding: 0.5rem;
        box-sizing: border-box;
    }
    
    .random-shop-info h3 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .random-shop-description {
        font-size: 0.85rem;
        line-height: 1.3;
        max-height: 120px;
        overflow-y: hidden;
    }

    /* Schedule section */
    .schedule {
        padding: 0.25rem;
    }

    .shop-cards-container {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.4rem;
        padding: 0.25rem;
        margin: 0 auto;
    }

    .shop-card {
        min-height: 170px;
    }

    .shop-card-info {
        padding: 0.5rem;
    }

    .shop-card-info h3 {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }

    .shop-card-info p {
        font-size: 0.8rem;
    }

    /* Schedule title and filters */
    .schedule-title {
        margin-bottom: 0.8rem;
        font-size: 1.2rem;
    }

    .schedule-title h2 {
        font-size: 1.2rem;
    }

    .day-filter-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.9rem;
    }

    /* No shops message */
    .no-shops-message {
        width: 95%;
        padding: 1.5rem 0.5rem;
        margin: 1rem auto;
    }

    .no-shops-message i {
        font-size: 1.5rem;
    }

    .no-shops-message p {
        font-size: 0.9rem;
    }

    .current-shops h2 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }

    .global-time {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    /* Carousel elements */
    .carousel-button {
        padding: 0.3rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .carousel-dots {
        max-width: 70%;
    }

    .random-shop-image {
        max-width: 70%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: 50%;
    }

    /* Featured shop heading styles */
    .featured-shop h3 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
        text-align: center;
        line-height: 1.3;
    }
    
    /* Time badge styles */
    .time-badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
        margin: 0.2rem 0;
    }

    .other-shops-container {
        gap: 0.6rem;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .shop-content {
        padding: 0.5rem;
    }
    
    .shop .shop-info {
        padding: 0.3rem;
        border-radius: 4px;
    }
    
    .shop .shop-icon {
        width: 20px;
        height: 20px;
        margin-right: 0.25rem;
    }
    
    .shop .shop-time {
        font-size: 0.75rem;
    }

    .current-shops h2 {
        font-size: 1.2rem;
    }

    .open-shops-count {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .shop-filters {
        margin: 0.8rem 0;
        padding: 0.25rem;
        gap: 0.25rem;
    }

    .filter-tag {
        padding: 0.25rem 0.6rem;
        font-size: 0.75rem;
    }

    .other-shops-container {
        padding: 0.3rem;
    }
    
    .shop {
        min-width: 150px;
        height: 150px;
        margin-right: -75px;
    }

    .shop:hover {
        transform: translateY(-10px) scale(1.1);
    }

    header h1 {
        font-size: 1.3rem;
    }
    
    .header-logo {
        width: 28px;
        height: 28px;
    }
    
    .logo-container {
        gap: 0.4rem;
    }
    
    .header-right {
        gap: 0.5rem;
    }
    
    .header-actions {
        gap: 0.5rem;
    }
    
    .theme-toggle, 
    .header-action-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
    }
    
    .mobile-menu-toggle .hamburger {
        width: 20px;
        height: 16px;
    }
}

/* Special breakpoint for random shop image (425px and below) */
@media screen and (max-width: 425px) {
    .random-shop-image {
        width: 200px;  /* Set fixed width */
        height: 200px; /* Set equal height to maintain circle */
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: 50%;
        margin: 0 auto;
    }
}

@media screen and (max-width: 1024px) {
    .schedule-title {
        position: relative;
    }

    .schedule-title h2 {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
    }

    .tag-filter-icon {
        position: absolute;
        right: 0;
    }
    
    .featured-shop-container {
        height: 300px;
    }

    .featured-shop {
        grid-template-columns: 1fr;
    }

    .featured-shop-image {
        height: 150px;
    }
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.mobile-menu-toggle.active {
    background-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Hamburger icon animations */
.mobile-menu-toggle .hamburger {
    width: 24px;
    height: 18px;
    position: relative;
    transform: rotate(0deg);
    transition: 0.5s ease-in-out;
}

.mobile-menu-toggle .hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #ffffff;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mobile-menu-toggle .hamburger span:nth-child(1) {
    top: 0px;
}

.mobile-menu-toggle .hamburger span:nth-child(2),
.mobile-menu-toggle .hamburger span:nth-child(3) {
    top: 8px;
}

.mobile-menu-toggle .hamburger span:nth-child(4) {
    top: 16px;
}

.mobile-menu-toggle.active .hamburger span {
    background: var(--secondary-color-light);
}

.mobile-menu-toggle.active .hamburger span:nth-child(1) {
    top: 8px;
    width: 0%;
    left: 50%;
}

.mobile-menu-toggle.active .hamburger span:nth-child(2) {
    transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg);
}

.mobile-menu-toggle.active .hamburger span:nth-child(4) {
    top: 8px;
    width: 0%;
    left: 50%;
}

/* Special case for mobile menu toggle */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* Force display for mobile screens */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
        margin-left: 0.5rem;
    }
    
    /* Mobile menu styles */
    nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        max-width: 320px;
        height: 100%;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        overflow-y: auto;
        padding: 2rem 1.5rem;
        padding-top: calc(var(--header-height, 70px) + 1rem);
        display: flex;
        flex-direction: column;
        opacity: 0;
        visibility: hidden;
        border-radius: 20px 0 0 20px;
    }
    
    nav.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 5;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s;
    }
    
    .nav-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 1rem;
        margin: 0.7rem 0;
        color: var(--header-text-color-light);
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s;
        border-radius: 12px;
        position: relative;
        transform: translateX(20px);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease, color 0.2s, background-color 0.2s;
        background-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    nav.active .nav-link {
        transform: translateX(0);
        opacity: 1;
    }
    
    /* Staggered animation for nav links */
    nav.active .nav-link:nth-child(1) { transition-delay: 0.05s; }
    nav.active .nav-link:nth-child(2) { transition-delay: 0.1s; }
    nav.active .nav-link:nth-child(3) { transition-delay: 0.15s; }
    nav.active .nav-link:nth-child(4) { transition-delay: 0.2s; }
    nav.active .nav-link:nth-child(5) { transition-delay: 0.25s; }
    nav.active .nav-link:nth-child(6) { transition-delay: 0.3s; }
    
    .nav-link:hover {
        color: #FFFFFF;
        background-color: rgba(255, 255, 255, 0.2);
        transform: translateY(-3px);
        box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
    }
    
    .nav-link::after {
        display: none;
    }

    /* Mobile dropdown styles */
    .dropdown {
        width: 100%;
        margin: 0.7rem 0;
    }
    
    .dropdown-toggle {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: rgba(255, 255, 255, 0.15);
        border-radius: 12px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        margin: 0;
        position: relative;
        color: var(--header-text-color-light);
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s;
    }
    
    .dropdown-toggle::before {
        position: absolute;
        right: 1rem;
        transition: transform 0.3s ease;
    }
    
    .dropdown-toggle::after {
        display: none; /* Hide the underline effect in mobile view */
    }
    
    .dropdown.active .dropdown-toggle::before {
        transform: rotate(180deg);
    }
    
    /* Remove all dropdown content styles - will be handled by JavaScript */
    .dropdown-content {
        /* All styles will be applied via JavaScript */
    }
    
    /* Remove dropdown item styles - will be handled by JavaScript */
    .dropdown-item {
        /* Basic styles only */
        padding: 0.75rem 1rem;
        margin: 0.3rem 0;
        width: 100%;
        display: flex;
        align-items: center;
    }
    
    /* Improve mobile menu appearance */
    nav {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        padding-top: calc(var(--header-height, 70px) + 0.5rem) !important;
    }
    
    .nav-link {
        margin: 0.7rem 0 !important;
        padding: 1rem !important;
        border-radius: 12px !important;
        background-color: rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    }
    
    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.2) !important;
        transform: translateY(-3px) !important;
    }
    
    /* Dark theme adjustments */
    body.dark-theme nav {
        background: linear-gradient(135deg, var(--primary-color-dark), var(--secondary-color-dark));
    }
    
    body.dark-theme .dropdown-toggle {
        background-color: rgba(0, 0, 0, 0.2);
        color: var(--header-text-color-dark);
    }
    
    body.dark-theme .dropdown-item {
        background-color: rgba(0, 0, 0, 0.15);
        color: var(--header-text-color-dark) !important;
    }
    
    body.dark-theme .dropdown-item:hover {
        background-color: rgba(0, 0, 0, 0.25) !important;
    }
}

/* ทำให้แน่ใจว่าเมนูจะซ่อนบนหน้าจอขนาดใหญ่ */
@media screen and (min-width: 769px) {
    nav {
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
        width: auto !important;
        background: none !important;
        box-shadow: none !important;
        border-left: none !important;
        display: flex !important;
        flex-direction: row !important;
        padding: 0 !important;
        align-items: center !important;
    }
    
    .nav-link {
        margin: 0 0.75rem !important;
        padding: 0.5rem 0.75rem !important;
        color: #ffffff !important;
        transform: none !important;
        opacity: 1 !important;
        transition: color 0.2s ease !important;
    }
    
    .nav-link:hover {
        color: var(--secondary-color-light) !important;
        background-color: transparent !important;
        padding-left: 0.75rem !important;
    }
    
    .nav-link::after {
        bottom: -2px !important;
    }
    
    body.dark-theme .nav-link {
        color: var(--text-color-dark) !important;
    }
}

/* Special case for dark theme */
body.dark-theme .mobile-menu-toggle .hamburger span {
    background: #ffffff;
}

body.dark-theme .mobile-menu-toggle.active .hamburger span {
    background: var(--secondary-color-dark);
}

body.dark-theme .nav-link {
    color: var(--text-color-dark);
}

body.dark-theme .nav-link:hover {
    color: var(--secondary-color-dark);
}

body.dark-theme .nav-link::after {
    background-color: var(--secondary-color-dark);
}

body.dark-theme nav {
    background: linear-gradient(135deg, var(--primary-color-dark), var(--secondary-color-dark));
}

body.dark-theme .dropdown-toggle {
    background-color: rgba(0, 0, 0, 0.2);
}

body.dark-theme .dropdown-item {
    background-color: rgba(0, 0, 0, 0.15);
}

@media screen and (max-width: 768px) {
    .other-shops-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .other-shops-container {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.8rem;
        padding: 0.8rem;
    }

    .shop .shop-name {
        font-size: 1rem;
    }

    .shop .shop-time {
        font-size: 0.8rem;
    }

    .shop .shop-icon {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 1200px) {
    #weekly-shops {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 767px) {
    #weekly-shops {
        grid-template-columns: 1fr;
    }
    
    .shop-cards-container {
        grid-template-columns: 1fr;
    }
    
    .schedule-shop {
        min-height: 100px;
    }
    
    .schedule-shop .shop-name {
        font-size: 0.85rem;
    }
}

@media (max-width: 500px) {
    #weekly-shops {
        grid-template-columns: 1fr;
    }
    
    .schedule-shops {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .shop-card {
        min-height: 250px;
    }
}

@media (max-width: 350px) {
    .schedule-shops {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    #weekly-shops {
        grid-template-columns: 1fr;
    }
}

/* Enhance mobile responsiveness */
@media screen and (max-width: 768px) {
    .current-shops {
        min-width: 90%;
        height: auto;
        min-height: 400px;
    }

    .featured-shop-container {
        height: 300px;
    }

    .other-shops-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.8rem;
    }

    .shop-filters {
        padding: 0.3rem;
        gap: 0.3rem;
    }

    .filter-tag {
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 480px) {
    .current-shops {
        padding: 1rem;
    }

    .featured-shop-container {
        height: 250px;
    }

    .other-shops-container {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 0.6rem;
    }
}

.other-shops-title {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 0.8rem;
    padding-left: 1rem;
    border-left: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.shop-filters {
    order: 2;
    width: 100%;
    margin: 0.5rem 0 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-start;
    padding: 0 1rem;
}

.filter-tag {
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tag:hover {
    background: rgba(255, 255, 255, 0.2);
}

.filter-tag.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Header section for mobile */
@media screen and (max-width: 768px) {
    header {
        padding: 0.5rem 1rem;
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        z-index: 1000;
        background: var(--header-background);
        box-sizing: border-box;
    }
    
    .header-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        position: relative;
        width: 100%;
        display: flex;
        padding: 0 0.5rem;
    }
    
    header h1 {
        font-size: 1.5rem;
        margin-bottom: 0;
    }
    
    .header-logo {
        width: 32px;
        height: 32px;
    }
    
    .logo-container {
        gap: 0.5rem;
    }
    
    .header-right {
        display: flex;
        align-items: center;
        gap: 0.8rem;
    }
    
    .header-actions {
        order: 1;
        margin-right: 0.5rem;
    }
    
    nav {
        order: 3;
    }
    
    .mobile-menu-toggle {
        order: 2;
    }
    
    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .header-action-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    /* Main content padding */
    main {
        padding-top: var(--header-height, 60px);
    }
}