/* ============================================
   Shop Page Styles - Main Services Page
   ============================================ */

.shop-main {
    padding: 0;
    padding-bottom: 100px;
    background-color: #FAFAFA;
}

/* ============================================
   Category Labels Navigation
   ============================================ */
.category-labels-nav {
    position: sticky;
    top: 56px; /* Header height */
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    z-index: 998;
    padding: 12px 0;
    display: none; /* Hidden by default, shown by JavaScript */
}

.category-labels-container {
    display: flex;
    gap: 8px;
    padding: 0 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.category-labels-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.category-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    border: 1.5px solid var(--color-border);
    background-color: #FFFFFF;
    color: var(--color-text-light);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 36px;
    font-family: 'Cairo', sans-serif;
}

.category-label:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary-light);
    background-color: #FAFAFA;
}

.category-label:active {
    transform: translateY(0);
}

.category-label.active {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #FFFFFF;
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(255, 105, 180, 0.3);
}

.category-label.active:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--color-shadow-pink);
}

.category-label__icon {
    font-size: 14px;
    line-height: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-label:not(.active) .category-label__icon {
    color: var(--color-text-gray);
}

.category-label.active .category-label__icon {
    color: #FFFFFF;
    transform: scale(1.1);
}

.category-label:hover:not(.active) .category-label__icon {
    color: var(--color-primary);
}

.category-label__text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

/* Ensure smooth scrolling for the page */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .category-label {
        transition: none;
    }
}

/* Category Section */
.category-section {
    margin-bottom: 0;
    background-color: transparent;
    padding: 0;
}

.category-section__header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 16px;
    padding: 16px 16px 12px 16px;
    background-color: #FFFFFF;
}

.category-section__title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-section__icon {
    font-size: 24px;
    color: var(--color-primary);
}

.category-section__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

/* Instagram-Style Single Column Layout */
.category-section__products {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

/* Product Card - Instagram Post Style */
.category-section__products .product-card {
    width: 100%;
    max-width: 100%;
    background-color: #FFFFFF;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 0;
}

/* Square Image (1:1 aspect ratio) */
.category-section__products .product-card__image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Creates 1:1 aspect ratio */
    overflow: hidden;
    background-color: #F5F5F5;
}

.category-section__products .product-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Heart Icon - Instagram Style (Top Right) */
.category-section__products .product-card__favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.category-section__products .product-card__favorite:active {
    transform: scale(0.9);
}

.category-section__products .product-card__favorite:hover {
    background-color: #FFFFFF;
    transform: scale(1.05);
}

.category-section__products .product-card__favorite.active {
    color: #E91E63;
}

.category-section__products .product-card__favorite.active i {
    color: #E91E63;
}

.category-section__products .product-card__favorite i {
    font-size: 18px;
    color: #262626;
}

/* Product Info Below Image */
.category-section__products .product-card__info {
    padding: 16px;
}

.category-section__products .product-card__brand {
    font-size: 13px;
    color: #8E8E8E;
    margin-bottom: 6px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-section__products .product-card__name {
    font-size: 15px;
    font-weight: 600;
    color: #262626;
    margin-bottom: 8px;
    line-height: 1.4;
}

.category-section__products .product-card__price {
    font-size: 16px;
    font-weight: 700;
    color: #262626;
}

