/* ================================================
   reign666.com — Matching Original Template
   Primary: #00a651 (Green, v5.3)
   Font: Inter (fallback to original Jost style)
   ================================================ */

:root {
    --primary: #00a651;
    --primary-rgb: 0 166 81;
    --primary-700: #008f45;
    --primary-800: #007a3a;
    --yellow: #fbbf24;
    --yellow-600: #f59e0b;
    --dark: #111827;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --black: #000000;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================================
   Typography
   ================================================ */
h1, h2, h3, h4 { color: var(--gray-900); font-weight: 700; line-height: 1.2; }
.text-center { text-align: center; }

.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 12px; }
.section-title p { color: var(--gray-500); max-width: 700px; margin: 0 auto; font-size: 1rem; }

.section { padding: 80px 0; }
.section-bg { background: var(--gray-50); }
.section-footer { text-align: center; margin-top: 48px; }

.no-results { text-align: center; padding: 40px 20px; color: var(--gray-500); }
.no-results h3 { font-size: 1.25rem; margin-bottom: 8px; }
.img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: var(--gray-200); color: var(--gray-400);
}
.img-placeholder svg { width: 48px; height: 48px; max-width: 100%; max-height: 100%; }

/* ================================================
   Buttons
   ================================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    font-weight: 600; font-size: 14px;
    padding: 10px 28px; border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer; border: none;
}
.btn-lg { padding: 13px 36px; font-size: 16px; }

.btn-primary {
    background: var(--primary); color: var(--white);
    box-shadow: 0 2px 8px rgba(0,166,81,0.3);
}
.btn-primary:hover {
    background: var(--primary-800);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,166,81,0.4);
}

.btn-yellow {
    background: var(--yellow); color: var(--gray-900);
    font-weight: 700;
}
.btn-yellow:hover { background: var(--yellow-600); }

.btn-outline-yellow {
    display: inline-flex; align-items: center;
    background: transparent; color: var(--yellow);
    border: 2px solid var(--yellow);
    padding: 10px 24px; border-radius: 50px;
    font-weight: 600; font-size: 13px;
    width: fit-content; transition: all 0.3s ease;
}
.btn-outline-yellow:hover { background: var(--yellow); color: var(--gray-900); }

/* ================================================
   Header / Navigation
   ================================================ */
.top-bar {
    background: var(--primary);
    color: var(--white);
    font-size: 13px;
    padding: 12px 0;
    transition: all 0.3s ease;
}
.top-bar .container {
    display: flex; justify-content: space-between; align-items: center;
}
.top-bar-left { display: flex; gap: 24px; }
.top-bar-left span { display: flex; align-items: center; gap: 6px; }
.top-bar-right { display: flex; align-items: center; gap: 24px; }
.top-bar-action {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--white); opacity: 0.9;
    font-size: 13px; text-decoration: none;
}
.top-bar-action:hover { opacity: 1; }
.lang-switcher { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.lang-switcher a { color: rgba(255,255,255,0.8); text-decoration: none; font-weight: 500; }
.lang-switcher a:hover, .lang-switcher a.active { color: var(--white); font-weight: 700; }
.lang-switcher span { color: rgba(255,255,255,0.4); }

.site-header {
    position: fixed; top: 36px; left: 0; right: 0; z-index: 1000;
    background: transparent;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
    top: 0;
    border-bottom-color: rgba(255,255,255,0.1);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 0;
}
.logo { flex-shrink: 0; }
.logo-text { font-size: 1.25rem; font-weight: 700; color: var(--white); }
.logo-img { height: 40px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 40px; }
.main-nav .nav-link {
    color: var(--white); font-weight: 500; font-size: 14px;
    transition: color 0.3s ease; position: relative;
    display: inline-flex; align-items: center; gap: 4px;
}
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--primary); }
.dropdown-chevron { opacity: 0.7; transition: transform 0.2s ease; }
.nav-item:hover .dropdown-chevron { transform: rotate(180deg); }
.nav-cta { margin-left: 8px; }

