/**
 * ALLIN NEW MATERIAL - Main Stylesheet
 * Color Scheme based on brand identity
 */

/* ============================
   CSS Variables & Reset
   ============================ */
:root {
    /* 涓昏??茶 - 灏堟キ娌夌┅?勬繁?嶈壊 */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;

    /* 娆¤??茶 - 娣遍?灏堟キ?勮??拌壊 */
    --secondary-color: #1e3a5f;
    --secondary-dark: #152840;
    --secondary-light: #2a4d7c;

    /* 寮疯??- ?斿??勭惀?€?戯??呯敤?煎?绡勫?榛炵洞锛?*/
    --accent-color: #059669;
    --accent-orange: #d97706;
    --success-color: #10b981;
    --danger-color: #dc3545;
    --warning-color: #f59e0b;

    /* ?囧?椤忚壊 */
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-muted: #9ca3af;

    /* ?屾櫙??*/
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-dark: #1e3a5f;

    /* ?婃??囬櫚褰?*/
    --border-color: #e5e7eb;
    --shadow: 0 2px 15px rgba(37, 99, 235, 0.08);
    --shadow-lg: 0 10px 40px rgba(37, 99, 235, 0.15);

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.3s ease;

    --container-width: 1200px;
    --header-height: 90px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

ul,
ol {
    list-style: none;
}

/* ============================
   Layout
   ============================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    min-height: calc(100vh - 200px);
}

/* ============================
   Top Bar
   ============================ */
.top-bar {
    background: var(--secondary-color);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 20px;
}

.top-contact {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
}

.top-contact:hover {
    color: var(--primary-color);
}

.top-contact svg {
    flex-shrink: 0;
}

.language-selector {
    position: relative;
    cursor: pointer;
}

.language-selector>span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
}

.language-selector:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown a {
    display: block;
    padding: 10px 15px;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
}

.language-dropdown a:last-child {
    border-bottom: none;
}

.language-dropdown a:hover,
.language-dropdown a.active {
    background: var(--primary-color);
    color: white;
}

/* ============================
   Main Header
   ============================ */
.main-header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
}

/* Navigation */
.main-nav {
    display: flex;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu>li {
    position: relative;
}

.nav-menu>li>a {
    display: block;
    padding: 10px 0;
    font-weight: 500;
    color: var(--text-dark);
}

.nav-menu>li>a:hover,
.nav-menu>li.active>a {
    color: var(--primary-color);
}

/* Submenu */
.has-submenu .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
}

.submenu a:hover {
    background: var(--primary-color);
    color: white;
}

/* Mega Menu */
.mega-menu-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    width: min(1120px, calc(100vw - 40px));
    max-width: calc(100vw - 40px);
    box-shadow: var(--shadow-lg);
    border-radius: 4px;
    padding: 28px 32px;
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mega-menu:hover .mega-menu-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-column {
    min-width: 0;
}

.mega-menu-column h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
}

.mega-menu-column h4 a:hover {
    color: var(--primary-dark);
}

.mega-menu-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mega-column-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-color);
    cursor: pointer;
    flex: 0 0 auto;
}

.mega-column-toggle svg {
    transition: transform 0.2s ease;
}

.mobile-products-accordion {
    display: none;
}

.mobile-nav-close {
    display: none;
}

.mega-menu-column ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mega-menu-column ul a {
    font-size: 13px;
    color: var(--text-light);
    display: block;
    padding: 4px 0;
    line-height: 1.5;
}

.mega-menu-column ul a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Header CTA */
.header-cta {
    background: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
}

.header-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================
   Hero Section
   ============================ */
.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a2a3a 100%);
    color: white;
    padding: 150px 0;
    position: relative;
    overflow: hidden;
    min-height: 550px;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%23ffffff" stroke-width="0.3" opacity="0.1"/></svg>');
    background-size: 150px;
    opacity: 0.8;
}

.hero-content {
    position: relative;
    max-width: 650px;
    animation: heroFadeIn 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.15;
    letter-spacing: -1px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hero p {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 35px;
    line-height: 1.7;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);}

.hero .btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
}

/* ============================
   Buttons
   ============================ */
.btn {
    display: inline-block;
    padding: 12px 25px;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #1a2a3a;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* ============================
   Section Titles
   ============================ */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================
   Product Cards
   ============================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-card-image {
    height: 200px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 15px;
}

.product-card-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.product-card-body {
    padding: 20px;
}

.product-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.product-card p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .btn {
    width: 100%;
}

/* ============================
   Category Cards
   ============================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    background: white;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.category-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.category-card-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.category-card-icon svg {
    width: 30px;
    height: 30px;
    fill: white;
}

.category-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

/* ============================
   Stats Section
   ============================ */
.stats-section {
    background: var(--primary-color);
    color: white;
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-icon {
    margin: 0 auto 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.stat-item:hover .stat-icon {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.stat-item h3 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.stat-item p {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0.95;
    text-transform: uppercase;
}

/* ============================
   Applications Grid - Premium Layout (3x2)
   ============================ */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    perspective: 1000px;
}

.application-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.application-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 52, 110, 0.8) 0%, rgba(0, 52, 110, 0.2) 60%, transparent 100%);
    opacity: 0.8;
    transition: all 0.5s ease;
    z-index: 1;
}

.application-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.application-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 35px 25px;
    color: white;
    z-index: 2;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.application-card h4 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

/* Hover Effects */
.application-card:hover {
    transform: translateY(-10px) rotateX(2deg);
    box-shadow: 0 20px 50px rgba(0, 52, 110, 0.25);
}

.application-card:hover::after {
    opacity: 0.95;
    background: linear-gradient(0deg, var(--primary-color) 0%, rgba(0, 52, 110, 0.4) 100%);
}

.application-card:hover img {
    transform: scale(1.15);
}

.application-card:hover .application-card-overlay {
    transform: translateY(0);
}

/* Responsive Mobile */
@media (max-width: 992px) {
    .applications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .applications-grid {
        grid-template-columns: 1fr;
    }
    .application-card h4 {
        font-size: 20px;
    }
}

