/* === GLOBAL STYLES === */
:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --secondary: #64748b;
    --accent: #7c3aed;
    --background: linear-gradient(135deg, #f0f9ff 0%, #e6f4ff 100%);
    --surface: rgba(255, 255, 255, 0.9);
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --card-shadow: 0 8px 30px rgba(30, 64, 175, 0.08);
    --card-shadow-hover: 0 15px 40px rgba(30, 64, 175, 0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 400;
}

.navbar-secondary {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(30, 64, 175, 0.1);
    position: sticky;
    padding: 0.8rem 5%;
    margin: 1rem 5% 0;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.secondary-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    gap: 2rem;
}

.search-container {
    display: flex;
    flex: 1;
    max-width: 700px;
}

.search-input {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px 0 0 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.8);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.search-btn {
    background: linear-gradient(90deg, #1e40af, #3b82f6);
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
    position: relative;
    overflow: hidden;
}

.search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.search-btn:hover {
    background: linear-gradient(90deg, #1e3a8a, #2563eb);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(30, 64, 175, 0.35);
}

.search-btn:hover::before {
    left: 100%;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #cbd5e1;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.15);
}

.category-nav {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.category-nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
    font-size: 0.9rem;
}

.category-nav a:hover {
    color: var(--primary);
}

.category-nav a.active {
    color: var(--primary);
}

.category-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #1e40af, #3b82f6);
}

/* === BENTO GRID STYLES === */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.bento-item {
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    touch-action: pan-y;
    backdrop-filter: blur(10px);
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.bento-item:nth-child(1) {
    grid-column: 1 / 3;
}

.bento-item:nth-child(4) {
    grid-column: 2 / 4;
}

.bento-item:nth-child(5) {
    grid-column: 1 / 2;
}

.carousel-container {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--text-primary);
    text-align: center;
    padding: 2rem;
    position: relative;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
}

.carousel-slide h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    background: linear-gradient(to right, #1e40af, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.carousel-slide p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 80%;
}

.carousel-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(30, 64, 175, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    transform: scale(1.2);
}

.carousel-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.carousel-arrow {
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    /* REMOVE: box-shadow: 0 2px 8px rgba(30, 64, 175, 0.1); */
    pointer-events: all;
    color: var(--text-primary);
    /* REMOVE: backdrop-filter: blur(10px); */
    background: transparent !important; /* ADD THIS */
}

.carousel-arrow:hover {
    transform: scale(1.1);
    color: #1e40af;
}

/* === PAGE SECTION STYLES === */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 3rem auto 1.5rem;
    padding: 0 1rem;
}

.section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 2.2rem;
    position: relative;
    background: linear-gradient(to right, #1e40af, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #1e40af, #3b82f6);
    margin: 0.5rem 0;
    border-radius: 2px;
}

.view-all-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    padding: 0.6rem 0;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    text-decoration: none; /* ADD THIS for anchor tags */
}

.view-all-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 64, 175, 0.1), transparent);
    transition: 0.5s;
}

.view-all-btn:hover {
    color: var(--primary-dark);
    gap: 0.7rem;
}

.view-all-btn:hover::before {
    left: 100%;
}

/* === CATEGORIES STYLES === */
.categories-container {
    max-width: 1400px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.categories-scroll {
    display: flex;
    gap: 2.5rem;
    overflow-x: auto;
    padding: 1.5rem 0;
    scrollbar-width: none;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
    width: 140px;
}

.category-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.category-item:hover .category-circle {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

.category-circle i {
    font-size: 2.8rem;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.category-name {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    text-align: center;
}

/* === STACKED CAROUSEL STYLES === */
.stacked-carousel-section {
    max-width: 1400px;
    margin: 0 auto 4rem;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.stacked-carousel {
    background: var(--surface);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.stacked-carousel-header {
    padding: 1.5rem 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.stacked-carousel-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.stacked-carousel-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, #1e40af, #3b82f6);
    margin: 0.5rem 0;
    border-radius: 2px;
}

.stacked-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    padding: 0 2rem 2rem;
}

.stacked-carousel-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.stacked-carousel-item {
    display: flex;
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.05);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.8);
    height: 120px;
    backdrop-filter: blur(10px);
}

.stacked-carousel-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.1);
}

