/* ================================================================
   GuardWe Industry Theme - Main Stylesheet
   Design System: #01b172 accent green, Inter font, 1600px max-width
   Inspired by Guardwe.com B2B layout
   ================================================================ */

/* ── CSS Variables ───────────────────────────────────────────── */
:root {
    --green: #01b172;
    --green-dark: #01905d;
    --green-light: rgba(1, 177, 114, 0.1);
    --white: #ffffff;
    --black: #000000;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --text-light: #cccccc;
    --bg-light: #f5f7fa;
    --bg-dark: #1a1a2e;
    --border-color: #e5e5e5;
    --border-light: #f0f0f0;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
    --font-primary: 'Inter', 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* ── Reset & Base ���───────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: var(--transition); }
a:hover { color: var(--green); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

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

/* ── Typography ──────────────────────────────────────────────── */
.section-title {
    font-size: 4.6rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}
.section-title em { color: var(--green); font-style: normal; }
.section-title-light { color: var(--white); }
.section-subtitle {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
}
.section-divider {
    width: 85px;
    height: 3px;
    background: var(--green);
    margin: 25px 0 23px;
}
.text-center .section-divider { margin: 25px auto 23px; }
.section-desc {
    font-size: 2rem;
    line-height: 3.6rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}
.section-desc-light { color: rgba(255,255,255,0.8); }
.section-header { margin-bottom: 50px; }
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    font-size: 1.6rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
}
.btn-lg { padding: 14px 40px; font-size: 1.8rem; }
.btn-green {
    background: var(--green);
    color: var(--white);
}
.btn-green:hover { background: var(--green-dark); color: var(--white); }
.btn-outline-green {
    color: var(--green);
    border-color: var(--green);
}
.btn-outline-green:hover { background: var(--green); color: var(--white); }
.btn-outline-white {
    color: var(--white);
    border-color: var(--white);
}
.btn-outline-white:hover { background: var(--white); color: var(--text-primary); }
.btn-block { width: 100%; justify-content: center; }

/* ── HEADER ──────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* Header Top */
.header-top { border-bottom: 1px solid var(--border-light); }
.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding: 0 30px;
    max-width: 1600px;
    margin: 0 auto;
}
.header-logo img { width: 250px; height: auto; }
.custom-logo-link { display: inline-block; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switch {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    padding: 4px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.header-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-primary);
    transition: var(--transition);
}
.header-search-toggle:hover { color: var(--green); background: var(--green-light); }

/* Search Dropdown */
.header-search-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow-md);
    z-index: 999;
}
.header-search-dropdown.active { display: block; }
.header-search-dropdown form {
    display: flex;
    gap: 10px;
}
.header-search-dropdown input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1.6rem;
    outline: none;
    transition: var(--transition);
}
.header-search-dropdown input:focus { border-color: var(--green); }
.header-search-dropdown button {
    padding: 12px 24px;
    background: var(--green);
    color: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
}

/* Main Navigation */
.header-nav {
    background: var(--white);
}
.header-nav .container {
    display: flex;
    justify-content: center;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
    display: block;
    padding: 14px 24px;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-parent > a {
    color: var(--green);
}

/* Submenu */
.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 240px;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-sm);
    padding: 12px 0;
    z-index: 999;
}
.nav-menu > li:hover > .sub-menu { display: block; }
.nav-menu .sub-menu li a {
    display: block;
    padding: 10px 24px;
    font-size: 1.4rem;
    color: var(--text-secondary);
}
.nav-menu .sub-menu li a:hover { color: var(--green); background: var(--bg-light); }

/* Mobile Toggle */
.header-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.header-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: var(--white);
    z-index: 1100;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: var(--shadow-lg);
}
.mobile-menu.active { right: 0; }
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
}
.mobile-menu-header img { width: 160px; }
.mobile-menu-close {
    font-size: 2.4rem;
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1050;
}
.mobile-menu-overlay.active { display: block; }

