/* CSS Variables - ATech Machine® Corporate Palette */
:root {
    /* Primary Brand Colors */
    --primary-color: #002766;
    --primary-light: #3d7cc9;
    --primary-dark: #001a4d;
    --secondary-color: #ed1e26;
    --secondary-light: #ff4d53;
    --secondary-dark: #c4161d;

    /* Semantic Colors */
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #0ea5e9;

    /* Neutrals & Text */
    --text-dark: #0f172a;
    /* Slate 900 */
    --text-main: #334155;
    /* Slate 700 */
    --text-gray: #64748b;
    /* Slate 500 */
    --text-light: #94a3b8;
    /* Slate 400 */

    /* Backgrounds */
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --bg-dark: #0f172a;

    /* Surfacing & Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    --surface-border: #cbd5e1;
    --border-color: #cbd5e1;

    /* Design Tokens */
    --border-radius-sm: 8px;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-full: 9999px;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);

    --container-width: 1200px;
    --header-height: 160px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout Spacing - Optimized for UX */
    --page-padding-y: 4rem;
    --section-padding-y: 6rem;
}

/* Reset & Base */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.011em;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Barlow Condensed', 'Barlow', sans-serif;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

h1 {
    font-size: 2rem;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 1.5rem;
    letter-spacing: -0.025em;
}

h3 {
    font-size: 1.125rem;
    letter-spacing: -0.02em;
}

h4 {
    font-size: 1.125rem;
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: 0.875rem;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Standard Page Components */
.page-header {
    padding: var(--page-padding-y) 0;
    text-align: center;
    border-bottom: 1px solid var(--surface-border);
    background: var(--bg-white);
    margin-bottom: 3rem;
}

.page-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 800;
}

.page-subtitle {
    font-size: 1rem;
    color: var(--text-gray);
    max-width: 550px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.6;
}

/* Base Responsive Utilities */
.hide-mobile {
    display: block !important;
}

.hauteur-full {
    height: 100%;
}

.aspect-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    overflow: hidden;
    background: white;
}

.aspect-wrapper img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }

    .hide-desktop {
        display: block !important;
    }
}

.hauteur-full {
    height: 100%;
    display: flex;
    align-items: center;
}

.hide-desktop {
    display: none !important;
}

@media (max-width: 768px) {
    /*
     * Mobile nav: do NOT use display:none on .main-nav — it breaks transform transitions
     * and can glitch tap targets. Drawer visibility is handled by the fixed-nav block
     * (translateX + pointer-events) and .main-nav.active.
     */
    #mobileMenuToggle {
        display: flex !important;
    }

    .header-links,
    .search-bar.hide-mobile,
    .header-action-text.hide-mobile,
    .ha-btn-label.hide-mobile {
        display: none !important;
    }

    .hide-mobile {
        display: none !important;
    }

    .hide-desktop {
        display: block !important;
    }
}

/* Sticky cluster: top bar + main row + desktop nav (nav is outside .site-header for mobile fixed drawer) */
.header-nav-wrap {
    position: sticky;
    top: 0;
    z-index: 2500;
    transition: var(--transition);
}

/* Header Styles */
.site-header {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: none;
    position: relative;
    /* Above sibling .main-nav (z-index: 100) so live-search dropdown is not painted under the blue bar */
    z-index: 150;
    transition: var(--transition);
}

.header-top {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.625rem 0;
    font-size: 0.8125rem;
    font-weight: 500;
}

.header-top a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.header-top a:hover {
    color: white;
}

.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-contact a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-contact i {
    color: var(--primary-light);
}

.header-top .divider {
    display: inline-block;
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    vertical-align: middle;
}

.header-announcement {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.badge {
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: 'Inter', sans-serif;
}

.badge-primary {
    background: var(--primary-color);
    color: white;
}

.announcement-text {
    font-size: 0.8125rem;
    font-weight: 600;
    color: white;
}

.header-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.header-links .divider {
    margin: 0 0.25rem;
}

.header-main {
    padding: 1rem 0;
    /* Above .main-nav (z-index: 100) so live search dropdown is not covered by the blue nav bar */
    position: relative;
    z-index: 200;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
}

.site-logo {
    display: flex;
    align-items: center;
    margin-left: -5px;
    /* Offset for internal logo whitespace */
}

.site-logo img {
    height: 48px;
    /* Slightly larger for premium feel */
    width: auto;
    display: block;
}

/* Search Bar - Elite Design */
.search-bar {
    flex: 1;
    max-width: 580px;
    position: relative;
    z-index: 1;
}

.search-form {
    position: relative;
    display: flex;
}

/* Global Input Standard - Ultra Readable */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-color);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 39, 102, 0.08);
}

input::placeholder,
textarea::placeholder {
    color: #94a3b8;
}

.search-input {
    width: 100%;
    padding: 0.875rem 3.5rem 0.875rem 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-full);
    font-size: 1rem;
    transition: var(--transition);
}

.search-input:focus {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.search-button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    width: 42px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius-full);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Live AJAX search (GET /search/ajax — full catalog search remains GET /products?q=) */
.search-form--live .search-live-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 4000;
    background: var(--bg-white);
    border: 1px solid var(--surface-border);
    border-radius: var(--border-radius);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    max-height: min(70vh, 420px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    text-align: left;
}

/* WebKit/Safari: reinforce visibility when JS opens panel (hidden + class) */
.search-form--live .search-live-panel.search-live-panel--open {
    display: block !important;
    visibility: visible !important;
}

.search-live-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    text-decoration: none;
    color: var(--text-dark);
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}

.search-live-item:last-of-type {
    border-bottom: none;
}

.search-live-item:hover,
.search-live-item.search-live-active {
    background: #f8fafc;
}

.search-live-img {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-live-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.search-live-ph {
    color: #cbd5e1;
    font-size: 1.1rem;
}

.search-live-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.search-live-name {
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-live-cat {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
}

.search-live-empty {
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    color: #64748b;
}

.search-live-all {
    display: block;
    padding: 0.75rem 1rem;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary-color);
    text-decoration: none;
    text-align: center;
    border-top: 1px solid var(--surface-border);
    background: #f8fafc;
}

.search-live-all:hover {
    background: #f1f5f9;
    color: var(--primary-dark);
}

.search-live-geo {
    padding: 0.5rem 1rem 0.85rem;
    font-size: 0.7rem;
    color: #94a3b8;
    text-align: center;
    border-top: 1px solid #f1f5f9;
    line-height: 1.4;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.ha-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: var(--text-main);
    text-decoration: none;
    cursor: pointer;
    font-family: 'Barlow', sans-serif;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.ha-btn:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 12px rgba(0,39,102,0.1);
}

.ha-btn-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: all 0.25s;
}

.ha-btn-wizard .ha-btn-icon {
    background: linear-gradient(135deg, var(--accent-color, #ed1e26), #c41920);
    color: #fff;
}

.ha-btn-wizard:hover {
    border-color: var(--accent-color, #ed1e26);
    background: #fff9f9;
}

.ha-btn-quote .ha-btn-icon {
    background: linear-gradient(135deg, var(--primary-color), #001a4d);
    color: #fff;
}

.ha-btn-quote:hover {
    border-color: var(--primary-color);
    background: #f0f4ff;
}

.ha-btn-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #334155;
    white-space: nowrap;
}

.ha-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--accent-color, #ed1e26);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    height: 20px;
    min-width: 20px;
    padding: 0 5px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(237,30,38,0.3);
    animation: badgePop 0.3s ease;
}

@keyframes badgePop {
    0% { transform: scale(0.5); }
    70% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.ha-badge.pulse {
    animation: badgePulse 0.5s ease;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.25); }
}

.cart-count,
.wishlist-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent-color, #ed1e26);
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    height: 18px;
    min-width: 18px;
    padding: 0 4px;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-white);
}

/* Navigation - Image Inspired Design */
.main-nav {
    background: #002766; /* Deep Dark Blue */
    border-top: none;
    position: relative;
    z-index: 100;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.nav-menu li {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    flex: 1;
    display: flex;
    align-items: stretch;
}

.nav-menu li:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-menu li a {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 20px 0 20px 4px;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.7125rem;
    text-transform: uppercase;
    letter-spacing: 0.1px;
    gap: 10px;
    position: relative;
    transition: all 0.2s ease;
    width: 100%;
    line-height: 1.2;
    text-align: left;
}

.nav-menu li a i {
    font-size: 1.125rem;
    flex-shrink: 0;
    opacity: 1;
}

.nav-menu li a span {
    max-width: 140px; /* Forces wrapping for 'AFTER SALES SERVICE' */
    display: block;
}

.nav-menu li a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.nav-menu li a::after {
    display: none; /* Removed the underline effect */
}

/* ===== MEGA MENU ===== */
.has-megamenu {
    position: static !important;
}

.megamenu-trigger {
    position: relative;
}

.megamenu-arrow {
    font-size: 0.55rem !important;
    opacity: 0.6;
    transition: transform 0.3s ease;
    margin-left: -4px;
}

.has-megamenu:hover .megamenu-arrow,
.has-megamenu.active .megamenu-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

.megamenu {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 100vw;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.08);
    border-top: 3px solid var(--primary-color);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    pointer-events: none;
}

