/* ==========================================================================
   OnePage Market - Custom CSS (Inspired by giaodienweb.com)
   Primary Color: #79b530
   ========================================================================== */

:root {
    --primary: #79b530;
    --primary-hover: #6ca528;
    --primary-light: #eef7e5;
    --dark: #181818;
    --dark-header: #1c1c1c;
    --dark-alt: #222222;
    --text-main: #333333;
    --text-muted: #777777;
    --bg-gray: #f8fafc;
    --border-color: #e5e7eb;
    --card-radius: 8px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 14px 28px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-main);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Flex Utilities */
.flex-row { display: flex; flex-direction: row; }
.flex-column { display: flex; flex-direction: column; }
.flex-between { display: flex; justify-content: space-between; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.gap-15 { gap: 15px; }
.gap-20 { gap: 20px; }
.gap-25 { gap: 25px; }

/* Spacing */
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-25 { margin-top: 25px; }
.mt-30 { margin-top: 30px; }
.mt-35 { margin-top: 35px; }
.mt-40 { margin-top: 40px; }
.mt-50 { margin-top: 50px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-25 { margin-bottom: 25px; }
.mb-30 { margin-bottom: 30px; }
.mb-35 { margin-bottom: 35px; }
.mb-40 { margin-bottom: 40px; }
.my-15 { margin-top: 15px; margin-bottom: 15px; }
.py-40 { padding-top: 40px; padding-bottom: 40px; }
.section-padding { padding: 60px 0; }

/* Text & Colors */
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.bg-dark-alt { background-color: #fafbfc; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    text-align: center;
    gap: 6px;
}
.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(121, 181, 48, 0.35);
}
.btn-secondary {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-secondary:hover {
    background-color: #ffffff;
    color: var(--dark);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background-color: var(--primary);
    color: #ffffff;
}
.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 6px;
}
.btn-sm {
    padding: 7px 16px;
    font-size: 13px;
}
.btn-block {
    width: 100%;
}

/* ==========================================================================
   Header & Top Bar
   ========================================================================== */
.top-bar {
    background-color: #121212;
    color: #999;
    font-size: 12px;
    padding: 6px 0;
    border-bottom: 1px solid #252525;
}
.top-link {
    color: #bbb;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.top-link:hover {
    color: var(--primary);
}
.top-zalo {
    color: #2ba2e8;
}

.site-header {
    background-color: var(--dark-header);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid #282828;
}

.site-logo .logo-link {
    display: inline-flex;
    align-items: center;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.logo-badge {
    color: #ffffff;
}
.logo-sub {
    color: var(--primary);
}

.main-navigation .nav-link {
    color: #e5e5e5;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 8px 0;
    position: relative;
}
.main-navigation .nav-link:hover,
.main-navigation .nav-link.active {
    color: var(--primary);
}

/* Dropdown */
.menu-item.has-dropdown {
    position: relative;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: #222222;
    border: 1px solid #333333;
    border-top: 2px solid var(--primary);
    border-radius: 0 0 6px 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 99;
}
.menu-item.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li a {
    display: block;
    padding: 10px 18px;
    color: #d1d5db;
    font-size: 13px;
    border-bottom: 1px solid #2a2a2a;
}
.dropdown-menu li:last-child a {
    border-bottom: none;
}
.dropdown-menu li a:hover {
    background-color: #292929;
    color: var(--primary);
    padding-left: 22px;
}

.search-trigger-btn {
    background: transparent;
    border: 1px solid #3d3d3d;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.search-trigger-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Mobile Toggle & Drawer Base (Hidden on Desktop by default) */
.mobile-toggle {
    display: none;
    background: #252525;
    border: 1px solid #383838;
    color: #ffffff;
    border-radius: 8px;
    width: 38px;
    height: 38px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.mobile-toggle:hover {
    background: #333333;
    color: var(--primary);
    border-color: var(--primary);
}
.mobile-toggle svg {
    display: block;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background-color: #1a1a1a;
    color: #ffffff;
    z-index: 99999;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.7);
    padding: 25px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.mobile-drawer.active {
    left: 0;
}
.mobile-drawer-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #282828;
}
.drawer-title {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
}
.close-btn {
    background: transparent;
    border: none;
    color: #a0aec0;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
}
.close-btn:hover {
    color: #ffffff;
}
.mobile-menu-list li {
    margin-bottom: 12px;
}
.mobile-menu-list a {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #e2e8f0;
    transition: var(--transition);
}
.mobile-menu-list a:hover {
    background: #252525;
    color: var(--primary);
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    background: #151515 radial-gradient(circle at 50% 20%, rgba(121, 181, 48, 0.15) 0%, rgba(21, 21, 21, 1) 75%);
    color: #ffffff;
    padding: 85px 0 60px;
    overflow: hidden;
}
.hero-subtitle-tag {
    display: inline-block;
    color: var(--primary);
    background-color: rgba(121, 181, 48, 0.12);
    border: 1px solid rgba(121, 181, 48, 0.35);
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 18px;
}
.hero-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}
.text-gradient {
    color: var(--primary);
}
.hero-desc {
    max-width: 780px;
    margin: 0 auto 30px;
    font-size: 16px;
    color: #bbbbbb;
    line-height: 1.6;
}

/* Mouse Scroll Indicator */
.mouse-scroll-indicator {
    display: inline-block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}
.mouse-scroll-indicator:hover {
    border-color: var(--primary);
}
.mouse-wheel {
    position: absolute;
    top: 6px;
    left: 50%;
    width: 4px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: mouseBounce 1.8s infinite;
}
@keyframes mouseBounce {
    0%, 100% { top: 6px; opacity: 1; }
    50% { top: 18px; opacity: 0.3; }
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-badge {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.section-title {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    margin-top: 6px;
    margin-bottom: 8px;
}
.section-desc {
    color: var(--text-muted);
    font-size: 15px;
    max-width: 650px;
    margin: 0 auto;
}
.section-line {
    width: 50px;
    height: 3px;
    background-color: var(--primary);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* ==========================================================================
   Topics Grid (Ngành Nghề)
   ========================================================================== */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.topic-card {
    height: 190px;
    border-radius: var(--card-radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}
.topic-card-inner {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}
.topic-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}
.topic-card:hover .topic-bg {
    transform: scale(1.08);
}
.topic-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.75) 100%);
    transition: var(--transition);
}
.topic-card:hover .topic-overlay {
    background: linear-gradient(180deg, rgba(121, 181, 48, 0.3) 0%, rgba(0, 0, 0, 0.85) 100%);
}
.topic-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: #ffffff;
    z-index: 2;
}
.topic-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}
.topic-count {
    font-size: 13px;
    color: #cbd5e1;
}