.nav-menu-mobile li { border-bottom: 1px solid var(--border-light); }
.nav-menu-mobile li a {
    display: block;
    padding: 14px 20px;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
}
.nav-menu-mobile li a:hover { color: var(--green); }

/* ================================================================
   SECTION 1: BANNER
   ================================================================ */
.section-banner { position: relative; }
.banner-swiper { width: 100%; }

.banner-slide {
    position: relative;
    min-height: 550px;
    height: calc(100vh - 140px);
    max-height: 830px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}
.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.1) 100%);
}
.banner-slide .container {
    position: relative;
    z-index: 2;
    width: 100%;
}
.banner-content { max-width: 880px; }
.banner-title {
    font-size: 5rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
}
.banner-title em { color: var(--green); font-style: normal; }
.banner-subtitle {
    font-size: 2.5rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    line-height: 1.5;
    margin-bottom: 30px;
}
.banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--green);
    border: 2px solid var(--green);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.banner-btn:hover {
    background: var(--green);
    color: var(--white);
}

/* Banner Navigation */
.banner-prev, .banner-next {
    color: var(--white) !important;
    width: 50px;
    height: 50px;
    transition: var(--transition);
}
.banner-prev:hover, .banner-next:hover { color: var(--green) !important; }
.banner-prev::after, .banner-next::after { font-size: 2rem !important; font-weight: bold; }

.banner-control-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    gap: 30px;
}
.banner-autoplay-toggle {
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}
.banner-autoplay-toggle:hover { color: var(--green); }
.banner-pagination {
    position: static !important;
    width: auto !important;
}
.banner-pagination .swiper-pagination-bullet {
    background: rgba(255,255,255,0.5);
    opacity: 1;
    width: 10px;
    height: 10px;
    margin: 0 5px;
}
.banner-pagination .swiper-pagination-bullet-active { background: var(--green); }

/* ================================================================
   SECTION 2: BRAND INTRO + CATEGORIES
   ================================================================ */
.brand-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.brand-cat-card {
    position: relative;
    min-height: 380px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-light);
    transition: transform 0.4s ease;
}
.brand-cat-card:hover { transform: translateY(-5px); }

.brand-cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.1) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 40px 30px;
    text-align: center;
}
.brand-cat-icon { font-size: 4rem; margin-bottom: 12px; }
.brand-cat-title { font-size: 2.4rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.brand-cat-desc { font-size: 1.4rem; color: rgba(255,255,255,0.7); margin-bottom: 20px; line-height: 1.6; }
.brand-cat-btn {
    display: inline-block;
    padding: 8px 24px;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--white);
    border: 2px solid var(--white);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.brand-cat-btn:hover { background: var(--white); color: var(--text-primary); }

/* ================================================================
   SECTION 3: PRODUCTS SLIDER
   ================================================================ */
.section-products { background: var(--bg-light); }

.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.product-card-img {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}
.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-info {
    padding: 20px;
}
.product-card-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.product-card-title a { color: var(--text-primary); }
.product-card-title a:hover { color: var(--green); }
.product-card-desc {
    font-size: 1.4rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--green);
}
.product-card-btn:hover { gap: 8px; }
.products-swiper { padding-bottom: 50px; }
.products-pagination .swiper-pagination-bullet-active { background: var(--green); }

/* Products Grid (archive) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 40px;
}
.product-filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0;
}
.filter-tab {
    display: inline-block;
    padding: 8px 20px;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    transition: var(--transition);
}
.filter-tab:hover, .filter-tab.active { color: var(--white); background: var(--green); border-color: var(--green); }

/* ================================================================
   SECTION 4: PROJECTS
   ================================================================ */
