.product-hub-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    background-color: transparent;
    min-height: 80vh;
}

.category-section {
    margin-bottom: 4rem;
}

.category-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    color: #000;
    padding-left: 1rem;
    border-left: 6px solid #000;
    letter-spacing: -0.02em;
}

.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.product-cards-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding: 1rem 0.5rem;
    scroll-behavior: smooth;
    width: 100%;
    flex: 1;
    min-width: 0; /* Crucial for flex items to shrink/scroll correctly */
    min-height: 520px; /* Increased height for taller cards */
    -webkit-overflow-scrolling: touch; /* iOS Momentum Scrolling */
    /* Hide scrollbar */
    scrollbar-width: none;  /* Firefox */
}

.product-cards-slider::-webkit-scrollbar {
    display: none;  /* Chrome, Safari and Opera */
}

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

.product-card {
    width: 320px;
    height: 480px; /* Taller card */
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    border: 1px solid rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.card-image {
    width: 100%;
    height: 70%; /* More height for image */
    background-size: cover; /* Use cover if aspect ratio varies slightly */
    background-position: center;
    background-color: #f8f8f8;
    border-bottom: 1px solid #eee;
}

.card-content {
    padding: 1.5rem;
    height: 30%; /* Less height for content since title is usually short */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.product-title {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
    color: #1a1a1a;
    line-height: 1.2;
}

.main-button {
    background-color: #000;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    border: 2px solid #000;
}

.product-card:hover .main-button {
    background-color: white;
    color: black;
}

.slider-arrow {
    -webkit-appearance: none;
    appearance: none;
    background: white;
    border: 1px solid #eee;
    color: #333;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: absolute;
    padding: 0; /* Reset default button padding */
    top: 50%;
    transform: translateY(-50%);
}

.slider-arrow:hover {
    background: #000;
    color: white;
    border-color: #000;
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.left {
    left: -24px;
}

.slider-arrow.right {
    right: -24px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .product-hub-container {
        padding: 1rem;
    }

    .category-title {
        font-size: 1.5rem;
        border-left-width: 4px;
        margin-bottom: 1rem;
    }

    .product-card {
        width: 260px;
        height: 360px;
    }
    
    .product-cards-slider {
        gap: 1rem;
    }

    .slider-arrow {
        display: none; /* Hide arrows on mobile, rely on swipe */
    }
    
    .slider-wrapper {
        margin: 0 -1rem; /* Full width swipe on mobile */
        padding: 0 1rem;
    }
    
    .product-cards-slider {
        padding: 1rem 1rem; /* Add padding so start/end cards aren't flush with edge */
    }
}