.has-megamenu:hover .megamenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.megamenu-inner {
    width: min(1137px, calc(100vw - 2rem));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 0;
    padding: 0;
}

.megamenu-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 2px;
    padding: 1.5rem;
    background: #fafbfc;
}

.megamenu-cat-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.megamenu-cat-card:hover {
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 39, 102, 0.1);
    transform: translateY(-2px);
}

.megamenu-cat-img {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    transition: all 0.25s ease;
}

.megamenu-cat-card:hover .megamenu-cat-img {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 39, 102, 0.08);
}

.megamenu-cat-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.megamenu-cat-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.125rem;
}

.megamenu-cat-info {
    flex: 1;
    min-width: 0;
}

.megamenu-cat-name {
    display: block;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1.3;
    color: var(--text-dark);
    transition: color 0.2s ease;
}

.megamenu-cat-card:hover .megamenu-cat-name {
    color: var(--primary-color);
}

.megamenu-cat-count {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
    margin-top: 2px;
}

.megamenu-cat-arrow {
    font-size: 0.7rem !important;
    color: #cbd5e1;
    transition: all 0.25s ease;
    flex-shrink: 0;
    margin-left: 0.2rem;
    margin-right: 0.45rem;
}

.megamenu-cat-card:hover .megamenu-cat-arrow {
    color: var(--primary-color);
    transform: translateX(0);
}

/* CTA Column */
.megamenu-cta {
    background: linear-gradient(135deg, #002766 0%, #001a4d 100%);
    padding: 2rem;
    display: flex;
    align-items: center;
}

.megamenu-cta-inner {
    text-align: center;
}

.megamenu-cta-inner > i {
    font-size: 2rem;
    color: #fbbf24;
    margin-bottom: 1rem;
    display: block;
}

.megamenu-cta h4 {
    color: #ffffff;
    font-family: 'Barlow', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
}

.megamenu-cta p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0 0 1.25rem 0;
}

.megamenu-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #ed1e26;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 8px;
    transition: all 0.25s ease;
    font-family: 'Barlow', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.megamenu-cta-btn:hover {
    background: #c41920;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(237, 30, 38, 0.4);
}

.megamenu-cta-phone {
    display: block;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.megamenu-cta-phone:hover {
    color: #ffffff !important;
}

/* Mobile Sub Menu (hidden on desktop) */
.mobile-submenu {
    display: none;
}

@media (max-width: 768px) {
    .main-nav {
        background: var(--bg-white);
    }
    
    .nav-menu {
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .nav-menu li {
        /* Override desktop flex:1 — column + flex-grow collapses items to 0 height on mobile drawer */
        flex: 0 0 auto !important;
        /* Keep items stacked: anchor then submenu */
        display: block;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        max-width: none;
    }
    
    .nav-menu li:first-child {
        border-left: none;
    }
    
    .nav-menu li a {
        flex-direction: row;
        justify-content: flex-start;
        padding: 1rem 1.5rem;
        color: var(--text-dark) !important;
        gap: 1rem;
        font-size: 0.875rem;
    }
    
    .nav-menu li a i {
        width: 24px;
        text-align: center;
        margin-bottom: 0;
    }
    
    /* Mega menu: hide on mobile, show mobile-submenu instead */
    .megamenu {
        display: none !important;
    }

    .megamenu-arrow {
        margin-left: auto;
        font-size: 0.65rem !important;
    }

    .has-megamenu.mobile-open .megamenu-arrow {
        transform: rotate(180deg);
    }

    .mobile-submenu {
        display: none;
        list-style: none;
        padding: 0;
        margin: 0;
        background: #f8fafc;
        border-top: 1px solid #e2e8f0;
    width: 100%;
    box-sizing: border-box;
    }

    .has-megamenu.mobile-open .mobile-submenu {
        display: block;
    }

    .mobile-submenu li {
        border-bottom: 1px solid #edf2f7 !important;
        flex: none !important;
    }

    .mobile-submenu li:last-child {
        border-bottom: none !important;
    }

    .mobile-submenu li a {
    padding: 0.75rem 1.5rem !important;
        font-size: 0.8125rem !important;
        font-weight: 600 !important;
        color: #475569 !important;
    display: block;
    width: 100%;
    }

    .mobile-submenu li a:hover {
        color: var(--primary-color) !important;
        background: #edf2f7;
    }
}

/* Product Detail Modernization */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 5rem;
    align-items: start;
    margin-bottom: 6rem;
}

/* CRITICAL: Fix for Swiper stretching in Grid */
.product-detail-layout>div {
    min-width: 0;
}

.product-gallery-stable {
    position: sticky;
    top: 120px;
}

.main-view-wrapper {
    margin-bottom: 2.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--surface-border);
    background: white;
    cursor: zoom-in;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
}

.main-view-wrapper img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 92%;
    max-height: 92%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.aspect-wrapper {
    display: none;
    /* Removing as aspect-ratio handles it now */
}

/* Swiper Gallery Adjustments */
.product-thumbs-slider {
    padding: 2px;
}

.product-thumbs-slider .swiper-slide {
    cursor: pointer;
    border-radius: var(--border-radius);
    border: 1px solid #dbe3ee;
    overflow: hidden;
    transition: var(--transition);
    opacity: 0.78;
}

.product-thumbs-slider .swiper-slide:hover {
    border-color: #7aa7d8;
    opacity: 1;
}

.product-thumbs-slider .swiper-slide-thumb-active {
    border-color: var(--primary-color);
    opacity: 1;
    box-shadow: 0 0 0 1px rgba(0, 39, 102, 0.12);
}

.product-thumbs-slider img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.product-info-panel h1 {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.price-box {
    margin-bottom: 2.5rem;
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
}

.price-box .price {
    font-size: 2rem;
    font-family: 'Barlow', sans-serif;
    font-weight: 800;
    color: var(--primary-color);
}

.price-box .old-price {
    font-size: 1.25rem;
    text-decoration: line-through;
    color: var(--text-light);
    font-weight: 600;
}

.variant-selector {
    padding: 2.5rem;
    background: var(--bg-gray);
    border-radius: var(--border-radius-lg);
    margin-bottom: 3rem;
}

.variant-selector h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: var(--text-gray);
}

.variant-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.variant-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--surface-border);
    background: white;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-main);
}

.variant-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary-color);
}

.variant-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.cart-controls {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.quantity-box {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 56px;
}

.quantity-box button {
    width: 48px;
    height: 100%;
    border: none;
    background: var(--bg-gray);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
}

.quantity-box button:hover {
    background: var(--surface-border);
}

.quantity-box input {
    width: 60px;
    height: 100%;
    text-align: center;
    border: none;
    font-weight: 800;
    font-size: 1.125rem;
    background: white;
    padding: 0;
}

.tab-container {
    background: white;
    border: 1px solid var(--surface-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: 6rem;
}

.tab-header {
    display: flex;
    border-bottom: 1px solid var(--surface-border);
    background: var(--bg-gray);
}

.tab-trigger {
    padding: 1.5rem 3rem;
    border: none;
    background: none;
    font-family: 'Barlow', sans-serif;
    font-weight: 800;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    color: var(--text-gray);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.tab-trigger.active {
    color: var(--primary-color);
}

.tab-trigger.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

.tab-content {
    padding: 2rem 1rem;
    max-width: none;
}

.tab-content h3 {
    margin-bottom: 2rem;
}

/* Product detail rich description spacing */
.product-desc-rich {
    color: var(--text-main);
    line-height: 1.75;
    font-size: 1.05rem;
    padding: 0rem 1.5rem;
}

.product-desc-rich h2,
.product-desc-rich h3,
.product-desc-rich h4 {
    font-family: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #0f172a;
    margin: 1.1rem 0 0.6rem;
    line-height: 1.2;
}

.product-desc-rich p {
    margin: 0.75rem 0;
}

.product-desc-rich ul,
.product-desc-rich ol {
    padding-left: 1.25rem;
    margin: 0.6rem 0 0.9rem;
}

.product-desc-rich li {
    margin: 0.18rem 0;
    line-height: 1.55;
}

.product-desc-rich table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.25rem;
}

.product-desc-rich th,
.product-desc-rich td {
    border: 1px solid #e8ecf2;
    padding: 0.65rem 0.75rem;
    vertical-align: top;
}

.product-desc-rich a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
}
.product-desc-rich a:hover { text-decoration: underline; }

/* Admin rich-text font-size classes (sanitized allowlist) */
.product-desc-rich .rt-fs-sm { font-size: 0.95em; }
.product-desc-rich .rt-fs-md { font-size: 1em; }
.product-desc-rich .rt-fs-lg { font-size: 1.15em; }

.product-desc-rich s {
    text-decoration: line-through;
}

/* Lightbox Customization */
.glightbox-container .gslide-image {
    background: white !important;
    border-radius: var(--border-radius-lg);
}

@media (max-width: 992px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .product-gallery-stable {
        position: static;
    }
}

/* ===== FAQ Section ===== */
.faq-section {
    padding: 6rem 0;
    background: #ffffff;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 3rem;
}

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

.faq-item:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    font-family: 'Barlow', sans-serif;
    transition: var(--transition);
}

