.catalog-page-wrapper {
    background-color: #f8f9fa;
    min-height: 100vh;
}

.catalog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.spacer {
    flex: 6;
}

.catalog-header {
    text-align: center;
    margin-bottom: 60px;
}

.catalog-title {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 12px 0;
    color: #111827;
}

.catalog-subtitle {
    font-size: 16px;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Category Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

/* Modern Category Card Design */
.category-card-modern {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 380px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    display: block;
    text-decoration: none;
    color: white;
}

.category-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.category-img-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.category-img-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
}

.category-img-asset {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.category-card-modern:hover .category-img-asset {
    transform: scale(1.1);
}

.category-glass-info {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.category-card-modern:hover .category-glass-info {
    background: rgba(255, 255, 255, 0.15);
    bottom: 20px;
}

.category-text-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-text-meta h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: white;
}

.category-text-meta span {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.9);
}

.category-action-btn {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

[dir="rtl"] .category-action-btn span {
    transform: scaleX(-1);
    display: inline-block;
}

.category-card-modern:hover .category-action-btn {
    transform: rotate(-45deg);
    background: #0f62fe;
    color: white;
}

/* Sub-category Tabs */
.tabs-container {
    background: white;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 80px;
    z-index: 10;
    margin-bottom: 40px;
}

.tabs-scroll {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

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

.cat-tab {
    padding: 12px 24px;
    border-radius: 50px;
    background: #f3f4f6;
    color: #4b5563;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    border: none;
}

.cat-tab:hover {
    background: #e5e7eb;
}

.cat-tab.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}