/* ===================================================
   AMT Machinery Premium B2B Industrial Design System
   Color Direction: Light / Professional / Trust
   =================================================== */

:root {
    /* Core Brand Palette */
    --primary: #0077b6;           /* Professional Blue */
    --primary-dark: #005f8a;
    --primary-light: #f0f7ff;
    --primary-bright: #00a3e0;    /* Bright Accent Blue */
    --accent: #0077b6;            /* Unified with primary for the new look */
    --accent-hover: #005f8a;
    --secondary: #002d56;         /* Deep Navy - Matches requested image */
    --secondary-dark: #001a33;

    /* Neutral Palette */
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-section: #f0f4f8;
    --bg-breadcrumb: #e8f4fd;     /* Light blue for breadcrumb bar */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-light: #e2e8f0;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 4px 20px rgba(0, 45, 86, 0.08);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Fixed header height */
    --header-height: 76px;

    /* Adaptive layout scale */
    --page-max: clamp(1280px, 88vw, 1920px);
    --content-max: clamp(1120px, 82vw, 1640px);
    --readable-max: 760px;
    --section-x: clamp(40px, 6vw, 140px);
    --section-y: clamp(80px, 7vw, 140px);
    --hero-y: clamp(92px, 8vw, 160px);
    --hero-min-h: clamp(620px, 72vh, 920px);
    --grid-gap: clamp(28px, 2.2vw, 56px);
    --card-pad: clamp(28px, 2.4vw, 48px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-white);
    color: var(--text-main);
    line-height: 1.7;
}

html:has(.site-scroll),
body:has(.site-scroll) {
    height: 100%;
    overflow: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.2;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-up { animation: fadeInUp 0.7s ease-out forwards; }
.delay-1 { animation-delay: 0.15s; opacity: 0; }
.delay-2 { animation-delay: 0.3s; opacity: 0; }

/* ===== NAVIGATION ===== */
header,
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1100;
    background: var(--bg-white) !important;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.site-scroll {
    margin-top: var(--header-height, 76px);
    height: calc(100vh - var(--header-height, 76px));
    height: calc(100dvh - var(--header-height, 76px));
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.navbar {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 18px var(--section-x);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    background: var(--bg-white) !important;
    height: var(--header-height, 76px);
    min-height: var(--header-height, 76px);
    box-sizing: border-box;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--secondary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: stretch;
    height: 100%;
    flex: 1;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.nav-links > li {
    display: flex;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    padding: 10px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* ===== NAV ACTIONS & LANG DROPDOWN ===== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: 20px;
}

.lang-dropdown {
    position: relative;
}

.lang-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 40, 85, 0.12);
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    transition: var(--transition);
    white-space: nowrap;
}

.lang-dropdown-toggle:hover,
.lang-dropdown.open .lang-dropdown-toggle {
    border-color: var(--primary);
    color: var(--primary);
}

.lang-flag {
    font-size: 1.1rem;
    line-height: 1;
}

.lang-caret {
    font-size: 0.65rem;
    opacity: 0.6;
    transition: transform 0.2s;
}

.lang-dropdown.open .lang-caret {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 168px;
    background: #fff;
    border: 1px solid rgba(0, 40, 85, 0.1);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    list-style: none;
    margin: 0;
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s ease;
    z-index: 1100;
}

.lang-dropdown.open .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.15s;
}

.lang-option:hover {
    background: #f0f7fc;
    color: var(--primary);
}

.lang-option.active {
    background: #e0f2fe;
    color: var(--primary);
    font-weight: 600;
}

/* ===== MEGA MENU ===== */
.nav-links > li {
    position: relative;
}

.nav-links > li.has-mega {
    position: relative;
}

.nav-links > li.has-mega::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -20px;
    right: -20px;
    height: 40px;
    z-index: 1000;
    display: none;
}

.nav-links > li.has-mega:hover::after {
    display: block;
}

.mega-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100vw;
    background: #fff;
    border-top: 3px solid var(--primary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    padding: 40px 8%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.25s ease-out;
    z-index: 1001;
    pointer-events: none;
}

.nav-links > li.has-mega:hover > .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px;
    max-width: 1600px;
    margin: 0 auto;
}

.mega-col {
    min-width: 0;
}