.faq-question i {
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question {
    color: var(--secondary-color);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background: var(--bg-light);
}

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

.faq-answer > div {
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--text-color);
    line-height: 1.7;
    margin: 0;
}

/* ===== Blog Section ===== */
.blog-section {
    padding: 6rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background: #fff;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--surface-border);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.blog-card-img {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.blog-card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--secondary-color);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
    letter-spacing: 0.05em;
}

.blog-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.blog-meta i {
    color: var(--secondary-color);
}

.blog-card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
}

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

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

.blog-card-content p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: var(--transition);
    letter-spacing: 0.05em;
}

.read-more:hover {
    color: var(--secondary-color);
    gap: 0.8rem;
}

.bg-light {
    background-color: #f8fafc;
}

/* Footer - Premium Layout */
.site-footer {
    background: #001333;
    color: #a0aec0;
    margin-top: 6rem;
    padding: 5rem 0 0;
    font-family: 'Barlow', sans-serif;
    border-top: 4px solid var(--secondary-color);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 3rem;
    padding-bottom: 4rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-brand .footer-logo img {
    max-height: 55px;
    margin-bottom: 1.5rem;
}

.footer-brand .footer-logo h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-family: 'Barlow Condensed', 'Barlow', sans-serif;
    font-size: 2rem;
    font-weight: 800;
}

.footer-geo-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #cbd5e1;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.social-icon:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(227, 40, 49, 0.3);
}

.footer-heading {
    color: #fff;
    font-family: 'Barlow Condensed', 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-links a::before {
    content: '›';
    color: var(--secondary-color);
    margin-right: 8px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-5px);
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact address {
    font-style: normal;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-item i {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-top: 3px;
}

.contact-item a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #fff;
}

.support-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.support-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    transition: color 0.3s ease;
}

.support-links a:hover {
    color: #fff;
}

.footer-bottom {
    background: #000c22;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.copyright {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0;
}

.copyright strong {
    color: #fff;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: #fff;
}

/* Footer Responsive */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Product Grid - Elite Layout */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--surface-border);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.product-image {
    position: relative;
    padding-top: 100%;
    background: #ffffff;
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #ffffff;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-price {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-top: auto;
    font-family: 'Barlow', sans-serif;
    letter-spacing: -0.01em;
}

/* Section Headers - Universal Scale */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* Category Cards - New Premium Style */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.category-card {
    position: relative;
    height: 240px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: var(--transition);
}

.category-card:hover {
    transform: scale(1.02);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--transition);
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    transition: var(--transition);
}

.category-card:hover .category-overlay {
    background: linear-gradient(to top, rgba(0, 39, 102, 0.85) 0%, rgba(0, 0, 0, 0) 80%);
}

.category-name {
    color: white;
    font-family: 'Barlow', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.category-count {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Buttons - Elite Refresh */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 14px rgba(237, 30, 38, 0.3);
}

.btn-primary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(237, 30, 38, 0.4);
}

.btn-outline-primary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
}

.btn-outline-primary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.shadow-glow {
    box-shadow: 0 8px 30px rgba(237, 30, 38, 0.35);
}

.shadow-glow:hover {
    box-shadow: 0 12px 40px rgba(237, 30, 38, 0.5);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 39, 102, 0.2);
}

/* Auth Cards */
.auth-card {
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 3.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--surface-border);
}

.auth-card-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.625rem;
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-gray);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* Hero Slider - Elite Design */
.hero-slider.modern-slider {
    aspect-ratio: 21 / 9;
    min-height: 400px;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.6) 0%, rgba(15, 23, 42, 0.1) 70%);
    z-index: 2;
}

.slider-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1.5s ease;
    transform: scale(1.1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.slider-item.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.slider-content {
    position: relative;
    z-index: 10;
    transform: translateY(40px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s;
    width: 100%;
    max-width: 800px;
    padding: 2rem;
}

.slider-item.active .slider-content {
    transform: translateY(0);
    opacity: 1;
}

.slider-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 0.4rem 1.25rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.slider-badge i {
    color: var(--secondary-color);
    font-size: 0.85rem;
}

.slider-title {
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.75rem;
    line-height: 1.08;
    text-transform: uppercase;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.04em;
    font-family: 'Barlow Condensed', 'Barlow', sans-serif;
}

.text-accent {
    color: var(--secondary-color);
    position: relative;
}

.slider-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 4vw, 5rem);
    color: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
    font-weight: 400;
    line-height: 1;
    font-style: italic;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.slider-nav {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 20;
    display: flex;
    gap: 1rem;
}

.slider-nav button {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.slider-nav button:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 39, 102, 0.4);
}

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    z-index: 20;
    display: flex;
    gap: 0.75rem;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.slider-dot.active {
    width: 32px;
    background: var(--primary-color);
}

@media (max-width: 1024px) {
    .hero-slider.modern-slider {
        aspect-ratio: 16 / 9;
    }

    .slider-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .slider-nav {
        display: none;
    }

    .slider-dots {
        left: 50%;
        transform: translateX(-50%);
    }
}


/* Hero Video - Premium Layout */
.hero-video {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--header-height, 160px));
    height: calc(100dvh - var(--header-height, 160px));
    max-height: calc(100vh - var(--header-height, 160px));
    max-height: calc(100dvh - var(--header-height, 160px));
    overflow: hidden;
    display: flex;
    align-items: center;
    background: var(--bg-dark);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.video-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(75deg, rgba(0, 20, 51, 0.88) 0%, rgba(0, 39, 102, 0.55) 50%, rgba(0, 39, 102, 0.2) 100%);
    z-index: 2;
}

/* Wide Container for Hero */
.hero-video .container {
    max-width: 1200px;
    width: 100%;
}

.hero-row {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 3rem;
}

.video-content {
    flex: 1;
    min-width: 0;
    animation: heroFadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-video .slider-subtitle {
    font-size: clamp(1rem, 1.6vw, 1.35rem);
    line-height: 1.55;
    margin: 0 0 2rem 0;
    max-width: 60ch;
}

.hero-side-badge {
    flex-shrink: 0;
    width: 200px;
    align-self: flex-end;
    margin-bottom: 2rem;
    /* No enter animation: delayed opacity was inflating LCP "element render delay" */
}

.hero-side-badge img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.4));
}

.hero-actions {
    margin-top: 2.5rem;
    display: flex;
    gap: 1.5rem;
}

.text-primary {
    color: var(--primary-color) !important;
}

@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .hero-video {
        height: calc(100vh - var(--header-height, 160px));
        height: calc(100dvh - var(--header-height, 160px));
        max-height: calc(100vh - var(--header-height, 160px));
        max-height: calc(100dvh - var(--header-height, 160px));
    }

    .hero-side-badge {
        width: 160px;
    }
}

@media (max-width: 768px) {
    .hero-video {
        height: calc(100vh - var(--header-height, 120px));
        height: calc(100dvh - var(--header-height, 120px));
        max-height: calc(100vh - var(--header-height, 120px));
        max-height: calc(100dvh - var(--header-height, 120px));
        min-height: min(520px, calc(100dvh - var(--header-height, 120px)));
        align-items: flex-start;
        padding-top: max(0.75rem, env(safe-area-inset-top, 0px));
        padding-bottom: 0.75rem;
        box-sizing: border-box;
    }

    .hero-video .container.hauteur-full {
        align-items: flex-start;
        min-height: 0;
    }
    
    .video-content {
        text-align: center;
        padding: 0 0.75rem;
    }

    .hero-video .slider-title {
        font-size: clamp(1.5rem, 8vw, 2.25rem);
        margin-bottom: 1rem;
        line-height: 1.1;
    }

    .hero-video .slider-subtitle {
        font-size: 0.9375rem;
        margin-bottom: 1.25rem;
        line-height: 1.55;
    }
    
    .hero-actions {
        justify-content: center;
        flex-direction: column;
        align-items: stretch;
        margin-top: 1.25rem;
        gap: 0.75rem;
        max-width: 22rem;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-video .btn-lg {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
}

@keyframes heroFadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .hero-row {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
    }

    .hero-side-badge {
        width: min(140px, 42vw);
        order: -1;
        margin-bottom: 0;
        align-self: center;
    }
}

/* ===== Machine Categories Section ===== */
/* ===== Machine Categories Section ===== */
.machine-categories-section {
    background: #f4f6f9;
    padding: 1.5rem 0 2rem;
    position: relative;
    overflow: visible;
}

.mc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}

