/* ============================================
   RattanCraft B2B - Main Stylesheet
   Design: Minimalist White + Natural Green
   Inspired by Green Living aesthetic
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    /* Colors - Natural & Minimal */
    --gl-green: #6b8e4e;
    --gl-green-dark: #557a3d;
    --gl-green-light: #8ab065;
    --gl-green-bg: #f0f5ec;

    --gl-text: #333333;
    --gl-text-light: #777777;
    --gl-text-lighter: #aaaaaa;

    --gl-bg: #ffffff;
    --gl-bg-alt: #f8f8f8;
    --gl-bg-dark: #2a2a2a;

    --gl-border: #e8e8e8;
    --gl-border-light: #f0f0f0;

    --gl-orange: #d4761a;

    /* Typography */
    --font-sans: 'Helvetica Neue', 'Segoe UI', Arial, 'Noto Sans', sans-serif;
    --font-heading: 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
    --font-serif: Georgia, 'Times New Roman', serif;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
    --shadow-md: 0 2px 12px rgba(0,0,0,.08);
    --shadow-lg: 0 6px 24px rgba(0,0,0,.1);

    /* Radius */
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 8px;

    /* Layout */
    --max-width: 1280px;
    --header-height: 68px;
    --transition: all .25s ease;
}

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

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

body {
    font-family: var(--font-sans);
    color: var(--gl-text);
    background: var(--gl-bg);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--gl-green);
    text-decoration: none;
    transition: var(--transition);
}
a:hover { color: var(--gl-green-dark); }

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--gl-text);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }

ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 56px 0; }
.section-sm { padding: 36px 0; }
.section-alt { background: var(--gl-bg-alt); }

.text-center { text-align: center; }
.text-green { color: var(--gl-green); }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--gl-bg);
    border-bottom: 1px solid var(--gl-border);
    transition: var(--transition);
}
.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gl-text);
    letter-spacing: -.5px;
}
.logo:hover { color: var(--gl-text); }
.logo .logo-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gl-green);
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
}
.logo .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.logo .logo-text small {
    font-size: .65rem;
    font-weight: 400;
    color: var(--gl-text-light);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}
.main-nav > li {
    list-style: none;
    position: relative;
}
.main-nav > li > a {
    color: var(--gl-text);
    font-size: .92rem;
    font-weight: 500;
    padding: 8px 0;
    display: block;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.main-nav > li > a:hover,
.main-nav > li > a.active {
    color: var(--gl-green);
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--gl-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}
.main-nav > li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown li { list-style: none; }
.dropdown a {
    display: block;
    padding: 8px 20px;
    font-size: .88rem;
    color: var(--gl-text);
}
.dropdown a:hover {
    background: var(--gl-bg-alt);
    color: var(--gl-green);
}

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

.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--gl-text);
    padding: 6px;
    transition: var(--transition);
}
.search-toggle:hover { color: var(--gl-green); }

.lang-btn {
    background: none;
    border: 1px solid var(--gl-border);
    border-radius: var(--radius-sm);
    padding: 5px 10px;
    font-size: .8rem;
    cursor: pointer;
    color: var(--gl-text);
    transition: var(--transition);
    position: relative;
}
.lang-btn:hover { border-color: var(--gl-green); color: var(--gl-green); }
.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    background: #fff;
    border: 1px solid var(--gl-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    min-width: 120px;
    padding: 6px 0;
    display: none;
    z-index: 100;
}
.lang-dropdown.open { display: block; }
.lang-dropdown a {
    display: block;
    padding: 8px 16px;
    font-size: .85rem;
    color: var(--gl-text);
}
.lang-dropdown a:hover { background: var(--gl-bg-alt); color: var(--gl-green); }

.header-cta {
    background: var(--gl-green);
    color: #fff;
    padding: 8px 22px;
    border-radius: var(--radius-sm);
    font-size: .88rem;
    font-weight: 500;
    transition: var(--transition);
}
.header-cta:hover {
    background: var(--gl-green-dark);
    color: #fff;
}

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

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: #fff;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    transition: right .3s ease;
    overflow-y: auto;
    padding: 60px 24px 24px;
}
.mobile-nav.open { right: 0; }
.mobile-nav-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gl-text);
}
.mobile-nav ul { list-style: none; padding: 0; }
.mobile-nav ul li { margin-bottom: 4px; }
.mobile-nav ul li a {
    display: block;
    padding: 12px 0;
    font-size: 1rem;
    color: var(--gl-text);
    border-bottom: 1px solid var(--gl-border-light);
}
.mobile-nav ul li a:hover { color: var(--gl-green); }

