        :root {
            --primary: #0052cc;
            --primary-dark: #003d99;
            --primary-light: #0066ff;
            --color-white: #ffffff;
            --bg-main: #f8f5ee;
            --text-primary: #0d1526;
            --gray: #64748b;
            --border: #d0d5dd;
            --card-bg: #ffffff;
            --success: #22c55e;
            --hero-bg: url('images/background.jpg');
            --page2-bg: url('images/background2.jpg');
            --header-height: 70px;
            --safe-top: env(safe-area-inset-top, 0px);
            --safe-bottom: env(safe-area-inset-bottom, 0px);
        }

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

        html {
            -webkit-text-size-adjust: 100%;
            text-size-adjust: 100%;
        }

        body {
            font-family: 'Noto Sans SC', 'Roboto', sans-serif;
            background: var(--bg-main);
            color: var(--text-primary);
            line-height: 1.6;
            padding-bottom: var(--safe-bottom);
            -webkit-tap-highlight-color: transparent;
            overflow-x: hidden;
        }

        img {
            max-width: 100%;
            height: auto;
        }

        /* Header */
        .header {
            background: rgba(248, 245, 238, 0.95);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            border-bottom: 1px solid var(--border);
            padding-top: var(--safe-top);
        }

        .header-inner {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: var(--header-height);
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
            text-decoration: none;
        }

        .logo-icon {
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .logo-icon svg {
            width: 100%;
            height: 100%;
        }

        .logo-icon img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
        }

        .logo-text {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-primary);
            letter-spacing: 1px;
        }

        .nav {
            display: flex;
            align-items: center;
            gap: 30px;
        }

        .nav a {
            color: var(--gray);
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s;
            font-size: 15px;
        }

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

        .lang-switch {
            display: flex;
            background: var(--color-white);
            border-radius: 6px;
            overflow: hidden;
            border: 1px solid var(--border);
        }

        .lang-switch button {
            padding: 8px 16px;
            border: none;
            background: transparent;
            color: var(--gray);
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s;
            min-height: 44px;
        }

        .lang-switch button.active {
            background: var(--primary);
            color: white;
        }

        .menu-btn {
            display: none;
            align-items: center;
            justify-content: center;
            width: 44px;
            height: 44px;
            border-radius: 10px;
            border: 1px solid var(--border);
            background: var(--color-white);
            color: var(--text-primary);
            cursor: pointer;
        }

        .menu-icon {
            width: 18px;
            height: 12px;
            position: relative;
        }

        .menu-icon span {
            position: absolute;
            left: 0;
            right: 0;
            height: 2px;
            background: currentColor;
            border-radius: 2px;
        }

        .menu-icon span:nth-child(1) { top: 0; }
        .menu-icon span:nth-child(2) { top: 5px; }
        .menu-icon span:nth-child(3) { top: 10px; }

        .mobile-nav-backdrop {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.35);
            z-index: 998;
        }

        .mobile-nav {
            display: none;
            position: fixed;
            top: calc(var(--header-height) + var(--safe-top));
            left: 0;
            right: 0;
            background: rgba(248, 245, 238, 0.98);
            border-bottom: 1px solid var(--border);
            z-index: 999;
            padding: 12px 12px calc(12px + var(--safe-bottom));
        }

        .mobile-nav a {
            display: block;
            padding: 12px 10px;
            border-radius: 10px;
            text-decoration: none;
            color: var(--text-primary);
            font-weight: 600;
        }

        .mobile-nav a:active {
            background: rgba(0, 82, 204, 0.12);
        }

        .mobile-nav.active,
        .mobile-nav-backdrop.active {
            display: block;
        }

        /* Hero Section */
        .hero {
            min-height: 100vh;
            min-height: 100svh;
            display: flex;
            align-items: center;
            position: relative;
            overflow: hidden;
            padding-top: calc(var(--header-height) + var(--safe-top));
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--hero-bg) center / cover no-repeat;
            filter: none;
            transform: scale(1.08);
            opacity: 0.9;
        }

        .hero::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background:
                repeating-linear-gradient(
                    0deg,
                    transparent,
                    transparent 50px,
                    rgba(0, 82, 204, 0.03) 50px,
                    rgba(0, 82, 204, 0.03) 51px
                ),
                repeating-linear-gradient(
                    90deg,
                    transparent,
                    transparent 50px,
                    rgba(0, 82, 204, 0.03) 50px,
                    rgba(0, 82, 204, 0.03) 51px
                );
        }

        .hero-content {
            max-width: 1400px;
            margin: 0 auto;
            padding: 60px 20px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
            position: relative;
            z-index: 1;
        }

        .hero-text {
            background: rgba(248, 245, 238, 0.82);
            border: 1px solid rgba(208, 213, 221, 0.8);
            border-radius: 20px;
            padding: 32px;
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
        }

        .hero-text h1 {
            font-size: 56px;
            font-weight: 900;
            line-height: 1.1;
            margin-bottom: 20px;
        }

        .hero-text h1 .highlight {
            color: var(--primary-light);
        }

        .hero-text .tagline {
            font-size: 20px;
            color: var(--gray);
            margin-bottom: 30px;
        }

        .hero-stats {
            display: flex;
            gap: 40px;
            margin-bottom: 40px;
        }

        .stat {
            text-align: center;
        }

        .stat-value {
            font-size: 48px;
            font-weight: 900;
            color: var(--primary-light);
        }

        .stat-label {
            font-size: 14px;
            color: var(--gray);
        }

        .hero-buttons {
            display: flex;
            gap: 16px;
        }

        .btn {
            padding: 14px 32px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 16px;
            text-decoration: none;
            transition: all 0.3s;
            cursor: pointer;
            border: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            box-shadow: 0 4px 20px rgba(0, 82, 204, 0.4);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 30px rgba(0, 82, 204, 0.5);
        }

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

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

        .hero-visual {
            position: relative;
        }

        .hero-image-container {
            background: var(--primary);
            border-radius: 20px;
            width: min(400px, 100%);
            aspect-ratio: 1 / 1;
            height: auto;
            position: relative;
            overflow: hidden;
            box-shadow: 0 30px 60px rgba(0, 82, 204, 0.3);
            margin: 0 auto;
        }

        .hero-logo-large {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
        }

        .hero-logo-large svg {
            width: 100%;
            height: 100%;
        }

        .hero-logo-large img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .floating-badge {
            position: absolute;
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 16px 20px;
            display: flex;
            align-items: center;
            gap: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        .floating-badge.top-right {
            top: -20px;
            right: -20px;
        }

        .floating-badge.bottom-left {
            bottom: 40px;
            left: -30px;
        }

        .badge-icon {
            width: 50px;
            height: 50px;
            background: var(--primary);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
        }

        .badge-text strong {
            display: block;
            font-size: 18px;
        }

        .badge-text span {
            font-size: 13px;
            color: var(--gray);
        }

        /* Product Categories */
        .categories {
            padding: 100px 20px;
            background: transparent;
            position: relative;
            overflow: hidden;
        }

        .categories::before {
            content: '';
            position: absolute;
            inset: 0;
            background: var(--page2-bg) center / cover no-repeat;
            opacity: 1;
            transform: scale(1.02);
        }

        .categories::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(
                180deg,
                rgba(248, 245, 238, 0.75) 0%,
                rgba(248, 245, 238, 0.9) 35%,
                rgba(248, 245, 238, 0.95) 100%
            );
            opacity: 0;
            pointer-events: none;
        }

        .categories > * {
            position: relative;
            z-index: 1;
        }

        .section-header {
            text-align: center;
            margin-bottom: 60px;
        }

        .section-header h2 {
            font-size: 42px;
            font-weight: 800;
            margin-bottom: 16px;
        }

        .section-header p {
            color: var(--gray);
            font-size: 18px;
            max-width: 600px;
            margin: 0 auto;
        }

        .category-grid {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            /* Fallback for older iOS Safari that may not support nested min() */
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 24px;
        }

        @supports (width: min(10px, 20px)) {
            .category-grid {
                grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
            }
        }

        .category-card {
            background: var(--bg-main);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 30px;
            cursor: pointer;
            transition: all 0.3s;
            position: relative;
            overflow: hidden;
        }

        .category-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--primary);
            transform: scaleX(0);
            transition: transform 0.3s;
        }

        .category-card:hover {
            border-color: var(--primary);
            transform: translateY(-5px);
        }

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

        .category-icon {
            width: 60px;
            height: 60px;
            background: rgba(0, 82, 204, 0.2);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            margin-bottom: 20px;
            overflow: hidden;
        }

        .category-icon img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transform: scale(1.55);
            transform-origin: center;
            display: block;
        }

        .category-card h3 {
            font-size: 22px;
            margin-bottom: 10px;
        }

        .category-card p {
            color: var(--gray);
            font-size: 14px;
            margin-bottom: 20px;
        }

        .category-count {
            display: inline-block;
            background: var(--primary);
            color: white;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 600;
        }

        /* Products Section */
        .products {
            padding: 100px 20px;
            background: #f3f4f6;
        }

        .filter-bar {
            max-width: 1400px;
            margin: 0 auto 40px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 20px;
        }

        .filter-tabs {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .filter-tab {
            padding: 10px 20px;
            background: var(--color-white);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: var(--gray);
            cursor: pointer;
            transition: all 0.3s;
            font-size: 14px;
            min-height: 44px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .filter-tab:hover, .filter-tab.active {
            background: var(--primary);
            border-color: var(--primary);
            color: white;
        }

        .compare-bar {
            display: flex;
            align-items: center;
            gap: 16px;
            background: var(--color-white);
            padding: 10px 20px;
            border-radius: 8px;
            border: 1px solid var(--border);
        }

        .compare-count {
            background: var(--primary);
            color: white;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 700;
        }

        .product-grid {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            /* Fallback for older iOS Safari that may not support nested min() */
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 24px;
        }

        @supports (width: min(10px, 20px)) {
            .product-grid {
                grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
            }
        }

        .product-card {
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 16px;
            overflow: hidden;
            transition: all 0.3s;
            position: relative;
        }

        .product-card:hover {
            border-color: var(--primary);
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        }

        .product-image {
            height: 220px;
            background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        .product-image img {
            max-width: 80%;
            max-height: 80%;
            object-fit: contain;
        }

        .product-badge {
            position: absolute;
            top: 12px;
            left: 12px;
            background: var(--primary);
            color: white;
            padding: 4px 10px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
        }

        .compare-checkbox {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 24px;
            height: 24px;
            background: var(--color-white);
            border: 2px solid var(--border);
            border-radius: 6px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
        }

        .compare-checkbox.checked {
            background: var(--primary);
            border-color: var(--primary);
        }

        .compare-checkbox.checked::after {
            content: '✓';
            color: white;
            font-size: 14px;
        }

        .product-info {
            padding: 24px;
        }

        .product-model {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 8px;
            color: var(--text-primary);
        }

        .product-type {
            color: var(--primary-light);
            font-size: 14px;
            margin-bottom: 16px;
        }

        .product-specs {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin-bottom: 20px;
        }

        .spec-item {
            background: var(--bg-main);
            padding: 12px;
            border-radius: 8px;
        }

        .spec-value {
            font-size: 18px;
            font-weight: 700;
            color: var(--primary-light);
        }

        .spec-label {
            font-size: 12px;
            color: var(--gray);
        }

        .product-actions {
            display: flex;
            gap: 10px;
        }

        .product-actions .btn {
            flex: 1;
            justify-content: center;
            padding: 12px;
            font-size: 14px;
        }

        /* Compare Modal */
        .compare-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            z-index: 2000;
            align-items: center;
            justify-content: center;
            padding: calc(20px + var(--safe-top)) 20px calc(20px + var(--safe-bottom));
        }

        .compare-modal.active {
            display: flex;
        }

        .compare-content {
            background: var(--color-white);
            border-radius: 20px;
            max-width: 1200px;
            width: 100%;
            max-height: calc(100vh - 40px);
            max-height: calc(100dvh - 40px - var(--safe-top) - var(--safe-bottom));
            overflow: auto;
            position: relative;
            -webkit-overflow-scrolling: touch;
        }

        .compare-header {
            padding: 24px;
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: sticky;
            top: 0;
            background: var(--color-white);
            z-index: 10;
        }

        .compare-header h2 {
            font-size: 24px;
        }

        .close-btn {
            width: 44px;
            height: 44px;
            background: var(--bg-main);
            border: none;
            border-radius: 8px;
            color: var(--text-primary);
            font-size: 24px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .compare-table {
            width: 100%;
            border-collapse: collapse;
            min-width: 760px;
        }

        .compare-table th,
        .compare-table td {
            padding: 16px;
            text-align: center;
            border-bottom: 1px solid var(--border);
        }

        .compare-table th {
            background: var(--bg-main);
            font-weight: 600;
            color: var(--gray);
            text-align: left;
        }

        .compare-table td:first-child {
            text-align: left;
            color: var(--gray);
        }

        .compare-product-header {
            padding: 20px;
            background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
        }

        .compare-product-header img {
            width: 120px;
            height: 100px;
            object-fit: contain;
            margin-bottom: 10px;
        }

        /* Contact Section */
        .contact {
            padding: 100px 20px;
            background: var(--color-white);
        }

        .contact-grid {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
        }

        .contact-info h2 {
            font-size: 36px;
            margin-bottom: 20px;
        }

        .contact-info p {
            color: var(--gray);
            margin-bottom: 30px;
        }

        .contact-item {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 20px;
        }

        .contact-icon {
            width: 50px;
            height: 50px;
            background: var(--bg-main);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
        }

        .contact-form {
            background: var(--bg-main);
            padding: 40px;
            border-radius: 20px;
            border: 1px solid var(--border);
        }

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

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
        }

        .form-group input,
        .form-group textarea,
        .form-group select {
            width: 100%;
            padding: 14px 18px;
            background: var(--color-white);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: var(--text-primary);
            font-size: 16px;
            transition: border-color 0.3s;
        }

        .form-group input:focus,
        .form-group textarea:focus,
        .form-group select:focus {
            outline: none;
            border-color: var(--primary);
        }

        .form-group textarea {
            height: 120px;
            resize: vertical;
        }

        /* About Section */
        .about {
            padding: 100px 20px;
            background: var(--bg-main);
        }

        .about-grid {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
        }

        .about-content h2 {
            font-size: 36px;
            margin-bottom: 20px;
        }

        .about-content p {
            color: var(--gray);
            margin-bottom: 20px;
        }

        .feature-list {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-top: 30px;
        }

        .feature-item {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .feature-check {
            width: 24px;
            height: 24px;
            background: var(--success);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
        }

        .about-visual {
            background: url('images/legao.jpg') center / cover no-repeat;
            border-radius: 20px;
            height: 400px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 40px;
        }

        .about-logo {
            width: 150px;
            height: 150px;
            margin-bottom: 30px;
        }

        .about-logo svg {
            width: 100%;
            height: 100%;
        }

        .about-visual-text {
            font-size: 20px;
            color: white;
            text-align: center;
            font-weight: 600;
        }

        /* Footer */
        .footer {
            background: var(--color-white);
            padding: 60px 20px 30px;
            border-top: 1px solid var(--border);
        }

        .footer-content {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 40px;
        }

        .footer-brand p {
            color: var(--gray);
            margin-top: 20px;
            font-size: 14px;
        }

        .footer-links h4 {
            margin-bottom: 20px;
            font-size: 16px;
        }

        .footer-links a {
            display: block;
            color: var(--gray);
            text-decoration: none;
            margin-bottom: 10px;
            font-size: 14px;
            transition: color 0.3s;
        }

        .footer-links a:hover {
            color: var(--primary-light);
        }

        .footer-bottom {
            max-width: 1400px;
            margin: 40px auto 0;
            padding-top: 30px;
            border-top: 1px solid var(--border);
            text-align: center;
            color: var(--gray);
            font-size: 14px;
        }

        /* Responsive */
        @media (max-width: 1024px) {
            .hero-content {
                grid-template-columns: 1fr;
                text-align: center;
            }

            .hero-text h1 {
                font-size: 42px;
            }

            .hero-stats {
                justify-content: center;
            }

            .hero-buttons {
                justify-content: center;
            }

            .contact-grid,
            .about-grid {
                grid-template-columns: 1fr;
            }

            .footer-content {
                grid-template-columns: 1fr 1fr;
            }
        }

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

            .hero-text h1 {
                font-size: 32px;
            }

            .header-inner {
                padding: 0 12px;
                gap: 10px;
                justify-content: flex-start;
            }

            .logo-icon {
                width: 42px;
                height: 42px;
            }

            .logo-text {
                display: none;
            }

            .menu-btn {
                display: inline-flex;
                margin-left: auto;
            }

            .lang-switch button {
                padding: 8px 10px;
                font-size: 13px;
            }

            .hero-content {
                padding: 40px 16px;
            }

            .hero-text {
                padding: 20px;
            }

            .hero-text .tagline {
                font-size: 16px;
            }

            .hero-stats {
                justify-content: center;
                flex-wrap: wrap;
                gap: 16px;
                margin-bottom: 24px;
            }

            .stat-value {
                font-size: 36px;
            }

            .hero-buttons {
                flex-direction: column;
            }

            .hero-buttons .btn {
                width: 100%;
                justify-content: center;
            }

            .floating-badge {
                padding: 12px 14px;
                gap: 10px;
            }

            .floating-badge.top-right {
                top: 12px;
                right: 12px;
            }

            .floating-badge.bottom-left {
                bottom: 12px;
                left: 12px;
            }

            .badge-icon {
                width: 40px;
                height: 40px;
                font-size: 20px;
            }

            .section-header h2 {
                font-size: 28px;
            }

            .filter-bar {
                flex-direction: column;
            }

            .category-card {
                padding: 20px;
            }

            .product-info {
                padding: 18px;
            }

            .product-specs {
                gap: 10px;
            }

            .spec-item {
                padding: 10px;
            }

            .compare-header {
                padding: 16px;
            }

            .compare-table th,
            .compare-table td {
                padding: 12px 10px;
                font-size: 13px;
            }

            .compare-product-header img {
                width: 90px;
                height: 80px;
            }

            .contact {
                padding: 70px 16px;
            }

            .contact-form {
                padding: 20px;
            }

            .about {
                padding: 70px 16px;
            }

            .about-visual {
                height: 320px;
                padding: 20px;
            }

            .footer-content {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 420px) {
            .lang-switch button {
                padding: 8px 8px;
            }

            .hero-text h1 {
                font-size: 28px;
            }
        }

        /* Product Detail Modal */
        .detail-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.85);
            z-index: 2000;
            align-items: center;
            justify-content: center;
            padding: calc(20px + var(--safe-top)) 20px calc(20px + var(--safe-bottom));
        }

        .detail-modal.active {
            display: flex;
        }

        .detail-content {
            background: var(--color-white);
            border-radius: 20px;
            max-width: 900px;
            width: 100%;
            max-height: calc(100vh - 40px);
            max-height: calc(100dvh - 40px - var(--safe-top) - var(--safe-bottom));
            overflow: auto;
            -webkit-overflow-scrolling: touch;
        }

        .detail-header {
            padding: 24px;
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .detail-body {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px;
            padding: 40px;
        }

        .detail-image {
            background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
            border-radius: 12px;
            padding: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .detail-image img {
            max-width: 100%;
            max-height: 300px;
            object-fit: contain;
        }

        .detail-info h3 {
            font-size: 28px;
            margin-bottom: 8px;
        }

        .detail-type {
            color: var(--primary-light);
            margin-bottom: 20px;
        }

        .detail-desc {
            color: var(--gray);
            margin-bottom: 30px;
        }

        .detail-specs {
            background: var(--bg-main);
            border-radius: 12px;
            padding: 20px;
        }

        .detail-spec-row {
            display: flex;
            justify-content: space-between;
            padding: 12px 0;
            border-bottom: 1px solid var(--border);
        }

        .detail-spec-row:last-child {
            border-bottom: none;
        }

        .detail-spec-label {
            color: var(--gray);
        }

        .detail-spec-value {
            font-weight: 600;
        }

        @media (max-width: 768px) {
            .detail-body {
                grid-template-columns: 1fr;
                padding: 20px;
                gap: 20px;
            }

            .detail-header {
                padding: 16px;
            }
        }

        /* Anchor offsets for fixed header (iOS/Safari friendly) */
        section[id] {
            scroll-margin-top: calc(var(--header-height) + var(--safe-top) + 16px);
        }

        /* Avoid sticky/hover quirks on touch devices (iOS) */
        @media (hover: none) {
            .category-card:hover,
            .product-card:hover,
            .btn-primary:hover {
                transform: none;
            }

            /* Touch targets on iOS/iPadOS */
            .compare-checkbox {
                width: 32px;
                height: 32px;
            }
        }
