/* Product Listing View Style - Isolated Premium Light Mode */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --product-primary-blue: #2563eb;
    --product-navy-blue: #1a237e;
    --product-brand-red: #b71c1c;
    --product-bg-white: #ffffff;
    --product-bg-light: #f8fafc;
    --product-text-dark: #0f172a;
    --product-text-muted: #64748b;
    --product-border-light: #e2e8f0;
}

/* Base scoping to prevent clashes with homepage/slider */
html {
    font-size: 16px !important;
}

.product-listing-main {
    min-height: 100vh;
    background-color: var(--product-bg-white);
    color: var(--product-text-dark);
    position: relative;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
}

/* Homepage inclusion adjustments */
.product-listing-main.is-home-include {
    min-height: auto !important;
    background: transparent !important;
    padding-top: 0 !important;
}

.product-listing-main.is-home-include .products-section {
    padding: 2rem 1.5rem !important;
    background: transparent !important;
}

/* Scoped fixed background - restricted to container if possible, but keep original logic isolated */
.product-listing-main .fixed-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.product-listing-main .bg-gradient-1 {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 50%, #fff5f5 100%);
}

.product-listing-main .bg-radial {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.03), transparent 60%);
}

.product-listing-main .bg-blur-1 {
    position: absolute;
    top: -10%;
    left: 20%;
    width: 30rem;
    height: 30rem;
    background-color: rgba(37, 99, 235, 0.05);
    border-radius: 50%;
    filter: blur(80px);
}

.product-listing-main .bg-blur-2 {
    position: absolute;
    bottom: -10%;
    right: 20%;
    width: 30rem;
    height: 30rem;
    background-color: rgba(183, 28, 28, 0.03);
    border-radius: 50%;
    filter: blur(80px);
}

/* Hero Section Scoped */
.product-listing-main .hero-section {
    position: relative;
    z-index: 10;
    padding: 6rem 1.5rem;
    text-align: center;
}

.product-listing-main .hero-content {
    max-width: 80rem;
    margin: 0 auto;
}

.product-listing-main .hero-badge {
    display: inline-flex;
    padding: 0.5rem 1.25rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 9999px;
    margin-bottom: 2rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.product-listing-main .badge-text {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--product-primary-blue);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.product-listing-main .hero-title {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--product-navy-blue);
}

.product-listing-main .gradient-text {
    background: linear-gradient(135deg, var(--product-navy-blue) 0%, var(--product-primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-listing-main .hero-divider-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.product-listing-main .hero-divider {
    width: 6rem;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--product-primary-blue), transparent);
    border-radius: 9999px;
}

.product-listing-main .hero-description {
    font-size: 1.125rem;
    color: var(--product-text-muted);
    max-width: 45rem;
    margin: 2rem auto 0;
    line-height: 1.6;
}

/* Category Filters Scoped */
.product-listing-main .category-section {
    position: relative;
    z-index: 20;
    padding: 2rem 1.5rem;
}

.product-listing-main .category-container {
    max-width: 80rem;
    margin: 0 auto;
}

.product-listing-main .category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.product-listing-main .category-title-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-listing-main .icon-filter {
    width: 2.5rem !important;
    height: 2.5rem !important;
    color: var(--product-navy-blue) !important;
}

.product-listing-main .category-title-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--product-navy-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-listing-main .view-mode-toggle {
    display: flex;
    padding: 0.375rem;
    background: var(--product-bg-light);
    border-radius: 9999px;
    border: 1px solid var(--product-border-light);
}

.product-listing-main .view-btn {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background: none;
    color: var(--product-text-muted);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-listing-main .view-btn.active {
    background: var(--product-bg-white);
    color: var(--product-primary-blue);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.product-listing-main .category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.product-listing-main .filter-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: var(--product-bg-white);
    border: 1px solid var(--product-border-light);
    border-radius: 9999px;
    color: var(--product-text-muted);
    font-weight: 600;
    font-size: 0.9375rem;
}

.product-listing-main .icon-filter {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--product-primary-blue);
}

.product-listing-main .icon-category {
    width: 1rem;
    height: 1rem;
}

.product-listing-main .filter-btn:hover {
    border-color: var(--product-primary-blue);
    color: var(--product-primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.1);
}

.product-listing-main .filter-btn.active {
    background: var(--product-navy-blue);
    border-color: var(--product-navy-blue);
    color: var(--product-bg-white);
    box-shadow: 0 10px 15px -3px rgba(26, 35, 126, 0.2);
}

/* Products Content Scoped */
.product-listing-main .products-section {
    position: relative;
    z-index: 10;
    padding: 4rem 1.5rem 8rem;
    max-width: 80rem;
    margin: 0 auto;
}

.product-listing-main .products-container {
    max-width: 80rem;
    margin: 0 auto;
}

.product-listing-main .products-content {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.product-listing-main .category-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: opacity 0.4s ease;
}

.product-listing-main .category-group-title-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.product-listing-main .category-accent-line {
    width: 0.5rem;
    height: 3rem;
    background: linear-gradient(to bottom, var(--product-navy-blue), var(--product-primary-blue));
    border-radius: 9999px;
}

.product-listing-main .category-group-title {
    font-size: 2.25rem;
    font-weight: 800;
}

.product-listing-main .category-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.product-listing-main .category-count {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--product-text-muted);
}

.product-listing-main .products-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)) !important;
    gap: 2.5rem !important;
}

.product-listing-main .products-grid.list-view {
    grid-template-columns: 1fr;
}