.projects-wrapper {
    display: flex;
    min-height: 600px;
}
.projects-info {
    flex: 0 0 35%;
    background: var(--black);
    display: flex;
    align-items: center;
    padding: 80px 50px;
}
.projects-info-inner { max-width: 450px; }
.projects-info .section-divider { margin: 25px 0 23px; }
.projects-info .section-desc { margin: 0 0 30px 0; }
.projects-slider-wrap { flex: 0 0 65%; position: relative; padding: 40px; background: #111; }
.projects-swiper { height: 100%; }
.project-card {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.project-card-img { aspect-ratio: 4 / 3; overflow: hidden; }
.project-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.project-card:hover .project-card-img img { transform: scale(1.08); }
.project-card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 600;
}
.projects-nav {
    position: absolute;
    bottom: 60px;
    right: 60px;
    display: flex;
    gap: 10px;
    z-index: 10;
}
.projects-prev, .projects-next {
    position: static !important;
    width: 40px !important;
    height: 40px !important;
    color: var(--white) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    border-radius: 50% !important;
    margin: 0 !important;
}
.projects-prev::after, .projects-next::after { font-size: 1.2rem !important; }
.projects-prev:hover, .projects-next:hover { background: var(--green); border-color: var(--green) !important; }

/* ================================================================
   SECTION 5: ABOUT + COUNTERS
   ================================================================ */
.about-grid {
    display: flex;
    gap: 80px;
    align-items: center;
}
.about-image {
    flex: 0 0 45%;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.about-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-img-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: var(--text-tertiary);
}
.about-content { flex: 1; }

/* Counters */
.counters-row {
    display: flex;
    justify-content: space-around;
    margin-top: 80px;
    padding: 40px 0;
    border-top: 1px solid var(--border-light);
}
.counter-item { text-align: center; }
.counter-num {
    font-size: 6rem;
    font-weight: 900;
    color: var(--green);
    line-height: 1.1;
}
.counter-label {
    font-size: 2.4rem;
    color: var(--text-secondary);
    margin-top: 10px;
}

/* ================================================================
   SECTION 6: NEWS CENTER
   ================================================================ */
.section-news { background: var(--bg-light); }

.news-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.news-card-img {
    display: block;
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}
.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-date {
    position: absolute;
    bottom: 0;
    left: 0;
    background: rgba(0,0,0,0.75);
    color: var(--white);
    padding: 8px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}
.news-date-day { font-size: 2.4rem; font-weight: 800; }
.news-date-mon { font-size: 1.2rem; text-transform: uppercase; }
.news-card-info { padding: 20px; }
.news-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}
.news-card-title a { color: var(--text-primary); }
.news-card-title a:hover { color: var(--green); }
.news-card-desc {
    font-size: 1.4rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-btn {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--green);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.news-card-btn:hover { gap: 8px; }
.news-swiper { padding-bottom: 50px; }
.news-pagination .swiper-pagination-bullet-active { background: var(--green); }

/* ================================================================
   SECTION 7: CONTACT FORM
   ================================================================ */
.contact-grid {
    display: flex;
    gap: 60px;
    margin-top: 50px;
}
.contact-info { flex: 0 0 330px; }
.contact-form-wrap { flex: 1; }

.contact-info-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    margin-bottom: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--green);
}
.contact-icon { flex-shrink: 0; margin-top: 3px; }
.contact-info-card h4 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.contact-info-card p { font-size: 1.4rem; color: var(--text-secondary); }

.contact-form { }
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.form-group {
    flex: 1;
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    font-size: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition);
    color: var(--text-primary);
    background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--green);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row > .form-group + .form-group { margin-left: 0; }

.form-message {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 1.4rem;
    display: none;
}
.form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
    background: #111;
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
}
.footer-logo { filter: brightness(10); margin-bottom: 15px; }
.footer-logo img { width: 180px; }
.footer-desc {
    font-size: 1.4rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.5);
    margin-bottom: 20px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}
.footer-social a:hover { background: var(--green); color: var(--white); }

.footer-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}
.footer-menu li { margin-bottom: 10px; }
.footer-menu li a {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.5);
    transition: var(--transition);
}
.footer-menu li a:hover { color: var(--green); }
.footer-contact-list li {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}
.footer-contact-list li a { color: rgba(255,255,255,0.5); }
.footer-contact-list li a:hover { color: var(--green); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 25px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 1.3rem;
    color: rgba(255,255,255,0.4);
}

/* ================================================================
   SIDE ACTIONS (Social + Back to Top)
   ================================================================ */
