/* Category Tabs Slider Container */
.tabs-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.category-tabs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 4px;
    /* Padding for focus rings */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
    scroll-behavior: smooth;
    /* Smooth scrolling */
    white-space: nowrap;
    width: 100%;
}

.category-tabs::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.tab-scroller {
    background: white;
    border: 1px solid #e2e8f0;
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 10;
    position: absolute;
    transition: all 0.2s ease;
    opacity: 0.9;
}

.tab-scroller:hover {
    background: var(--primary-deep);
    color: white;
    transform: scale(1.1);
}

.tab-scroller.left {
    left: 0;
    transform: translateX(-50%);
}

.tab-scroller.right {
    right: 0;
    transform: translateX(50%);
}

.tab-scroller.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

.cat-tab {
    flex: 0 0 auto;
    /* Don't shrink */
    padding: 8px 24px;
    border-radius: 9999px;
    /* Pill shape */
    background: white;
    border: 1px solid var(--primary-deep);
    color: var(--primary-deep);
    white-space: nowrap;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.cat-tab.active,
.cat-tab:hover {
    background: var(--primary-deep);
    color: white;
    box-shadow: var(--shadow-sm);
}

/* Horizontal Product Carousel */
.product-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 24px;
    padding-left: 4px;
    /* Safety padding */
    padding-right: 4px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.product-carousel::-webkit-scrollbar {
    height: 8px;
}

.product-carousel::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}

/* Specific Home Product Card Style (Minimalist) */
.home-product-card {
    flex: 0 0 auto;
    /* Don't shrink */
    width: 240px;
    background: #fdfcf6;
    /* Cream/Beige tint */
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    /* Slightly more rounded */
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    /* In case it's an anchor */
    display: block;
    /* If anchor */
}

.home-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.home-product-img-container {
    width: 100%;
    height: 200px;
    background: #f1f5f9;
    overflow: hidden;
}

.home-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.home-product-card:hover .home-product-img {
    transform: scale(1.05);
}

.home-product-content {
    padding: 16px;
}

.home-product-meta {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home-product-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-product-desc {
    font-size: 0.85rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-product-location {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.price-pill {
    background: var(--primary-deep);
    color: white;
    padding: 6px 14px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Hero Banner Styles */
.hero-banner {
    border-radius: 12px;
    margin-bottom: 3rem;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column-reverse;
    /* Mobile Default */
    align-items: center;
    justify-content: space-between;
    min-height: 300px;
    padding: 0;
}

.hero-content {
    padding: 2rem;
    flex: 1;
    z-index: 10;
    width: 100%;
    text-align: center;
    /* Center text on mobile */
}

.hero-title {
    font-size: 1.8rem;
    color: #134e4a;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1rem;
    color: #134e4a;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    /* Center buttons on mobile */
}

.btn-primary-banner {
    background-color: #134e4a;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.btn-secondary-banner {
    border: 1px solid #134e4a;
    color: #134e4a;
    background: transparent;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    padding: 1rem;
}

.hero-image {
    max-height: 250px;
    width: auto;
    object-fit: contain;
}

/* Desktop Responsiveness */
@media (min-width: 768px) {
    .hero-banner {
        flex-direction: row;
        text-align: left;
    }

    .hero-content {
        padding: 3rem;
        text-align: left;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

    .hero-image-container {
        justify-content: flex-end;
        padding-right: 2rem;
        height: 100%;
    }

    .hero-image {
        max-height: 350px;
    }
}

/* Mobile Redesign Specifics */
.mobile-hero-container {
    background: linear-gradient(135deg, #2D7A6E 0%, #469D8F 100%);
    /* Green Gradient */
    border-radius: 0;
    /* Full width on mobile usually, or keep rounded? Image shows full width logic inside container */
    color: white;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    /* Removed negative margins to prevent horizontal scroll */
    width: 100%;
}

.mobile-hero-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.mobile-hero-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 25px;
    font-weight: 300;
}

.mobile-hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-mobile-hero {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    flex: 1;
    max-width: 160px;
}

.btn-mobile-primary {
    background-color: #134e4a;
    color: white;
    border: none;
}

.btn-mobile-outline {
    background-color: transparent;
    color: #134e4a;
    /* Wait, background is green? No, image has white buttons? */
    /* Looking at image: Background is Green Gradient. 
       "Shop Now" button is Dark Green Background, White Text.
       "List an Item" button is Transparent/Light Background, Dark Green Text? 
       Actually, on the green gradient:
       User image shows "Shop Now" is solid dark green. "List an Item" is outlined or light. 
       Let's assume light styling for contrast.
    */
    border: 1px solid #134e4a;
    background: rgba(255, 255, 255, 0.9);
    /* Slight white for contrast */
}

/* Latest Arrivals Grid */
.section-header {
    margin-bottom: 15px;
    padding: 0 10px;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #134e4a;
    margin-bottom: 5px;
}

.section-subtitle {
    font-size: 0.9rem;
    color: #64748b;
}

.mobile-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Mobile: 2 items per row */
    gap: 15px;
    padding: 0 5px;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .mobile-product-grid {
        grid-template-columns: repeat(4, 1fr);
        /* Tablet: 4 items per row */
        gap: 20px;
        padding: 0 20px;
        max-width: 1200px;
        margin: 0 auto 3rem auto;
    }
}

@media (min-width: 1200px) {
    .mobile-product-grid {
        grid-template-columns: repeat(5, 1fr);
        /* Desktop: 5 items per row */
    }
}

.mobile-product-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    /* Clean look */
    transition: transform 0.2s, box-shadow 0.2s;
}

.mobile-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mobile-product-img-box {
    width: 100%;
    aspect-ratio: 1/1;
    /* Ensure square images */
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mobile-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
    /* Keep multiply if background is problematic, else normal */
}

.mobile-product-info {
    padding: 10px;
}

.mobile-product-title {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-product-price {
    font-size: 1rem;
    font-weight: 700;
    color: #134e4a;
}

/* FAB */
.fab-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
}

.fab-button {
    width: 56px;
    height: 56px;
    background-color: #134e4a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s;
}

.fab-button:hover {
    transform: scale(1.05);
}