.nav-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.4);
    z-index: 1500;
    display: none;
}
.nav-overlay.open { display: block; }

/* ---------- Hero / Intro Banner ---------- */
.hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(42,42,42,.6) 0%, rgba(42,42,42,.3) 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 600px;
    padding: 60px 0;
}
.hero-content h1 {
    color: #fff;
    font-size: 2.6rem;
    margin-bottom: 16px;
    line-height: 1.2;
}
.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 28px;
    opacity: .9;
}
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: .95rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    letter-spacing: .3px;
}
.btn-green {
    background: var(--gl-green);
    color: #fff;
}
.btn-green:hover {
    background: var(--gl-green-dark);
    color: #fff;
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}
.btn-outline:hover {
    background: #fff;
    color: var(--gl-text);
}
.btn-outline-dark {
    background: transparent;
    color: var(--gl-text);
    border: 2px solid var(--gl-border);
}
.btn-outline-dark:hover {
    border-color: var(--gl-green);
    color: var(--gl-green);
}
.btn-small {
    padding: 8px 20px;
    font-size: .85rem;
}

/* ---------- Intro Section ---------- */
.intro-section {
    text-align: center;
    padding: 48px 24px;
    max-width: 800px;
    margin: 0 auto;
}
.intro-section p {
    font-size: 1.05rem;
    color: var(--gl-text-light);
    line-height: 1.8;
}

/* ---------- Section Title ---------- */
.section-title {
    margin-bottom: 32px;
}
.section-title h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}
.section-title h2 a {
    color: var(--gl-text);
}
.section-title h2 a:hover {
    color: var(--gl-green);
}
.section-title p {
    color: var(--gl-text-light);
    font-size: .95rem;
}

.section-title-centered {
    text-align: center;
    margin-bottom: 40px;
}
.section-title-centered h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}
.section-title-centered h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--gl-green);
    margin: 12px auto 0;
}
.section-title-centered p {
    color: var(--gl-text-light);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- Hot Products ---------- */
.hot-products {
    padding: 48px 0;
}
.hot-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ---------- Product Category Section ---------- */
.product-category-section {
    padding: 36px 0;
    border-top: 1px solid var(--gl-border-light);
}
.product-category-section:first-child {
    border-top: none;
}
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
}
.category-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
}
.category-header h2 a {
    color: var(--gl-text);
}
.category-header h2 a:hover {
    color: var(--gl-green);
}
.see-all-link {
    font-size: .88rem;
    color: var(--gl-green);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.see-all-link:hover {
    color: var(--gl-green-dark);
    text-decoration: underline;
}
.see-all-link::after {
    content: ' →';
}

/* ---------- Product Grid ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.product-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ---------- Product Card ---------- */
.product-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}
.product-card:hover {
    box-shadow: var(--shadow-md);
}
.product-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--gl-bg-alt);
}
.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.product-card:hover .product-card-image img {
    transform: scale(1.05);
}
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--gl-green);
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: .5px;
    z-index: 2;
}
.product-badge.hot { background: var(--gl-orange); }
.product-badge.new { background: #3b82f6; }

.product-card-info {
    padding: 14px 16px;
    text-align: center;
}
.product-card-name {
    font-size: .9rem;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.4;
}
.product-card-name a {
    color: var(--gl-text);
}
.product-card-name a:hover {
    color: var(--gl-green);
}
.product-card-code {
    font-size: .8rem;
    color: var(--gl-text-lighter);
    font-family: var(--font-serif);
    letter-spacing: .5px;
}

/* Product card with hover inquiry button */
.product-card-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,.95);
    padding: 10px;
    text-align: center;
    transform: translateY(100%);
    transition: transform .3s ease;
}
.product-card:hover .product-card-actions {
    transform: translateY(0);
}
.product-card-actions .btn {
    padding: 8px 24px;
    font-size: .82rem;
}