/* Dropdown Menu */
.nav-item { position: relative; }
.nav-item.has-dropdown .nav-link { cursor: pointer; }
.dropdown-menu {
    position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
    min-width: 220px; background: var(--white); border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15); padding: 8px 0;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: all 0.2s ease; z-index: 1000;
}
.dropdown-menu::before {
    content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
    width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent;
    border-bottom: 6px solid var(--white);
}
.nav-item:hover .dropdown-menu {
    opacity: 1; visibility: visible; pointer-events: auto;
}
.dropdown-link {
    display: block; padding: 10px 20px; font-size: 13px;
    color: var(--gray-700); font-weight: 500;
    transition: all 0.2s ease; white-space: nowrap;
}
.dropdown-link:hover {
    background: var(--gray-50); color: var(--primary);
}

/* Language Switcher in Nav */
.nav-lang-switcher {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 500; margin-left: 4px;
}
.nav-lang-switcher a {
    color: rgba(255,255,255,0.6); text-decoration: none;
    transition: color 0.2s ease; padding: 2px 4px;
}
.nav-lang-switcher a:hover, .nav-lang-switcher a.active {
    color: var(--primary);
}
.nav-lang-switcher span { color: rgba(255,255,255,0.3); }

.mobile-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; padding: 4px;
}
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; }

.mobile-nav {
    display: none; flex-direction: column;
    position: fixed; top: 0; right: 0; width: 320px; height: 100vh;
    background: rgba(0,0,0,0.95); backdrop-filter: blur(10px);
    padding: 80px 24px 24px; z-index: 2000; gap: 16px;
    transform: translateX(100%); transition: transform 0.3s ease;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-link { color: var(--white); font-size: 18px; font-weight: 500; }
.mobile-link.active { color: var(--primary); }
.mobile-lang-switcher {
    display: flex; align-items: center; gap: 10px;
    font-size: 16px; font-weight: 500; margin-top: 8px;
    padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-lang-switcher a {
    color: rgba(255,255,255,0.6); text-decoration: none;
    transition: color 0.2s ease;
}
.mobile-lang-switcher a:hover, .mobile-lang-switcher a.active { color: var(--primary); }
.mobile-lang-switcher span { color: rgba(255,255,255,0.3); }

/* ================================================
   Hero Section (full-screen)
   ================================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    background: #0a0a0a;
}
.hero-bg {
    position: absolute; inset: 0;
    background: transparent;
}
.hero-bg video, .hero-bg img.hero-video-fallback {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-bg img.hero-video-fallback { z-index: 0; }
.hero-bg video { z-index: 1; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.3) 100%);
}
.hero-content {
    position: relative; z-index: 2;
    text-align: center; padding: 0 24px;
    max-width: 900px;
}
.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    line-height: 1.05;
}
.hero-desc {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: rgba(255,255,255,0.8);
    max-width: 700px;
    margin: 0 auto 36px;
    line-height: 1.6;
}
.hero-content .btn { margin-top: 8px; }

/* ================================================
   Grid Layouts
   ================================================ */
.grid { display: grid; gap: 24px; max-width: 1100px; margin: 0 auto; justify-content: center; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); gap: 30px; }

/* Grid fallback: ensure cards don't blow up if grid fails */
.grid-3 > .cat-card { min-width: 0; }
.grid-4 > .product-card { min-width: 0; }
.grid-4 > .news-card { min-width: 0; }
.grid-5 > .feature-item { min-width: 0; }

/* ================================================
   Category Cards (3-col)
   ================================================ */
.cat-card { display: block; height: 300px; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); transition: all 0.3s ease; position: relative; }
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.cat-card-inner { position: relative; display: block; height: 100%; }
.cat-card-img { position: absolute; inset: 0; overflow: hidden; background: var(--gray-100); }
.cat-card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.cat-card:hover .cat-card-img img { transform: scale(1.08); }
.cat-card-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}
.cat-card-text {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; z-index: 2;
}
.cat-card-text h3 {
    color: var(--white); font-size: 1.25rem; font-weight: 700; margin-bottom: 8px;
}
.cat-card-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--white); font-size: 14px; font-weight: 500;
    transition: color 0.3s ease;
}
.cat-card:hover .cat-card-link { color: var(--primary); }
.cat-card .img-placeholder { position: absolute; inset: 0; height: 100%; background: var(--gray-200); }