/* ==========================================================================
   Filter Tabs
   ========================================================================== */
.filter-tabs .filter-btn {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    transition: var(--transition);
}
.filter-tabs .filter-btn:hover,
.filter-tabs .filter-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(121, 181, 48, 0.25);
}

/* ==========================================================================
   Theme Cards Grid (Kho Giao Diện)
   ========================================================================== */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.theme-card {
    background: #ffffff;
    border: 1px solid #ebebeb;
    border-radius: var(--card-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
.theme-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: #d8e8c8;
}

/* Card Thumbnail */
.theme-thumbnail {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background-color: #f1f5f9;
}
.thumb-link {
    display: block;
    width: 100%;
    height: 100%;
}
.theme-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}
.theme-card:hover .theme-img {
    transform: scale(1.06);
}

.theme-sku-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(20, 20, 20, 0.75);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    z-index: 2;
}
.theme-hot-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
}

/* Card Info */
.theme-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.theme-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.theme-title a:hover {
    color: var(--primary);
}

.theme-meta {
    margin-bottom: 14px;
}
.theme-price-box .current-price {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary);
}
.theme-price-box .old-price {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: line-through;
    margin-left: 6px;
}

/* 2 Nút Bấm Song Song 50/50 (Chuẩn giaodienweb.com) */
.theme-actions-dual {
    display: flex;
    gap: 8px;
    margin-top: auto;
}
.theme-actions-dual .btn-demo {
    flex: 1;
    background: transparent;
    color: var(--text-main);
    border: 1px solid #d1d5db;
    font-size: 13px;
    padding: 8px 4px;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.theme-actions-dual .btn-demo:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: var(--primary-light);
}
.theme-actions-dual .btn-detail {
    flex: 1;
    background-color: var(--primary);
    color: #ffffff;
    border: 1px solid var(--primary);
    font-size: 13px;
    padding: 8px 4px;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.theme-actions-dual .btn-detail:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.feature-card {
    background: #ffffff;
    padding: 30px 22px;
    border-radius: var(--card-radius);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary);
}
.feature-icon {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 15px;
}
.feature-heading {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}
.feature-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* CTA Section */
.cta-box {
    background: linear-gradient(135deg, #1c1c1c 0%, #2b2b2b 100%);
    color: #ffffff;
    padding: 50px 30px;
    border-radius: 12px;
    border: 1px solid #333333;
}
.cta-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}
.cta-desc {
    color: #bbbbbb;
    font-size: 16px;
    max-width: 650px;
    margin: 0 auto;
}