.side-actions {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.side-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--green);
    color: var(--white);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}
.side-action-btn:hover { background: var(--green-dark); color: var(--white); transform: scale(1.1); }
.side-email { background: #0077B5; }
.side-top { opacity: 0; visibility: hidden; }
.side-top.visible { opacity: 1; visibility: visible; }

/* ================================================================
   SINGLE PRODUCT PAGE
   ================================================================ */
.product-detail-grid {
    display: flex;
    gap: 50px;
}
.product-gallery { flex: 0 0 48%; }
.product-info { flex: 1; }
.product-main-img { border-radius: var(--radius-md); overflow: hidden; margin-bottom: 15px; }
.product-featured-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.product-thumbs { display: flex; gap: 10px; }
.product-thumb { width: 80px; height: 60px; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; border: 2px solid transparent; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb:hover { border-color: var(--green); }

.product-title { font-size: 3.2rem; font-weight: 800; margin-bottom: 10px; }
.product-cats { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.product-cat-tag {
    display: inline-block;
    padding: 4px 14px;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--green);
    background: var(--green-light);
    border-radius: 20px;
}
.product-description { font-size: 1.6rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 30px; }

.product-specs { margin-bottom: 30px; }
.product-specs h3 { font-size: 2rem; font-weight: 700; margin-bottom: 15px; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--border-light); }
.specs-table td {
    padding: 10px 0;
    font-size: 1.4rem;
}
.specs-table td:first-child { font-weight: 600; color: var(--text-primary); width: 40%; }
.specs-table td:last-child { color: var(--text-secondary); }

.product-cta { display: flex; gap: 12px; margin-top: 30px; }
.related-products { margin-top: 80px; }
.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 40px;
}

/* ================================================================
   SINGLE POST / PAGE
   ================================================================ */
.single-post-meta {
    display: flex;
    gap: 20px;
    font-size: 1.4rem;
    color: var(--text-tertiary);
    margin-bottom: 15px;
}
.single-post-thumb {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 30px;
}
.single-post-thumb img { width: 100%; }
.entry-content {
    font-size: 1.6rem;
    line-height: 1.9;
    color: var(--text-secondary);
}
.entry-content h2 { font-size: 2.8rem; font-weight: 800; color: var(--text-primary); margin: 40px 0 15px; }
.entry-content h3 { font-size: 2.2rem; font-weight: 700; color: var(--text-primary); margin: 30px 0 12px; }
.entry-content p { margin-bottom: 20px; }
.entry-content ul, .entry-content ol { margin: 0 0 20px 20px; }
.entry-content li { margin-bottom: 8px; list-style: disc; }
.entry-content img { border-radius: var(--radius-md); margin: 30px 0; }
.entry-content blockquote {
    border-left: 4px solid var(--green);
    padding: 15px 20px;
    margin: 30px 0;
    background: var(--bg-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 1.8rem;
    color: var(--text-primary);
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 40px;
}
.post-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.post-card-img {
    display: block;
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}
.post-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.post-card-date {
    position: absolute;
    bottom: 0;
    left: 0;
    background: rgba(0,0,0,0.7);
    color: var(--white);
    padding: 6px 12px;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}
.post-card-date small { display: block; font-size: 1.1rem; font-weight: 400; }
.post-card-info { padding: 20px; }
.post-card-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 10px; }
.post-card-title a { color: var(--text-primary); }
.post-card-title a:hover { color: var(--green); }
.post-card-desc { font-size: 1.4rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 15px; }
.post-card-btn { font-size: 1.4rem; font-weight: 600; color: var(--green); }