.mc-title-group {
    display: flex;
    flex-direction: column;
}

.mc-title {
    font-family: 'Barlow Condensed', 'Barlow', sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 0.04em;
    margin: 0;
    line-height: 1.05;
    text-transform: uppercase;
}

.mc-subtitle {
    font-size: 0.95rem;
    color: var(--text-gray);
    font-weight: 400;
    margin-top: 0.5rem;
    max-width: 520px;
    line-height: 1.5;
}

.mc-nav {
    display: flex;
    gap: 0.5rem;
}

.mc-nav-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.25s ease;
}

.mc-nav-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.08);
}

.mc-swiper {
    overflow: visible;
    padding: 24px 0 48px 0 !important;
}

.mc-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e2e7ef;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    padding-top: 20px;
}

.mc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transition: transform 0.35s ease;
    z-index: 2;
}

.mc-card:hover::before {
    transform: scaleX(1);
}

.mc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 39, 102, 0.12);
    border-color: transparent;
}

.mc-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f8fafc;
}

.mc-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.mc-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #e8edf5 0%, #f0f3f8 100%);
    color: #b0bdd0;
    font-size: 2.5rem;
}

.mc-card-body {
    padding: 1.15rem 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.mc-card-name {
    font-family: 'Barlow', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.3;
    margin: 0;
    min-height: 2.2em;
    display: flex;
    align-items: center;
}

.mc-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.mc-card:hover .mc-card-btn {
    background: var(--secondary-color);
    box-shadow: 0 4px 16px rgba(237, 30, 38, 0.25);
}

.mc-card-btn i {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

.mc-card:hover .mc-card-btn i {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .machine-categories-section {
        padding: 2.5rem 0 3rem;
    }

    .mc-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .mc-title {
        font-size: 1.5rem;
    }

    .mc-subtitle {
        font-size: 0.85rem;
    }
}

.site-main {
    margin-top: 0;
}

@media (min-width: 1025px) {
    .site-main {
        margin-top: 0;
    }
}

/* Section Headers (centered) */
.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-header::before {
    display: none;
}

.section-header .section-label {
    justify-content: center;
}

.section-header .section-title {
    font-family: 'Barlow Condensed', 'Barlow', sans-serif;
    font-size: clamp(1.85rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    letter-spacing: -0.02em;
}

.section-header .section-subtitle {
    color: var(--text-gray);
    margin-top: 0.5rem;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
}

/* Pagination - Advanced Style */
.pagination {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.page-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    background: var(--bg-white);
    border: 1px solid var(--surface-border);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.page-link:hover,
.page-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

/* Mobile Drawer Menu & Overlays */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-search-bar {
    display: none;
    padding: 1rem 0;
    border-top: 1px solid var(--surface-border);
}

.mobile-search-bar.active {
    display: block;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--surface-border);
    margin-bottom: 1rem;
}

.mobile-nav-header span {
    font-weight: 800;
    font-family: 'Barlow', sans-serif;
    font-size: 1.25rem;
    color: var(--text-dark);
}

#closeMobileMenu {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-gray);
    cursor: pointer;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .header-container {
        gap: 1.5rem;
    }

    .nav-menu {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {

    /* Avoid 100vw horizontal scrollbar (scrollbar gutter); contain overflow */
    html {
        overflow-x: hidden;
    }

    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .container {
        padding: 0 1rem;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Header Mobile Refinement */
    .header-main {
        padding: 0.75rem 0;
    }

    .header-container {
        gap: 1rem;
        justify-content: space-between;
    }

    .site-logo img {
        height: 32px;
    }

    #mobileMenuToggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 0.5rem;
        order: -1;
        cursor: pointer;
        background: transparent;
        border: none;
        color: var(--text-main);
        font-size: 1.5rem;
    }

    .search-bar.hide-mobile,
    .header-links.hide-mobile,
    .header-action-text.hide-mobile,
    .ha-btn-label.hide-mobile {
        display: none !important;
    }

    .header-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .ha-btn {
        padding: 6px 8px;
        border-radius: 8px;
    }

    .ha-btn-icon {
        width: 28px;
        height: 28px;
        border-radius: 7px;
        font-size: 0.8rem;
    }

    /* Allow fixed drawer to paint outside; avoid clipping */
    .header-nav-wrap {
        overflow: visible;
    }

    /* Mobile drawer: slides in; closed = off-screen + no pointer events */
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(300px, 88vw);
        max-width: 100%;
        background: var(--bg-white);
        z-index: 100000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        border: none;
        padding-top: 0;
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.12);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-top: env(safe-area-inset-top, 0);
        padding-bottom: env(safe-area-inset-bottom, 0);
        visibility: hidden;
        pointer-events: none;
    }

    .main-nav.active {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
    }

    .nav-menu li {
        flex: 0 0 auto !important;
        display: block;
        border-bottom: 1px solid var(--bg-gray);
    }

    .nav-menu li a {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .main-nav .container {
        display: flex;
        flex-direction: column;
        min-height: 100%;
    }

    .main-nav .nav-menu {
        flex: 1 1 auto;
    }

    .mobile-nav-header {
        padding-left: max(0px, env(safe-area-inset-left, 0));
    }

    .nav-menu li a::after {
        display: none;
    }

    /* Grid Stacking */
    .category-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .category-card {
        height: 180px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .product-info {
        padding: 1rem;
    }

    .product-title {
        font-size: 0.9375rem;
    }

    .product-price {
        font-size: 1.125rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-info {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Hero Slider */
    .hero-slider.modern-slider {
        aspect-ratio: 1 / 1;
        min-height: 400px;
    }
}

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

    .slider-title {
        font-size: 1.875rem;
    }
}

/* Skeleton & Utils */
@keyframes skeleton-loading {
    0% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0 50%;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

/* Mobile: iOS text sizing + fluid images (avoid global * max-width — breaks grids/modals) */
@media (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100%;
    }

    .page-content img,
    .about-page-article img,
    .about-page-prose img,
    .gallery-page-article img,
    .terms-page-article img,
    .testimonials-page-prose img,
    .after-sales-content img {
        max-width: 100%;
        height: auto;
    }

    .contact-page-layout {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .contact-page-form-card {
        padding: 1.5rem !important;
    }

    .contact-form-row {
        flex-direction: column !important;
    }

    .nav-menu > li > a.megamenu-trigger,
    .nav-menu > li > a:not(.megamenu-trigger) {
        min-height: 44px;
    }

    .header-top-inner {
        flex-wrap: wrap;
        row-gap: 0.35rem;
    }

    .header-contact {
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .header-contact .divider {
        display: none;
    }

    .header-contact a {
        white-space: nowrap;
    }

    /* Under sticky header (2500), above page — dims content behind drawer */
    .mobile-overlay {
        z-index: 2490;
    }
}

/* Side Drawer Quick Cart */
.side-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 420px;
    max-width: 90vw;
    background: white;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-drawer.active {
    transform: translateX(0);
}

.drawer-header {
    padding: 2rem;
    border-bottom: 1px solid var(--surface-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-light);
}

.drawer-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    font-family: 'Barlow', sans-serif;
}

.drawer-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-gray);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: var(--transition);
}

.drawer-close:hover {
    background: var(--bg-gray);
    color: var(--text-dark);
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.drawer-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.drawer-item:hover {
    background: #fff;
    border-color: #e2e8f0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.drawer-item img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 10px;
    background: #f8fafc;
    flex-shrink: 0;
}

.drawer-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.drawer-item-title {
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9375rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition);
}

.drawer-item-title:hover {
    color: var(--primary-color);
}

.drawer-item-variant {
    font-size: 0.8125rem;
    color: var(--text-gray);
}

.drawer-item-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
    font-family: 'Barlow', sans-serif;
}

.drawer-footer {
    padding: 2rem;
    border-top: 1px solid var(--surface-border);
    background: var(--bg-light);
}

@media (max-width: 768px) {
    .side-drawer {
        width: 100vw;
        max-width: 100vw;
    }
}

/* Modal System - Elite Premium UI */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--bg-white);
    width: 100%;
    max-width: 480px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 1.75rem 2rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.modal-close {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--danger-color);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
    font-size: 1.0625rem;
    color: var(--text-main);
    line-height: 1.6;
}

.modal-footer {
    padding: 1.5rem 2rem;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Modal Variants */
.modal-warning .modal-header h3 {
    color: var(--warning-color);
}

.modal-error .modal-header h3 {
    color: var(--danger-color);
}

.modal-success .modal-header h3 {
    color: var(--success-color);
}

@media (max-width: 576px) {
    .modal-container {
        margin-top: auto;
        border-radius: 24px 24px 0 0;
        transform: translateY(100%);
    }

    .modal-overlay.active .modal-container {
        transform: translateY(0);
    }
}

/* Video modal (product detail — YouTube / Vimeo)
   Above .header-nav-wrap (2500), megamenu (9999), side-drawer (9999), mobile .main-nav (100000) */
.video-modal-overlay {
    z-index: 110000;
}

.modal-container.modal-video {
    max-width: min(960px, 96vw);
    width: 100%;
}

.modal-video .modal-body {
    padding: 0;
    background: #0f172a;
}

.video-modal-embed-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-modal-embed-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* =====================================================
   HOMEPAGE MODERNIZATION (Elite Edition) 
   ===================================================== */

/* 1. Global Utilities */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.shadow-premium {
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05);
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* 2. Quick Categories (Service Cards) */
.quick-categories {
    padding: 2rem 0 4rem;
    background: var(--bg-light);
}

.quick-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.quick-cat-item {
    display: flex;
    align-items: center;
    padding: 1.75rem;
    background: white;
    border-radius: 24px;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
}

.quick-cat-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.quick-cat-icon {
    width: 65px;
    height: 65px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-right: 1.25rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.quick-cat-item:hover .quick-cat-icon {
    transform: scale(1.1) rotate(5deg);
}

.quick-cat-info h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 0.2rem 0;
    line-height: 1.2;
}

.quick-cat-info span {
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* 3. Modernized Product Card */
.product-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.1);
    border-color: var(--primary-light);
}

.product-image {
    background: #ffffff;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1/1;
    display: block;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    background-color: #ffffff;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge-discount {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--danger-color);
    color: white;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 800;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

.product-info {
    padding: 1.5rem !important;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.product-category-badge {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.product-actions-mini button {
    background: none;
    border: none;
    padding: 0;
    color: #cbd5e1;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}

.product-actions-mini button:hover {
    color: var(--danger-color);
    transform: scale(1.2);
}

.product-title {
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    font-size: 1rem;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.product-card:hover .product-title {
    color: var(--primary-color);
}

.product-price {
    margin-top: auto;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sale-price {
    color: var(--danger-color);
    font-size: 1.3rem;
    font-weight: 900;
    font-family: 'Barlow', sans-serif;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.regular-price {
    color: var(--text-dark);
    font-size: 1.3rem;
    font-weight: 900;
    font-family: 'Barlow', sans-serif;
}

.product-quick-add button {
    transition: var(--transition);
    border: none;
    overflow: hidden;
    position: relative;
    width: 100%;
    border-radius: 14px;
    height: 50px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(237, 30, 38, 0.2);
}

.product-quick-add button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.product-card:hover .product-quick-add button::after {
    left: 100%;
}

.product-quick-add button:hover {
    box-shadow: 0 8px 20px rgba(237, 30, 38, 0.35);
    transform: scale(1.02);
}

/* 4. Banner Grid Enhancements */
.banners-section {
    padding: 6rem 0;
    background: #fff;
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.banner-item {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 16/9;
    box-shadow: var(--shadow-md);
    background: #f1f5f9;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.2, 1, 0.3, 1);
}

.banner-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.banner-item:hover img {
    transform: scale(1.1);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), transparent 70%);
    display: flex;
    align-items: flex-end;
    padding: 2.5rem;
    text-decoration: none;
    color: white;
    transition: all 0.5s ease;
}

.banner-item:hover .banner-overlay {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9), transparent 80%);
}

.banner-content h3 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
    color: white;
    transform: translateY(10px);
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.banner-item:hover .banner-content h3 {
    transform: translateY(0);
}

.banner-content .btn-white {
    pointer-events: none;
    font-weight: 800;
    border-radius: 30px;
    padding: 10px 25px;
    background: white;
    color: var(--text-dark);
}

/* 5. Section Titles & Layouts */
.products-section,
.categories-section,
.quick-categories {
    padding: 6rem 0;
    position: relative;
}

.products-section.alt-bg,
.categories-section.alt-bg,
.quick-categories.alt-bg {
    background-color: var(--bg-gray);
    border-top: 1px solid var(--surface-border);
    border-bottom: 1px solid var(--surface-border);
    position: relative;
    z-index: 1;
}

.bg-white {
    background-color: var(--bg-white);
}

/* Section Label - Global */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--secondary-color);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-label i {
    font-size: 0.3rem;
}

.section-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.section-title-wrapper > div {
    position: relative;
}

.section-title {
    font-family: 'Barlow Condensed', 'Barlow', sans-serif;
    font-size: clamp(1.85rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.1;
    margin: 0;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.section-subtitle {
    color: var(--text-gray);
    font-weight: 400;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    max-width: 550px;
    line-height: 1.5;
}

/* ===== About Section ===== */
.about-section {
    padding: 5.5rem 0;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.about-bg-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, #f4f7fb 100%);
    z-index: 0;
}

.about-section .container {
    position: relative;
    z-index: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: start;
}

.about-title {
    font-family: 'Barlow Condensed', 'Barlow', sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--primary-color);
    margin: 0 0 0.75rem;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.about-heading {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    font-weight: 500;
    color: var(--text-main);
    margin: 0 0 2rem;
    line-height: 1.5;
    padding-left: 1.25rem;
    border-left: 3px solid var(--secondary-color);
}

.about-text {
    margin-bottom: 2.5rem;
}

.about-text p {
    font-size: 0.925rem;
    line-height: 1.85;
    color: var(--text-main);
    margin: 0 0 1.25rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* About Stats */
.about-stats {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    padding: 1.75rem 0;
    border-top: 1px solid #e8ecf1;
    border-bottom: 1px solid #e8ecf1;
}

.about-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.about-stat-num {
    font-family: 'Barlow', sans-serif;
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    letter-spacing: -0.03em;
}

.about-stat-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

/* About Feature Cards */
.about-features {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.about-feature {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem 0;
    border-bottom: 1px solid #eef1f5;
    transition: all 0.3s ease;
}

.about-feature:first-child {
    padding-top: 0;
}

.about-feature:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.about-feature:hover {
    padding-left: 0.75rem;
}

.about-feature-num {
    flex-shrink: 0;
    font-family: 'Barlow', sans-serif;
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--secondary-color);
    opacity: 0.2;
    line-height: 1;
    min-width: 2.5rem;
    transition: opacity 0.3s ease;
}

.about-feature:hover .about-feature-num {
    opacity: 0.6;
}

.about-feature-body h4 {
    font-family: 'Barlow', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.4rem;
}

.about-feature-body p {
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--text-gray);
    margin: 0;
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-bg-pattern {
        display: none;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 3.5rem 0;
    }

    .about-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .about-stat-num {
        font-size: 1.75rem;
    }
}

.view-all-link {
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    padding-bottom: 0.5rem;
}

.view-all-link:hover {
    gap: 0.8rem;
    color: var(--primary-dark);
}

/* 6. Product Grid Layout */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

/* 7./* Category Grid & Cards */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.category-card {
    height: 300px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    display: block;
    background: var(--bg-gray);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.category-name {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
}

.category-explore {
    font-size: 0.85rem;
    font-weight: 700;
    opacity: 0.9;
    padding-top: 1rem;
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    width: fit-content;
}

.category-explore i {
    margin-left: 8px;
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.category-card:hover .category-explore i {
    transform: translateX(4px);
}

/* 7. Responsive Adjustments */
@media (max-width: 1200px) {
    .section-title {
        font-size: 2.5rem;
    }
}

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

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

    .banner-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-title-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .quick-cat-item {
        padding: 1.25rem;
    }
}

@media (max-width: 640px) {
    .quick-cat-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .banner-grid {
        grid-template-columns: 1fr;
    }

    .product-info {
        padding: 1.25rem !important;
    }

    .product-title {
        font-size: 0.95rem !important;
    }
}

/* Featured Products Slider - Minimalist Premium */
/* ── Featured Innovations Section ── */
.featured-products-section {
    position: relative;
    padding: 6rem 0 5rem;
    background: #fff;
    overflow: hidden;
}

.fp-bg-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1260ad;
    /* clip-path: polygon(0 0, 65% 0, 26% 100%, 0 100%); */
    opacity: 0.09;
    pointer-events: none;
}

.fp-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 3rem;
    gap: 2rem;
}

.fp-header-text {
    max-width: 600px;
}

.fp-header-text .section-label {
    margin-bottom: 0.5rem;
}

.fp-header-text .section-title {
    margin-bottom: 0.5rem;
}

.fp-header-text .section-subtitle {
    margin: 0;
}

.fp-nav {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.fp-prev, .fp-next {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.fp-prev:hover, .fp-next:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 39, 102, 0.25);
}

.fp-swiper-wrap {
    position: relative;
}

.fp-card {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8ecf2;
    min-height: 420px;
    transition: box-shadow 0.4s ease;
}

.fp-card:hover {
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.1);
}

.fp-content {
    flex: 1;
    padding: 3rem 3rem 3rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #dcdcdc 100%);
}

.fp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--secondary-color);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    letter-spacing: 0.14em;
    background: rgba(237, 30, 38, 0.06);
    padding: 6px 14px;
    border-radius: 6px;
    width: fit-content;
}

.fp-badge i {
    font-size: 0.7rem;
}

.fp-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-family: 'Barlow Condensed', 'Barlow', sans-serif;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.fp-desc {
    color: #64748b;
    line-height: 1.75;
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 480px;
}

.fp-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.fp-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 39, 102, 0.2);
}

