/*
 Theme Name:   Flatsome Child
 Theme URI:    https://www.uxthemes.com
 Description:  Flatsome Child Theme - Performance Optimized
 Author:       UX Themes
 Author URI:   https://www.uxthemes.com
 Template:     flatsome
 Version:      1.0.0
 Text Domain:  flatsome-child
*/

/* ========================================
   VIETNAMESE FONT - BE VIETNAM PRO
   ======================================== */

/* Import Beautiful Vietnamese Font */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700;800&display=swap');

/* Apply font to entire website */
body,
body.lightbox,
input,
textarea,
select,
button,
.button,
.nav,
.widget {
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6,
.heading-font,
.header-nav,
.nav > li > a,
.off-canvas-center .nav-sidebar.nav-vertical > li > a {
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Navigation */
.header-nav li a,
.mobile-nav li a,
.nav-sidebar li a {
    font-family: 'Be Vietnam Pro', sans-serif !important;
    font-weight: 500;
}

/* Buttons */
.button,
button,
input[type="button"],
input[type="submit"],
.wp-element-button {
    font-family: 'Be Vietnam Pro', sans-serif !important;
    font-weight: 600;
}

/* Product titles and content */
.product-title,
.product-small .box-text,
.product-category h3,
.woocommerce-product-details__short-description,
.entry-content,
.post-item,
.blog-post {
    font-family: 'Be Vietnam Pro', sans-serif !important;
}

/* Footer */
.footer-wrapper,
.footer-wrapper * {
    font-family: 'Be Vietnam Pro', sans-serif !important;
}

/* Better Vietnamese character rendering */
body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Improve line height for Vietnamese text */
body,
p,
.entry-content,
.product-short-description {
    line-height: 1.7;
}

/* ========================================
   DARK THEME - NỀN ĐEN & CHỮ TRẮNG
   ======================================== */

/* Main Background Colors */
body {
    background-color: #0f1419 !important;
    color: #e4e6eb !important;
}

/* Page Wrapper */
.page-wrapper,
#wrapper {
    background-color: #0f1419 !important;
}

/* Content Areas */
#content,
.content-area,
main,
.page-inner,
.container {
    background-color: transparent !important;
    color: #e4e6eb !important;
}

/* Boxes & Cards */
.box,
.box-text,
.banner,
.product-small,
.col-inner,
.product,
.post-item,
.page-box {
    background-color: transparent !important;
    color: #e4e6eb !important;
    border-color: #2d333b !important;
}

/* Header */
#header,
.header-wrapper,
.header-main,
.header-top,
.header-bottom {
    background-color: #0f1419 !important;
    border-bottom: 1px solid #2d333b !important;
}

/* Navigation */
.nav > li > a,
.header-nav li a,
.mobile-nav li a {
    color: #e4e6eb !important;
}

.nav > li > a:hover,
.header-nav li a:hover {
    color: #3b82f6 !important;
}

/* Footer */
.footer-wrapper,
.absolute-footer {
    background-color: #0a0d11 !important;
    color: #b4b7bb !important;
    border-top: 1px solid #2d333b !important;
}

.footer-wrapper h3,
.footer-wrapper h4 {
    color: #e4e6eb !important;
}

.footer-wrapper a {
    color: #b4b7bb !important;
}

.footer-wrapper a:hover {
    color: #3b82f6 !important;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff !important;
}

/* Links */
a {
    color: #60a5fa !important;
}

a:hover {
    color: #3b82f6 !important;
}

/* Buttons */
.button,
button,
.wp-element-button,
input[type="submit"],
input[type="button"] {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
    border: none !important;
}

.button:hover,
button:hover {
    background-color: #2563eb !important;
}

.button.secondary {
    background-color: #1f2937 !important;
    color: #e4e6eb !important;
}

.button.secondary:hover {
    background-color: #374151 !important;
}

/* Forms & Inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="number"],
textarea,
select,
.form-control {
    background-color: #1a1f28 !important;
    border: 1px solid #2d333b !important;
    color: #e4e6eb !important;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #3b82f6 !important;
    background-color: #1f2937 !important;
}

input::placeholder,
textarea::placeholder {
    color: #6b7280 !important;
}

/* Sidebar & Widgets */
.sidebar,
.sidebar-inner,
.widget {
    background-color: #1a1f28 !important;
    color: #e4e6eb !important;
}

.widget-title {
    color: #ffffff !important;
}

/* Blog & Posts */
.blog-wrapper,
.post-wrapper,
.blog-post,
.post-item {
    background-color: #1a1f28 !important;
    color: #e4e6eb !important;
}

.entry-title a {
    color: #ffffff !important;
}

.entry-title a:hover {
    color: #60a5fa !important;
}

.entry-content,
.entry-summary {
    color: #e4e6eb !important;
}

/* Products (WooCommerce) */
.product-container,
.product-main,
.product-info,
.product-summary {
    background-color: #1a1f28 !important;
    color: #e4e6eb !important;
}

.product-title {
    color: #ffffff !important;
}

.price,
.amount {
    color: #60a5fa !important;
}

.woocommerce-product-details__short-description {
    color: #d1d5db !important;
}

/* Tables */
table {
    background-color: #1a1f28 !important;
    border-color: #2d333b !important;
}

table th {
    background-color: #0f1419 !important;
    color: #ffffff !important;
    border-color: #2d333b !important;
}

table td {
    background-color: #1a1f28 !important;
    color: #e4e6eb !important;
    border-color: #2d333b !important;
}

/* Breadcrumbs */
.breadcrumbs {
    color: #b4b7bb !important;
}

.breadcrumbs a {
    color: #9ca3af !important;
}

/* Search */
.searchform,
.searchform-wrapper {
    background-color: #1a1f28 !important;
}

.search-field {
    background-color: #0f1419 !important;
    border-color: #2d333b !important;
    color: #e4e6eb !important;
}

/* Off-canvas Menu */
.off-canvas,
.off-canvas-center {
    background-color: #0a0d11 !important;
}

.sidebar-menu {
    background-color: #0a0d11 !important;
}

/* Modals & Lightbox */
.mfp-bg {
    background-color: rgba(0, 0, 0, 0.95) !important;
}

.mfp-content,
.lightbox-content {
    background-color: #1a1f28 !important;
    color: #e4e6eb !important;
}

/* Tabs */
.nav-tabs > li.active > a,
.nav-tabs > li > a:hover {
    background-color: #1a1f28 !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
}

.nav-tabs > li > a {
    color: #9ca3af !important;
}

/* Icons */
.icon-box {
    color: #e4e6eb !important;
}

/* Prices & Badges */
.badge,
.onsale {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
}

/* Text Colors */
p,
span,
div,
li {
    color: inherit;
}

/* Ensure readability */
.text-dark {
    color: #e4e6eb !important;
}

/* Fix invisible elements */
.dark,
.section-bg {
    background-color: #1a1f28 !important;
}

.section.dark {
    background-color: #0f1419 !important;
}

/* Pagination */
.pagination a,
.page-numbers {
    background-color: #1a1f28 !important;
    color: #e4e6eb !important;
    border-color: #2d333b !important;
}

.pagination a:hover,
.page-numbers:hover,
.page-numbers.current {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
}

/* Comments */
.comments-area,
.comment-list {
    background-color: #1a1f28 !important;
    color: #e4e6eb !important;
}

.comment-author {
    color: #ffffff !important;
}

/* Scroll to top */
#top-link {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
}

/* WooCommerce specific */
.woocommerce-tabs,
.woocommerce-Tabs-panel {
    background-color: #1a1f28 !important;
    color: #e4e6eb !important;
}

.cart-container,
.checkout-main {
    background-color: #1a1f28 !important;
}

/* Loading states */
.loading-spin,
.spinner {
    border-color: #2d333b !important;
    border-top-color: #3b82f6 !important;
}

/* Smooth transitions */
* {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* ========================================
   ADD YOUR CUSTOM CSS BELOW
   ======================================== */