/* ================================================
   Product Advantages (alternating 2-col)
   ================================================ */
.advantages { display: flex; flex-direction: column; gap: 64px; }
.advantage-row {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 48px; align-items: center;
    max-width: 1100px; margin: 0 auto;
}
.advantage-img {
    border-radius: 12px; overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--gray-200); min-height: 320px;
}
.advantage-img img { width: 100%; height: 320px; object-fit: cover; }
.advantage-text h3 { font-size: 1.5rem; margin-bottom: 16px; }
.advantage-text p { color: var(--gray-600); margin-bottom: 24px; line-height: 1.7; }
/* reverse: text first, image second on desktop */
.advantage-reverse { direction: rtl; }
.advantage-reverse > * { direction: ltr; }

/* ================================================
   Product Cards (4-col)
   ================================================ */
.product-card {
    display: block; background: var(--white);
    border-radius: 8px; overflow: hidden;
    box-shadow: var(--shadow-sm); transition: all 0.3s ease;
}
.product-card:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-lg);
}
.product-card-img { height: 280px; background: var(--gray-100); overflow: hidden; position: relative; }
.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-body { padding: 16px; text-align: center; }
.product-card-body h3 {
    font-size: 0.9rem; font-weight: 600; color: var(--gray-800);
    margin-bottom: 4px; line-height: 1.3;
}
.product-card-body p { font-size: 0.8rem; color: var(--gray-500); }
.product-card .img-placeholder { position: absolute; inset: 0; height: 100%; }

/* Product card inner elements (products.php) */
.product-card-tag {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    background: var(--primary); color: var(--white);
    font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 4px;
}
.product-card-title {
    font-size: 0.9rem; font-weight: 600; color: var(--gray-800);
    margin-bottom: 4px; line-height: 1.3;
}
.product-card-desc {
    font-size: 0.8rem; color: var(--gray-500);
    margin-bottom: 10px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card-tags {
    display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-bottom: 10px;
}
.product-card-tag-small {
    font-size: 10px; background: var(--gray-100); color: var(--gray-600);
    padding: 2px 8px; border-radius: 3px;
}
.product-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 12px; border-top: 1px solid var(--gray-200);
}
.product-card-price {
    font-size: 1rem; font-weight: 700; color: var(--primary);
}
.product-card-btn { font-size: 12px; padding: 6px 16px; }

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

/* ================================================
   Page Header (inner pages banner)
   ================================================ */
.page-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--white); padding: 140px 0 80px; text-align: center;
    margin-top: 0;
    position: relative;
}
.page-header h1 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 8px; }
.page-header p { color: rgba(255,255,255,0.75); font-size: 1rem; max-width: 600px; margin: 0 auto 12px; }

/* Breadcrumb */
.breadcrumb { font-size: 13px; color: rgba(255,255,255,0.5); }
.breadcrumb a { color: rgba(255,255,255,0.7); transition: color 0.3s ease; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 8px; }

/* Section variants */
.section-light { background: var(--gray-50); }

/* Secondary button */
.btn-secondary {
    background: var(--white); color: var(--gray-700);
    border: 1px solid var(--gray-300);
}
.btn-secondary:hover { background: var(--gray-100); border-color: var(--primary); color: var(--primary); }

/* ================================================
   Pagination
   ================================================ */
.pagination {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin-top: 48px;
}
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 6px;
    font-size: 14px; font-weight: 500;
    border: 1px solid var(--gray-200);
    background: var(--white); color: var(--gray-600);
    transition: all 0.3s ease;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination span.current { background: var(--primary); border-color: var(--primary); color: var(--white); font-weight: 700; }
