/* ========================================
   Y SIGNS LED — Light Theme v2.0
   Brand: #039617 | BG: #f5f7fa
   ======================================== */

/* === CSS Variables === */
:root {
    --brand: #039617;
    --brand-light: #04b81c;
    --brand-dark: #027a13;
    --brand-glow: rgba(3, 150, 23, 0.15);
    --brand-muted: rgba(3, 150, 23, 0.08);

    --bg: #f5f7fa;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --bg-alt: #edf0f5;
    --bg-dark: #1a1a2e;

    --text: #1a1a2e;
    --text-secondary: #555770;
    --text-muted: #8e90a6;
    --text-light: #b0b2c4;
    --text-on-brand: #ffffff;

    --border: #e2e5ed;
    --border-light: #f0f2f6;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.10);
    --shadow-glow: 0 4px 20px rgba(3,150,23,0.15);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --header-h: 72px;
    --topbar-h: 36px;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    --space-3xl: 7rem;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-base);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--brand-light); }

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* === Container === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* === Top Bar === */
.topbar {
    background: var(--bg-dark);
    color: #ccc;
    font-size: 0.8125rem;
    height: var(--topbar-h);
    display: flex;
    align-items: center;
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar a { color: #ccc; }
.topbar a:hover { color: #fff; }
.topbar__left { display: flex; gap: 1rem; align-items: center; }
.topbar__socials { display: flex; gap: 0.5rem; }
.topbar__socials a { display: inline-flex; align-items: center; }
.topbar__socials svg { width: 16px; height: 16px; fill: currentColor; }

/* === Header === */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: box-shadow 0.3s;
}
.header--scrolled { box-shadow: var(--shadow-sm); }
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header__logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}
.header__logo span { color: var(--brand); }

/* === Navigation === */
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    position: relative;
}
.nav a:hover,
.nav a:focus,
.nav .current-menu-item > a { color: var(--brand); background: var(--brand-muted); }

/* Mobile Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    position: relative;
    color: var(--text);
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    margin: 5px auto;
    transition: all 0.3s;
    border-radius: 1px;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* === Hero Carousel === */
.hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    min-height: 520px;
    background: var(--bg);
}
.hero--carousel {
    padding: 0;
}
.hero__slides {
    position: relative;
    width: 100%;
    height: 520px;
}
.hero__slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}
.hero__slide.active {
    opacity: 1;
    z-index: 2;
}
.hero__slide-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 6s ease-out;
}
.hero__slide.active .hero__slide-bg {
    transform: scale(1.05);
}
.hero__overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10,10,30,0.55) 0%, rgba(10,10,30,0.3) 100%);
    z-index: 2;
}
.hero__slide-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero__content {
    max-width: 800px;
    padding: 2rem 0;
    animation: heroFadeUp 0.8s ease-out forwards;
}
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero__title span { color: #4ade80; }
.hero__subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.2rem);
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 10px rgba(0,0,0,0.2);
}
.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Hero Dots */
.hero__dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 10px;
}
.hero__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}
.hero__dot.active {
    background: var(--brand);
    border-color: var(--brand);
    box-shadow: 0 0 8px rgba(3,150,23,0.5);
}
.hero__dot:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.3);
}

/* Brand bar at bottom of hero */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), #4ade80, var(--brand));
    z-index: 4;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.25s;
    border: none;
    text-decoration: none;
    white-space: nowrap;
}
.btn--primary {
    background: var(--brand);
    color: var(--text-on-brand);
    box-shadow: 0 4px 15px var(--brand-glow);
}
.btn--primary:hover {
    background: var(--brand-dark);
    color: #fff;
    box-shadow: 0 6px 25px rgba(3,150,23,0.25);
    transform: translateY(-1px);
}
.btn--secondary {
    background: var(--bg-white);
    color: var(--text);
    border: 1.5px solid var(--border);
}
.btn--secondary:hover {
    border-color: var(--brand);
    color: var(--brand);
    transform: translateY(-1px);
}

/* === Stats Bar === */
.stats {
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: var(--space-xl) 0;
}
.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    text-align: center;
}
.stats__item { padding: var(--space-sm); }
.stats__number {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--brand);
    line-height: 1.1;
}
.stats__label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* === Section === */
.section { padding: var(--space-2xl) 0; }
.section__header { text-align: center; margin-bottom: var(--space-xl); }
.section__label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}
.section__title {
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.section__desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
}

/* ── Alt Section Background ── */
.section--alt {
    background: var(--bg-alt);
}