/* ==========================================================================
   Single Theme Page Layout
   ========================================================================== */
.breadcrumb-nav a {
    color: #64748b;
}
.breadcrumb-nav a:hover {
    color: var(--primary);
}
.current-crumb {
    color: var(--text-main);
    font-weight: 600;
}

.single-theme-layout {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 35px;
    align-items: flex-start;
}
.main-preview-frame {
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background-color: #f1f5f9;
}
.full-preview-img {
    width: 100%;
    display: block;
}

.sticky-sidebar-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 28px;
    position: sticky;
    top: 95px;
    box-shadow: var(--shadow-sm);
}
.theme-sku-tag {
    display: inline-block;
    background-color: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}
.single-theme-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
}
.single-price-box .price-val {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}
.single-price-box .old-price-val {
    font-size: 16px;
    color: #94a3b8;
    text-decoration: line-through;
    margin-left: 10px;
}

.btn-demo-large {
    background: #ffffff;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
}
.btn-demo-large:hover {
    background-color: var(--primary);
    color: #ffffff;
}
.btn-buy-large {
    background-color: var(--primary);
    color: #ffffff;
    border: 2px solid var(--primary);
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
}
.btn-buy-large:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.guarantee-box {
    border-top: 1px dashed var(--border-color);
    padding-top: 18px;
}
.guarantee-item {
    font-size: 13px;
    color: #475569;
    margin-bottom: 8px;
}
.hotline-phone-link {
    display: inline-block;
    color: #ef4444;
    font-size: 16px;
    font-weight: 800;
    margin-top: 4px;
}

.specs-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}
.specs-table {
    width: 100%;
    border-collapse: collapse;
}
.specs-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}
.specs-table tr:nth-child(even) td {
    background-color: #fafbfc;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: #161616;
    color: #94a3b8;
    padding-top: 60px;
    border-top: 1px solid #222222;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 35px;
    padding-bottom: 45px;
}
.footer-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 8px;
}
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: #94a3b8;
    font-size: 14px;
}
.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}
.contact-item {
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.contact-item strong {
    color: #ffffff;
}
.badge-feature {
    background-color: #242424;
    color: #cbd5e1;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
}
.btn-zalo-contact {
    background-color: #0068ff;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
}
.btn-zalo-contact:hover {
    background-color: #0056d6;
}
.footer-bottom {
    border-top: 1px solid #242424;
    padding: 20px 0;
    font-size: 13px;
}

/* ==========================================================================
   Floating Contacts
   ========================================================================== */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}
.float-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    color: #ffffff;
    transition: var(--transition);
}
.float-btn:hover {
    transform: scale(1.1);
}
.float-zalo {
    background-color: #0068ff;
    font-weight: 800;
    font-size: 13px;
}
.float-phone {
    background-color: #22c55e;
    font-size: 20px;
    animation: phonePulse 2s infinite;
}
@keyframes phonePulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ==========================================================================
   Modals
   ========================================================================== */
.search-modal, .buy-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    padding: 20px;
}
.search-modal.active, .buy-modal.active {
    opacity: 1;
    visibility: visible;
}
.search-modal-content, .buy-modal-content {
    background-color: #ffffff;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.close-search, .close-buy {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 26px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #64748b;
}

.search-input-group {
    margin-top: 15px;
    border: 2px solid var(--primary);
    border-radius: 6px;
    overflow: hidden;
}
.search-category-select {
    padding: 12px;
    border: none;
    background-color: #f8fafc;
    border-right: 1px solid var(--border-color);
    outline: none;
    font-size: 14px;
}
.search-input-field {
    flex-grow: 1;
    padding: 12px 16px;
    border: none;
    outline: none;
    font-size: 14px;
}
.search-submit-btn {
    border-radius: 0;
    padding: 12px 20px;
}

.buy-badge {
    background-color: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}