/* ---------- About / Company Info ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.about-text h2 {
    margin-bottom: 16px;
}
.about-text p {
    color: var(--gl-text-light);
    margin-bottom: 16px;
}
.about-image img {
    border-radius: var(--radius-md);
    width: 100%;
}

/* ---------- Features / Advantages ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.feature-item {
    text-align: center;
    padding: 24px;
}
.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gl-green-bg);
    border-radius: 50%;
    font-size: 1.8rem;
    color: var(--gl-green);
}
.feature-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.feature-item p {
    color: var(--gl-text-light);
    font-size: .92rem;
}

/* ---------- Stats ---------- */
.stats-bar {
    background: var(--gl-green);
    color: #fff;
    padding: 40px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.stat-item .stat-number {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 6px;
}
.stat-item .stat-label {
    font-size: .9rem;
    opacity: .9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.testimonial-card {
    background: #fff;
    border: 1px solid var(--gl-border);
    border-radius: var(--radius-md);
    padding: 28px;
}
.testimonial-text {
    font-size: .95rem;
    color: var(--gl-text-light);
    margin-bottom: 16px;
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testimonial-author-name {
    font-weight: 600;
    font-size: .9rem;
}
.testimonial-author-company {
    font-size: .82rem;
    color: var(--gl-text-lighter);
}
.testimonial-rating {
    color: #f5a623;
    margin-bottom: 12px;
    font-size: .9rem;
}

/* ---------- CTA Section ---------- */
.cta-section {
    background: var(--gl-bg-dark);
    color: #fff;
    padding: 64px 0;
    text-align: center;
}
.cta-section h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 12px;
}
.cta-section p {
    color: rgba(255,255,255,.8);
    font-size: 1.05rem;
    margin-bottom: 28px;
}

/* ---------- Contact Form ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
}
.contact-info-card {
    background: var(--gl-bg-alt);
    border-radius: var(--radius-md);
    padding: 32px;
}
.contact-info-item {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
}
.contact-info-item .icon {
    font-size: 1.3rem;
    color: var(--gl-green);
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}
.contact-info-item .label {
    font-size: .8rem;
    color: var(--gl-text-lighter);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 2px;
}
.contact-info-item .value {
    font-size: .95rem;
    color: var(--gl-text);
    font-weight: 500;
}

/* Form */
.inquiry-form {
    background: #fff;
    border: 1px solid var(--gl-border);
    border-radius: var(--radius-md);
    padding: 36px;
}
.form-group {
    margin-bottom: 20px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group label {
    display: block;
    font-size: .88rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--gl-text);
}
.form-group label .required {
    color: #e53e3e;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gl-border);
    border-radius: var(--radius-sm);
    font-size: .92rem;
    font-family: var(--font-sans);
    color: var(--gl-text);
    background: #fff;
    transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gl-green);
    box-shadow: 0 0 0 3px rgba(107,142,78,.1);
}
.form-group textarea {
    min-height: 120px;
    resize: vertical;
}
.form-note {
    font-size: .82rem;
    color: var(--gl-text-lighter);
    margin-top: 6px;
}
.form-success {
    display: none;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: .92rem;
    color: #2e7d32;
}
.form-success.show { display: block; }

/* ---------- Page Header ---------- */
.page-header {
    background: var(--gl-bg-alt);
    padding: 48px 0;
    text-align: center;
    border-bottom: 1px solid var(--gl-border);
}
.page-header h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}
.page-header p {
    color: var(--gl-text-light);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: .82rem;
    color: var(--gl-text-light);
    margin-bottom: 24px;
}
.breadcrumb a { color: var(--gl-text-light); }
.breadcrumb a:hover { color: var(--gl-green); }
.breadcrumb span { color: var(--gl-text-lighter); }

/* ---------- Products Page ---------- */
.products-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 36px;
    padding: 40px 0;
}
.products-sidebar {
    position: sticky;
    top: 90px;
    align-self: start;
}
.filter-group {
    margin-bottom: 28px;
}
.filter-group h3 {
    font-size: .95rem;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gl-border);
}
.filter-list {
    list-style: none;
    padding: 0;
}
.filter-list li {
    margin-bottom: 6px;
}
.filter-list a {
    display: block;
    padding: 6px 0;
    font-size: .9rem;
    color: var(--gl-text-light);
}
.filter-list a:hover,
.filter-list a.active {
    color: var(--gl-green);
}
.filter-list a .count {
    color: var(--gl-text-lighter);
    font-size: .82rem;
}