.fp-btn-primary:hover {
    background: #001a4d;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 39, 102, 0.3);
    color: #fff;
}

.fp-btn-primary i {
    transition: transform 0.3s;
}

.fp-btn-primary:hover i {
    transform: translateX(4px);
}

.fp-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: transparent;
    color: var(--primary-color);
    font-weight: 700;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.fp-btn-outline:hover {
    border-color: var(--primary-color);
    background: rgba(0, 39, 102, 0.04);
    color: var(--primary-color);
}

.fp-image {
    flex: 1;
    position: relative;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    overflow: hidden;
}

.fp-image::before {
    display: none;
}

.fp-image-inner {
    position: relative;
    z-index: 1;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.fp-image img {
    max-width: 100%;
    max-height: 380px;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.fp-card:hover .fp-image img {
    transform: scale(1.04);
}

.fp-progress {
    margin-top: 2rem;
    height: 3px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.fp-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

/* ── Featured Responsive ── */
@media (max-width: 992px) {
    .featured-products-section {
        padding: 4rem 0;
    }
    .fp-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 2rem;
    }
    .fp-card {
        flex-direction: column;
        min-height: auto;
    }
    .fp-content {
        order: 2;
        padding: 2rem;
        text-align: center;
    }
    .fp-image {
        order: 1;
        min-height: 260px;
    }
    .fp-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .fp-actions {
        justify-content: center;
    }
    .fp-badge {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 576px) {
    .fp-nav {
        display: none;
    }
    .featured-products-section {
        padding: 3rem 0;
    }
    .fp-content {
        padding: 1.5rem;
    }
    .fp-image {
        min-height: 200px;
    }
    .fp-image img {
        max-height: 240px;
    }
    .fp-actions {
        flex-direction: column;
        width: 100%;
    }
    .fp-btn-primary, .fp-btn-outline {
        width: 100%;
        justify-content: center;
    }
}

/* ── Quote Wizard Modal ── */
.quote-wizard-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    backdrop-filter: blur(4px);
}
.quote-wizard-overlay.active { display: block; }

.quote-wizard-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 20px;
    width: 90%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}
.quote-wizard-modal.active { display: block; }

.qw-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e8ecf2;
    background: linear-gradient(135deg, #002766, #001a4d);
    border-radius: 20px 20px 0 0;
}

.qw-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qw-robot-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.qw-header h3 {
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    margin: 0;
}

.qw-header p {
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    margin: 0;
}

.qw-close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}
.qw-close:hover { background: rgba(255,255,255,0.25); }

