/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #1d1d1f; background: #fff; line-height: 1.5;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ===== Container ===== */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 22px; }
@media (min-width: 768px) { .container { padding: 0 40px; } }

/* ===== Header Navigation ===== */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 2000;
    background: rgba(255,255,255,0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: background 0.3s ease;
}
.site-header.scrolled { background: rgba(255,255,255,0.92); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 48px; }
@media (min-width: 768px) { .header-inner { height: 52px; } }
.logo { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 17px; color: #1d1d1f; }
.main-nav { display: none; align-items: center; gap: 32px; }
@media (min-width: 768px) { .main-nav { display: flex; } }
.main-nav > a, .nav-dropdown > a {
    font-size: 13px; color: #1d1d1f; opacity: 0.85; transition: opacity 0.2s; position: relative;
}
.main-nav > a:hover, .main-nav > a.active, .nav-dropdown > a:hover, .nav-dropdown > a.active { opacity: 1; }
.arrow { font-size: 9px; margin-left: 2px; }
.nav-dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    min-width: 200px; padding: 8px; margin-top: 12px;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(20px);
    border-radius: 14px; box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(-8px);
    transition: all 0.25s ease;
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-menu a { display: block; padding: 10px 14px; font-size: 13px; color: #1d1d1f; border-radius: 8px; transition: background 0.15s; }
.dropdown-menu a:hover { background: #f5f5f7; }
.menu-toggle { display: flex; flex-direction: column; gap: 4px; padding: 8px; }
@media (min-width: 768px) { .menu-toggle { display: none; } }
.menu-toggle span { width: 18px; height: 1.5px; background: #1d1d1f; transition: 0.3s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.mobile-menu {
    display: none; position: fixed; top: 48px; left: 0; right: 0;
    /* Fix: high z-index + solid bg so menu is never covered by page content */
    z-index: 1990; background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 16px 22px; max-height: calc(100vh - 48px); overflow-y: auto;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 12px 0; font-size: 15px; color: #1d1d1f; border-bottom: 1px solid #f0f0f0; }
.mobile-menu .sub-label { font-size: 11px; color: #86868b; text-transform: uppercase; letter-spacing: 0.5px; padding: 8px 0 4px; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 22px; border-radius: 980px; font-size: 14px; font-weight: 400; transition: all 0.3s cubic-bezier(0.25,0.1,0.25,1); cursor: pointer; }
.btn-primary { background: #0071e3; color: #fff; }
.btn-primary:hover { background: #0077ed; }
.btn-primary:active { transform: scale(0.98); }
.btn-secondary { background: transparent; color: #0071e3; }
.btn-secondary:hover { color: #0077ed; }
.btn-outline { border: 1px solid #d2d2d7; color: #1d1d1f; background: transparent; }
.btn-outline:hover { background: #f5f5f7; }
.btn-dark { background: #1d1d1f; color: #fff; }
.btn-dark:hover { background: #2d2d2f; }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }

/* ===== Banner ===== */
.hero-banner {
    position: relative; width: 100%; height: 80vh; max-width:1920px; min-height: 500px; max-height: 800px;
    display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; /*margin-top: 48px;*/ margin: 48px auto 0;
}
@media screen and (max-width: 992px) { .hero-banner { height:50vh;min-height: 50vh; } }
@media screen and (max-width: 768px) { .hero-banner { height:28vh;min-height: 28vh; } }
.hero-banner .bg-img { position: absolute; inset: 0; background-size: cover; background-position: center;}
.hero-banner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-banner .overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.1), transparent 40%, rgba(0,0,0,0.2)); }
.hero-banner .hero-content { position: relative; z-index: 2; padding: 0 24px; max-width: 800px; }
.hero-banner h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 700; color: #fff; line-height: 1.05; letter-spacing: -0.015em; text-shadow: 0 2px 20px rgba(0,0,0,0.15); }
.hero-banner p { margin-top: 20px; font-size: clamp(16px, 2vw, 21px); color: rgba(255,255,255,0.9); }
.hero-banner .hero-actions { margin-top: 36px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
@media (min-width: 640px) { .hero-banner .hero-actions { flex-direction: row; justify-content: center; } }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2; animation: bounce 2s infinite; color: rgba(255,255,255,0.7); }
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-8px); } }

/* ===== Common Sections ===== */
.section { padding: 80px 0; }
@media (min-width: 768px) { .section { padding: 110px 0; } }
.section-title { font-size: clamp(28px, 3.5vw, 44px); font-weight: 600; text-align: center; letter-spacing: -0.01em; }
.section-subtitle { margin-top: 12px; text-align: center; font-size: clamp(16px, 1.8vw, 19px); color: #6e6e73; }
.section-header { margin-bottom: 56px; }
.section-banner{ background-color: #f7f6f9; }
.bg-gray { background: #f5f5f7; }
.bg-dark { background: #1d1d1f; color: #fff; }

/* ===== Product Cards ===== */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
.product-card { display: block; transition: transform 0.4s cubic-bezier(0.25,0.1,0.25,1); }
.product-card:hover { transform: translateY(-4px); }
.product-card .card-img { aspect-ratio: 1; background: #f5f5f7; border-radius: 18px; overflow: hidden; margin-bottom: 14px; }
.product-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.25,0.1,0.25,1); }
.product-card:hover .card-img img { transform: scale(1.05); }
.product-card h3 { font-size: 15px; font-weight: 600; color: #1d1d1f; transition: color 0.2s; }
.product-card:hover h3 { color: #0071e3; }
.product-card .card-summary { margin-top: 4px; font-size: 13px; color: #6e6e73; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .card-price { margin-top: 8px; font-size: 14px; font-weight: 500; color: #1d1d1f; }

/* ===== Category Cards ===== */
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 768px) { .category-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
@media (min-width: 1024px) { .category-grid { grid-template-columns: repeat(4, 1fr); } }
.category-card { display: block; background: #f5f5f7; border-radius: 18px; padding: 32px 20px; text-align: center; transition: all 0.4s cubic-bezier(0.25,0.1,0.25,1); }
.category-card:hover { transform: scale(1.02); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.category-card .cat-icon { font-size: 36px; margin-bottom: 14px; }
.category-card h3 { font-size: 16px; font-weight: 600; color: #1d1d1f; }
.category-card p { margin-top: 6px; font-size: 13px; color: #6e6e73; }

/* ===== Product Detail ===== */
.product-detail { padding-top: 80px; }
.breadcrumb { padding: 14px 0; font-size: 13px; color: #86868b; background: #f5f5f7; margin-top: 48px; }
.breadcrumb a:hover { color: #1d1d1f; }
.breadcrumb span { margin: 0 6px; }
.detail-gallery { /*position:sticky;*/ top: 80px; }
.detail-main-img { aspect-ratio: 1; background: #f5f5f7; border-radius: 24px; overflow: hidden; margin-bottom: 14px; }
.detail-main-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-thumbs { display: flex; gap: 10px; }
.detail-thumbs button { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; transition: border-color 0.2s; cursor: pointer; }
.detail-thumbs button.active { border-color: #0071e3; }
.detail-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-info h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.01em; }
.detail-info .detail-summary { margin-top: 14px; font-size: 19px; color: #6e6e73; line-height: 1.5; }
.detail-price { margin-top: 28px; font-size: 28px; font-weight: 600; }
.detail-actions { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .detail-actions { flex-direction: row; } }
.advantage-list { margin-top: 40px; padding-top: 32px; border-top: 1px solid #f0f0f0; }
.advantage-item { display: flex; gap: 14px; margin-bottom: 18px; }
.advantage-icon { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: rgba(0,113,227,0.1); display: flex; align-items: center; justify-content: center; color: #0071e3; font-size: 16px; }
.advantage-item h4 { font-size: 15px; font-weight: 600; }
.advantage-item p { margin-top: 3px; font-size: 13px; color: #6e6e73; line-height: 1.5; }
.specs-table { background: #fff; border-radius: 18px; overflow: hidden; max-width: 720px; margin: 0 auto; }
.spec-row { display: flex; padding: 18px 24px; border-bottom: 1px solid #f0f0f0; }
.spec-row:last-child { border-bottom: none; }
.spec-label { width: 35%; font-size: 14px; color: #6e6e73; font-weight: 500; }
.spec-value { width: 65%; font-size: 14px; color: #1d1d1f; }

/* ===== News Cards ===== */
.news-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
.news-card { display: block; transition: transform 0.4s ease; }
.news-card:hover { transform: translateY(-4px); }
.news-card .news-img { aspect-ratio: 16/10; background: #f5f5f7; border-radius: 16px; overflow: hidden; margin-bottom: 18px; }
.news-card .news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.news-card:hover .news-img img { transform: scale(1.05); }
.news-card .news-meta { font-size: 12px; color: #86868b; margin-bottom: 8px; }
.news-card h3 { font-size: 17px; font-weight: 600; line-height: 1.35; transition: color 0.2s; }
.news-card:hover h3 { color: #0071e3; }
.news-card .news-summary { margin-top: 8px; font-size: 14px; color: #6e6e73; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-featured { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; margin-bottom: 64px; }
@media (min-width: 768px) { .news-featured { grid-template-columns: 1fr 1fr; gap: 56px; } }
.news-featured .news-img { aspect-ratio: 16/10; border-radius: 24px; overflow: hidden; }
.news-featured .news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-featured h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 600; line-height: 1.2; }
.news-featured p { margin-top: 16px; font-size: 17px; color: #6e6e73; line-height: 1.6; }
.news-article { max-width: 720px; margin: 0 auto; }
.news-article h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.news-article .article-meta { margin-top: 20px; font-size: 14px; color: #86868b; display: flex; gap: 12px; flex-wrap: wrap; }
.news-article .article-cover { margin: 32px 0; aspect-ratio: 16/9; border-radius: 18px; overflow: hidden; }
.news-article .article-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-article .article-body { font-size: 17px; line-height: 1.8; color: #1d1d1f; }
.news-article .article-body p { margin-bottom: 20px; }
.news-article .article-body h3 { font-size: 22px; font-weight: 600; margin: 32px 0 16px; }

/* ===== About / Advantages ===== */
.about-hero { text-align: center; padding: 100px 0 80px; background: #f5f5f7; margin-top: 48px; }
.about-hero .eyebrow { font-size: 13px; font-weight: 500; color: #0071e3; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.about-hero h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 700; letter-spacing: -0.015em; }
.about-intro { max-width: 720px; margin: 0 auto; font-size: clamp(18px, 2vw, 22px); color: #424245; line-height: 1.6; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; text-align: center; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 48px; } }
.stat-item .stat-num { font-size: clamp(32px, 5vw, 48px); font-weight: 700; }
.stat-item .stat-label { margin-top: 6px; font-size: 14px; color: rgba(255,255,255,0.6); }
.advantages-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .advantages-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
.advantage-card { background: #fff; border: 1px solid rgba(0,0,0,0.05); border-radius: 22px; padding: 36px; transition: all 0.4s ease; }
.advantage-card:hover { border-color: rgba(0,113,227,0.2); box-shadow: 0 12px 40px rgba(0,0,0,0.06); }
.advantage-card .adv-icon { font-size: 42px; margin-bottom: 20px; }
.advantage-card h3 { font-size: 22px; font-weight: 600; margin-bottom: 12px; }
.advantage-card p { font-size: 15px; color: #6e6e73; line-height: 1.6; }
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 768px) { .values-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.value-card { background: #f5f5f7; border-radius: 18px; padding: 28px 20px; text-align: center; }
.value-card .value-icon { font-size: 28px; margin-bottom: 10px; }
.value-card h4 { font-size: 15px; font-weight: 600; }

/* ===== Contact ===== */
.contact-info-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 48px; }
@media (min-width: 768px) { .contact-info-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.contact-info-card { background: #f5f5f7; border-radius: 18px; padding: 32px; text-align: center; }
.contact-info-card .ci-icon { font-size: 32px; margin-bottom: 14px; }
.contact-info-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.contact-info-card p { font-size: 14px; color: #6e6e73; }
.contact-form { background: #fff; border-radius: 22px; padding: 36px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; color: #1d1d1f; }
.form-control { width: 100%; padding: 12px 16px; border: 1px solid #d2d2d7; border-radius: 12px; font-size: 14px; color: #1d1d1f; background: #fff; transition: all 0.2s; }
.form-control:focus { outline: none; border-color: #0071e3; box-shadow: 0 0 0 3px rgba(0,113,227,0.15); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; padding: 20px; border-radius: 14px; text-align: center; }

/* ===== Filter Bar ===== */
.filter-bar { position: sticky; top: 48px; z-index: 100; background: rgba(255,255,255,0.9); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(0,0,0,0.05); padding: 14px 0; }
@media (min-width: 768px) { .filter-bar { top: 52px; } }
.filter-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-tag { padding: 7px 16px; border-radius: 980px; font-size: 13px; background: #f5f5f7; color: #1d1d1f; transition: all 0.2s; cursor: pointer; display: inline-block; }
.filter-tag:hover { background: #e8e8ed; }
.filter-tag.active { background: #1d1d1f; color: #fff; }

/* ===== Footer ===== */
.site-footer { background: #f5f5f7; border-top: 1px solid rgba(0,0,0,0.05); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; } }
.footer-brand p { margin-top: 14px; font-size: 13px; color: #6e6e73; line-height: 1.6; max-width: 260px; }
.footer-col h4 { font-size: 13px; font-weight: 600; margin-bottom: 16px; color: #1d1d1f; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 13px; color: #6e6e73; transition: color 0.2s; }
.footer-col a:hover { color: #1d1d1f; }
.footer-col .link-accent { color: #0071e3; }
.contact-list li { font-size: 13px; color: #6e6e73; margin-bottom: 10px; }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(0,0,0,0.06); display: flex; flex-direction: column; gap: 12px; align-items: center; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom p { font-size: 12px; color: #86868b; margin:0 auto;}
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 12px; color: #86868b; }
.footer-links a:hover { color: #1d1d1f; }

/* ===== 404 / Empty State ===== */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .es-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.empty-state p { font-size: 14px; color: #86868b; }

/* ===== Responsive Helpers ===== */
.two-col { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 768px) { .two-col { grid-template-columns: 1fr 1fr; gap: 80px; } }
.three-col { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .three-col { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-8 { margin-bottom: 32px; }

/* ===== Pagination ===== */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 56px; }
.pagination .page-link {
    display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px;
    padding: 0 12px; border-radius: 980px; font-size: 14px; color: #1d1d1f; background: #f5f5f7;
    transition: background 0.2s, color 0.2s;
}
.pagination .page-link:hover { background: #e8e8ed; }
.pagination .page-link.active { background: #1d1d1f; color: #fff; }
.pagination .page-link.disabled { opacity: 0.35; pointer-events: none; }
.pagination .page-sep { color: #86868b; font-size: 13px; padding: 0 4px; }

/* ===== Product Gallery + Magnifier Lens ===== */
.gallery-main {
    position: relative; width: 100%; aspect-ratio: 1; background: #f5f5f7; border-radius: 24px;
    overflow: hidden; margin-bottom: 14px; cursor: zoom-in; user-select: none;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.zoom-lens {
    position: absolute; width: 220px; height: 220px; border: 1px solid rgba(0,0,0,0.18);
    border-radius: 12px; background-repeat: no-repeat; background-color: #fff;
    box-shadow: 0 8px 28px rgba(0,0,0,0.2); pointer-events: none; display: none; z-index: 30;
}
/* Hide magnifier lens on touch devices */
@media (pointer: coarse) { .zoom-lens { display: none !important; } }