.mega-col-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.82rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

a.mega-col-title:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.mega-col-title i {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 8px;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.mega-col ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    gap: 0 !important;
}

.mega-col ul li {
    margin-bottom: 2px;
}

.mega-col ul li a {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    font-size: 0.82rem;
    color: var(--text-muted) !important;
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition);
    font-weight: 500;
    position: relative;
}

.mega-col ul li a::after {
    display: none !important;
}

.mega-col ul li a::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--border-light);
    border-radius: 50%;
    flex-shrink: 0;
    transition: var(--transition);
}

.mega-col ul li a:hover {
    background: var(--primary-light);
    color: var(--primary) !important;
    font-weight: 600;
}

.mega-col .mega-count {
    display: inline-block;
    font-size: 0.62rem;
    color: var(--text-muted);
    background: var(--bg-section);
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: auto;
    font-weight: 600;
}

.nav-links > li.has-mega > a::after {
    content: none !important;
}

.mega-trigger {
    display: flex;
    align-items: center;
    gap: 5px;
}

.mega-trigger .caret {
    font-size: 0.55rem;
    transition: transform 0.3s;
}

.nav-links > li.has-mega:hover .mega-trigger .caret {
    transform: rotate(180deg);
}

@media (max-width: 992px) {
    .mega-menu {
        position: relative;
        top: auto;
        width: 100%;
        box-shadow: none;
        border-top: none;
        padding: 15px;
    }
    .mega-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .mega-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== BUTTONS ===== */
.btn {
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    cursor: pointer;
    display: inline-block;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 182, 0.35);
}

.btn-accent {
    background: var(--accent);
    color: #fff;
}

.btn-accent:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-outline.active {
    background: var(--primary);
    color: #fff;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: var(--hero-y) var(--section-x) clamp(90px, 7vw, 140px);
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 50%, #f0f4f8 100%);
    display: flex;
    align-items: flex-start;
    gap: 60px;
    min-height: var(--hero-min-h);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 119, 182, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.08;
}

.hero-content {
    flex: 1;
    max-width: clamp(620px, 34vw, 820px);
    position: relative;
    z-index: 1;
}

.hero-label {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: 20px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.hero h1 {
    font-size: clamp(2.5rem, 4.2vw, 5.2rem);
    margin-bottom: 25px;
    line-height: 1.1;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), #00b4d8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(1.05rem, 1vw, 1.28rem);
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.8;
}

.cta-group {
    display: flex;
    gap: 16px;
}

/* ===== TRUST BAR ===== */
.trust-bar {
    background: var(--secondary);
    padding: clamp(30px, 2.6vw, 56px) var(--section-x);
    display: flex;
    justify-content: space-around;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 5px;
}

/* ===== SECTIONS ===== */
.section {
    padding: var(--section-y) var(--section-x);
}

.section-alt {
    background: var(--bg-section);
}

.section-title {
    margin-bottom: 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title.left {
    text-align: left;
    align-items: flex-start;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.section-title.left h2::after {
    left: 0;
    transform: none;
}

.section-title p {
    color: var(--text-muted);
    max-width: min(760px, 80vw);
    margin: 20px auto 0;
    font-size: 1.05rem;
}

/* ===== GRID ===== */
.b2b-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--grid-gap);
    max-width: var(--page-max);
    margin: 0 auto;
}