/* ── Product Card Image Placeholder ── */
.product-card__img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    color: var(--text-muted);
    font-size: 2rem;
}

/* ── Team Grid ── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}
.team-member {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
}
.team-member img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    aspect-ratio: 1;
    object-fit: cover;
    margin-bottom: 0.75rem;
}
.team-member p { margin: 0; }
.team-member strong { display: block; font-size: 1rem; color: var(--text); }

/* ── Cert Grid ── */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}
.cert-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border);
    aspect-ratio: 1;
    object-fit: contain;
    background: #fff;
}

@media (max-width: 768px) {
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .cert-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .team-grid { grid-template-columns: 1fr; }
    .cert-grid { grid-template-columns: repeat(2, 1fr); }
}

/* === Product Series Grid === */
.product-series { background: var(--bg-white); }
.product-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}
.product-card {
    background: var(--bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand);
}
.product-card__image {
    aspect-ratio: 1;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.product-card:hover .product-card__image img { transform: scale(1.05); }
.product-card__body { padding: var(--space-sm); flex: 1; }
.product-card__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card__desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card .btn {
    margin: var(--space-xs) var(--space-sm) var(--space-sm);
    align-self: flex-start;
    font-size: 0.8125rem;
    padding: 0.4rem 1rem;
}

/* === Category Section (Homepage) === */
.category-section { padding: var(--space-2xl) 0; }
.category-section:nth-child(even) { background: var(--bg-alt); }
.category-section__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: var(--space-sm);
}
.category-section__desc {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    max-width: 650px;
}

/* === Factory Video Section — from original ysignsled.com EditableModule1~tbf35bf36b32_0 === */
.factory-video {
    padding: var(--space-2xl) 0;
    background: #f2f2f2;
    text-align: center;
}
.factory-video__text {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto var(--space-xl);
    line-height: 1.7;
    font-weight: 400;
}
.factory-video__grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.factory-video__card {
    flex: 0 0 auto;
}
.factory-video__card--left {
    max-width: 335px;
    width: 100%;
}
.factory-video__card--right {
    max-width: 608px;
    width: 100%;
}
.factory-video__player {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    background: #000;
}
.factory-video__poster {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.3s;
}
.factory-video__player.playing .factory-video__poster {
    opacity: 0;
    position: absolute;
    pointer-events: none;
}
.factory-video__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: transform 0.3s, opacity 0.3s;
}
.factory-video__player:hover .factory-video__play {
    transform: translate(-50%, -50%) scale(1.1);
}
.factory-video__player.playing .factory-video__play {
    opacity: 0;
    pointer-events: none;
}
.factory-video__video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}
@media (max-width: 768px) {
    .factory-video__grid {
        flex-direction: column;
        gap: 1.5rem;
    }
    .factory-video__card--left {
        max-width: 280px;
    }
    .factory-video__card--right {
        max-width: 100%;
    }
    .factory-video__text {
        font-size: 1rem;
    }
}

/* === Factory Mission === */
.mission {
    background: linear-gradient(135deg, var(--brand) 0%, #026e10 100%);
    color: #fff;
    padding: var(--space-2xl) 0;
    text-align: center;
}
.mission h2 {
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    font-weight: 700;
    margin-bottom: var(--space-md);
}
.mission blockquote {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto var(--space-lg);
    line-height: 1.7;
    font-style: italic;
}
.mission blockquote::before { content: '"'; }
.mission blockquote::after { content: '"'; }

/* === Page Hero (Inner Pages) === */
.page-hero {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: var(--space-xl) 0 var(--space-lg);
    text-align: center;
}
.page-hero h1 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.page-hero .page-hero__desc {
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    font-size: 1rem;
}

/* === Page Content === */
.page-content { padding: var(--space-xl) 0; }
.page-content .content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}
.page-content .content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: var(--space-lg) 0 var(--space-sm);
    color: var(--text);
}
.page-content .content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: var(--space-md) 0 var(--space-xs);
    color: var(--text);
}
.page-content .content p { margin-bottom: 1rem; color: var(--text-secondary); }
.page-content .content ul, .page-content .content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}
.page-content .content ul li { list-style: disc; margin-bottom: 0.5rem; color: var(--text-secondary); }
.page-content .content ol li { list-style: decimal; margin-bottom: 0.5rem; color: var(--text-secondary); }