/* ============================
   News Section
   ============================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-card-image {
    height: 200px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-body {
    padding: 20px;
}

.news-card-date {
    font-size: 13px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.news-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-card p {
    font-size: 14px;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================
   Product Detail Page
   ============================ */
.product-detail {
    padding: 60px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.product-image {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-info h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.product-description {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.product-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.product-specs-table th,
.product-specs-table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid var(--border-color);
}

.product-specs-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.product-specs-table tr:nth-child(even) {
    background: var(--bg-light);
}

.product-section {
    margin-bottom: 30px;
}

.product-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

/* ============================
   Pages (About, Contact)
   ============================ */
.page-header {
    background: linear-gradient(135deg, var(--secondary-color), #1a2a3a);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    opacity: 0.8;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.page-content {
    padding: 60px 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
}

.about-content p {
    margin-bottom: 20px;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon svg {
    fill: white;
    width: 24px;
    height: 24px;
}

.contact-info-text h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-info-text p,
.contact-info-text a {
    color: var(--text-light);
}

.contact-form {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 160, 233, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* ============================
   Footer
   ============================ */
.main-footer {
    background: var(--secondary-color);
    color: white;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr);
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    overflow-wrap: anywhere;
}

.footer-col {
    min-width: 0;
    overflow-wrap: anywhere;
}

.footer-desc {
    opacity: 0.8;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-contact p {
    margin-bottom: 5px;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-form input,
.footer-form textarea {
    width: 100%;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    margin-bottom: 10px;
    font-family: inherit;
}

.footer-form textarea {
    min-height: 80px;
    resize: vertical;
}

.footer-form .btn {
    width: 100%;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    opacity: 0.8;
    font-size: 14px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* ============================
   Floating Buttons
   ============================ */
.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 99;
}

.float-btn {
     width: 50px;
     height: 50px;
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     position: relative;
     color: white;
     box-shadow: var(--shadow-lg);
     transition: var(--transition);
 }

.float-btn:hover {
    transform: scale(1.1);
}

.float-btn.whatsapp {
    background: #25d366;
}

.float-btn.chat {
    background: #0d4e8a;
    border: 0;
    cursor: pointer;
}

.float-btn.phone {
    background: var(--primary-color);
}

.float-btn.back-to-top {
    background: #fff;
    color: #0d4e8a;
    border: 2px solid #0d4e8a;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease, background 0.3s, color 0.3s;
    cursor: pointer;
}

.float-btn.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.float-btn.back-to-top:hover {
    background: #0d4e8a;
    color: #fff;
}

/* ============================
   Responsive Design
   ============================ */
@media (max-width: 1200px) {
    .mega-menu-content {
        grid-template-columns: repeat(3, 1fr);
        width: min(920px, calc(100vw - 32px));
        max-width: calc(100vw - 32px);
        padding: 24px 28px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .header-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
    }

    .nav-menu>li>a {
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .mega-menu-content,
    .submenu {
        position: static;
        transform: none;
        box-shadow: none;
        min-width: auto;
        opacity: 1;
        visibility: visible;
        display: none;
        padding: 15px;
        background: var(--bg-light);
    }

    .has-submenu.active .submenu,
    .mega-menu.active .mega-menu-content {
        display: block;
    }

    .mega-menu .mega-menu-content {
        display: none !important;
    }

    .mega-menu.active .mobile-products-accordion {
        display: block;
        background: #fff;
        border-top: 1px solid var(--border-color);
    }

    .mega-menu-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 36px;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .applications-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar-left {
        flex-direction: column;
        gap: 5px;
    }

    .hero {
        padding: 50px 0;
    }

    .hero h1 {
        font-size: 28px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-item h3 {
        font-size: 36px;
    }

    .applications-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .page-header h1 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 60px;
    }

    .logo-text {
        font-size: 22px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .mega-menu-content {
        grid-template-columns: 1fr;
    }
}

/* RTL Support for Arabic */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .top-bar-left,
[dir="rtl"] .nav-menu,
[dir="rtl"] .breadcrumb {
    flex-direction: row-reverse;
}

[dir="rtl"] .language-dropdown {
    left: 0;
    right: auto;
}

[dir="rtl"] .mega-menu-content {
    left: auto;
    right: 50%;
    transform: translateX(50%) translateY(10px);
}

/* ============================
   Logo Styles
   ============================ */
.logo-img {
    height: 70px;
    width: auto;
    display: block;
}

/* ============================
   ?嬫??堣?瑷€?告???
   ============================ */
.mobile-lang-selector {
    display: none;
    position: relative;
}

.mobile-lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 13px;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.mobile-lang-btn:hover,
.mobile-lang-btn:focus {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.mobile-lang-btn svg {
    flex-shrink: 0;
}

.mobile-lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 140px;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
    overflow: hidden;
}

.mobile-lang-selector.active .mobile-lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-lang-dropdown a {
    display: block;
    padding: 10px 15px;
    color: var(--text-dark);
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.mobile-lang-dropdown a:last-child {
    border-bottom: none;
}

.mobile-lang-dropdown a:hover,
.mobile-lang-dropdown a.active {
    background: var(--primary-color);
    color: white;
}

/* ============================
   ?嬫??堝劒??(992px 浠ヤ?)
   ============================ */
@media (max-width: 992px) {

    /* ?辫?妗岄潰?堥??ㄦ? */
    .top-bar {
        display: none;
    }

    /* 椤ず?嬫??堣?瑷€?告???*/
    .mobile-lang-selector {
        display: block;
    }

    /* Header 浣堝??? */
    .main-header .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 15px;
    }

    /* Logo 瑾挎暣?撹? */
    .logo {
        flex: 0 0 auto;
    }

    .logo-img {
        height: 50px;
    }

    /* 瑾炶??告???婕㈠牎?稿柈?€??*/
    .mobile-lang-selector {
        margin-left: auto;
        margin-right: 15px;
    }

    /* ?辫?妗岄潰?堝?瑕藉? CTA */
    .header-cta {
        display: none;
    }

    /* 椤ず?嬫??稿柈?夐? */
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        border-radius: 4px;
        transition: var(--transition);
    }

    .mobile-menu-btn:hover {
        background: var(--bg-light);
    }

    .mobile-menu-btn span {
        width: 24px;
        height: 2px;
        background: var(--text-dark);
        border-radius: 2px;
        transition: var(--transition);
    }

    /* ?嬫??堝??伕??*/
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: white;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
        transition: right 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
        padding: 0;
    }

    .main-nav.active {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        padding: 60px 0 20px;
    }

    .nav-menu>li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu>li>a {
        display: block;
        padding: 15px 20px;
        font-size: 16px;
        font-weight: 500;
    }

    /* 瀛愰伕?ǎ寮?*/
    .has-submenu .submenu,
    .mega-menu .mega-menu-content {
        position: static;
        transform: none;
        box-shadow: none;
        min-width: auto;
        opacity: 1;
        visibility: visible;
        display: none;
        padding: 0 0 10px 20px;
        background: var(--bg-light);
    }

    .has-submenu.active .submenu,
    .mega-menu.active .mega-menu-content {
        display: block;
    }

    .mega-menu-content {
        display: block;
        grid-template-columns: 1fr;
        padding: 0;
        background: #fff;
    }

    .mega-menu-column {
        margin: 0;
        border-top: 1px solid var(--border-color);
        background: #fff;
    }

    .mega-menu-column-header {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 0 20px;
        min-height: 52px;
    }

    .mega-menu-column h4 {
        font-size: 15px;
        margin: 0;
        padding: 0;
        border-bottom: 0;
        flex: 1;
        color: var(--text-dark);
    }

    .mega-menu-column h4 a {
        display: block;
        width: 100%;
        padding: 14px 0;
        color: var(--text-dark);
        line-height: 1.4;
    }

    .mega-column-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .mega-menu-column.has-children .mega-menu-list {
        display: none;
        padding: 0 20px 10px 36px;
        background: #f8fafc;
    }

    .mega-menu-column.active .mega-menu-list {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .mega-menu-column.active .mega-column-toggle svg {
        transform: rotate(180deg);
    }

    .mega-menu-column ul a {
        display: block;
        padding: 10px 0;
        font-size: 14px;
        color: var(--text-light);
    }

    .mobile-products-group {
        margin-left: 16px;
        border-left: 3px solid rgba(37, 99, 235, 0.12);
        border-bottom: 1px solid rgba(229, 231, 235, 0.9);
        background: #f9fbff;
    }

    .mobile-products-group-header {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 52px;
        padding: 0 16px 0 18px;
        touch-action: manipulation;
        cursor: pointer;
    }

    .mobile-products-group-header>a {
        flex: 0 1 auto;
        display: block;
        padding: 14px 0;
        color: var(--text-dark);
        font-size: 15px;
        font-weight: 500;
        line-height: 1.4;
    }

    .mega-menu.active .mobile-products-accordion {
        padding: 6px 0 10px;
        background: #fff;
    }

    .mobile-products-hit-area {
        flex: 1 1 auto;
        align-self: stretch;
        display: block;
        min-width: 44px;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
        touch-action: manipulation;
        -webkit-appearance: none;
        appearance: none;
    }

    .mobile-products-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        margin-left: auto;
        border: 0;
        border-radius: 999px;
        background: rgba(37, 99, 235, 0.08);
        color: var(--primary-color);
        cursor: pointer;
        flex: 0 0 auto;
        touch-action: manipulation;
    }

    .mobile-products-toggle svg {
        transition: transform 0.2s ease;
    }

    .mobile-products-list {
        display: none;
        margin: 0;
        padding: 8px 16px 12px 42px;
        background: #f8fafc;
        border-top: 1px solid rgba(148, 163, 184, 0.14);
        position: relative;
    }

    .mobile-products-group.active .mobile-products-list {
        display: block;
    }

    .mobile-products-group.active .mobile-products-toggle svg {
        transform: rotate(180deg);
    }

    .mobile-products-list::before {
        content: '';
        position: absolute;
        top: 10px;
        bottom: 12px;
        left: 24px;
        width: 2px;
        background: rgba(37, 99, 235, 0.16);
        border-radius: 999px;
    }

    .mobile-products-list li {
        position: relative;
    }

    .mobile-products-list li::before {
        content: '';
        position: absolute;
        top: 50%;
        left: -12px;
        width: 8px;
        height: 8px;
        margin-top: -4px;
        border-radius: 999px;
        background: rgba(37, 99, 235, 0.28);
    }

    .mobile-products-list li + li {
        margin-top: 2px;
    }

    .mobile-products-list li a {
        display: block;
        padding: 10px 12px;
        border-radius: 10px;
        color: var(--text-light);
        font-size: 14px;
        line-height: 1.5;
        background: rgba(255, 255, 255, 0.72);
    }

    .mobile-products-list li a:hover,
    .mobile-products-list li a:active {
        color: var(--primary-color);
        background: rgba(37, 99, 235, 0.08);
    }

    .mobile-products-list li a {
        display: block;
        padding: 10px 0;
        color: var(--text-light);
        font-size: 14px;
        line-height: 1.5;
    }

    /* ?僵灞?*/
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 1000;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 992px) {
    .main-header {
        z-index: 3200;
    }

    .mobile-lang-selector {
        position: relative;
        z-index: 3201;
    }

    .mobile-menu-btn {
        position: relative;
        z-index: 3202;
        touch-action: manipulation;
    }

    .nav-overlay,
    .nav-overlay.active {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .main-nav {
        position: fixed !important;
        inset: 0 !important;
        z-index: 4100 !important;
        display: block !important;
        width: 100vw !important;
        min-width: 100vw !important;
        max-width: none !important;
        height: 100dvh !important;
        pointer-events: none;
        opacity: 1;
        visibility: hidden;
        transform: translate3d(100%, 0, 0) !important;
        background: #fff !important;
        box-shadow: none !important;
        overflow-y: auto;
        overflow-x: hidden;
        transition: transform 0.3s ease, visibility 0s linear 0.3s;
        isolation: isolate;
    }

    .main-nav.active {
        pointer-events: auto;
        visibility: visible;
        transform: translate3d(0, 0, 0) !important;
        transition: transform 0.3s ease;
    }

    .main-nav::before {
        content: none !important;
    }

    .nav-menu {
        position: relative;
        z-index: 3;
        min-height: 100dvh;
        padding: 72px 0 24px;
        background: #fff;
        width: 100%;
    }

    .mobile-nav-close {
        display: inline-flex;
        position: absolute;
        top: 16px;
        right: 16px;
        z-index: 6;
        width: 40px;
        height: 40px;
        border: 0;
        border-radius: 999px;
        align-items: center;
        justify-content: center;
        background: rgba(15, 23, 42, 0.06);
        color: var(--text-dark);
        font-size: 28px;
        line-height: 1;
        cursor: pointer;
        touch-action: manipulation;
        -webkit-appearance: none;
        appearance: none;
    }

    body.nav-open .floating-buttons,
    body.nav-open .chat-plugin-root,
    body.nav-open [data-chat-toggle],
    body.nav-open .mobile-menu-btn,
    body.nav-open .mobile-lang-selector,
    body.nav-open .logo {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

/* ============================
   ?村?灞忓??? (768px 浠ヤ?)
   ============================ */
@media (max-width: 768px) {
    .hero {
        padding: 40px 0;
    }

    .hero h1 {
        font-size: 24px;
        line-height: 1.3;
    }

    .hero p {
        font-size: 14px;
        margin-bottom: 25px;
    }

    /* Hero ?夐?绲变?澶у? */
    .hero-content {
        text-align: center;
    }

    .hero .btn {
        display: inline-block;
        width: calc(50% - 8px);
        max-width: 180px;
        padding: 14px 16px;
        font-size: 14px;
        text-align: center;
        margin: 0 4px;
        box-sizing: border-box;
    }

    .hero .btn-outline {
        margin-left: 4px !important;
    }

    .section-title h2 {
        font-size: 24px;
    }

    .section-title p {
        font-size: 14px;
    }

    /* ?嗛??＄? */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .category-card {
        padding: 20px 15px;
    }

    .category-card-icon {
        width: 50px;
        height: 50px;
    }

    .category-card h3 {
        font-size: 14px;
    }

    /* 绲辫??€濉?*/
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .stat-item h3 {
        font-size: 24px;
    }

    .stat-item p {
        font-size: 12px;
    }

    /* ?夌敤?樺? */
    .applications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* ?拌??＄? */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .page-header h1 {
        font-size: 28px;
    }

    /* ?㈠??楄〃 */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-card-image {
        height: 130px;
        padding: 10px;
    }

    .product-card-body {
        padding: 10px 12px;
    }

    .product-card-body h3 {
        font-size: 13px;
        line-height: 1.4;
    }

    .product-card-body .btn {
        font-size: 12px;
        padding: 8px 12px;
    }

    /* ?怠?侀潰 */
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================
   瓒呭?灞忓??? (480px 浠ヤ?)
   ============================ */
@media (max-width: 480px) {

    /* Logo ?村? */
    .logo-img {
        height: 40px;
    }

    /* 瑾炶??夐? - 淇濇??囧??? */
    .mobile-lang-btn {
        padding: 6px 10px;
        font-size: 12px;
        gap: 4px;
    }

    .mobile-lang-btn svg {
        width: 16px;
        height: 16px;
    }

    .mobile-menu-btn span {
        width: 20px;
    }

    /* Hero ?€濉?*/
    .hero {
        padding: 30px 0;
    }

    .hero h1 {
        font-size: 20px;
    }

    /* ?嗛? 1 ??*/
    .categories-grid {
        grid-template-columns: 1fr;
    }

    /* 绲辫??€濉?*/
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 20px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
    }

    .stat-item h3 {
        font-size: 28px;
        margin-bottom: 0;
    }

    .stat-item p {
        font-size: 14px;
        text-align: right;
    }

    .mega-menu-content {
        grid-template-columns: 1fr;
    }

    /* ?夌敤?樺? 1 ??*/
    .applications-grid {
        grid-template-columns: 1fr;
    }

    .application-card {
        aspect-ratio: 16/9;
    }
}

[dir="rtl"] .mega-menu:hover .mega-menu-content {
    transform: translateX(50%) translateY(0);
}

[dir="rtl"] .floating-buttons {
    right: auto;
    left: 20px;
}

[dir="rtl"] .footer-links a:hover,
[dir="rtl"] .mega-menu-column ul a:hover {
    padding-left: 0;
    padding-right: 5px;
}

/* ============================
   Yolatech Custom Overrides
   ============================ */

/* Products Breadcrumb */
.products-breadcrumb {
    background: #f5f6f8;
    padding: 8px 0;
    margin-bottom: 0;
    border-bottom: 1px solid #e8e8e8;
}
.products-breadcrumb .container {
    display: flex;
    align-items: center;
    font-size: 13px;
}
.products-breadcrumb a {
    color: #666;
}
.products-breadcrumb a:hover {
    color: #053e73;
}
.products-breadcrumb span {
    color: #aaa;
    margin: 0 8px;
}

/* ---- Sidebar ---- */
.products-sidebar {
    min-width: 260px;
    position: sticky;
    top: 100px;
}
.products-sidebar .sidebar-box {
    padding: 0;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 0;
    background: #fff;
}
.products-sidebar .sidebar-title {
    background: #053e73;
    color: white;
    padding: 14px 20px;
    margin: 0;
    border-bottom: none;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.products-sidebar .sidebar-title::after {
    content: "\2630";
    font-size: 16px;
    opacity: 0.7;
}
.accordion-nav {
    padding: 5px 0;
}
.accordion-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-left: 7%;
}
.accordion-header > a {
    padding: 14px 10px 14px 30px;
    font-size: 15px;
    color: #444;
    display: block;
    flex: 1;
    text-decoration: none;
    transition: color 0.15s;
    font-weight: 500;
}
.accordion-header > a:hover {
    color: #053e73;
}
.accordion-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 15px;
    color: #aaa;
    transition: color 0.15s, transform 0.2s;
    display: flex;
    align-items: center;
}
.accordion-toggle:hover {
    color: #053e73;
}
.accordion-item.active > .accordion-header .accordion-toggle {
    transform: rotate(180deg);
}
.accordion-item {
    border-bottom: none;
}
.accordion-item.active {
    background-color: transparent;
}
.accordion-item.active > .accordion-header {
    background-color: #f0f4f8;
    border-left: none;
}
.accordion-item.active > .accordion-header > a,
.accordion-item.active > .accordion-header .accordion-toggle {
    color: #053e73;
    font-weight: 600;
}
.accordion-item.active > .accordion-header > a:hover {
    color: #053e73;
}
.accordion-content {
    background: #fafbfc;
}
.sub-categories li a {
    padding: 9px 20px 9px 35px !important;
    font-size: 13px !important;
    color: #777 !important;
    display: block;
    transition: color 0.15s;
}
.sub-categories li a:hover,
.sub-categories li a.active {
    color: #053e73 !important;
    border-left: 3px solid #053e73 !important;
    padding-left: 32px !important; /* Adjusted from 35px to account for 3px border */
    font-weight: 600;
}

/* ---- Contact Box ---- */
.products-sidebar .contact-box {
    background-color: #fff !important;
    border: 1px solid #ddd !important;
    border-top: none !important;
    padding: 22px 20px !important;
    margin-top: 25px !important;
    border-radius: 0 !important;
}
.products-sidebar .contact-box h4 {
    color: #053e73 !important;
    font-size: 16px !important;
    font-weight: 700;
    margin-bottom: 8px;
}
.products-sidebar .contact-box p {
    color: #888 !important;
    font-size: 13px;
    margin-bottom: 15px;
    line-height: 1.5;
}
.products-sidebar .contact-box .btn {
    background-color: #053e73 !important;
    color: white !important;
    border: none !important;
    width: 100%;
    margin-bottom: 15px;
    box-shadow: none !important;
    border-radius: 3px !important;
    font-size: 14px;
    padding: 10px 0;
    font-weight: 600;
    transition: background 0.2s;
}
.products-sidebar .contact-box .btn:hover {
    background-color: #042e55 !important;
}
.products-sidebar .contact-box .contact-info {
    border-top: 1px solid #eee;
    padding-top: 12px;
}
.products-sidebar .contact-box .contact-info p {
    color: #333 !important;
    font-size: 13px;
    margin-bottom: 4px;
}
.products-sidebar .contact-box .contact-info p strong {
    color: #053e73;
}

/* ---- Product Cards ---- */
.product-card {
    text-align: center;
    border: 1px solid #e5e5e5;
    box-shadow: none;
    padding-bottom: 20px;
    border-radius: 0;
    transition: box-shadow 0.25s, transform 0.25s;
}
.product-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.product-card .product-card-img {
    border-radius: 0;
}
.product-card-body {
    padding: 12px 15px;
}
.product-card h3 {
    font-size: 14px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 500;
    line-height: 1.4;
}
.product-card .btn {
    width: auto;
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    font-size: 13px;
    border-radius: 3px;
    background: #053e73;
    color: white;
    border: none;
    font-weight: 500;
    transition: background 0.2s;
}
.product-card .btn:hover {
    background: #042e55;
}
.product-card .btn svg {
    margin-left: 6px;
    width: 14px;
    height: 14px;
}

/* ---- Category & Product Headers ---- */
.category-header,
.product-header {
    border-bottom: 2px solid #eee;
    margin-bottom: 30px;
    padding-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.category-header h2,
.product-header h2 {
    font-size: 24px;
    color: #1f2937;
    font-weight: 700;
    margin: 0;
}

/* ---- Detail Page Layout & Tabs ---- */
.product-detail-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 35px;
    padding-top: 30px;
}
.product-content-wrapper {
    background: white;
}
.product-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 0;
}
.product-image-container {
    border: 1px solid #e5e5e5;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 0;
}
.product-main-info h1 {
    font-size: 26px;
    color: #053e73;
    border-bottom: 2px solid #053e73;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

/* ---- Tabs ---- */
.nav-tabs {
    display: flex;
    border-bottom: 2px solid #053e73;
    margin-bottom: 0;
    gap: 3px;
}
.nav-tab {
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-bottom: none;
    margin-right: 0;
    border-radius: 3px 3px 0 0;
    transition: all 0.15s;
}
.nav-tab:hover {
    background: #e8e8e8;
}
.nav-tab.active {
    background: #053e73;
    color: white;
    border-color: #053e73;
}
.tab-pane {
    display: none;
    animation: fadeIn 0.3s;
}
.tab-pane.active {
    display: block;
}
.tab-content {
    padding: 25px 0 0 0;
}
.product-tabs-container {
    border: 1px solid #e5e5e5 !important;
    border-top: none !important;
    padding: 25px !important;
    background: #fff;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 992px) {
    .product-detail {
        padding: 16px 0 40px;
    }
    .products-breadcrumb {
        padding: 6px 0;
    }
    .products-breadcrumb .container {
        display: block;
        font-size: 12px;
        line-height: 1.5;
    }
    .breadcrumb {
        display: flex;
        flex-wrap: wrap;
        row-gap: 4px;
        column-gap: 6px;
    }
    .products-breadcrumb span {
        margin: 0 2px;
    }
    .product-detail-layout {
        display: flex;
        flex-direction: column;
        grid-template-columns: 1fr;
        padding-top: 12px;
    }
    .product-top-row {
        grid-template-columns: 1fr;
    }
    .products-main {
        order: 1;
    }
    .products-sidebar {
        order: 2;
        position: static;
        top: auto;
        min-width: 0;
        width: 100%;
        height: auto;
        z-index: 1;
    }
    .products-main,
    .product-content-wrapper,
    .product-main-info,
    .product-image-container {
        min-width: 0;
    }
    .products-sidebar .sidebar-box,
    .products-sidebar .contact-box {
        position: relative;
        z-index: 2;
        background: #fff;
    }
    .products-sidebar .contact-box {
        margin-top: 16px !important;
    }
    .product-header {
        margin-bottom: 16px;
        padding-bottom: 10px;
    }
    .product-header h2,
    .category-header h2 {
        font-size: 18px;
        line-height: 1.35;
    }
    .product-image-container {
        overflow: hidden;
    }
}

/* ---- Ribbon Headers (Product Detail Sections) ---- */
.product-section {
    margin-bottom: 25px;
}
.product-section h3 {
    background-color: #053e73;
    color: white !important;
    display: inline-flex;
    align-items: center;
    padding: 9px 30px 9px 18px;
    font-size: 15px;
    font-style: italic;
    font-weight: 700;
    position: relative;
    margin-bottom: 15px;
    margin-top: 15px;
    border-bottom: none;
    line-height: 1.25;
    max-width: calc(100% - 17px);
    overflow-wrap: anywhere;
}
.product-section h3::after {
    content: "";
    position: absolute;
    right: -16.5px;
    top: 0;
    width: 17px;
    height: 100%;
    background: #053e73;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

[dir="rtl"] .product-section h3::after {
    right: auto;
    left: -16.5px;
    clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

.product-structure-section {
    max-width: 420px;
}

.product-structure-image-wrap {
    margin: 4px 0 14px;
}

.product-structure-image {
    display: block;
    max-width: 100%;
    height: auto;
}

.product-cas-number {
    margin: 0;
    color: #5c5c5c;
    font-size: 17px;
    font-weight: 700;
}

/* ---- Specs Table ---- */
.product-specs-scroll {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
}

.product-specs-scroll:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.product-specs-scroll .product-specs-table.is-comparison {
    min-width: 640px;
}

.product-specs-table.is-comparison thead th:not(:first-child),
.product-specs-table.is-comparison tbody tr:not(.specs-text-row) td:not(:first-child) {
    white-space: nowrap;
}

.product-document-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.product-document-list a {
    display: inline-block;
    padding: 8px 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.product-header h2,
.product-card h3,
#tab-inquiry h3 {
    overflow-wrap: anywhere;
}

[dir="rtl"] .product-specs-table th,
[dir="rtl"] .product-specs-table td {
    text-align: right;
}

.product-specs-table .spec-unit {
    white-space: nowrap;
}

.product-specs-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 13px;
}
.product-specs-table th {
    background: #f5f6f8;
    color: #333;
    font-weight: 600;
    padding: 10px 12px;
    border: 1px solid #ddd;
    text-align: left;
}
.product-specs-table td {
    padding: 8px 12px;
    border: 1px solid #e8e8e8;
    color: #555;
}
.product-specs-table tr:nth-child(even) {
    background: #fafbfc;
}

.product-specs-table.is-comparison {
    border-collapse: separate;
    border-spacing: 0 10px;
}

.product-specs-table.is-comparison thead th {
    background: transparent;
    border: 0;
    padding: 4px 14px;
    color: #7b4f2a;
    font-size: 18px;
    font-weight: 700;
}

.product-specs-table.is-comparison thead th:first-child {
    width: 230px;
    padding-left: 0;
    color: transparent;
    font-size: 0;
}

.product-specs-table.is-comparison tbody tr {
    background: transparent !important;
}

.product-specs-table.is-comparison tbody td {
    border: 0;
    padding: 0 14px 2px;
    color: #7b4f2a;
    font-size: 17px;
    line-height: 1.25;
}

.product-specs-table.is-comparison tbody td:first-child {
    padding-left: 0;
    color: #5c5c5c;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .product-specs-table.is-comparison {
        border-collapse: collapse;
        border-spacing: 0;
    }

    .product-specs-table.is-comparison thead th,
    .product-specs-table.is-comparison tbody td {
        font-size: 14px;
        padding: 8px 10px;
        border: 1px solid #e8e8e8;
    }

    .product-specs-table.is-comparison thead th {
        background: #f5f6f8;
        color: #333;
    }

    .product-specs-table.is-comparison thead th:first-child {
        color: #333;
        font-size: 14px;
    }

    .product-specs-table.is-comparison tbody td:first-child {
        white-space: normal;
    }
}

/* ---- Image Thumbnails Gallery ---- */
.product-image-container {
    flex-direction: column;
    padding: 0;
    background: transparent;
    border: none;
}
.main-image-display {
    width: 100%;
    margin-bottom: 12px;
    border: 1px solid #e5e5e5;
    padding: 10px;
    background: white;
    text-align: center;
}
.main-image-display img {
    max-height: 320px;
    object-fit: contain;
}
.thumbnail-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}
.thumbnail-box {
    width: 70px;
    height: 70px;
    border: 1px solid #ddd;
    padding: 4px;
    cursor: pointer;
    background: white;
    opacity: 0.6;
    transition: opacity 0.2s, border-color 0.2s;
}
.thumbnail-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.thumbnail-box:hover, .thumbnail-box.active {
    opacity: 1;
    border-color: #053e73;
}

/* ---- Products Layout (listing page) ---- */
.products-layout {
    padding-top: 30px;
}



@media (max-width: 768px) {

    .hero {
        padding: 80px 0;
        min-height: 400px;
    }
    .hero h1 {
        font-size: 36px;
    }
    .hero p {
        font-size: 16px;
    }
}

/* Home Category Card Image Styles */
.category-card-img-wrap {
    height: 150px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}
.category-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .category-card-img-wrap {
        height: auto;
        aspect-ratio: 1 / 1;
        padding: 15px;
    }
    .category-card-img {
        object-fit: contain;
    }
}

/* Product Categories Tabbed Premium Section */
.product-categories-tabbed {
    padding: 100px 0;
    background: #ffffff;
    text-align: center;
}

.category-badge {
    color: #4361ee;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.category-tagline {
    color: #64748b;
    font-size: 15px;
    max-width: 800px !important;
    margin: 15px auto 40px !important;
    line-height: 1.6;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    color: #475569;
}

.tab-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: #0d4e8a;
    color: #ffffff;
    border-color: #0d4e8a;
    box-shadow: 0 10px 20px rgba(13, 78, 138, 0.2);
}

.tab-btn.active .tab-icon {
    filter: brightness(0) invert(1);
}

.tab-icon {
    width: 24px;
    height: 24px;
    transition: 0.3s;
}

/* Tab Contents */
.tab-panel {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.tab-panel.active {
    display: block;
    animation: slideUpFade 0.6s forwards;
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.products-carousel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-preview-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    transition: 0.4s;
    text-align: left;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.product-preview-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.product-preview-img {
    height: 240px;
    position: relative;
    background: #f1f5f9;
    overflow: hidden;
}

.product-preview-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-preview-card:hover .product-preview-img img {
    transform: scale(1.1);
}

.product-link-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: 0.3s;
    z-index: 10;
}

.product-preview-card:hover .product-link-overlay {
    opacity: 1;
}

.link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #0d4e8a;
    color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 110, 0.3);
}

.product-preview-info {
    padding: 25px;
}

.product-preview-info h4 {
    color: #0d4e8a;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.product-preview-info p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

/* Mobile Adjustments */
@media (max-width: 1200px) {
    .products-carousel { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .products-carousel { grid-template-columns: 1fr; }
    .tab-navigation { gap: 10px; }
    .tab-btn { padding: 12px 20px; font-size: 13px; }
}

/* Premium Hero Slider */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 700px;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 64px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 24px;
    color: #fff;
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 1px;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.9);
    color: #0d4e8a;
    padding: 15px 40px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none !important;
    transition: 0.3s;
    margin-bottom: 60px;
}

.btn-hero:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.hero-circle-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.circle-item {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.5);
    transition: 0.4s;
    background: #fff;
}

.circle-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}

.circle-item:hover {
    transform: scale(1.1);
    border-color: #fff;
    box-shadow: 0 10px 30px rgba(255,255,255,0.3);
}

.swiper-pagination-bullet {
    background: #fff !important;
    opacity: 0.5 !important;
    width: 12px !important;
    height: 12px !important;
}

.swiper-pagination-bullet-active {
    opacity: 1 !important;
    width: 30px !important;
    border-radius: 10px !important;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.swiper-slide-active .animate-up {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

@media (max-width: 768px) {
    .hero-content h1 { font-size: 32px; }
    .hero-content p { font-size: 16px; }
    .hero-circle-links { flex-wrap: wrap; }
    .circle-item { width: 60px; height: 60px; }
}

.hero-slider {
    height: 80vh !important;
    min-height: 600px !important;
}
.hero-content {
    padding-top: 50px;
}

/* Optimize Hero Text Layout */
.hero-content h1 {
    font-size: 80px !important; /* Larger and more impactful */
    max-width: 1200px !important;
    margin: 0 auto 30px !important;
    line-height: 1.1 !important;
    white-space: nowrap; /* Force extension to sides if possible */
}

.hero-content {
    max-width: 1400px !important;
    width: 95% !important;
    margin: 0 auto !important;
}

@media (max-width: 1400px) {
    .hero-content h1 {
        font-size: 60px !important;
        white-space: normal;
    }
}

/* Fix Hero Text Overflow and Spacing */
.hero-content h1 {
    font-size: 60px !important; /* Balanced size */
    max-width: 900px !important; /* Natural width for 2 rows */
    margin: 0 auto 30px !important;
    line-height: 1.2 !important;
    white-space: normal !important; /* Allow wrapping */
}

.hero-slider {
    height: 75vh !important; /* Slightly more balanced height */
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 32px !important;
        max-width: 100% !important;
    }
}

/* Ultra-Grand Chinese Hero Styling */
.hero-content h1 {
    letter-spacing: 0.1em !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.hero-content p {
    font-size: 28px !important;
    letter-spacing: 0.2em !important;
    font-weight: 400 !important;
    margin-top: 20px !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-content .btn-hero {
    margin-top: 40px !important;
    padding: 18px 50px !important;
    font-size: 18px !important;
}

/* Ultra-Wide Hero Optimization */
.hero-content h1 {
    max-width: 1300px !important; /* Widest for 2 lines */
    font-size: 72px !important;
    white-space: nowrap !important; /* Ensure main lines stay wide */
}

@media (max-width: 1400px) {
    .hero-content h1 {
        white-space: normal !important;
        font-size: 60px !important;
    }
}

/* Hero Content and Circles Spacing Optimization */
.hero-content h1 {
    line-height: 1.1 !important; /* Make title lines tighter */
    margin-bottom: 20px !important;
}

.hero-content p {
    margin-top: 10px !important; /* Bring subtitle closer */
    margin-bottom: 30px !important;
}

.btn-hero {
    margin-bottom: 40px !important; /* Bring buttons closer to circles */
}

.hero-circle-links {
    margin-top: -10px !important; /* Pull circles upwards */
}

.circle-item {
    width: 90px !important; /* Slightly smaller to fit better */
    height: 90px !important;
}

/* Pull Hero Button Upwards */
.hero-content .btn-hero {
    margin-top: 20px !important; /* Reduction from 40px */
    margin-bottom: 25px !important; /* Reduction from 40px to pull circles up too */
}

/* Refined Hero Hierarchy and Spacing */
.hero-content h1 {
    font-size: 56px !important; /* Smaller primary title */
    margin-bottom: 15px !important;
}

.hero-content p {
    font-size: 34px !important; /* Larger secondary subtitle */
    margin-bottom: 25px !important;
}

.hero-content .btn-hero {
    margin-top: 10px !important; /* Move even higher up */
    margin-bottom: 45px !important; /* Increase distance from the circles below */
}

/* Prevent Hero Text Wrapping and Ensure Wide Display */
.hero-content h1 {
    white-space: nowrap !important;
}

.hero-content p {
    white-space: nowrap !important;
    max-width: 1400px !important;
    width: 100% !important;
    font-size: 28px !important; /* Slightly smaller for single line fit */
}

@media (max-width: 1200px) {
    .hero-content h1, .hero-content p {
        white-space: normal !important;
    }
}

/* Shrink Hero Button */
.hero-content .btn-hero {
    padding: 12px 35px !important; /* Smaller padding */
    font-size: 15px !important;    /* Smaller font */
    margin-top: 15px !important;   /* Tighten top */
    margin-bottom: 35px !important; /* Adjust bottom */
}

/* Final Hero Polish - desktop side margins and mobile optimization */
.hero-content {
    max-width: 1200px !important; /* Proper side margins on ultra-wide screens */
    width: 90% !important;        /* Breathing room on standard screens */
    margin: 0 auto !important;
}

.hero-content h1 {
    font-size: 52px !important;    /* Slightly smaller to manage width better */
    white-space: normal !important; /* Trust the max-width and BR tags */
    line-height: 1.2 !important;
}

.hero-content p {
    font-size: 24px !important;
    white-space: normal !important;
    max-width: 1000px !important;
    margin: 20px auto !important;
}

/* Mobile Hero Adjustments */
@media (max-width: 768px) {
    .hero-slider {
        height: auto !important;
        min-height: 500px !important;
        padding: 0 !important;
        margin-top: 0 !important;
    }
    .hero-swiper,
    .hero-swiper .swiper-wrapper,
    .hero-swiper .swiper-slide {
        margin-top: 0 !important;
    }
    .hero-content h1 {
        font-size: 28px !important;
    }
    .hero-content p {
        font-size: 16px !important;
        letter-spacing: normal !important;
    }
    .hero-circle-links {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
        justify-items: center;
    }
    .circle-item {
        width: 60px !important;
        height: 60px !important;
    }
    .btn-hero {
        padding: 10px 25px !important;
        font-size: 14px !important;
        margin-bottom: 30px !important;
    }
    .hero-content {
        width: 95% !important;
        padding-top: 0 !important;
    }
}

/* Compress Hero Vertical Space and Raise Circles */
.hero-content h1 {
    font-size: 42px !important;    /* Smaller to save space */
    margin-bottom: 12px !important;
}

.hero-content p {
    font-size: 20px !important;    /* Smaller subtitle */
    margin: 15px auto !important;
}

.hero-content .btn-hero {
    margin-top: 10px !important;   /* Tight against subtitle */
    margin-bottom: 20px !important; /* Move circles much closer */
}

.hero-circle-links {
    margin-top: -5px !important;   /* Fine-tuned upward pull */
}

.circle-item {
    width: 80px !important;        /* Smaller circles to fit better */
    height: 80px !important;
    border-width: 2px !important;  /* Lighter border for smaller size */
}

/* Restore Chinese Font Sizes but keep vertical compact layout */
html[lang='zh-cn'] .hero-content h1 {
    font-size: 56px !important;    /* Original large size for Chinese */
    letter-spacing: 0.05em !important;
}

html[lang='zh-cn'] .hero-content p {
    font-size: 32px !important;    /* Original high-impact size for Chinese */
}

/* Adjust button and circle distance specifically for large Chinese text */
html[lang='zh-cn'] .hero-content .btn-hero {
    margin-top: 5px !important;
    margin-bottom: 20px !important;
}

@media (max-width: 768px) {
    .hero-slider {
        height: 75svh !important;
        min-height: 500px !important;
        max-height: none !important;
    }
    .hero-swiper .swiper-slide {
        align-items: center !important;
    }
    .hero-swiper .container {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .hero-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding-top: 0 !important;
        padding-left: 30px !important;
        padding-right: 30px !important;
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-content h1 {
        font-size: 32px !important;
        line-height: 1.35 !important;
        letter-spacing: 0.05em !important;
        margin: 0 auto 15px !important;
        max-width: 100% !important;
        text-align: center !important;
        text-wrap: balance;
    }
    .hero-content p {
        font-size: 16px !important;
        line-height: 1.5 !important;
        letter-spacing: 0.02em !important;
        margin: 0 auto 20px !important;
        max-width: 100% !important;
        text-align: center !important;
    }
    .hero-content .btn-hero,
    .btn-hero {
        padding: 12px 28px !important;
        font-size: 16px !important;
        margin: 0 auto !important;
        align-self: center;
    }
    .hero-circle-links {
        display: none !important;
    }
    html[lang='zh-cn'] .hero-content h1 {
        font-size: 36px !important;
        line-height: 1.4 !important;
        letter-spacing: 0 !important;
    }
    html[lang='zh-cn'] .hero-content p {
        font-size: 18px !important;
    }
    .hero-slider .swiper-button-next,
    .hero-slider .swiper-button-prev,
    .hero-swiper .swiper-button-next,
    .hero-swiper .swiper-button-prev {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
}

/* Override 576px product carousel explicitly */
@media (max-width: 576px) {
    .products-carousel {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .products-carousel .product-preview-img {
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        padding: 5px !important;
        box-sizing: border-box;
    }
    .products-carousel .product-preview-img img {
        object-fit: contain !important;
    }
    .products-carousel .product-preview-info {
        padding: 12px !important;
    }
    .products-carousel .product-preview-info h4 {
        font-size: 13px !important;
        margin-bottom: 6px !important;
        line-height: 1.4 !important;
    }
    .products-carousel .product-preview-info p {
        font-size: 11px !important;
        line-height: 1.4 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    .tab-navigation { gap: 6px !important; }
    .tab-btn { padding: 8px 12px !important; font-size: 12px !important; }
}

.category-nested-list {
    list-style: none;
    margin: 4px 0 8px;
    padding: 0 0 0 16px;
    border-left: 1px solid var(--border-color, #e5e7eb);
}

.category-nested-list a {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.5;
    letter-spacing: 0;
}

.category-parent-link {
    font-weight: 600;
}

.mega-menu-list .category-nested-list a {
    font-size: 13px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.sub-categories .category-nested-list a {
    padding-left: 20px !important;
}

.sub-categories .category-nested-list {
    margin-left: 18px;
}

.sub-categories .category-nested-list a.active {
    padding-left: 17px !important;
}

.mobile-products-list .category-nested-list {
    margin-left: 4px;
    padding-left: 12px;
}

.mobile-products-list li:has(.category-nested-list)::before {
    top: 22px;
}

.catalog-empty {
    grid-column: 1 / -1;
    width: 100%;
    padding: 32px 16px;
    text-align: center;
    color: var(--text-light);
}