/* ===== FEATURE CARDS ===== */
.feature-card {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 1.4rem;
    border-radius: 12px;
    margin-bottom: 22px;
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ===== PRODUCT CARDS GLOBAL (Legacy/Mixed) ===== */
.p-category {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 8px;
}

/* ===== ROI CALCULATOR ===== */
.roi-calculator {
    background: #fff;
    border-radius: 16px;
    padding: 50px;
    display: flex;
    gap: 50px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
}

.roi-inputs {
    flex: 1;
}

.roi-results {
    flex: 1;
    background: var(--secondary);
    padding: 40px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.form-group {
    margin-bottom: 28px;
}

label {
    display: block;
    margin-bottom: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

input[type="range"] {
    width: 100%;
    accent-color: var(--primary);
    height: 6px;
}

.result-box {
    text-align: center;
}

.result-value {
    font-size: 3.2rem;
    color: #fff;
    font-weight: 900;
    display: block;
    font-family: var(--font-heading);
}

/* ===== GLASS EFFECT ===== */
.glass-effect {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: 16px;
}

/* ===== FOOTER ===== */
footer {
    background: var(--secondary);
    color: #fff;
    padding: clamp(70px, 6vw, 120px) var(--section-x) 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

/* ===== PRODUCT DETAIL HERO ===== */
.breadcrumb-container {
    background: var(--bg-breadcrumb);
    padding: 12px var(--section-x);
    border-bottom: 1px solid rgba(0, 119, 182, 0.1);
}

.breadcrumb {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    max-width: var(--page-max);
    margin: 0 auto;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.detail-hero {
    padding: clamp(56px, 4vw, 96px) 0 clamp(76px, 5vw, 120px);
    display: flex;
    align-items: flex-start;
    gap: clamp(48px, 4vw, 96px);
    background: #fff;
    min-height: clamp(620px, 66vh, 900px);
    max-width: var(--page-max);
    margin: 0 auto;
}

.detail-hero-wrapper {
    padding: 0 var(--section-x);
    background: #fff;
}

/* Hero feature list - green checkmarks only, no bullet markers */
.detail-hero .inquiry-benefits {
    list-style: none;
    padding-left: 0;
}

.detail-hero .inquiry-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    font-size: 0.95rem;
}

.detail-hero .inquiry-benefits li i {
    flex-shrink: 0;
}

.detail-info {
    flex: 0.9;
    padding-top: 10px;
}

.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.spec-item {
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.spec-item span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.spec-item strong {
    color: var(--secondary);
    font-size: 1rem;
}

.breadcrumb {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

/* ===== PRODUCT GALLERY ===== */
.product-visuals {
    flex: 1.1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.main-display {
    background: #fff;
    border-radius: 20px;
    height: clamp(500px, 34vw, 720px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: relative;
}

.main-display img, 
.main-display iframe, 
.main-display video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: 100%;
    height: 100%;
    border: none;
}

.thumbnail-slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 10px;
}

/* Hide entire slider when only 1 thumbnail */
.thumbnail-slider-container.single-item {
    display: none;
}

.thumbnail-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding: 5px 0;
}

.thumbnail-track {
    display: flex;
    gap: 16px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.thumb-item {
    width: 110px;
    height: 85px;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    background: #fff;
    transition: var(--transition);
    position: relative;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: var(--transition);
}

.thumb-item:hover img, 
.thumb-item.active img {
    opacity: 1;
}

.thumb-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--secondary);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .detail-hero {
        flex-direction: column;
        padding-top: 100px;
    }
    .main-display {
        height: 350px;
    }
}

/* ===== HERO KEY HIGHLIGHTS ===== */
.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.hero-highlights .highlight-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f0f7ff, #e8f4fd);
    border: 1px solid var(--border-light);
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--secondary);
    transition: var(--transition);
}

.hero-highlights .highlight-tag i {
    color: var(--primary);
    font-size: 0.85rem;
}

.hero-quick-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 25px 0 30px;
}

.hero-quick-specs .qs-item {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: var(--transition);
}

.hero-quick-specs .qs-item .qs-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-heading);
}

.hero-quick-specs .qs-item .qs-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-meta-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-meta-row span i {
    color: var(--primary);
}

/* ===== PRODUCT OVERVIEW SECTION ===== */
.product-overview {
    background: #fff;
    padding: 80px 8%;
}

.overview-container {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

.overview-text h2 {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 25px;
    font-family: var(--font-heading);
}

.overview-text .overview-desc {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-main);
    margin-bottom: 20px;
}

.overview-text .overview-desc strong {
    color: var(--secondary);
}

.overview-advantages {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.advantage-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 28px 24px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.advantage-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.advantage-card .adv-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 14px;
}

.advantage-card h4 {
    font-size: 1rem;
    color: var(--secondary);
    margin-bottom: 8px;
}

.advantage-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    background: var(--bg-section);
    padding: 80px 8%;
}

.faq-container {
    max-width: 1600px;
    margin: 0 auto;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 40px;
}