.products-main {
    min-width: 0;
}
.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gl-border);
}
.products-count {
    font-size: .88rem;
    color: var(--gl-text-light);
}
.products-sort select {
    padding: 6px 12px;
    border: 1px solid var(--gl-border);
    border-radius: var(--radius-sm);
    font-size: .88rem;
    background: #fff;
    cursor: pointer;
}

.products-grid-full {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
}
.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    border: 1px solid var(--gl-border);
    border-radius: var(--radius-sm);
    font-size: .88rem;
    color: var(--gl-text);
    padding: 0 10px;
}
.pagination a:hover {
    border-color: var(--gl-green);
    color: var(--gl-green);
}
.pagination .current {
    background: var(--gl-green);
    color: #fff;
    border-color: var(--gl-green);
}

/* ---------- About Page ---------- */
.about-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 48px 0;
}
.timeline {
    position: relative;
    padding-left: 32px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gl-border);
}
.timeline-item {
    position: relative;
    margin-bottom: 32px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gl-green);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--gl-green);
}
.timeline-year {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gl-green);
    margin-bottom: 4px;
}
.timeline-content h4 {
    margin-bottom: 4px;
}
.timeline-content p {
    color: var(--gl-text-light);
    font-size: .92rem;
}

/* Materials Grid */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 20px;
}
.material-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: transform .3s ease, box-shadow .3s ease;
}
.material-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 24px rgba(0,0,0,.12);
}
.material-img {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--gl-bg-alt);
}
.material-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.material-card:hover .material-img img {
    transform: scale(1.05);
}
.material-card h4 {
    padding: 16px 16px 6px;
    font-size: 1.1rem;
    color: var(--gl-text);
}
.material-card p {
    padding: 0 16px 20px;
    font-size: .9rem;
    color: var(--gl-text-light);
    line-height: 1.6;
}
@media (max-width: 576px) {
    .materials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .material-card h4 { font-size: 1rem; padding: 10px 10px 4px; }
    .material-card p { font-size: .82rem; padding: 0 10px 14px; }
}

/* Factory Gallery */
.factory-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.factory-gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}
.factory-gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform .4s ease;
}
.factory-gallery-item:hover img {
    transform: scale(1.05);
}
.factory-gallery-item .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.7));
    color: #fff;
    padding: 20px 16px 12px;
    font-size: .9rem;
    font-weight: 500;
}

/* Certifications */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.cert-item {
    text-align: center;
    padding: 24px;
    border: 1px solid var(--gl-border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}
.cert-item:hover {
    border-color: var(--gl-green);
    box-shadow: var(--shadow-sm);
}
.cert-item .cert-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}
.cert-item h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}
.cert-item p {
    font-size: .82rem;
    color: var(--gl-text-light);
}

