/* ==========================================================================
   PRODUCTS SPECIFIC STYLES (SyncAeverything Products Catalog)
   ========================================================================== */

/* Category Filter & Search */
.filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--easing);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tab-btn:hover {
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    background: var(--text-main);
    color: var(--bg-color);
    border-color: var(--text-main);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .tab-btn {
    background: rgba(0, 0, 0, 0.02);
    color: var(--text-muted);
}

[data-theme="light"] .tab-btn:hover {
    border-color: rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.05);
}

/* Product Cards Layout */
.product-card {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.4s var(--easing), border-color 0.4s var(--easing), box-shadow 0.4s var(--easing);
}

.product-card:hover {
    border-color: rgba(0, 136, 255, 0.35);
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 136, 255, 0.08);
}

.product-card[data-category="workspace"]:hover {
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.08);
}

.product-img-holder {
    position: relative;
    height: 260px;
    background: #111115;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

[data-theme="light"] .product-img-holder {
    background: #eef0f3;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--easing);
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--text-main);
    color: var(--bg-color);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 4px;
}

.product-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.product-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.product-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 25px;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ==========================================================================
   PRODUCTS RESPONSIVE STYLES
   ========================================================================== */
@media (max-width: 768px) {
    .filter-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-tabs {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        flex-wrap: nowrap;
        width: 100%;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: none;  /* IE/Edge */
        scrollbar-width: none;  /* Firefox */
    }

    .filter-tabs::-webkit-scrollbar {
        display: none; /* Hide Chrome/Safari scrollbar */
    }
    
    .tab-btn {
        flex-shrink: 0;
        white-space: nowrap;
        text-align: center;
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .product-info {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .product-img-holder {
        height: 200px;
    }
    
    .product-actions {
        gap: 8px;
    }
    
    .product-price {
        font-size: 1.2rem;
    }
}

/* Responsive Wholesale Table (B2B) */
@media (max-width: 600px) {
    table.responsive-table thead {
        display: none; /* Hide standard headers */
    }
    
    table.responsive-table, 
    table.responsive-table tbody, 
    table.responsive-table tr, 
    table.responsive-table td {
        display: block;
        width: 100%;
    }
    
    table.responsive-table tr {
        border-bottom: 2px solid var(--border-color);
        padding: 15px 0;
    }
    
    table.responsive-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0 !important;
        border: none !important;
    }
    
    table.responsive-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted);
        font-size: 0.85rem;
    }
    
    table.responsive-table td.col-product {
        font-size: 1.05rem;
        font-weight: 600;
        color: var(--text-main);
        padding-bottom: 8px !important;
        border-bottom: 1px dashed var(--border-color) !important;
        margin-bottom: 10px;
        display: block;
        text-align: left;
    }
    
    table.responsive-table td.col-product::before {
        display: none;
    }
}