/* Pagination */
.navigation.pagination { margin-top: 50px; text-align: center; }
.nav-links { display: inline-flex; gap: 5px; }
.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 1.4rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: var(--transition);
}
.nav-links .page-numbers.current,
.nav-links .page-numbers:hover {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* 1400px - Large desktop */
@media (max-width: 1400px) {
    .section-title { font-size: 3.6rem; }
    .banner-title { font-size: 4rem; }
    .banner-subtitle { font-size: 2rem; }
    .brand-category-grid { grid-template-columns: repeat(2, 1fr); }
    .counter-num { font-size: 5rem; }
    .counter-label { font-size: 2rem; }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .related-products-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 1024px - Tablet landscape */
@media (max-width: 1024px) {
    .header-top-inner { height: 60px; }
    .header-logo img { width: 180px; }
    .header-nav { display: none; }
    .header-mobile-toggle { display: flex; }
    .section-title { font-size: 3rem; }
    .section-subtitle { font-size: 2.2rem; }
    .section-desc { font-size: 1.6rem; line-height: 2.8rem; }
    .banner-slide { min-height: 400px; height: auto; }
    .banner-title { font-size: 3.2rem; }
    .banner-subtitle { font-size: 1.8rem; }
    .section-padding { padding: 50px 0; }
    .about-grid { flex-direction: column; gap: 40px; }
    .about-image { flex: none; }
    .projects-wrapper { flex-direction: column; }
    .projects-info { flex: none; padding: 50px 30px; }
    .projects-slider-wrap { flex: none; min-height: 400px; }
    .contact-grid { flex-direction: column; }
    .contact-info { flex: none; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .product-detail-grid { flex-direction: column; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .related-products-grid { grid-template-columns: repeat(2, 1fr); }
    .counters-row { flex-wrap: wrap; gap: 30px; }
}

/* 768px - Tablet portrait */
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .header-top-inner { height: 55px; }
    .header-logo img { width: 140px; }
    .section-title { font-size: 2.4rem; }
    .section-subtitle { font-size: 1.8rem; }
    .section-desc { font-size: 1.4rem; line-height: 2.4rem; }
    .section-divider { width: 60px; height: 2px; margin: 15px 0; }
    .text-center .section-divider { margin: 15px auto; }
    .section-header { margin-bottom: 30px; }
    .section-padding { padding: 40px 0; }
    .banner-slide { min-height: 320px; }
    .banner-title { font-size: 2.6rem; }
    .banner-subtitle { font-size: 1.5rem; }
    .banner-btn { padding: 8px 20px; font-size: 1.4rem; }
    .brand-category-grid { grid-template-columns: 1fr; }
    .brand-cat-card { min-height: 280px; }
    .products-grid { grid-template-columns: 1fr 1fr; }
    .posts-grid { grid-template-columns: 1fr; }
    .related-products-grid { grid-template-columns: 1fr 1fr; }
    .form-row { flex-direction: column; gap: 0; }
    .product-cta { flex-direction: column; }
    .product-title { font-size: 2.4rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .side-actions { right: 10px; bottom: 60px; }
    .side-action-btn { width: 38px; height: 38px; }
    .lang-switch { display: none; }
}

/* 480px - Mobile */
@media (max-width: 480px) {
    .header-logo img { width: 120px; }
    .section-title { font-size: 2rem; }
    .banner-title { font-size: 2rem; }
    .banner-slide { min-height: 250px; }
    .banner-control-bar { padding: 10px 15px; }
    .btn { padding: 10px 20px; font-size: 1.4rem; }
    .products-grid { grid-template-columns: 1fr; }
    .related-products-grid { grid-template-columns: 1fr; }
    .counter-num { font-size: 3.6rem; }
    .counter-label { font-size: 1.6rem; }
    .entry-content h2 { font-size: 2rem; }
    .entry-content h3 { font-size: 1.6rem; }
}

/* ── WordPress Core Alignments ────────────────────────────────── */
.alignleft { float: left; margin-right: 20px; margin-bottom: 20px; }
.alignright { float: right; margin-left: 20px; margin-bottom: 20px; }
.aligncenter { display: block; margin: 0 auto 20px; }
.wp-caption { max-width: 100%; margin-bottom: 20px; }
.wp-caption-text { font-size: 1.3rem; color: var(--text-tertiary); text-align: center; margin-top: 8px; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; }

/* ── Utility ─────────────────────────────────────────────────── */
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