.faq-item {
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    gap: 16px;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question h4 {
    font-size: 0.95rem;
    color: var(--secondary);
    margin: 0;
    flex: 1;
}

.faq-question .faq-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
    flex-shrink: 0;
}

.faq-item.active .faq-toggle {
    background: var(--primary);
    color: #fff;
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ===== ABOUT MANUFACTURER ===== */
.manufacturer-section {
    background: linear-gradient(135deg, var(--secondary) 0%, #0a2540 100%);
    padding: 70px 8%;
    color: #fff;
}

.manufacturer-container {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

.manufacturer-info h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
    font-family: var(--font-heading);
}

.manufacturer-info p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

.manufacturer-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.manufacturer-stats .stat-item {
    text-align: center;
}

.manufacturer-stats .stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent);
    font-family: var(--font-heading);
}

.manufacturer-stats .stat-label {
    display: block;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== RESPONSIVE: NEW MODULES ===== */
@media (max-width: 992px) {
    .overview-container {
        grid-template-columns: 1fr;
    }
    .faq-grid {
        grid-template-columns: 1fr;
    }
    .manufacturer-container {
        grid-template-columns: 1fr;
    }
    .manufacturer-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-quick-specs {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .overview-advantages {
        grid-template-columns: 1fr;
    }
    .hero-quick-specs {
        grid-template-columns: 1fr;
    }
    .manufacturer-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== PROFESSIONAL DETAIL PAGE COMPONENTS ===== */
.specs-section {
    background: #fff;
    padding: 80px 8%;
}

.specs-container {
    max-width: 1600px;
    margin: 0 auto;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.specs-table tr {
    border-bottom: 1px solid var(--border-light);
}

.specs-table tr:nth-child(even) {
    background: #f8fafc;
}

.specs-table td {
    padding: 20px 30px;
    font-size: 0.95rem;
}

.specs-table td:first-child {
    font-weight: 700;
    color: var(--secondary);
    width: 35%;
    border-right: 1px solid var(--border-light);
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.app-item {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-light);
}

/* ===== METRIC HIGHLIGHTS BAR ===== */
.metric-bar {
    background: var(--secondary);
    padding: 30px 8%;
    color: #fff;
    border-bottom: 4px solid var(--primary-bright);
}

.metric-bar-inner {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
}

.metric-item {
    text-align: center;
    padding: 10px 20px;
    min-width: 150px;
}

.metric-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    font-family: var(--font-heading);
    margin-bottom: 4px;
}

.metric-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
}

/* ===== TECHNICAL SPECS V2 ===== */
.specs-table-v2 {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 30px;
}

.specs-table-v2 thead tr {
    background: var(--secondary);
    color: #fff;
    text-align: left;
}

.specs-table-v2 th, .specs-table-v2 td {
    padding: 18px 25px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-light);
}

.specs-table-v2 th {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
}

.specs-table-v2 tbody tr:nth-child(even) {
    background: #f8fafc;
}

.specs-table-v2 td:nth-child(2) {
    color: var(--primary);
    font-weight: 700;
}

/* ===== MACHINE ACTION GRID ===== */
.machine-action-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.main-video-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.video-thumb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.video-thumb-item {
    aspect-ratio: 16 / 9;
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    transition: var(--transition);
}

.video-thumb-item:hover, .video-thumb-item.active {
    border-color: var(--primary-bright);
}

.video-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    color: #fff;
    font-size: 1.5rem;
    opacity: 0.8;
}

/* ===== MACHINE DETAILS GRID ===== */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.detail-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    text-align: center;
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.detail-img-box {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-light);
}

.detail-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-card h4 {
    padding: 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--secondary);
    font-weight: 700;
}

/* Upgrade CTA Section */
.upgrade-cta {
    background: var(--secondary);
    padding: var(--section-y) var(--section-x);
    text-align: center;
    color: #fff;
}

.upgrade-cta h2 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 15px;
}

.upgrade-cta p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 14px var(--section-x);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    box-shadow: 0 -4px 30px rgba(0,0,0,0.08);
    border-top: 1px solid var(--border-light);
    z-index: 999;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
}

.sticky-cta.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.sticky-info {
    display: flex;
    flex-direction: column;
}

