body {
    background: #f1f5f9;
    color: var(--gray-800);
}

.ambient-light {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
}

/* Light Theme Header Section */
.firma-header-section {
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}

.firma-header-card {
    background: white;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.firma-profile {
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.firma-logo-large {
    width: 160px;
    height: 160px;
    background: white;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    font-weight: 800;
    color: var(--primary-blue);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    border: 4px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    padding: 12px;
}

.firma-logo-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.firma-info h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
    color: var(--gray-900);
}

.firma-desc-text {
    color: var(--gray-600);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 850px;
}

.firma-badges {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.firma-badge {
    background: #f1f5f9;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-700);
}

.firma-badge--verified {
    color: #047857;
    border-color: rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.05);
}

.firma-badge--verified i {
    color: #10b981;
}

.firma-badge--rating i {
    color: #f59e0b;
}

button.btn-follow-toggle.firma-badge {
    cursor: pointer;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    outline: none;
}

button.btn-follow-toggle.firma-badge:hover {
    background: #e2e8f0;
    transform: scale(1.02);
}

button.btn-follow-toggle.firma-badge[data-following="true"] {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.2);
    color: #047857;
}

button.btn-follow-toggle.firma-badge[data-following="true"]:hover {
    background: rgba(16, 185, 129, 0.1);
}

.btn-follow-toggle i.text-success {
    color: #10b981 !important;
}

.btn-follow-toggle i.text-primary {
    color: #3b82f6 !important;
}

.firma-stats {
    display: flex;
    gap: 40px;
    margin-top: 25px;
}

.firma-stat-item {
    text-align: left;
}

.firma-stat-value {
    font-size: 24px;
    font-weight: 800;
    display: block;
    color: var(--primary-blue);
    font-family: 'Outfit', sans-serif;
}

.firma-stat-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Layout Grid simplified to single full-width column */
.main-content-grid {
    display: block;
    margin-top: 40px;
    position: relative;
    z-index: 10;
}

/* Right Content Area (now full-width) */
.firma-content-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    border: 1px solid #e2e8f0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.section-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--gray-900);
}

.sort-select {
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    background: #f8fafc;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    font-size: 0.95rem;
}

/* 4-column Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.08);
    transform: translateY(-4px);
}

.product-card .product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}

.product-card .product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-card .wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    z-index: 5;
    cursor: pointer;
    border: none;
}

.product-card .wishlist-btn:hover {
    color: #ef4444;
    transform: scale(1.1);
}

.product-card .compare-btn-circle {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 13px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    z-index: 5;
    cursor: pointer;
    border: none;
}

.product-card .compare-btn-circle:hover {
    color: #3b82f6;
    transform: scale(1.1);
}

.product-card .product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card .product-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 6px;
    line-height: 1.4;
    height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .product-name a {
    color: inherit;
    text-decoration: none;
}

.product-card .product-name a:hover {
    color: #3b82f6;
}

.product-card .product-subtitle {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 12px;
    height: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card .product-price-row {
    display: flex;
    align-items: center;
    height: 30px;
    margin-bottom: 15px;
}

.product-card .product-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
}

.product-price--quote {
    font-size: 0.9rem;
    color: var(--gray-500);
    font-weight: 600;
}

.btn-quote {
    background: var(--primary);
    color: var(--white) !important;
    border: none;
    width: 100%;
    border-radius: 10px;
    font-weight: 700;
    padding: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    text-decoration: none;
}

.btn-quote:hover {
    background: #1d4ed8;
}

.add-to-cart-btn {
    border-radius: 10px;
    padding: 12px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Pagination */
.firma-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0 10px;
    flex-wrap: wrap;
}

.firma-pagination .page-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: var(--gray-600);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.01);
    cursor: pointer;
    transition: all 0.2s ease;
}

.firma-pagination .page-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.firma-pagination .page-btn.active {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.25);
}

.firma-pagination .page-btn:disabled {
    opacity: 0.4;
    pointer-events: none;
}

.tab-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 60px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-500);
    width: 100%;
}

.tab-loader i {
    color: #3b82f6;
    font-size: 1.5rem;
}

/* Accessibility */
.visually-hidden-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Responsive Rules */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .firma-header-section {
        padding: 50px 0;
    }
    .firma-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
    }
    .firma-info h1 {
        font-size: 2.2rem;
    }
    .firma-badges {
        justify-content: center;
    }
    .firma-stats {
        justify-content: center;
        gap: 30px;
    }
    .firma-content-card {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .firma-stats {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
    .firma-stat-item {
        text-align: center;
    }
    .firma-stat-value {
        font-size: 22px;
    }
}