/* Product Card Scoped */
.product-listing-main .product-card {
    background: var(--product-bg-white);
    border: 1px solid var(--product-border-light);
    border-radius: 1.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.product-listing-main .product-link {
    text-decoration: none !important;
    display: block;
    height: 100%;
}

.product-listing-main .product-link:hover {
    text-decoration: none !important;
}

.product-listing-main .product-card:hover {
    transform: translateY(-10px);
    border-color: var(--product-primary-blue);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
}

.product-listing-main .product-container {
    padding: 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-listing-main .product-image-container {
    position: relative;
    height: 15rem;
    background: var(--product-bg-light);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 1.75rem;
    transition: all 0.5s ease;
}

.product-listing-main .product-card:hover .product-image-container {
    background: #ffffff;
}

.product-listing-main .product-image {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-listing-main .product-card:hover .product-image {
    transform: scale(1.08);
}

.product-listing-main .product-status-indicators {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
}

.product-listing-main .status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
}

.product-listing-main .status-green { background: #10b981; }
.product-listing-main .status-blue { background: #3b82f6; }

.product-listing-main .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-listing-main .product-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.product-listing-main .product-title.gradient-text {
    background: linear-gradient(135deg, var(--product-navy-blue) 0%, var(--product-brand-red) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.product-listing-main .product-code {
    display: inline-flex;
    padding: 0.25rem 0.75rem;
    background: var(--product-bg-light);
    color: var(--product-primary-blue);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border: 1px solid var(--product-border-light);
}

.product-listing-main .product-description {
    font-size: 0.9375rem;
    color: var(--product-text-muted);
    line-height: 1.6;
    margin-bottom: 1.75rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.8em; /* Force minimum height for 3 lines to keep titles aligned too */
}

.product-listing-main .product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-listing-main .feature-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: var(--product-bg-light);
    border: 1px solid var(--product-border-light);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--product-text-dark);
    transition: all 0.3s ease;
}

.product-listing-main .product-card:hover .feature-pill {
    background: #ffffff;
    border-color: var(--product-primary-blue);
}

.product-listing-main .feature-icon {
    width: 0.8125rem;
    height: 0.8125rem;
    color: var(--product-brand-red);
}

.product-listing-main .product-actions {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--product-border-light);
}

.product-listing-main .examine-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: #ffffff;
    border: 2px solid var(--product-navy-blue);
    color: var(--product-navy-blue);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-listing-main .product-card:hover .examine-button {
    background: var(--product-navy-blue);
    color: #ffffff;
    transform: translateX(5px);
    box-shadow: 0 10px 20px -5px rgba(26, 35, 126, 0.3);
}

.product-listing-main .button-icon {
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s ease;
}

.product-listing-main .product-card:hover .button-icon {
    transform: translateX(3px);
}

/* Excellence Section Scoped */

/* CTA Section Scoped */
/* CTA Section Scoped */
.product-listing-main .cta-section {
    position: relative;
    z-index: 10;
    padding: 8rem 1.5rem;
}

.product-listing-main .cta-container {
    max-width: 80rem;
    margin: 0 auto;
}

.product-listing-main .cta-wrapper {
    position: relative;
}

.product-listing-main .cta-bg-blur {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--product-navy-blue), var(--product-brand-red));
    border-radius: 1.5rem;
    filter: blur(48px);
    opacity: 0.15;
    animation: product-pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    transition: opacity 0.7s ease;
}

.product-listing-main .cta-wrapper:hover .cta-bg-blur {
    opacity: 0.25;
}

.product-listing-main .cta-bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(37, 99, 235, 0.1), rgba(183, 28, 28, 0.1));
    border-radius: 1.5rem;
    filter: blur(24px);
}

.product-listing-main .cta-content {
    position: relative;
    background: var(--product-bg-white);
    border-radius: 1.5rem;
    padding: 4rem;
    border: 1px solid var(--product-border-light);
    text-align: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.product-listing-main .cta-accent-line {
    position: absolute;
    top: 2rem;
    left: 2rem;
    right: 2rem;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(37, 99, 235, 0.3), transparent);
}

.product-listing-main .cta-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--product-navy-blue);
    margin-bottom: 1.5rem;
}

.product-listing-main .cta-description {
    font-size: 1.25rem;
    color: var(--product-text-muted);
    margin-bottom: 2.5rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
}

.product-listing-main .cta-actions {
    display: flex;
    justify-content: center;
}

.product-listing-main .cta-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    padding: 1.25rem 2.5rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.5s ease;
    transform: translateY(0);
}

.product-listing-main .cta-button-primary {
    background: linear-gradient(to right, var(--product-navy-blue), var(--product-brand-red));
    color: #ffffff;
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.3);
}

.product-listing-main .cta-button-primary:hover {
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.5);
    transform: translateY(-0.5rem) scale(1.05);
}

.product-listing-main .cta-arrow {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}

.product-listing-main .cta-button:hover .cta-arrow {
    transform: translateX(0.5rem);
}

.product-listing-main .cta-button-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 9999px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-listing-main .cta-button:hover .cta-button-overlay {
    opacity: 1;
}

@keyframes product-pulse {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.25; }
}

/* Scroll Animations Scoped */
.product-listing-main .fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-listing-main .fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-listing-main .animate-show {
    opacity: 1 !important;
    transform: none !important;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .product-listing-main .hero-title { font-size: 3rem; }
    .product-listing-main .cta-title { font-size: 2.2rem; }
    .product-listing-main .products-grid { grid-template-columns: 1fr; }
}