.stacked-carousel-image {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stacked-carousel-content {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stacked-carousel-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.stacked-carousel-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-weight: 600;
}

.badge-verified {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.badge-premium {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.badge-sponsored {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
}

.stacked-carousel-content h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.stacked-carousel-content p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.stacked-carousel-price {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stacked-carousel-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.stacked-carousel-arrow {
    background: transparent !important; /* ADD THIS */
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    /* REMOVE: box-shadow: 0 2px 8px rgba(30, 64, 175, 0.1); */
    pointer-events: all;
    color: var(--text-primary);
    /* REMOVE: backdrop-filter: blur(10px); */
}

.stacked-carousel-arrow:hover {
    /* REMOVE: background: white; */
    /* REMOVE: box-shadow: 0 4px 12px rgba(30, 64, 175, 0.15); */
    transform: scale(1.1);
    color: #1e40af;
}
.stacked-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.stacked-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(30, 64, 175, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.stacked-carousel-dot.active {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    transform: scale(1.2);
}

/* === FOOTER STYLES === */
footer {
    background: var(--surface);
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    padding: 3rem 1rem;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.footer-section p, .footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: var(--transition);
    display: block;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: var(--primary);
}

/* === MOBILE STYLES === */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--surface);
    z-index: 1000;
    padding: 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    backdrop-filter: blur(10px);
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}

.mobile-user-actions {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-user-actions a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.close-mobile-menu {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
}

/* === SKELETON LOADER STYLES === */
.skeleton-loader {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-circle {
    border-radius: 50%;
}

.skeleton-rect {
    border-radius: 8px;
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-text.long {
    width: 100%;
}

.category-skeleton {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 140px;
}

.category-skeleton-circle {
    width: 120px;
    height: 120px;
    margin-bottom: 1rem;
}

.category-skeleton-name {
    height: 1.1rem;
    width: 80px;
}

/* === RESPONSIVE STYLES === */
@media (max-width: 1200px) {
    .navbar-main, .navbar-secondary {
        padding: 1rem 2%;
        margin: 1rem 2% 0;
    }
    
    .bento-grid {
        margin: 2rem auto;
        padding: 0 2%;
    }
    
    .section-header, .categories-container, .scroll-container, .stacked-carousel-section {
        padding: 0 2%;
    }
}

@media (max-width: 968px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 200px 200px 200px;
        gap: 1rem;
    }
    
    .bento-item:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: 1;
    }
    
    .bento-item:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }
    
    .bento-item:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
    }
    
    .bento-item:nth-child(4) {
        grid-column: 1 / 3;
        grid-row: 3;
    }
    
    .bento-item:nth-child(5) {
        display: none;
    }
    
    .stacked-carousel-slide {
        grid-template-columns: 1fr;
    }
    
    .carousel-slide h3 {
        font-size: 1.5rem;
    }
    
    .carousel-slide p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .main-nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .user-actions {
        display: none;
    }
    
    .navbar-secondary {
        padding: 1rem 2%;
        margin: 1rem 2% 0;
    }
    
    .secondary-nav-container {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
        align-items: stretch;
    }
    
    .search-container {
        max-width: 100%;
        order: 1;
    }
    
    .filter-btn {
        order: 2;
        align-self: flex-start;
    }
    
    .category-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        gap: 1rem;
        padding: 0.5rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .bento-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 180px 180px 180px;
        gap: 0.8rem;
    }
    
    .bento-item {
        border-radius: 12px;
    }
    
    .carousel-slide {
        padding: 1.5rem;
    }
    
    .carousel-slide h3 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .carousel-slide p {
        font-size: 0.9rem;
        max-width: 90%;
    }
    
    .category-circle {
        width: 100px;
        height: 100px;
    }
    
    .category-circle i {
        font-size: 2.2rem;
    }
    
    .category-item {
        width: 120px;
    }
    
    .categories-scroll {
        gap: 1.5rem;
    }

    .stacked-carousel-header {
        padding: 1.5rem 1.5rem 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .stacked-carousel-track {
        padding: 0 1.5rem 1.5rem;
    }
    
    .stacked-carousel-item {
        height: 100px;
    }
    
    .stacked-carousel-image {
        width: 100px;
        height: 100px;
    }
    
    .stacked-carousel-content {
        padding: 1rem;
    }
    
    .stacked-carousel-content h4 {
        font-size: 1rem;
    }
    
    .stacked-carousel-content p {
        font-size: 0.8rem;
    }
    
    .stacked-carousel-price {
        font-size: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .category-skeleton {
        width: 120px;
    }

    .category-skeleton-circle {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .navbar-main {
        padding: 0.8rem 4%;
        margin: 0.8rem 4% 0;
    }
    
    .nav-logo {
        font-size: 1.5rem;
    }
    
    .bento-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 150px 150px 150px;
        gap: 0.6rem;
        margin: 1rem auto;
    }
    
    .carousel-slide {
        padding: 1rem;
    }
    
    .carousel-slide h3 {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }
    
    .carousel-slide p {
        font-size: 0.8rem;
        max-width: 95%;
    }
    
    .carousel-dots {
        bottom: 0.8rem;
    }
    
    .section-header {
        margin: 2rem auto 1rem;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .category-circle {
        width: 80px;
        height: 80px;
    }
    
    .category-circle i {
        font-size: 1.8rem;
    }
    
    .category-item {
        width: 100px;
    }
    
    .category-name {
        font-size: 0.9rem;
    }
    
    .categories-scroll {
        gap: 1rem;
    }
    
    .stacked-carousel-item {
        height: 90px;
    }
    
    .stacked-carousel-image {
        width: 90px;
        height: 90px;
    }
    
    .stacked-carousel-content {
        padding: 0.8rem;
    }
    
    .stacked-carousel-content h4 {
        font-size: 0.9rem;
    }
    
    .stacked-carousel-content p {
        font-size: 0.75rem;
    }
    
    .stacked-carousel-price {
        font-size: 0.9rem;
    }
    
    .stacked-carousel-badges {
        flex-wrap: wrap;
    }
    
    .stacked-carousel-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.5rem;
    }
    
    .carousel-arrow, .stacked-carousel-arrow {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    footer {
        padding: 2rem 1rem;
    }

    .category-skeleton {
        width: 100px;
    }

    .category-skeleton-circle {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 360px) {
    .bento-grid {
        grid-template-rows: 140px 140px 140px;
        gap: 0.5rem;
    }
    
    .category-circle {
        width: 70px;
        height: 70px;
    }
    
    .category-circle i {
        font-size: 1.5rem;
    }
    
    .category-item {
        width: 90px;
    }
    
    .stacked-carousel-item {
        height: 80px;
    }
    
    .stacked-carousel-image {
        width: 80px;
        height: 80px;
    }
    
    .stacked-carousel-content {
        padding: 0.6rem;
    }

    .category-skeleton {
        width: 90px;
    }

    .category-skeleton-circle {
        width: 70px;
        height: 70px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .bento-item:hover,
    .category-item:hover .category-circle,
    .stacked-carousel-item:hover {
        transform: none;
    }
    
    .action-btn:hover,
    .view-all-btn:hover,
    .signup-btn:hover {
        transform: none;
    }
    
    .carousel-arrow:hover,
    .stacked-carousel-arrow:hover {
        transform: none;
    }
}

/* Additional gradient effects and animations */
@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.05);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

@keyframes float-card {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

@keyframes ripple-effect {
    from {
        transform: scale(0);
        opacity: 1;
    }
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* === NEW LISTINGS STYLES === */
.stacked-carousel-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(224, 242, 254, 0.3) 0%, rgba(186, 230, 253, 0.1) 100%);
}

.stacked-carousel-placeholder i {
    font-size: 2rem;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stacked-carousel-image {
    position: relative;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(224, 242, 254, 0.3) 0%, rgba(186, 230, 253, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.stacked-carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stacked-carousel-features {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.feature-tag {
    background: rgba(30, 64, 175, 0.1);
    color: var(--primary);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.stacked-carousel-type {
    margin-top: 0.5rem;
}

.type-tag {
    padding: 0.2rem 0.8rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.type-tag.item {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.type-tag.service {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.no-data-message, .error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    width: 100%;
}

.no-data-message i, .error-message i {
    margin-bottom: 1rem;
}

/* Responsive styles for new listings */
@media (max-width: 768px) {
    .stacked-carousel-image {
        width: 100px;
        height: 100px;
    }
    
    .stacked-carousel-placeholder i {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .stacked-carousel-image {
        width: 90px;
        height: 90px;
    }
    
    .stacked-carousel-content h4 {
        font-size: 0.9rem;
    }
    
    .stacked-carousel-content p {
        font-size: 0.8rem;
    }
}
