/*
Theme Name: Cơ Điện Trường Phát
Theme URI: https://codientruongphat.com/
Author: Trường Phát
Author URI: https://codientruongphat.com/
Description: Theme WordPress chuyên nghiệp cho Công ty TNHH Thiết bị Cơ Điện Trường Phát - Chuyên nhập khẩu, phân phối thiết bị điện, nguồn dự phòng, sản xuất tủ điện.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: codien-truongphat
Tags: business, company, electrical, industrial, custom-menu, featured-images
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/* ===== CSS Variables ===== */
:root {
    --primary: #0066b3;
    --primary-dark: #004d86;
    --primary-light: #1a8cff;
    --secondary: #ff6b00;
    --secondary-dark: #cc5500;
    --accent: #00b4d8;
    --dark: #1a1a2e;
    --dark-blue: #16213e;
    --gray-900: #212529;
    --gray-800: #343a40;
    --gray-700: #495057;
    --gray-600: #6c757d;
    --gray-500: #adb5bd;
    --gray-400: #ced4da;
    --gray-300: #dee2e6;
    --gray-200: #e9ecef;
    --gray-100: #f8f9fa;
    --white: #ffffff;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(0, 102, 179, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.2);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s ease;
    --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 102, 179, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 179, 0.4);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-light {
    background: var(--white);
    color: var(--primary);
}

.btn-light:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ===== Top Bar ===== */
.top-bar {
    background: var(--dark-blue);
    color: var(--gray-300);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info i {
    color: var(--secondary);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* ===== Header ===== */
.header {
    background: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
}

.logo-text h1 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.logo-text p {
    font-size: 11px;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hotline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hotline-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(255, 107, 0, 0);
    }
}

.hotline-text span {
    display: block;
    font-size: 12px;
    color: var(--gray-600);
}

.hotline-text strong {
    font-size: 16px;
    color: var(--secondary);
}

.menu-toggle {
    display: none;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-md);
    font-size: 20px;
}

/* ===== Navigation ===== */
.navbar {
    background: var(--primary);
    position: sticky;
    top: 80px;
    z-index: 999;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-menu {
    display: flex;
    flex: 1;
}

.nav-menu>li {
    position: relative;
}

.nav-menu>li>a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 16px 24px;
    color: var(--white);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.nav-menu>li>a:hover,
.nav-menu>li>a.active,
.nav-menu>li.current-menu-item>a,
.nav-menu>li.current_page_item>a {
    background: rgba(255, 255, 255, 0.1);
}

.nav-menu>li>a i {
    font-size: 10px;
    transition: var(--transition);
}

.nav-menu>li:hover>a i {
    transform: rotate(180deg);
}

/* Dropdown */
.nav-menu .sub-menu,
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: var(--white);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.nav-menu>li:hover .sub-menu,
.nav-menu>li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu li a,
.dropdown li a {
    display: block;
    padding: 12px 20px;
    color: var(--gray-800);
    font-size: 14px;
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

.nav-menu .sub-menu li:last-child a,
.dropdown li:last-child a {
    border-bottom: none;
}

.nav-menu .sub-menu li a:hover,
.dropdown li a:hover {
    background: var(--gray-100);
    color: var(--primary);
    padding-left: 25px;
}

/* Nav CTA Button */
.nav-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    background: var(--secondary);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.3;
    letter-spacing: 0.5px;
    transition: var(--transition);
    flex-shrink: 0;
}

.nav-cta-btn:hover {
    background: #e65000;
    color: var(--white);
}

.nav-cta-btn span {
    line-height: 1.2;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 600px;
    background: url('assets/images/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 14px;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease;
}

.hero-badge i {
    color: var(--warning);
}

.hero-title {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.8;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-stats {
    display: flex;
    gap: 40px;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 42px;
    font-weight: 900;
    color: var(--secondary);
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header.light .section-title {
    color: var(--white);
}

.section-header.light .section-tag {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 102, 179, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-secondary);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ===== About Section ===== */
.about {
    padding: 80px 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 100px;
}

.about-image-wrapper img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 140px;
    height: 140px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.experience-badge .years {
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
}

.experience-badge .text {
    font-size: 13px;
    text-align: center;
    line-height: 1.3;
}

.about-text .lead {
    font-size: 18px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--gray-700);
    margin-bottom: 15px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 30px 0;
}

.about-features .feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-800);
}

.about-features .feature i {
    color: var(--success);
    font-size: 18px;
}

/* ===== Categories Section ===== */
.categories {
    padding: 80px 0;
    background: var(--gray-100);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.category-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 102, 179, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: var(--primary);
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: var(--gradient-primary);
    color: var(--white);
    transform: rotateY(180deg);
}

.category-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.category-card p {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 1.6;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-link:hover {
    color: var(--secondary);
    gap: 12px;
}

/* ===== Products Section ===== */
.products {
    padding: 80px 0;
    background: var(--white);
}

.product-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 12px 24px;
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab-btn:hover {
    background: var(--gray-200);
}

.tab-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 102, 179, 0.3);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-300) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: var(--gray-500);
    transition: var(--transition);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-placeholder,