/* QC Steps */
.qc-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.qc-step {
    text-align: center;
    position: relative;
}
.qc-step-number {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gl-green);
    color: #fff;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 700;
}
.qc-step h4 {
    margin-bottom: 6px;
    font-size: 1rem;
}
.qc-step p {
    font-size: .85rem;
    color: var(--gl-text-light);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--gl-bg-dark);
    color: #aaa;
    padding: 56px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 18px;
    font-weight: 600;
}
.footer-col p {
    font-size: .88rem;
    color: #999;
    margin-bottom: 12px;
}
.footer-col ul {
    list-style: none;
    padding: 0;
}
.footer-col ul li {
    margin-bottom: 8px;
}
.footer-col ul li a {
    font-size: .88rem;
    color: #999;
}
.footer-col ul li a:hover {
    color: var(--gl-green-light);
}
.footer-contact-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: .88rem;
    color: #999;
}
.footer-contact-item .icon {
    color: var(--gl-green-light);
    flex-shrink: 0;
}
.footer-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}
.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #444;
    border-radius: 50%;
    color: #aaa;
    font-size: 1rem;
    transition: var(--transition);
}
.footer-social a:hover {
    background: var(--gl-green);
    border-color: var(--gl-green);
    color: #fff;
}
.footer-bottom {
    border-top: 1px solid #3a3a3a;
    padding: 20px 0;
    text-align: center;
    font-size: .82rem;
    color: #777;
}
.footer-bottom a { color: #999; }

/* ---------- WhatsApp Float ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 4px 16px rgba(37,211,102,.4);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}
@keyframes pulse {
    0% { box-shadow: 0 4px 16px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,.3); }
    70% { box-shadow: 0 4px 16px rgba(37,211,102,.4), 0 0 0 16px rgba(37,211,102,0); }
    100% { box-shadow: 0 4px 16px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Cookie Banner ---------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gl-bg-dark);
    color: #ddd;
    padding: 16px 24px;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    transform: translateY(100%);
    transition: transform .3s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p {
    font-size: .88rem;
    margin: 0;
    color: #aaa;
}
.cookie-banner a { color: var(--gl-green-light); }
.cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* ---------- Admin Panel ---------- */
.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}
.admin-sidebar {
    background: var(--gl-bg-dark);
    color: #ddd;
    padding: 24px 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.admin-sidebar .logo {
    padding: 0 24px;
    margin-bottom: 24px;
    color: #fff;
}
.admin-nav { list-style: none; padding: 0; }
.admin-nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    color: #aaa;
    font-size: .92rem;
    transition: var(--transition);
}
.admin-nav li a:hover,
.admin-nav li a.active {
    background: rgba(255,255,255,.06);
    color: #fff;
    border-left: 3px solid var(--gl-green);
}
.admin-main {
    padding: 32px;
    background: var(--gl-bg-alt);
    overflow-y: auto;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.admin-header h1 {
    font-size: 1.4rem;
}

.admin-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
}
.admin-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--gl-text-light);
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 2px solid var(--gl-border);
}
.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gl-border-light);
    font-size: .9rem;
}
.admin-table tr:hover {
    background: var(--gl-bg-alt);
}
.admin-table img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: .78rem;
    font-weight: 500;
}
.status-new { background: #dbeafe; color: #1e40af; }
.status-read { background: #fef3c7; color: #92400e; }
.status-replied { background: #d1fae5; color: #065f46; }

.action-btn {
    padding: 4px 10px;
    border: 1px solid var(--gl-border);
    border-radius: var(--radius-sm);
    font-size: .8rem;
    cursor: pointer;
    background: #fff;
    color: var(--gl-text);
    transition: var(--transition);
    margin-right: 4px;
}
.action-btn:hover {
    border-color: var(--gl-green);
    color: var(--gl-green);
}
.action-btn.danger:hover {
    border-color: #e53e3e;
    color: #e53e3e;
}

/* Admin Login */
.admin-login {
    max-width: 400px;
    margin: 80px auto;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-md);
}
.admin-login h1 {
    text-align: center;
    margin-bottom: 24px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 32px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--gl-text-light);
}

/* ---------- Search Bar ---------- */
.search-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px 24px;
    box-shadow: var(--shadow-md);
    z-index: 1100;
    transform: translateY(-100%);
    transition: transform .3s ease;
}
.search-bar.show { transform: translateY(0); }
.search-bar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    gap: 12px;
    align-items: center;
}
.search-bar input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--gl-green);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    outline: none;
}
.search-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gl-text-light);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .main-nav { display: none; }
    .mobile-toggle { display: block; }
    .header-actions .lang-btn { display: none; }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .about-grid, .about-hero {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .products-layout {
        grid-template-columns: 1fr;
    }
    .products-sidebar {
        position: static;
    }
    .features-grid, .testimonials-grid, .stats-grid, .qc-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hot-products-grid, .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .products-grid-full {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }

    .hero { min-height: 360px; }
    .hero-content h1 { font-size: 1.8rem; }
    .hero-content p { font-size: 1rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }

    .section { padding: 36px 0; }

    .hot-products-grid, .product-grid, .products-grid-full {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .product-card-info { padding: 10px 12px; }
    .product-card-name { font-size: .82rem; }
    .product-card-code { font-size: .72rem; }

    .features-grid, .testimonials-grid, .stats-grid, .qc-steps {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

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

    .factory-gallery {
        grid-template-columns: 1fr;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }
    .admin-sidebar {
        position: static;
        height: auto;
    }
    .admin-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        padding: 0 16px;
    }
    .admin-nav li a {
        padding: 8px 12px;
        font-size: .82rem;
    }

    .category-header h2 { font-size: 1.1rem; }
    .section-title-centered h2 { font-size: 1.4rem; }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .whatsapp-float {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
        bottom: 16px;
        right: 16px;
    }
}

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

    .hero-content h1 { font-size: 1.5rem; }

    .inquiry-form, .contact-info-card {
        padding: 20px;
    }

    .logo .logo-text small { display: none; }
}

/* ---------- Utility ---------- */
.hidden { display: none !important; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }
.fade-in {
    animation: fadeIn .5s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