.sticky-info span {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sticky-info strong {
    font-size: 0.95rem;
    color: var(--secondary);
    font-weight: 700;
}

/* ===== INQUIRY FORM SECTION ===== */
.inquiry-section {
    background: linear-gradient(135deg, #f0f4f8 0%, #e8edf2 100%);
    padding: clamp(70px, 6vw, 120px) var(--section-x);
    border-top: 1px solid var(--border-light);
}

.inquiry-container {
    max-width: var(--page-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.inquiry-header {
    background: linear-gradient(145deg, var(--secondary) 0%, #0a2540 100%);
    padding: 50px 45px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.inquiry-header h2 {
    font-size: 2rem;
    margin-bottom: 12px;
    color: #fff;
}

.inquiry-header p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.inquiry-header .inquiry-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.inquiry-header .inquiry-benefits li {
    padding: 10px 0;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.inquiry-header .inquiry-benefits li:last-child {
    border-bottom: none;
}

.inquiry-header .inquiry-benefits li i {
    color: var(--accent);
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
}

.inquiry-form {
    padding: 45px 50px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
    align-content: start;
}

.inquiry-form .form-group {
    display: flex;
    flex-direction: column;
}

.inquiry-form .form-group label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inquiry-form .form-group input,
.inquiry-form .form-group textarea,
.inquiry-form .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: var(--font-body);
    color: var(--secondary);
    background: #f8fafc;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.inquiry-form .form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.inquiry-form .form-group input:focus,
.inquiry-form .form-group textarea:focus,
.inquiry-form .form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,119,182,0.1);
    background: #fff;
}

.inquiry-form .form-group input::placeholder,
.inquiry-form .form-group textarea::placeholder {
    color: #94a3b8;
    font-size: 0.85rem;
}

.inquiry-form .form-group textarea {
    min-height: 110px;
    resize: vertical;
}

.inquiry-form .form-group.full-width {
    grid-column: span 3;
}

.form-submit-container {
    grid-column: span 3;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.btn-submit {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 14px 40px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,119,182,0.3);
}

.form-status {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

@media (max-width: 992px) {
    .inquiry-container {
        grid-template-columns: 1fr;
    }
    .inquiry-header {
        padding: 35px 30px;
    }
    .inquiry-form {
        grid-template-columns: 1fr 1fr;
    }
    .inquiry-form .form-group.full-width {
        grid-column: span 2;
    }
    .form-submit-container {
        grid-column: span 2;
    }
}
@media (max-width: 768px) {
    .inquiry-form {
        grid-template-columns: 1fr;
        padding: 30px 25px;
    }
    .inquiry-form .form-group.full-width {
        grid-column: span 1;
    }
    .form-submit-container {
        grid-column: span 1;
        flex-direction: column;
    }
    .btn-submit {
        width: 100%;
    }
}


/* ===== CATEGORY & CATALOGUE STYLES ===== */
.cat-header {
    background: linear-gradient(135deg, #f0f7ff, #e8f4fd);
    padding: 82px 8% 60px;
    color: var(--secondary);
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    text-align: center;
}

.cat-header h1 {
    color: var(--secondary);
    font-size: 2.8rem;
    margin: 10px 0;
}

/* Tabs System */
.cat-tabs-container {
    margin-top: 35px;
}

.cat-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid rgba(0, 119, 182, 0.1);
}

.tab-item {
    padding: 14px 28px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    margin-bottom: -2px;
}

.tab-item:hover {
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 8px 8px 0 0;
}

.tab-item.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.catalog-content {
    background: var(--bg-light);
    padding-bottom: 80px;
}

/* Product Grid System */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 8%;
    max-width: 1600px;
    margin: 0 auto;
}

/* Section Controls */
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    max-width: 1600px;
    margin: 40px auto 20px;
    padding: 0 8%;
}

.section-title-group h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.section-title-group p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Premium Product Cards */
.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.model-tag {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.product-card h3 {
    font-size: 1.2rem;
    margin: 5px 0 10px;
    color: var(--secondary);
    min-height: 2.4em;
    display: flex;
    align-items: center;
}

.product-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3.2em;
}

.card-specs {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px dashed var(--border-light);
}

.spec-item {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .cat-header h1 {
        font-size: 2rem;
    }
    .section-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* ===== MOBILE NAVIGATION ===== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary);
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    .nav-links, .nav-actions {
        display: none !important;
    }
    .nav-actions {
        display: flex !important;
    }
    .nav-actions .btn {
        display: none;
    }
    .nav-links.mobile-open {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-white);
        z-index: 1000;
        padding: 80px 30px 40px;
        gap: 0;
        align-items: stretch;
    }
    .nav-links.mobile-open > li {
        border-bottom: 1px solid var(--border-light);
    }
    .nav-links.mobile-open > li > a {
        padding: 16px 0;
        font-size: 1.1rem;
    }
    .nav-links.mobile-open .mega-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border-top: none;
        padding: 10px 0 20px;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
    }
    .nav-links.mobile-open .mega-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .navbar {
        padding: 14px var(--section-x);
    }
}

/* ===== GLOBAL FOOTER STYLES ===== */
footer, .main-footer {
    background: var(--secondary);
    color: #fff;
    padding: 80px 8% 40px;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 60px;
    max-width: 1600px;
    margin: 0 auto;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
}

/* ===== CATEGORY & CATALOGUE STYLES ===== */
.cat-header {
    background: linear-gradient(135deg, #f0f7ff, #e8f4fd) !important;
    padding: 82px 8% 40px !important;
    color: var(--secondary);
    position: relative;
    overflow: hidden;
}

.cat-header h1 {
    font-size: 2.8rem;
    margin: 10px 0;
    color: var(--secondary);
}

.cat-tabs-container {
    margin-top: 30px;
}

.cat-tabs {
    display: flex !important;
    gap: 15px !important;
    border-bottom: 2px solid rgba(0, 119, 182, 0.1);
}

.tab-item {
    display: inline-block !important;
    padding: 12px 25px !important;
    text-decoration: none !important;
    color: var(--text-muted) !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    margin-right: 5px;
}

.tab-item:hover {
    color: var(--primary) !important;
    background: var(--primary-light) !important;
}

.tab-item.active {
    color: var(--primary) !important;
    border-bottom-color: var(--primary) !important;
}

.sub-cat-section {
    padding-top: 20px;
}

/* ===================================================
   BLOG & CONTENT STYLES
   =================================================== */

.blog-hero {
    background: linear-gradient(135deg, #f0f7ff, #e8f4fd);
    padding: 118px 8% 80px;
    text-align: center;
}

.blog-hero h1 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--secondary);
    margin-bottom: 20px;
}

.blog-hero p {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.6;
}

.blog-container {
    padding: 80px 8%;
    max-width: 1400px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.1);
}