.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.quick-view {
    padding: 10px 20px;
    background: var(--white);
    color: var(--dark);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateY(20px);
    transition: var(--transition);
}

.product-card:hover .quick-view {
    transform: translateY(0);
}

.quick-view:hover {
    background: var(--primary);
    color: var(--white);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    background: var(--danger);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
}

.product-badge.new {
    background: var(--success);
}

.product-info {
    padding: 20px;
}

.product-category {
    display: block;
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
}

.product-link:hover {
    color: var(--primary);
    gap: 10px;
}

/* ===== Why Choose Us ===== */
.why-us {
    padding: 80px 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.why-us::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.why-us::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    transform: translate(-50%, 50%);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    position: relative;
    z-index: 1;
}

.why-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 35px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--white);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-8px);
}

.why-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    transition: var(--transition);
}

.why-card:hover .why-icon {
    background: var(--white);
    color: var(--primary);
    transform: rotateY(180deg);
}

.why-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.why-card p {
    font-size: 14px;
    opacity: 0.85;
    line-height: 1.6;
}

/* ===== News Section ===== */
.news {
    padding: 80px 0;
    background: var(--gray-100);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-placeholder,
.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-date {
    position: absolute;
    bottom: 15px;
    left: 15px;
    padding: 8px 15px;
    background: var(--secondary);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-md);
}

.news-content {
    padding: 25px;
}

