:root {
    --daikin-blue: #00A0E4;
    --daikin-blue-dark: #0088c7;
    --daikin-blue-light: #e6f6fd;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-600: #475569;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --radius: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
    background: var(--white);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 120px;
    height: auto;
    padding: 0.75rem 0;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.header .logo-img {
    height: 110px;
    width: auto;
    max-width: min(72vw, 420px);
    object-fit: contain;
}

.footer .logo-img {
    height: 88px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
}

.logo-img {
    height: 110px;
    width: auto;
    max-width: min(72vw, 420px);
    object-fit: contain;
}

.logo-icon {
    background: var(--daikin-blue);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.logo-text strong { display: block; font-size: 1.1rem; color: var(--gray-900); }
.logo-text small { color: var(--daikin-blue); font-size: 0.75rem; }

.nav { display: flex; gap: 1.5rem; }
.nav a {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.nav a:hover, .nav a.active { color: var(--daikin-blue); }

.header-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--daikin-blue);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gray-800);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    overflow: hidden;
    background: var(--gray-900);
    min-height: 520px;
}
.hero-slider-track {
    position: relative;
    width: 100%;
    min-height: 520px;
}
.hero-slide {
    position: absolute;
    inset: 0;
    min-height: 520px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    z-index: 0;
}
.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}
.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,40,70,0.82) 0%, rgba(0,160,228,0.45) 100%);
}
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    backdrop-filter: blur(4px);
}
.hero-nav:hover { background: rgba(255,255,255,0.3); }
.hero-nav.prev { left: 1rem; }
.hero-nav.next { right: 1rem; }
.hero-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}
.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    padding: 0;
}
.hero-dot.is-active { background: white; }
.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 600px;
    padding: 4rem 0;
}
.hero-content h1 { font-size: 2.75rem; font-weight: 700; margin-bottom: 1rem; line-height: 1.2; }
.hero-content p { font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.95; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-primary { background: var(--daikin-blue); color: white; }
.btn-primary:hover { background: var(--daikin-blue-dark); }
.btn-outline { background: transparent; color: white; border: 2px solid white; }
.btn-outline:hover { background: white; color: var(--daikin-blue); }
.btn-white { background: white; color: var(--daikin-blue); }
.btn-white:hover { background: var(--gray-100); }

/* Sections */
.section { padding: 4rem 0; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: 2rem; color: var(--gray-900); margin-bottom: 0.5rem; }
.section-title p { color: var(--gray-600); }
.section-alt { background: var(--gray-50); }

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card, .category-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}
.product-card:hover, .category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-card img, .category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--gray-100);
}

.product-card-body, .category-card-body { padding: 1.25rem; }
.product-card-body h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--gray-900); }
.product-card-body .brand { color: var(--daikin-blue); font-size: 0.85rem; font-weight: 600; }
.product-card-body .price { font-size: 1.25rem; font-weight: 700; color: var(--daikin-blue); margin-top: 0.75rem; }
.product-card-body .specs { font-size: 0.85rem; color: var(--gray-600); }

.category-card-body h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.category-card-body span { font-size: 0.85rem; color: var(--gray-600); }

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.feature-item {
    text-align: center;
    padding: 2rem;
}
.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--daikin-blue-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--daikin-blue);
    font-size: 1.5rem;
}
.feature-item h3 { margin-bottom: 0.5rem; color: var(--gray-900); }
.feature-item p { color: var(--gray-600); font-size: 0.95rem; }

/* CTA */
.cta-section {
    background: linear-gradient(135deg, var(--daikin-blue) 0%, var(--daikin-blue-dark) 100%);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
}
.cta-section h2 { font-size: 2rem; margin-bottom: 1rem; }
.cta-section p { margin-bottom: 2rem; opacity: 0.9; }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--gray-800); }
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}
.form-control:focus {
    outline: none;
    border-color: var(--daikin-blue);
    box-shadow: 0 0 0 3px var(--daikin-blue-light);
}
textarea.form-control { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Page header */
.page-header {
    background: linear-gradient(135deg, var(--daikin-blue) 0%, var(--daikin-blue-dark) 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}
.page-header h1 { font-size: 2.25rem; margin-bottom: 0.5rem; }

/* Product detail */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 3rem 0; }
.product-gallery-layout { display: grid; grid-template-columns: 90px 1fr; gap: 1rem; align-items: start; }
.product-gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 480px;
    overflow-y: auto;
}
.product-gallery-thumb {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 4px;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
}
.product-gallery-thumb.is-active,
.product-gallery-thumb:hover { border-color: var(--daikin-blue); }
.product-gallery-thumb img { width: 100%; height: 72px; object-fit: contain; display: block; }
.product-gallery-main {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1rem;
    background: white;
    display: block;
    cursor: zoom-in;
}
.product-gallery-main img { width: 100%; max-height: 480px; object-fit: contain; display: block; }
.product-gallery img { width: 100%; border-radius: var(--radius); }

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 95vw; max-height: 90vh; object-fit: contain; }
.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}
.product-info h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.product-info .brand-badge {
    display: inline-block;
    background: var(--daikin-blue-light);
    color: var(--daikin-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.product-info .price-large { font-size: 2rem; font-weight: 700; color: var(--daikin-blue); margin: 1rem 0; }
.specs-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; }
.specs-table th, .specs-table td { padding: 0.75rem; border-bottom: 1px solid var(--gray-200); text-align: left; }
.specs-table th { color: var(--gray-600); font-weight: 500; width: 40%; }

/* Alert */
.alert { padding: 1rem 1.5rem; border-radius: var(--radius); margin: 1rem auto; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }

/* Footer */
.footer-brand .logo-img {
    filter: none;
    background: #fff;
    padding: 10px 14px;
    border-radius: 10px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer h4 { color: white; margin-bottom: 1rem; font-size: 1rem; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.5rem; }
.footer a { color: var(--gray-200); text-decoration: none; }
.footer a:hover { color: var(--daikin-blue); }
.footer-bottom { border-top: 1px solid var(--gray-800); padding-top: 1.5rem; text-align: center; font-size: 0.875rem; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
.pagination a, .pagination span {
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
}
.pagination a:hover { background: var(--daikin-blue-light); border-color: var(--daikin-blue); color: var(--daikin-blue); }
.pagination .active span { background: var(--daikin-blue); color: white; border-color: var(--daikin-blue); }

/* Filters */
.filters { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--gray-200);
    background: white;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--daikin-blue);
    color: white;
    border-color: var(--daikin-blue);
}

/* Responsive */
@media (max-width: 768px) {
    .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: white; flex-direction: column; padding: 1rem; box-shadow: var(--shadow); }
    .nav.open { display: flex; }
    .nav-toggle { display: flex; }
    .header-phone { display: none; }
    .header .logo-img { height: 72px; max-width: 85vw; }
    .hero-content h1 { font-size: 2rem; }
    .product-detail { grid-template-columns: 1fr; }
    .product-gallery-layout { grid-template-columns: 1fr; }
    .product-gallery-thumbs { flex-direction: row; max-height: none; overflow-x: auto; }
    .product-gallery-thumb img { height: 56px; width: 56px; }
    .hero-content h1 { font-size: 2rem; }
    .hero-nav { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}