.blog-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.05);
}

.blog-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.blog-card-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-date {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.blog-card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-card-content h3 a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card-content h3 a:hover {
    color: var(--primary);
}

.blog-card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    transition: gap 0.2s;
}

.read-more:hover {
    gap: 12px;
}

/* Article Detail Styles */
.article-hero {
    padding: 118px 8% 60px;
    background: linear-gradient(135deg, #f0f7ff, #e8f4fd);
}

.article-header {
    max-width: 900px;
    margin: 0 auto;
}

.article-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.article-cat {
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.article-header h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.2;
    color: var(--secondary);
    margin-bottom: 30px;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    padding: 60px 8%;
    max-width: 1400px;
    margin: 0 auto;
}

.article-main img.featured-img {
    width: 100%;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #334155;
}

.article-content h2 {
    font-size: 1.8rem;
    color: var(--secondary);
    margin: 40px 0 20px;
}

.article-content p {
    margin-bottom: 25px;
}

.article-content ul, .article-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 10px;
}

.sidebar-widget {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    position: sticky;
    top: 100px;
}

.sidebar-widget h4 {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 20px;
    border-left: 4px solid var(--primary);
    padding-left: 12px;
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
}

.sidebar-widget li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-widget li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-widget a {
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.2s;
}

.sidebar-widget a:hover {
    color: var(--primary);
}

@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
    .sidebar-widget {
        position: static;
    }
}