/* === Product Detail === */
.product-detail { padding: var(--space-xl) 0; }
.product-detail__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}
.product-detail__gallery {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
}
.product-detail__gallery img { width: 100%; height: auto; }
.product-detail__info { }
.product-detail__info h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin: var(--space-md) 0 var(--space-sm);
}
.product-detail__info h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--brand);
    margin: var(--space-md) 0 var(--space-xs);
}
.product-detail__info ul li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}
.product-detail__info ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    background: var(--brand);
    border-radius: 50%;
}

/* === Contact Form === */
.contact-form-section {
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
    padding: var(--space-xl) 0;
}
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}
.form-group { margin-bottom: var(--space-sm); }
.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.375rem;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-glow);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* === Footer === */
.footer {
    background: var(--bg-dark);
    color: #b0b2c4;
    padding: var(--space-2xl) 0 var(--space-lg);
}
.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
}
.footer h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.footer p { font-size: 0.875rem; line-height: 1.7; }
.footer a {
    color: #b0b2c4;
    font-size: 0.875rem;
    display: block;
    padding: 0.2rem 0;
    transition: color 0.2s;
}
.footer a:hover { color: var(--brand-light); }
.footer__socials { display: flex; gap: 0.75rem; margin-top: var(--space-sm); }
.footer__socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.footer__socials a:hover {
    background: var(--brand);
    transform: translateY(-2px);
}
.footer__socials svg { width: 18px; height: 18px; fill: #ccc; }
.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: var(--space-xl);
    padding-top: var(--space-md);
    text-align: center;
    font-size: 0.8125rem;
}

/* === Blog === */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}
.post-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.3s;
}
.post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.post-card__image {
    aspect-ratio: 16/9;
    background: var(--bg-alt);
    overflow: hidden;
}
.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.post-card:hover .post-card__image img { transform: scale(1.05); }
.post-card__body { padding: var(--space-sm); }
.post-card__meta { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.post-card__title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card__excerpt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card .btn {
    margin: var(--space-xs) var(--space-sm) var(--space-sm);
    font-size: 0.8125rem;
    padding: 0.4rem 1rem;
}

/* === 404 Page === */
.error-404 { text-align: center; padding: var(--space-3xl) var(--space-md); }
.error-404 h1 { font-size: 4rem; color: var(--brand); margin-bottom: var(--space-sm); }
.error-404 p { color: var(--text-secondary); font-size: 1.125rem; margin-bottom: var(--space-lg); }

/* === Pagination === */
.pagination { text-align: center; margin-top: var(--space-xl); }
.pagination a, .pagination span {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    color: var(--text);
    font-size: 0.875rem;
    transition: all 0.2s;
}
.pagination .current {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); }

/* === Search === */
.search-form { display: flex; gap: 0.5rem; margin-bottom: var(--space-lg); }
.search-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
}

/* ========================================
   Image Lazy Loading
   ======================================== */
.lazy {
    opacity: 0;
    transition: opacity 0.4s ease;
}
.lazy.loaded {
    opacity: 1;
}
.lazy-placeholder {
    background: var(--bg-alt);
    position: relative;
    overflow: hidden;
}
.lazy-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .product-cards { grid-template-columns: repeat(3, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --header-h: 64px; }

    .nav-toggle { display: block; }

    .nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--bg-white);
        border-bottom: 1px solid var(--border-light);
        flex-direction: column;
        padding: var(--space-sm);
        box-shadow: var(--shadow-md);
    }
    .nav.open { display: flex; }
    .nav a { padding: 0.75rem 1rem; width: 100%; border-radius: var(--radius-sm); }

    .stats__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }
    .product-cards { grid-template-columns: repeat(2, 1fr); }
    .product-detail__layout { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }

    .hero { padding: var(--space-xl) 0; }
    .hero--carousel { padding: 0; }
    .hero__slides { height: 420px; }
    .section { padding: var(--space-xl) 0; }

    .footer__grid { grid-template-columns: 1fr; gap: var(--space-md); }
}

@media (max-width: 480px) {
    .product-cards { grid-template-columns: 1fr; }
    .stats__grid { grid-template-columns: repeat(2, 1fr); }
    .hero__cta { flex-direction: column; align-items: center; }
    .hero__cta .btn { width: 100%; justify-content: center; }

    .hero__slides { height: 350px; }
    .hero__subtitle { font-size: 0.875rem; }

    .section__title { font-size: 1.25rem; }
    .page-hero h1 { font-size: 1.5rem; }
    .hero__title { font-size: 1.5rem; }

    .topbar__left { font-size: 0.75rem; }
}