.news-content h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-content p {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 15px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.news-link:hover {
    color: var(--secondary);
    gap: 10px;
}

/* ===== CTA Section ===== */
.cta {
    padding: 60px 0;
    background: var(--gradient-secondary);
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.cta-text h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.cta-text p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
}

.cta-buttons {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

/* ===== Footer ===== */
.footer {
    background: var(--dark-blue);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    width: 50px;
    height: 50px;
}

.footer-logo .logo-text h3 {
    font-size: 18px;
    color: var(--white);
}

.footer-about {
    color: var(--gray-400);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 16px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    color: var(--gray-400);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.footer-contact li i {
    color: var(--secondary);
    margin-top: 4px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-links a::before {
    content: '›';
    color: var(--secondary);
    font-size: 18px;
    font-weight: bold;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: 14px;
}

/* ===== Floating Buttons ===== */
.floating-buttons {
    position: fixed;
    right: 25px;
    bottom: 100px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    animation: float-pulse 2s infinite;
}

@keyframes float-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.float-btn:hover {
    transform: scale(1.15);
}

.float-btn.phone {
    background: var(--success);
}

.float-btn.zalo {
    background: #0068FF;
    font-size: 12px;
    font-weight: 700;
}

.float-btn.messenger {
    background: linear-gradient(135deg, #00B2FF 0%, #006AFF 100%);
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===== Google Map Widget ===== */
.map-widget {
    position: fixed;
    right: 100px;
    bottom: 0;
    width: 320px;
    background: var(--white);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: var(--shadow-xl);
    z-index: 997;
    overflow: hidden;
    transition: var(--transition);
}

.map-widget.collapsed .map-content {
    display: none;
}

.map-widget.collapsed .map-arrow {
    transform: rotate(180deg);
}

.map-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: var(--gradient-primary);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.map-header:hover {
    background: var(--primary-dark);
}

.map-header i:first-child {
    font-size: 16px;
}

.map-header span {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
}

.map-arrow {
    font-size: 12px;
    transition: var(--transition);
}

.map-content {
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.map-content iframe {
    display: block;
    width: 100%;
    height: 180px;
    border: none;
}

.map-address {
    padding: 12px 15px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.map-address p {
    font-size: 12px;
    color: var(--gray-700);
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.4;
    flex: 1;
}

.map-address p i {
    color: var(--secondary);
    margin-top: 2px;
}

.map-direction {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: var(--primary);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-md);
    white-space: nowrap;
    transition: var(--transition);
}

.map-direction:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* ===== WooCommerce Shop Layout ===== */
.shop-section {
    padding: 60px 0;
    background: var(--gray-100);
}

.shop-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.shop-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.widget-title {
    background: var(--primary);
    color: var(--white);
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-title i {
    font-size: 16px;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 500px;
    overflow-y: auto;
}

.category-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    color: var(--gray-700);
    font-size: 13px;
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

.category-item a:hover,
.category-item.active a {
    background: var(--gray-100);
    color: var(--primary);
    padding-left: 25px;
}

.category-item.active a {
    font-weight: 600;
    color: var(--primary);
}

.category-item .count {
    font-size: 11px;
    color: var(--gray-500);
    background: var(--gray-200);
    padding: 2px 8px;
    border-radius: 10px;
}

.category-item.sub-item a {
    padding-left: 30px;
    font-size: 12px;
}

.shop-products {
    flex: 1;
    min-width: 0;
}

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    padding: 15px 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.result-count {
    font-size: 14px;
    color: var(--gray-600);
}

.shop-sort select {
    padding: 8px 30px 8px 15px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 13px;
    background: var(--white);
    cursor: pointer;
}

.woocommerce-products-wrapper ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-products-wrapper ul.products li.product {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.woocommerce-products-wrapper ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.woocommerce-products-wrapper ul.products li.product a img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.woocommerce-products-wrapper ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px;
    font-weight: 600;
    padding: 15px;
    margin: 0;
    color: var(--gray-800);
}

.woocommerce-products-wrapper ul.products li.product .price {
    padding: 0 15px 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--secondary);
}

.woocommerce-products-wrapper ul.products li.product .button {
    display: block;
    width: calc(100% - 30px);
    margin: 0 15px 15px;
    padding: 10px;
    background: var(--primary);
    color: var(--white);
    text-align: center;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
}

.woocommerce-products-wrapper ul.products li.product .button:hover {
    background: var(--secondary);
}

.shop-pagination {
    margin-top: 30px;
    text-align: center;
}

.shop-pagination .woocommerce-pagination ul {
    display: flex;
    justify-content: center;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.shop-pagination .woocommerce-pagination ul li a,
.shop-pagination .woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--gray-700);
    transition: var(--transition);
}

.shop-pagination .woocommerce-pagination ul li a:hover,
.shop-pagination .woocommerce-pagination ul li span.current {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px;
}

.breadcrumb {
    font-size: 14px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb .separator {
    margin: 0 10px;
    opacity: 0.5;
}

.breadcrumb .current {
    color: var(--secondary);
}

/* Responsive Shop */
@media (max-width: 1200px) {
    .woocommerce-products-wrapper ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .shop-layout {
        flex-direction: column;
    }

    .shop-sidebar {
        width: 100%;
        position: static;
    }

    .category-list {
        max-height: 300px;
    }

    .woocommerce-products-wrapper ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .woocommerce-products-wrapper ul.products {
        grid-template-columns: 1fr;
    }

    .shop-toolbar {
        flex-direction: column;
        gap: 10px;
    }
}

/* ===== WordPress Specific ===== */
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 10px;
}

.alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 10px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 13px;
    color: var(--gray-600);
    text-align: center;
    margin-top: 8px;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {

    .categories-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-us-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .hotline {
        display: none;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .navbar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--dark-blue);
        transition: var(--transition);
        z-index: 9999;
        padding-top: 60px;
    }

    .navbar.active {
        left: 0;
    }

    .nav-menu {
        flex-direction: column;
    }

    .nav-menu>li>a {
        padding: 15px 25px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu .sub-menu,
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.2);
        display: none;
    }

    .has-dropdown.active .sub-menu,
    .has-dropdown.active .dropdown {
        display: block;
    }

    .hero {
        min-height: 500px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 32px;
    }

    .categories-grid,
    .products-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-tabs {
        gap: 8px;
    }

    .tab-btn {
        padding: 10px 16px;
        font-size: 12px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .map-widget {
        right: 15px;
        width: 280px;
    }

    .floating-buttons {
        bottom: 80px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }

    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 24px;
    }

    .map-widget {
        right: 10px;
        left: 10px;
        width: auto;
    }
}

/* ===== Shop Page Styles ===== */
.page-header {
    background: var(--gradient-primary);
    padding: 40px 0;
    text-align: center;
    color: var(--white);
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.breadcrumb {
    font-size: 14px;
    opacity: 0.85;
}

.breadcrumb a {
    color: var(--white);
    opacity: 0.8;
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb .separator {
    margin: 0 10px;
    opacity: 0.6;
}

.breadcrumb .current {
    opacity: 1;
}

/* Shop Section */
.shop-section {
    padding: 40px 0 80px;
    background: var(--gray-100);
}

.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* Shop Sidebar */
.shop-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.widget-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    background: var(--primary);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.widget-title i {
    font-size: 16px;
}

.category-list {
    max-height: 500px;
    overflow-y: auto;
}

.category-item {
    border-bottom: 1px solid var(--gray-200);
}

.category-item:last-child {
    border-bottom: none;
}

.category-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    color: var(--gray-700);
    font-size: 13px;
    transition: var(--transition);
}

.category-item a:hover,
.category-item.active a {
    background: var(--gray-100);
    color: var(--primary);
    padding-left: 25px;
}

.category-item .count {
    font-size: 12px;
    color: var(--gray-500);
}

/* Shop Products */
.shop-products {
    min-height: 500px;
}

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.result-count {
    font-size: 14px;
    color: var(--gray-600);
}

.result-count strong {
    color: var(--dark);
}

.shop-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-sort label {
    font-size: 14px;
    color: var(--gray-600);
    display: none;
}

.orderby-select {
    padding: 10px 35px 10px 15px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--gray-700);
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236c757d'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 10px center;
    background-size: 16px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.orderby-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Shop Grid */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.shop-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.shop-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.shop-card .product-image {
    height: 180px;
}

.shop-card .product-placeholder {
    height: 100%;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: var(--gray-400);
}

.shop-card .product-info {
    padding: 15px;
}

.shop-card .product-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-card .product-title a {
    color: var(--dark);
}

.shop-card .product-title a:hover {
    color: var(--primary);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    color: var(--warning);
}

.product-rating span {
    color: var(--gray-500);
    margin-left: 5px;
}

.product-badge.sale {
    background: var(--secondary);
}

/* Shop Pagination */
.shop-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.shop-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--white);
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.shop-pagination .page-numbers:hover,
.shop-pagination .page-numbers.current {
    background: var(--primary);
    color: var(--white);
}

.shop-pagination .page-numbers.prev,
.shop-pagination .page-numbers.next {
    width: auto;
    padding: 0 15px;
}

/* Shop Responsive */
@media (max-width: 1200px) {
    .shop-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: static;
    }

    .category-list {
        max-height: 300px;
    }

    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .shop-toolbar {
        flex-direction: column;
        gap: 15px;
    }

    .shop-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 24px;
    }
}