@media (max-width: 768px) {
    .article-hero {
        padding: 120px 5% 40px;
    }
    .article-layout {
        padding: 40px 5%;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== BREADCRUMB PLACEMENT OVERRIDES ===== */
.page-hero,
.cat-header,
.blog-hero,
.article-hero,
.cat-page-hero,
.detail-hero {
    position: relative !important;
    padding-top: 82px !important;
}

.page-hero > .breadcrumb,
.cat-header > .breadcrumb,
.blog-hero > .breadcrumb,
.article-hero .breadcrumb,
.cat-page-hero > .breadcrumb,
.cat-page-hero .breadcrumb,
.detail-info > .breadcrumb {
    position: absolute !important;
    top: 24px !important;
    left: var(--section-x) !important;
    right: auto !important;
    max-width: none !important;
    margin: 0 !important;
    text-align: left !important;
    z-index: 2;
}

.breadcrumb a,
nav.breadcrumb a,
.page-hero > .breadcrumb a,
.cat-header > .breadcrumb a,
.blog-hero > .breadcrumb a,
.article-hero .breadcrumb a,
.cat-page-hero > .breadcrumb a,
.cat-page-hero .breadcrumb a,
.detail-info > .breadcrumb a,
.samples-hero > .breadcrumb a,
.mold-hero > .breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover,
nav.breadcrumb a:hover,
.page-hero > .breadcrumb a:hover,
.cat-header > .breadcrumb a:hover,
.blog-hero > .breadcrumb a:hover,
.article-hero .breadcrumb a:hover,
.cat-page-hero > .breadcrumb a:hover,
.cat-page-hero .breadcrumb a:hover,
.detail-info > .breadcrumb a:hover,
.samples-hero > .breadcrumb a:hover,
.mold-hero > .breadcrumb a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.detail-info > .breadcrumb {
    max-width: 84% !important;
}

.article-hero .article-header {
    position: static !important;
}

.page-hero h1,
.cat-header h1,
.blog-hero h1,
.article-header h1,
.cat-page-hero h1 {
    margin-top: 0 !important;
}

@media (max-width: 768px) {
    .page-hero,
    .cat-header,
    .blog-hero,
    .article-hero,
    .cat-page-hero,
    .detail-hero {
        padding-top: 68px !important;
    }

    .page-hero > .breadcrumb,
    .cat-header > .breadcrumb,
    .blog-hero > .breadcrumb,
    .article-hero .breadcrumb,
    .cat-page-hero > .breadcrumb,
    .cat-page-hero .breadcrumb,
    .detail-info > .breadcrumb {
        top: 20px !important;
        left: var(--section-x) !important;
    }
}

/* ===== LARGE SCREEN ADAPTIVE LAYOUT ===== */
.wide-container,
.page-container,
.section-inner,
.cat-nav-section,
.sample-gallery-section .section-title,
.sample-grid,
.blog-container,
.article-layout,
.products-grid,
.stats-grid {
    max-width: var(--page-max);
    margin-left: auto;
    margin-right: auto;
}

.page-hero,
.cat-header,
.blog-hero,
.article-hero,
.cat-page-hero {
    padding-left: var(--section-x) !important;
    padding-right: var(--section-x) !important;
}

.product-card,
.feature-card,
.showcase-card,
.cat-nav-card,
.blog-card,
.detail-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

@media (min-width: 1440px) {
    .nav-links {
        gap: clamp(28px, 2vw, 44px);
    }

    .section-title h2,
    .cat-header h1,
    .page-hero h1,
    .blog-hero h1 {
        font-size: clamp(2.6rem, 2.6vw, 4rem);
    }

    .b2b-grid,
    .blog-grid,
    .sample-grid,
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    }
}

@media (min-width: 1920px) {
    body {
        font-size: 17px;
    }

    .navbar {
        padding-left: var(--section-x);
        padding-right: var(--section-x);
    }

    .hero,
    .detail-hero,
    .mold-hero,
    .samples-hero {
        min-height: var(--hero-min-h);
    }

    .footer-grid,
    .b2b-grid,
    .inquiry-container,
    .detail-hero {
        max-width: var(--page-max);
    }
}

@media (min-width: 2400px) {
    :root {
        --page-max: 2040px;
        --content-max: 1760px;
        --section-x: 160px;
    }

    p,
    .section-title p,
    .showcase-desc,
    .cat-nav-desc,
    .article-content p {
        line-height: 1.82;
    }
}