.pagination span.disabled { color: var(--gray-300); cursor: not-allowed; }

/* ================================================
   Contact Page
   ================================================ */
.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
.contact-info h2 { font-size: 1.5rem; margin-bottom: 24px; }
.contact-info-item {
    display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px;
}
.contact-info-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: rgba(var(--primary-rgb), 0.1); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex-shrink: 0;
}
.contact-info-item h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; color: var(--gray-800); }
.contact-info-item p { font-size: 0.9rem; color: var(--gray-600); }

.contact-form { background: var(--white); padding: 32px; border-radius: 10px; box-shadow: var(--shadow); }
.contact-form h3 { font-size: 1.3rem; margin-bottom: 20px; }

/* Form elements */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 500; font-size: 14px; color: var(--gray-700); margin-bottom: 6px; }
.form-group .required { color: #ef4444; }
.form-group input,
.form-group textarea {
    width: 100%; padding: 10px 14px; border: 1px solid var(--gray-200); border-radius: 6px;
    font-size: 14px; font-family: inherit; transition: border-color 0.3s ease;
    background: var(--white); color: var(--gray-800);
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1); }
.form-group textarea { min-height: 120px; resize: vertical; }

.form-msg { padding: 12px 16px; border-radius: 6px; font-size: 14px; margin-bottom: 16px; }
.form-msg.error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.form-msg.success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }

/* ================================================
   About Page
   ================================================ */
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.about-img { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--gray-200); min-height: 360px; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-content h2 { font-size: 1.75rem; margin-bottom: 16px; }
.about-content p { color: var(--gray-600); line-height: 1.7; margin-bottom: 16px; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.about-stat { text-align: center; padding: 20px; background: var(--gray-50); border-radius: 8px; }
.about-stat-num { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.about-stat-label { font-size: 0.8rem; color: var(--gray-500); margin-top: 4px; }

/* Article card (used on about page) */
.article-card {
    background: var(--white); border-radius: 8px;
    box-shadow: var(--shadow-sm); transition: all 0.3s ease;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ================================================
   Product Detail Page
   ================================================ */

/* Hero Banner */
.product-hero-banner {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.product-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(17,24,39,0.85) 0%, rgba(17,24,39,0.75) 100%);
}
.product-hero-content {
    position: relative; z-index: 1;
    padding: 80px 0 40px;
}
.product-hero-breadcrumb {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 16px;
}
.product-hero-breadcrumb a {
    color: rgba(255,255,255,0.8); transition: color 0.2s ease;
}
.product-hero-breadcrumb a:hover { color: #fff; }
.hero-sep { color: rgba(255,255,255,0.4); }
.hero-current { color: rgba(255,255,255,0.5); }
.product-hero-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700;
    color: #fff; margin: 0; line-height: 1.2;
}

/* Main Detail Layout */
.product-detail-section { padding-top: 60px; }
.product-detail-layout {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}

/* Gallery */
.product-gallery-wrapper {
    display: flex; gap: 16px; align-items: flex-start;
}
.product-thumb-list {
    display: flex; flex-direction: column; gap: 10px;
    flex-shrink: 0; width: 80px;
}
.product-thumb-list img {
    width: 80px; height: 80px; object-fit: cover;
    border-radius: 6px; cursor: pointer;
    border: 2px solid transparent; opacity: 0.7;
    transition: all 0.2s ease;
}
.product-thumb-list img:hover { opacity: 1; }
.product-thumb-list img.active {
    border-color: var(--primary); opacity: 1;
}
.product-main-image {
    flex: 1; border-radius: 10px; overflow: hidden;
    background: var(--gray-50); min-height: 400px;
}
.product-main-image img {
    width: 100%; height: 400px; object-fit: cover;
    display: block;
}
.product-main-image.no-image {
    display: flex; align-items: center; justify-content: center;
    color: #aaa; font-size: 5rem;
}

/* Right Side Info */
.product-detail-right {
    padding-top: 8px;
}
.product-tag-buttons {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.tag-btn {
    background: #e0f2fe; color: #0284c7;
    font-size: 12px; padding: 6px 14px; border-radius: 20px;
    font-weight: 500;
}
.product-title {
    font-size: 2rem; font-weight: 700; margin-bottom: 12px;
    color: var(--gray-900); line-height: 1.2;
}
.product-stock-status {
    display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.stock-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #22c55e; display: inline-block;
}
.stock-text {
    font-size: 14px; color: #22c55e; font-weight: 500;
}
.product-category-label {
    font-size: 14px; color: var(--gray-600); margin-bottom: 20px;
}
.product-actions-row {
    display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px;
}
.btn-price, .btn-details {
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-details {
    background: var(--white); color: var(--gray-700);
    border: 1px solid var(--gray-300);
}
.btn-details:hover {
    background: var(--gray-50); border-color: var(--gray-400);
}

/* Help Box */
.product-help-box {
    background: #f8fafc; border-radius: 10px; padding: 20px;
    border-left: 3px solid var(--primary); margin-bottom: 24px;
}
.product-help-box h4 {
    font-size: 1rem; font-weight: 600; margin-bottom: 8px;
    color: var(--gray-800);
}
.product-help-box p {
    font-size: 14px; color: var(--gray-600); line-height: 1.6;
    margin: 0;
}

/* Params Sidebar (right column) */
.product-params-sidebar {
    background: #f8fafc; border-radius: 10px; padding: 20px;
    border: 1px solid var(--gray-200);
}
.params-sidebar-title {
    font-size: 1rem; font-weight: 600; margin-bottom: 14px;
    color: var(--gray-800);
}
.params-sidebar-list { display: flex; flex-direction: column; gap: 10px; }
.params-sidebar-row {
    display: flex; gap: 8px; font-size: 13px;
    padding-bottom: 8px; border-bottom: 1px solid var(--gray-100);
}
.params-sidebar-row:last-child { border-bottom: none; padding-bottom: 0; }
.params-sidebar-key {
    font-weight: 600; color: var(--gray-700); min-width: 140px; flex-shrink: 0;
}
.params-sidebar-val { color: var(--gray-600); }
.params-sidebar-val.full { color: var(--gray-700); }
.params-sidebar-more {
    display: inline-block; margin-top: 10px;
    font-size: 13px; font-weight: 500; color: var(--primary);
    transition: color 0.2s ease;
}
.params-sidebar-more:hover { color: var(--primary-700); text-decoration: underline; }

/* Product Info Section */
.product-info-section {
    margin-top: 60px;
}
.info-section-title {
    font-size: 1.5rem; font-weight: 700; margin-bottom: 30px;
    color: var(--gray-900); padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-200);
}

/* Two-column info layout */
.product-info-two-col {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
.info-col-left, .info-col-right { min-width: 0; }

.info-block {
    margin-bottom: 40px;
}
.info-block-title {
    font-size: 1.15rem; font-weight: 600; margin-bottom: 16px;
    color: var(--gray-800);
}
.info-block-content {
    line-height: 1.8; color: var(--gray-700);
}
.desc-paragraph {
    margin-bottom: 16px;
}
.desc-paragraph:last-child { margin-bottom: 0; }

/* Params List */
.params-list {
    display: grid; gap: 4px;
}
.param-row {
    display: flex; gap: 12px; align-items: baseline;
    padding: 0; border-bottom: none; line-height: 1.7;
}
.param-key {
    font-weight: 400; color: var(--gray-700);
    min-width: 180px; flex-shrink: 0;
}
.param-val { color: var(--gray-600); }
.param-val.full { color: var(--gray-700); }

/* Related Products Section */
.related-products-section {
    margin-top: 60px;
}
.related-title {
    text-align: center; font-size: 1.5rem; font-weight: 700; margin-bottom: 30px;
    color: var(--gray-900);
}

/* Product Card enhancements */
.product-card-category {
    font-size: 12px; color: var(--primary); text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 6px; font-weight: 500;
}

/* Rich content area */
.page-content { max-width: 800px; }
.article-detail-content { line-height: 1.8; color: var(--gray-700); }
.article-detail-content img { max-width: 100%; border-radius: 8px; margin: 16px 0; }
.article-detail-content p { margin-bottom: 16px; }
.article-detail-content h2,
.article-detail-content h3 { margin: 24px 0 12px; }

/* Rich content area */
.page-content { max-width: 800px; }
.article-detail-content { line-height: 1.8; color: var(--gray-700); }
.article-detail-content img { max-width: 100%; border-radius: 8px; margin: 16px 0; }
.article-detail-content p { margin-bottom: 16px; }
.article-detail-content h2,
.article-detail-content h3 { margin: 24px 0 12px; }

/* ================================================
   Accessories Carousel
   ================================================ */
.acc-carousel { position: relative; max-width: 1100px; margin: 0 auto; overflow: hidden; }
.acc-track { display: flex; transition: transform 0.5s ease; }
.acc-slide { flex: 0 0 100%; width: 100%; }
.acc-card {
    display: grid; grid-template-columns: 1fr 1fr;
    background: var(--primary); border-radius: 12px;
    overflow: hidden; min-height: 420px;
}
.acc-card-reverse { direction: rtl; }
.acc-card-reverse > * { direction: ltr; }
.acc-text {
    padding: 48px; color: var(--white);
    display: flex; flex-direction: column; justify-content: center;
}
.acc-text h3 { font-size: 1.5rem; color: var(--white); margin-bottom: 16px; }
.acc-text p { font-size: 0.95rem; line-height: 1.7; opacity: 0.9; margin-bottom: 24px; }
.acc-img { background: var(--gray-200); display: flex; align-items: center; justify-content: center; }
.acc-img img { width: 100%; height: 100%; object-fit: cover; }

.acc-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.45); color: var(--white);
    border: none; width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.3s ease; z-index: 10;
}
.acc-arrow:hover { background: rgba(0,0,0,0.65); }
.acc-arrow svg { width: 20px; height: 20px; }
.acc-prev { left: 16px; }
.acc-next { right: 16px; }

.acc-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.acc-dot {
    width: 8px; height: 8px; border-radius: 4px;
    background: var(--gray-300); border: none;
    cursor: pointer; transition: all 0.3s ease;
}
.acc-dot.active { background: var(--primary); width: 24px; }

/* ================================================
   Features Grid (Why Choose Us)
   ================================================ */
.feature-item { text-align: center; }
.feature-icon {
    width: 64px; height: 64px; margin: 0 auto 16px;
    color: var(--primary);
}
.feature-icon svg { width: 100%; height: 100%; }
.feature-item p { font-size: 0.85rem; color: var(--gray-700); line-height: 1.5; }

/* ================================================
   News Cards (4-col)
   ================================================ */
.news-card {
    display: block; background: var(--white); border-radius: 8px; overflow: hidden;
    box-shadow: var(--shadow-sm); transition: all 0.3s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-card-img { height: 170px; overflow: hidden; background: var(--gray-100); }
.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-body { padding: 16px; }
.news-card-body h3 {
    font-size: 0.85rem; font-weight: 600; color: var(--gray-800);
    margin-bottom: 8px; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-date { font-size: 0.75rem; color: var(--gray-400); margin-bottom: 10px; }
.news-link { font-size: 0.8rem; font-weight: 600; color: var(--primary); }
.news-link:hover { text-decoration: underline; }
.news-card .img-placeholder { height: 170px; }

/* ================================================
   CTA Section
   ================================================ */
.cta-section {
    background: var(--primary); padding: 60px 0; text-align: center;
}
.cta-section h2 {
    color: var(--white); font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700; margin-bottom: 10px;
}
.cta-section p { color: rgba(255,255,255,0.9); margin-bottom: 24px; font-size: 1.05rem; }

/* ================================================
   Footer
   ================================================ */
.site-footer {
    background: var(--gray-900); color: rgba(255,255,255,0.65);
    padding: 64px 0 24px;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr 1.5fr;
    gap: 40px; margin-bottom: 48px;
}
.footer-col h4 {
    color: var(--white); font-size: 1rem; font-weight: 600; margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col a { color: rgba(255,255,255,0.6); transition: color 0.3s ease; }
.footer-col a:hover { color: var(--white); }
.footer-about p { font-size: 13px; line-height: 1.7; }
.footer-contact li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; }
.footer-contact svg { flex-shrink: 0; margin-top: 3px; width: 16px; height: 16px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px;
}
.footer-bottom .social-links { display: flex; gap: 16px; }
.footer-bottom .social-links a { color: rgba(255,255,255,0.5); }
.footer-bottom .social-links a:hover { color: var(--white); }
.footer-bottom .social-links svg { width: 18px; height: 18px; }

/* ================================================
   Responsive
   ================================================ */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-5 { grid-template-columns: repeat(3, 1fr); }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .advantage-row { grid-template-columns: 1fr; gap: 32px; }
    .advantage-reverse { direction: ltr; }
    .advantage-reverse > * { direction: ltr; }
    .acc-card { grid-template-columns: 1fr; }
    .acc-card-reverse { direction: ltr; }
    .acc-card-reverse > * { direction: ltr; }
    .acc-img { min-height: 240px; }
    .acc-text { padding: 32px; }
    .about-grid { grid-template-columns: 1fr; }
    .about-img { min-height: 280px; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .top-bar-left { display: none; }
    .main-nav, .nav-cta { display: none; }
    .mobile-toggle { display: flex; }
    .mobile-nav { display: flex; }
    .site-header { top: 0; }
    .top-bar { display: none; }
    .section { padding: 56px 0; }
    .hero-title { font-size: 2.5rem; }
    .hero-desc { font-size: 1rem; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr 1fr; }
    .grid-5 { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .acc-arrow { width: 36px; height: 36px; }
    .acc-prev { left: 8px; } .acc-next { right: 8px; }
    .acc-arrow svg { width: 16px; height: 16px; }
    .page-header { padding: 70px 0 40px; margin-top: 0; }
    .about-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .about-stat { padding: 14px; }
    .about-stat-num { font-size: 1.3rem; }
    .product-detail-layout { grid-template-columns: 1fr; }
    .product-gallery-wrapper { flex-direction: column; }
    .product-thumb-list { flex-direction: row; width: 100%; overflow-x: auto; }
    .product-thumb-list img { width: 70px; height: 70px; flex-shrink: 0; }
    .product-main-image { min-height: 300px; }
    .product-main-image img { height: 300px; }
    .product-info-two-col { grid-template-columns: 1fr; gap: 32px; }
    .product-hero-banner { min-height: 220px; }
    .product-hero-content { padding: 50px 0 30px; }
}

@media (max-width: 480px) {
    .grid-4, .grid-5 { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .acc-text { padding: 24px; }
    .cat-card-link, .btn { width: 100%; }
    .about-stats { grid-template-columns: 1fr; }
}

/* ================================================
   Products List Page (Template Style)
   ================================================ */
.products-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    align-items: start;
}

/* Sidebar */
.products-sidebar { position: sticky; top: 100px; }
.sidebar-block {
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    padding: 20px;
}
.sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}
.sidebar-cat-list { list-style: none; }
.sidebar-cat-item { margin-bottom: 2px; }
.sidebar-cat-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.25s ease;
}
.sidebar-cat-link:hover {
    background: var(--gray-50);
    color: var(--primary);
}
.sidebar-cat-item.active > .sidebar-cat-link {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    font-weight: 600;
}
.cat-arrow {
    font-size: 1.1rem;
    color: var(--gray-400);
    transition: color 0.25s ease;
    line-height: 1;
}
.sidebar-cat-link:hover .cat-arrow,
.sidebar-cat-item.active .cat-arrow { color: var(--primary); }

/* Sub-categories */
.sidebar-subcat-list {
    list-style: none;
    padding-left: 20px;
    margin-top: 2px;
}
.sidebar-subcat-item { margin-bottom: 2px; }
.sidebar-subcat-link {
    display: block;
    padding: 6px 10px;
    border-radius: 6px;
    color: var(--gray-500);
    font-size: 0.85rem;
    transition: all 0.25s ease;
}
.sidebar-subcat-link:hover {
    color: var(--primary);
    background: var(--gray-50);
}
.sidebar-subcat-item.active .sidebar-subcat-link {
    color: var(--primary);
    font-weight: 600;
    background: rgba(var(--primary-rgb), 0.06);
}

/* Toolbar */
.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.search-box {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 420px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    overflow: hidden;
    background: var(--white);
}
.search-input {
    flex: 1;
    border: none;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--gray-700);
    background: transparent;
    outline: none;
}
.search-input::placeholder { color: var(--gray-400); }
.search-btn {
    border: none;
    background: transparent;
    color: var(--gray-400);
    padding: 0 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.25s ease;
}
.search-btn:hover { color: var(--primary); }

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.products-count {
    font-size: 0.85rem;
    color: var(--gray-500);
}
.view-switch {
    display: flex;
    align-items: center;
    gap: 4px;
}
.view-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    background: var(--white);
    color: var(--gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}
.view-btn:hover { border-color: var(--primary); color: var(--primary); }
.view-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

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

/* Product Card (Template Style) */
.product-card-template {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--gray-100);
    transition: all 0.3s ease;
}
.product-card-template:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-200);
}
.product-card-template-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.product-card-template-link:hover { color: inherit; }
.product-card-template-img {
    position: relative;
    height: 240px;
    background: var(--gray-50);
    overflow: hidden;
}
.product-card-template-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card-template:hover .product-card-template-img img {
    transform: scale(1.05);
}
.product-card-template-imgcount {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.6);
    color: var(--white);
    font-size: 11px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.product-card-template-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    font-size: 3rem;
    font-weight: 300;
}
.product-card-template-body {
    padding: 16px;
}
.product-card-template-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 6px;
    line-height: 1.3;
    transition: color 0.25s ease;
}
.product-card-template:hover .product-card-template-title {
    color: var(--primary);
}
.product-card-template-desc {
    font-size: 0.8rem;
    color: var(--gray-500);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ================================================
   Products Page Responsive
   ================================================ */
@media (max-width: 1024px) {
    .products-layout {
        grid-template-columns: 220px 1fr;
        gap: 24px;
    }
    .product-grid-template {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-layout {
        grid-template-columns: 1fr;
    }
    .products-sidebar {
        position: static;
        margin-bottom: 24px;
    }
    .sidebar-block { padding: 16px; }
    .products-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .search-box { max-width: 100%; }
    .toolbar-right {
        justify-content: space-between;
        width: 100%;
    }
    .product-grid-template {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .product-card-template-img { height: 200px; }
}

@media (max-width: 480px) {
    .product-grid-template {
        grid-template-columns: 1fr;
    }
    .product-card-template-img { height: 220px; }
}

/* ================================================
   Articles List Page
   ================================================ */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.article-card-img {
    height: 200px;
    background: var(--gray-100);
    overflow: hidden;
}
.article-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.article-card:hover .article-card-img img {
    transform: scale(1.05);
}
.article-card-body {
    padding: 20px;
}
.article-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-bottom: 10px;
}
.article-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.article-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 8px;
    line-height: 1.4;
    transition: color 0.25s ease;
}
.article-card:hover .article-card-title {
    color: var(--primary);
}
.article-card-excerpt {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.5;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card-readmore {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.25s ease;
}
.article-card-readmore:hover {
    color: var(--primary-700);
}

/* Article Detail Page */
.article-detail-header {
    margin-bottom: 30px;
}
.article-detail-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.article-detail-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ================================================
   Articles Page Responsive
   ================================================ */
@media (max-width: 1024px) {
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .article-grid {
        grid-template-columns: 1fr;
    }
}
#params { scroll-margin-top: 80px; }
