/* =========================================
   ENTERPRISE PRODUCT SYSTEM CSS
   ========================================= */

/* --- 1. LAYOUT --- */
.prod-system-wrapper {
    background-color: var(--bg-body);
    padding-bottom: 100px;
    position: relative;
    margin-top: var(--nav-height);
    /* Offset fixed header */
}

/* --- 2. STICKY NAVIGATION --- */
.cat-nav-strip {
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: var(--nav-height);
    /* Sticks below header */
    z-index: 900;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar */
.cat-nav-strip::-webkit-scrollbar {
    display: none;
}

.cat-nav-strip {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.cat-nav-list {
    display: flex;
    gap: 15px;
    justify-content: center;
    min-width: max-content;
    padding: 0 20px;
}

.cat-tab {
    padding: 10px 20px;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    text-transform: uppercase;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
}

.cat-tab:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    background: white;
}

.cat-tab.active {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
}

.cat-tab-icon {
    font-size: 1.1rem;
}

/* --- 3. CATEGORY HERO --- */
.cat-hero-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(to bottom, #ffffff, #f1f5f9);
    border-bottom: 1px solid var(--border);
}

.cat-hero-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeIn 0.5s ease;
}

.cat-hero-desc {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    animation: fadeIn 0.8s ease;
}

.line-center {
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin: 10px auto 20px;
}

/* --- 4. SUB-CATEGORY GRID --- */
.sub-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 60px 0;
}

.sub-cat-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.sub-cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary);
}

.sub-img-box {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.sub-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sub-cat-card:hover .sub-img-box img {
    transform: scale(1.1);
}

/* --- VOICE INTERACTION VISUALS --- */
.voice-trigger {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    z-index: 2;
    font-size: 1.2rem;
}

.sub-cat-card:hover .voice-trigger {
    background: var(--secondary);
    color: white;
    transform: scale(1.1);
}

/* Audio Wave Animation */
.audio-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid rgba(249, 115, 22, 0.6);
    opacity: 0;
    pointer-events: none;
}

.playing .audio-wave {
    animation: ripple 1s infinite;
    opacity: 1;
}

@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 0.8;
    }

    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/* --- CARD CONTENT --- */
.sub-content {
    padding: 25px;
}

.sub-content h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.sub-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.view-btn {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.2s;
}

.sub-cat-card:hover .view-btn {
    padding-left: 5px;
}

/* --- 5. SEO FOOTER --- */
.seo-footer {
    background: white;
    padding: 60px 0;
    border-top: 1px solid var(--border);
    margin-top: 60px;
}

.seo-footer h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.seo-footer p {
    margin-bottom: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .cat-nav-list {
        justify-content: flex-start;
    }

    /* Left align for scroll */
    .cat-hero-title {
        font-size: 2rem;
    }

    .sub-cat-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* =========================================
   DETAILED VIEW STYLES (Material Blocks)
   ========================================= */

/* Back Button */
.back-btn-row {
    margin-bottom: 30px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s;
}

.btn-back:hover {
    color: var(--secondary);
    transform: translateX(-5px);
}

/* Material Block Styling */
.mat-block {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    animation: fadeIn 0.6s ease;
}

.mat-img-container {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.mat-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.mat-block:hover .mat-img-container img {
    transform: scale(1.05);
}

.mat-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--secondary);
    color: white;
    padding: 6px 15px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-radius: 4px;
    z-index: 2;
}

.mat-content {
    padding: 35px;
}

.mat-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.mat-desc {
    color: var(--text-main);
    margin-bottom: 25px;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Specs Grid */
.mat-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: #f8fafc;
    padding: 25px;
    border-radius: 6px;
    border: 1px solid var(--border);
    margin-bottom: 25px;
}

.spec-col h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--primary);
    text-transform: uppercase;
}

.spec-list {
    list-style: none;
    padding: 0;
}

.spec-list li {
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #64748b;
    position: relative;
    padding-left: 15px;
}

.spec-list li::before {
    content: "•";
    color: var(--secondary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Highlights */
.mat-highlights {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.mat-highlights span {
    background: #e0f2fe;
    color: #0284c7;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.mat-btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 12px 25px;
    font-family: 'Oswald', sans-serif;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 4px;
    transition: 0.3s;
    font-size: 0.9rem;
    cursor: pointer;
}

.mat-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .mat-specs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mat-img-container {
        height: 200px;
    }

    .mat-content {
        padding: 20px;
    }
}
/* =========================================
   UNIVERSAL DETAIL PAGE STYLES
   ========================================= */

/* Back Button */
.back-btn-row { margin-bottom: 30px; }
.btn-back {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    color: var(--text-muted); font-weight: 600; font-size: 0.95rem; transition: 0.3s;
    background: transparent; border: 1px solid var(--border);
    padding: 8px 20px; border-radius: 50px;
}
.btn-back:hover { color: var(--secondary); border-color: var(--secondary); transform: translateX(-5px); }

/* Material Block (The White Box) */
.mat-block {
    background: white; border: 1px solid var(--border);
    border-radius: 8px; overflow: hidden; margin-bottom: 60px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    animation: fadeIn 0.6s ease;
}

/* Image Area */
.mat-img-container {
    width: 100%; height: 350px; position: relative; overflow: hidden;
    background: #f1f5f9; border-bottom: 1px solid var(--border);
}
.mat-img-container img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s;
}
.mat-block:hover .mat-img-container img { transform: scale(1.05); }

.mat-badge {
    position: absolute; top: 20px; left: 20px;
    background: var(--secondary); color: white;
    padding: 6px 15px; font-family: 'Oswald', sans-serif;
    text-transform: uppercase; font-size: 0.85rem; border-radius: 4px; z-index: 2;
}

/* Content Area */
.mat-content { padding: 40px; }

.mat-title {
    font-family: 'Oswald', sans-serif; font-size: 2rem; color: var(--primary);
    margin-bottom: 15px; border-bottom: 1px solid var(--border); padding-bottom: 15px;
}

.mat-desc { color: var(--text-main); margin-bottom: 30px; line-height: 1.8; font-size: 1rem; }

/* Specifications Grid */
.mat-specs-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
    background: #f8fafc; padding: 30px; border-radius: 6px;
    border: 1px solid var(--border); margin-bottom: 30px;
}

.spec-col h3 { 
    font-family: 'Oswald', sans-serif; font-size: 1.1rem; 
    margin-bottom: 15px; color: var(--primary); text-transform: uppercase;
}
.spec-list { list-style: none; padding: 0; }
.spec-list li { 
    margin-bottom: 8px; font-size: 0.95rem; color: #64748b; 
    position: relative; padding-left: 20px; 
}
.spec-list li::before { 
    content: "➤"; color: var(--secondary); font-size: 0.8rem;
    position: absolute; left: 0; 
}

/* Action Button */
.mat-btn {
    display: inline-block; background: var(--primary); color: white;
    padding: 14px 35px; font-family: 'Oswald', sans-serif;
    text-decoration: none; text-transform: uppercase; border-radius: 4px;
    transition: 0.3s; font-size: 1rem; cursor: pointer; letter-spacing: 1px;
}
.mat-btn:hover { background: var(--secondary); transform: translateY(-3px); }

/* Animation */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Mobile Responsive */
@media (max-width: 768px) {
    .mat-specs-grid { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
    .mat-img-container { height: 220px; }
    .mat-content { padding: 25px; }
    .mat-title { font-size: 1.6rem; }
}