.qw-body { padding: 2rem; }

.qw-steps {
    display: flex;
    gap: 8px;
    margin-bottom: 2rem;
}

.qw-step {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f1f5f9;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.03em;
    transition: all 0.3s;
}

.qw-step span {
    width: 24px;
    height: 24px;
    background: #cbd5e1;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    flex-shrink: 0;
}

.qw-step.active {
    background: #eef2ff;
    color: var(--primary-color);
}

.qw-step.active span {
    background: var(--primary-color);
}

.qw-panel { display: none; }
.qw-panel.active { display: block; }

.qw-panel h4 {
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.qw-field {
    margin-bottom: 1rem;
}

.qw-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 6px;
    letter-spacing: 0.03em;
}

.qw-input {
    width: 100%;
    padding: 11px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    color: #0f172a;
    letter-spacing: 0.02em;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.qw-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 39, 102, 0.08);
}

.qw-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.qw-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.qw-btn-next, .qw-btn-submit {
    padding: 12px 24px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}
.qw-btn-next:hover, .qw-btn-submit:hover {
    background: #001a4d;
    transform: translateY(-1px);
}

.qw-btn-back {
    padding: 12px 20px;
    background: #f1f5f9;
    color: #475569;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}
.qw-btn-back:hover { background: #e2e8f0; }

.qw-btn-submit {
    background: var(--secondary-color);
}
.qw-btn-submit:hover {
    background: #c91920;
}

/* Quote Wizard Trigger in Header */
.ha-btn-wizard {
    position: relative;
}

@media (max-width: 576px) {
    .quote-wizard-modal {
        width: 95%;
        max-height: 95vh;
    }
    .qw-body { padding: 1.25rem; }
    .qw-field-row { grid-template-columns: 1fr; }
    .qw-steps { flex-direction: column; }
}

/* ================================================================
   QUOTE PAGE
   ================================================================ */
.quote-page-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #001a4d 100%);
    padding: 3.5rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.quote-page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(237,30,38,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.quote-page-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    border-radius: 50%;
}

.quote-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.quote-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.85);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 1rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
}

.quote-hero-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
}

.quote-hero-subtitle {
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.quote-page-body {
    padding: 3rem 0 5rem;
    background: #f8fafc;
    min-height: 50vh;
}

.quote-alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quote-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.quote-empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e8ecf2;
}

.quote-empty-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: #94a3b8;
}

.quote-empty-state h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.quote-empty-state p {
    color: #64748b;
    max-width: 420px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.quote-browse-btn {
    padding: 14px 36px !important;
    font-weight: 800 !important;
    font-size: 0.9rem !important;
    gap: 8px;
}

.quote-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2.5rem;
    align-items: start;
}

.quote-items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.quote-items-header h3 {
    font-family: 'Barlow', sans-serif;
    font-weight: 800;
    color: #0f172a;
    font-size: 1.1rem;
}

.quote-items-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 800;
    margin-right: 6px;
}

.quote-clear-btn {
    background: none;
    border: none;
    color: #ef4444;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

.quote-clear-btn:hover {
    background: #fef2f2;
}

.quote-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quote-item-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e8ecf2;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quote-item-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 24px rgba(0,39,102,0.06);
}

.quote-item-image {
    width: 90px;
    height: 90px;
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.quote-item-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 1.5rem;
}

.quote-item-details {
    flex: 1;
    min-width: 0;
}

.quote-item-name {
    font-weight: 800;
    color: #0f172a;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
    font-size: 0.95rem;
    line-height: 1.35;
    transition: color 0.2s;
}

.quote-item-name:hover {
    color: var(--primary-color);
}

.quote-item-variant {
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.quote-item-qty {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 8px;
}

.quote-item-qty label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.04em;
}

.quote-qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
}

.quote-qty-control .qty-btn {
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 700;
    color: #64748b;
    font-size: 1rem;
    transition: all 0.2s;
}

.quote-qty-control .qty-btn:hover {
    background: #e2e8f0;
    color: var(--primary-color);
}

.quote-qty-control input {
    width: 44px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 700;
    font-size: 0.9rem;
    color: #0f172a;
}

.quote-item-remove {
    background: none;
    border: none;
    color: #cbd5e1;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.quote-item-remove:hover {
    background: #fef2f2;
    color: #ef4444;
}

.quote-continue {
    margin-top: 1.5rem;
}

.quote-continue a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.quote-continue a:hover {
    gap: 12px;
}

.quote-form-section {
    position: sticky;
    top: 2rem;
}