.buy-title {
    font-size: 20px;
    font-weight: 800;
    margin: 8px 0 4px;
}
.buy-sku {
    font-size: 14px;
    color: #64748b;
}

/* ==========================================================================
   Responsive Breakpoints & System
   ========================================================================== */

/* Desktop only (min-width: 993px) */
@media (min-width: 993px) {
    .hide-desktop { display: none !important; }
    .mobile-drawer, .drawer-overlay, .mobile-toggle { display: none !important; }
}

/* Tablet & Mobile (max-width: 992px) */
@media (max-width: 992px) {
    .hide-mobile { display: none !important; }
    .show-mobile { display: flex !important; }
    .theme-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .single-theme-layout { grid-template-columns: 1fr; gap: 30px; }
    .theme-sidebar { order: -1; }
}

/* Mobile Breakpoint (max-width: 768px) */
@media (max-width: 768px) {
    /* Header & Top Bar */
    .top-bar-left { display: none; }
    .top-bar .container { justify-content: center; }
    .top-bar-right { gap: 12px; font-size: 11px; flex-wrap: wrap; justify-content: center; }
    .site-header { padding: 12px 0; }
    .site-logo .logo-link { font-size: 20px; }

    /* Hero Section */
    .hero-section {
        padding: 45px 0 35px;
        text-align: center;
    }
    .hero-subtitle-tag {
        font-size: 11px;
        padding: 3px 12px;
        margin-bottom: 12px;
    }
    .hero-title {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 12px;
    }
    .hero-desc {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 22px;
        padding: 0 5px;
    }
    .mouse-scroll-indicator { display: none; }

    /* Bento Grid (Ngành nghề) */
    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .topic-card {
        height: 120px;
    }
    .topic-title {
        font-size: 15px;
    }
    .topic-count {
        font-size: 11px;
    }
    .topic-content {
        bottom: 12px;
        left: 12px;
        right: 12px;
    }

    /* Section Header */
    .section-padding { padding: 40px 0; }
    .section-title { font-size: 22px; }
    .section-desc { font-size: 13px; }

    /* Horizontal Scrollable Category Filter */
    .filter-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        justify-content: flex-start !important;
        padding: 6px 4px 14px !important;
        margin-bottom: 20px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .filter-tabs::-webkit-scrollbar {
        display: none;
    }
    .filter-tabs .filter-btn {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 7px 15px;
        font-size: 13px;
    }

    /* Theme Grid */
    .theme-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .theme-card {
        border-radius: 6px;
    }
    .theme-info {
        padding: 10px 8px;
    }
    .theme-title {
        font-size: 13px;
        min-height: 36px;
        line-height: 1.35;
        margin-bottom: 8px;
    }
    .theme-meta {
        margin-bottom: 10px;
    }
    .theme-price-box .current-price {
        font-size: 14px;
    }
    .theme-price-box .old-price {
        font-size: 11px;
    }

    /* Dual Action Buttons (Stacked on Mobile) */
    .theme-actions-dual {
        flex-direction: column;
        gap: 6px;
    }
    .theme-actions-dual .btn-demo,
    .theme-actions-dual .btn-detail {
        width: 100%;
        padding: 7px 4px;
        font-size: 12px;
        justify-content: center;
    }

    /* Search Modal Form */
    .search-modal-content {
        width: 95%;
        padding: 24px 16px;
    }
    .search-input-group {
        flex-direction: column;
        gap: 8px;
    }
    .search-category-select,
    .search-input-field,
    .search-submit-btn {
        width: 100% !important;
        border-radius: 6px !important;
    }
    .search-submit-btn {
        padding: 12px !important;
    }

    /* Floating Contact Buttons */
    .floating-contact {
        bottom: 16px;
        right: 14px;
        gap: 8px;
    }
    .float-btn {
        width: 44px;
        height: 44px;
    }
    .float-zalo .float-text {
        font-size: 12px;
    }

    /* Footer */
    .site-footer {
        padding: 40px 0 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .footer-bottom .container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* Small Mobile Screen (max-width: 380px) */
@media (max-width: 380px) {
    .topics-grid {
        grid-template-columns: 1fr;
    }
    .topic-card {
        height: 100px;
    }
    .theme-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .theme-thumbnail {
        aspect-ratio: 4 / 3;
    }
    .theme-actions-dual {
        flex-direction: row;
    }
}