.quote-form-card {
    background: #fff;
    border: 1px solid #e8ecf2;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}

.quote-form-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 1.5rem 1.75rem;
    background: linear-gradient(135deg, var(--primary-color), #001a4d);
    color: #fff;
}

.quote-form-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.quote-form-header h3 {
    font-family: 'Barlow', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.quote-form-header p {
    font-size: 0.78rem;
    opacity: 0.7;
}

.quote-form-fields {
    padding: 1.5rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.qf-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.qf-group label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.qf-group label i {
    font-size: 0.7rem;
    color: #94a3b8;
}

.qf-group label .required {
    color: #ef4444;
}

.qf-group input,
.qf-group select,
.qf-group textarea {
    width: 100%;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.88rem;
    color: #0f172a;
    transition: all 0.2s;
    outline: none;
}

.qf-group input:focus,
.qf-group select:focus,
.qf-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0,39,102,0.08);
    background: #fff;
}

.qf-group textarea {
    resize: vertical;
    min-height: 70px;
}

.qf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.quote-submit-btn {
    width: 100%;
    height: 52px;
    background: var(--accent-color, #ed1e26);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.92rem;
    font-family: 'Barlow', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.03em;
    transition: all 0.3s;
    margin-top: 4px;
}

.quote-submit-btn:hover {
    background: #c41920;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(237,30,38,0.25);
}

.quote-form-trust {
    padding: 1rem 1.75rem;
    font-size: 0.72rem;
    color: #94a3b8;
    text-align: center;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1.5;
}

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

    .quote-form-section {
        position: static;
    }
}

@media (max-width: 768px) {
    .quote-page-hero {
        padding: 2.5rem 0 2rem;
    }

    .quote-page-body {
        padding: 2rem 0 3rem;
    }

    .quote-item-card {
        padding: 1rem;
        gap: 1rem;
    }

    .quote-item-image {
        width: 70px;
        height: 70px;
    }

    .quote-item-name {
        font-size: 0.88rem;
    }

    .qf-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .quote-item-card {
        flex-wrap: wrap;
    }

    .quote-item-image {
        width: 60px;
        height: 60px;
    }

    .quote-items-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ================================================================
   CATEGORY DETAIL PAGE
   ================================================================ */
.cat-hero {
    position: relative;
    padding: 3.5rem 0 3rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #001a4d 60%, #000d33 100%);
    overflow: hidden;
}

.cat-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 20%, rgba(237,30,38,0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(255,255,255,0.03) 0%, transparent 50%);
    pointer-events: none;
}

.cat-hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.cat-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.25rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.cat-breadcrumb a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.cat-breadcrumb a:hover {
    color: rgba(255,255,255,0.85);
}

.cat-breadcrumb span {
    color: rgba(255,255,255,0.25);
    font-size: 0.6rem;
}

.cat-breadcrumb .current {
    color: rgba(255,255,255,0.85);
    font-size: 0.78rem;
}

.cat-hero-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.cat-hero-desc {
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    line-height: 1.65;
    max-width: 550px;
    margin-bottom: 1.5rem;
}

.cat-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.cat-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50px;
    backdrop-filter: blur(4px);
    font-size: 0.78rem;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.cat-stat i {
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
}

.cat-stat strong {
    color: #fff;
}

.cat-body {
    padding: 2.5rem 0 5rem;
    background: #f8fafc;
    min-height: 50vh;
}

.cat-search-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #334155;
}

.cat-search-info a {
    color: #ef4444;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cat-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    background: #fff;
    border: 1px solid #e8ecf2;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.cat-result-count {
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.02em;
}

.cat-sort-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cat-sort-form label {
    font-size: 0.8rem;
    color: #94a3b8;
}

.cat-sort-form select {
    padding: 8px 32px 8px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    font-weight: 700;
    font-size: 0.82rem;
    color: #334155;
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2364748b%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 8px;
    outline: none;
    transition: all 0.2s;
}

.cat-sort-form select:focus {
    border-color: var(--primary-color);
}

.cat-empty {
    text-align: center;
    padding: 5rem 2rem;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e8ecf2;
}

.cat-empty-icon {
    width: 90px;
    height: 90px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #94a3b8;
}

.cat-empty h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    color: #0f172a;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.cat-empty p {
    color: #64748b;
    max-width: 420px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.cat-empty-btn {
    padding: 14px 32px !important;
    font-weight: 800 !important;
    gap: 8px;
}

/* Product Grid */
.cat-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Product Card */
.cat-pcard {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e8ecf2;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.cat-pcard:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px -15px rgba(0,39,102,0.12);
    border-color: rgba(0,39,102,0.15);
}

.cat-pcard-image {
    position: relative;
    aspect-ratio: 1/1;
    background: #fff;
    overflow: hidden;
    display: block;
}

.cat-pcard-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.cat-pcard:hover .cat-pcard-image img {
    transform: scale(1.06);
}

.cat-pcard-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 2.5rem;
    background: #f8fafc;
}

.cat-pcard-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,39,102,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.cat-pcard:hover .cat-pcard-overlay {
    opacity: 1;
}

.cat-pcard-overlay span {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.15);
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
}

.cat-pcard-body {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cat-pcard-cat {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
    opacity: 0.7;
}

.cat-pcard-title {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    color: #0f172a;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: auto;
    transition: color 0.2s;
    letter-spacing: 0.01em;
}

.cat-pcard-title:hover {
    color: var(--primary-color);
}

.cat-pcard-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.cat-pcard-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s;
}

.cat-pcard-btn:hover {
    background: #001a4d;
    box-shadow: 0 4px 12px rgba(0,39,102,0.2);
}

.cat-pcard-quote {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    color: #64748b;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.25s;
    flex-shrink: 0;
}

.cat-pcard-quote:hover {
    border-color: var(--accent-color, #ed1e26);
    color: var(--accent-color, #ed1e26);
    background: #fff5f5;
}

/* Pagination */
.cat-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 3.5rem;
}

.cat-page-numbers {
    display: flex;
    gap: 6px;
}

.cat-page-num {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    color: #475569;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.cat-page-num:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.cat-page-num.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,39,102,0.2);
}

.cat-page-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    color: #475569;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.82rem;
    transition: all 0.2s;
}

.cat-page-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 1200px) {
    .cat-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

    .cat-hero {
        padding: 2.5rem 0 2rem;
    }

    .cat-hero-stats {
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .cat-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }

    .cat-toolbar-right {
        width: 100%;
    }

    .cat-sort-form {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0.75rem;
    }

    .cat-sort-form select {
        width: 100%;
    }

    .cat-hero-title {
        font-size: 1.5rem;
    }

    .cat-hero-desc {
        font-size: 0.9rem;
    }

    .cat-stat {
        padding: 6px 12px;
        font-size: 0.72rem;
    }

    .cat-pcard-body {
        padding: 1rem 1.25rem 1.25rem;
    }

    .cat-pcard-title {
        font-size: 0.85rem;
    }

    .cat-pagination {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .cat-page-link {
        padding: 8px 14px;
        font-size: 0.78rem;
    }
}

@media (max-width: 480px) {
    .cat-product-grid {
        grid-template-columns: 1fr;
    }

    .cat-breadcrumb {
        font-size: 0.7rem;
        gap: 6px;
    }

    .cat-hero-stats {
        flex-direction: column;
    }
}

/* ========== About Us page (CMS) ========== */
.about-page-hero {
    position: relative;
    padding: 2.25rem 0 3.25rem;
    overflow: hidden;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.about-page-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #00183f 0%, #002766 55%, #0a3262 100%);
    z-index: 0;
}

.about-page-hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.about-page-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg width='48' height='48' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.about-page-hero-inner {
    position: relative;
    z-index: 1;
}

.about-page-breadcrumb-wrap {
    display: inline-flex;
    justify-content: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    margin-bottom: 1.3rem;
}

.about-page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    margin: 0;
    letter-spacing: 0.02em;
}

.about-page-breadcrumb a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 600;
}

.about-page-breadcrumb a:hover {
    text-decoration: underline;
}

.about-page-bc-sep {
    font-size: 0.62rem;
    opacity: 0.55;
}

.about-page-bc-current {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
}

 .about-page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92) !important;
    margin-bottom: 0.85rem;
}

.about-page-title {
    font-size: clamp(2rem, 4.6vw, 2.9rem);
    font-weight: 800;
    line-height: 1.12;
    margin: 0 0 0.95rem;
    letter-spacing: -0.015em;
    color: #ffffff !important;
    text-align: left;
}

.about-page-lead {
    font-size: 1.02rem;
    line-height: 1.72;
    color: rgba(255, 255, 255, 0.92) !important;
    max-width: 54rem;
    margin: 0;
    text-align: left;
}

.about-page-stats {
    margin-top: -2rem;
    position: relative;
    z-index: 2;
    padding-bottom: 3rem;
}

.about-page-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.about-page-stat {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.35rem 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.about-page-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.about-page-stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.1;
}

.about-page-stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-top: 0.35rem;
    line-height: 1.4;
}

.about-page-main {
    padding: 2rem 0 4rem;
    background: var(--bg-light);
}

.about-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 2.5rem;
    align-items: start;
}

.about-page-article {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem 2.25rem;
    box-shadow: var(--shadow-sm);
}

.about-page-prose {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--text-dark);
}

.about-page-prose p {
    margin: 0 0 1.35rem;
}

.about-page-prose p:last-child {
    margin-bottom: 0;
}

.about-page-prose h2,
.about-page-prose h3 {
    margin: 2rem 0 1rem;
    color: var(--text-dark);
    font-weight: 800;
}

.about-page-prose h2:first-child,
.about-page-prose h3:first-child {
    margin-top: 0;
}

.about-page-prose ul,
.about-page-prose ol {
    margin: 0 0 1.25rem;
    padding-left: 1.35rem;
}

.about-page-prose li {
    margin-bottom: 0.5rem;
}

.about-page-aside {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: sticky;
    top: 1.5rem;
}

.about-page-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem 1.35rem;
    box-shadow: var(--shadow-sm);
}

.about-page-card--accent {
    border-color: var(--primary-light);
    background: linear-gradient(145deg, #f8fafc 0%, #eef4fc 100%);
}

.about-page-card-title {
    font-size: 0.9375rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary-color);
    margin: 0 0 1rem;
}

.about-page-card-text {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text-gray);
    margin: 0;
}

.about-page-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.about-page-list li {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.about-page-list li:last-child {
    margin-bottom: 0;
}

.about-page-list i {
    color: var(--primary-light);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.about-page-cta-btn {
    margin-top: 1.25rem;
    width: 100%;
    justify-content: center;
}

.about-page-bottom-cta {
    padding: 3.5rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
}

.about-page-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.about-page-bottom-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    color: #fff;
}

.about-page-bottom-text {
    margin: 0;
    opacity: 0.9;
    max-width: 36rem;
    line-height: 1.6;
}

.about-page-bottom-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.about-page-bottom-cta .btn-outline-primary {
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
}

.about-page-bottom-cta .btn-outline-primary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
}

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

    .about-page-layout {
        grid-template-columns: 1fr;
    }

    .about-page-aside {
        position: static;
    }
}

@media (max-width: 576px) {
    .about-page-hero {
        padding: 1.5rem 0 2.5rem;
    }

    .about-page-breadcrumb-wrap {
        max-width: 100%;
        border-radius: 14px;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .about-page-breadcrumb {
        font-size: 0.74rem;
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    .about-page-stats {
        margin-top: -1.25rem;
    }

    .about-page-stats-grid {
        grid-template-columns: 1fr;
    }

    .about-page-article {
        padding: 1.5rem 1.25rem;
    }

    .about-page-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Testimonials page */
.testimonials-page-main {
    padding: 2.5rem 0 4rem;
    background: var(--bg-light);
}

.testimonials-page-prose .testimonial-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.testimonials-page-prose .testimonial-entry {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.2rem 1.1rem;
    box-shadow: var(--shadow-sm);
}

.testimonials-page-prose .testimonial-quote {
    margin: 0 0 0.9rem;
    color: var(--text-dark);
    line-height: 1.72;
    font-size: 0.96rem;
}

.testimonials-page-prose .testimonial-author {
    margin: 0;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.88rem;
}

@media (max-width: 992px) {
    .testimonials-page-prose .testimonial-list {
        grid-template-columns: 1fr;
    }
}


/* After Sales page */
.after-sales-main {
    padding: 2.5rem 0 4rem;
    background: var(--bg-light);
}

.after-sales-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 1.5rem;
    align-items: start;
}

.after-sales-content {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
}

.after-sales-content p {
    margin-bottom: 1rem;
    line-height: 1.75;
}

.after-sales-content ul {
    margin: 1rem 0 0;
    padding-left: 1.25rem;
}

.after-sales-content li {
    margin-bottom: 0.55rem;
}

.after-sales-aside {
    position: sticky;
    top: 1.2rem;
}

.after-sales-image-wrap {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.after-sales-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

@media (max-width: 992px) {
    .after-sales-grid {
        grid-template-columns: 1fr;
    }

    .after-sales-aside {
        position: static;
    }
}


/* Terms page */
.terms-page-main {
    padding: 2.5rem 0 4rem;
    background: var(--bg-light);
}

.terms-page-article {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
}

.terms-page-article p,
.terms-page-article li {
    line-height: 1.75;
    color: var(--text-dark);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .terms-page-article {
        padding: 1.3rem;
    }
}


/* Mega menu width tuning */
@media (max-width: 1200px) {
    .main-nav .megamenu-inner {
        width: min(1137px, calc(100vw - 1.5rem));
        grid-template-columns: 1fr 260px;
    }
}

@media (max-width: 992px) {
    .main-nav .megamenu-inner {
        width: min(1137px, calc(100vw - 1rem));
        grid-template-columns: 1fr 240px;
    }
}

/* Gallery page */
.gallery-page-main {
    padding: 2.5rem 0 4rem;
    background: var(--bg-light);
}

.gallery-page-article {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
}

.gallery-items {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.gallery-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.gallery-item:hover {
    transform: translateY(-3px);
    border-color: #cbd5e1;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.gallery-item-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #f1f5f9;
}

.gallery-item-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(120deg, #e2e8f0 0%, #f8fafc 100%);
    color: #94a3b8;
    font-size: 1.5rem;
}

.gallery-item-media a {
    display: block;
    width: 100%;
    height: 100%;
    outline: none;
}

.gallery-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.gallery-item:hover .gallery-item-media img {
    transform: scale(1.03);
}

.gallery-item-title {
    margin: 0;
    padding: 0.75rem 0.9rem 0.95rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #0f172a;
    font-weight: 600;
}

@media (max-width: 1100px) {
    .gallery-items {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .gallery-page-article {
        padding: 1rem;
    }

    .gallery-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .gallery-items {
        grid-template-columns: 1fr;
    }
}

/* Product detail: technical specs (Imperial / Metric) + document links */
.product-detail-extras {
    padding: 0;
}

.product-tech-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.product-tech-toggle-btn {
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition, 0.2s ease);
    font-family: 'Barlow', sans-serif;
}

.product-tech-toggle-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.product-tech-toggle-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.product-tech-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.25rem 1rem;
    align-items: start;
}

.product-tech-cell {
    text-align: center;
}

.product-tech-icon {
    font-size: 2rem;
    color: #64748b;
    margin-bottom: 0.85rem;
    line-height: 1;
}

.product-tech-value {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #0f172a;
    font-weight: 600;
}

@media (max-width: 1100px) {
    .product-tech-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

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

    .product-tech-toggle-btn {
        font-size: 0.72rem;
        padding: 0.5rem 0.85rem;
    }
}

.product-doc-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem 2rem;
    padding: 1.5rem 0;
}

.product-doc-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #002766;
    max-width: 120px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.product-doc-item:hover {
    color: var(--secondary-color, #e32831);
    transform: translateY(-2px);
}

.product-doc-icon {
    font-size: 2.75rem;
    color: #002766;
    margin-bottom: 0.65rem;
    line-height: 1;
}

.product-doc-label {
    font-size: 0.88rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    font-family: 'Barlow', sans-serif;
    letter-spacing: 0.02em;
}

/* Profile match robot (homepage + API) */
.profile-match-section {
    padding: 3rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.profile-match-card {
    background: #fff;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}
.profile-match-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0.5rem 0;
    color: var(--text-dark, #0f172a);
}
.profile-match-desc {
    color: var(--text-gray, #64748b);
    margin: 0 0 1.5rem;
    max-width: 36rem;
}
.profile-match-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
.profile-match-fields label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-gray);
    margin-bottom: 0.35rem;
}
.profile-match-fields input,
.profile-match-fields select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
}
.profile-match-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
}
.profile-match-status {
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}
.profile-match-status--ok { color: #059669; }
.profile-match-status--error { color: #dc2626; }
.profile-match-status--info { color: #2563eb; }
.profile-match-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}
.profile-match-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.profile-match-item:hover {
    border-color: var(--primary-color, #1e40af);
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.12);
}
.profile-match-item img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.profile-match-item strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}
.profile-match-item span,
.profile-match-item small {
    display: block;
    font-size: 0.8rem;
    color: var(--text-gray);
}
.profile-match-foot {
    margin-top: 1rem;
    font-size: 0.875rem;
}
.profile-match-foot a {
    color: var(--primary-color);
    font-weight: 600;
}
.profile-match-empty {
    color: var(--text-gray);
    margin: 0;
}

