/*
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;
    /* Fix for content being covered by sticky header when scrolling to anchors */
    /* Header: ~85px + Navbar: ~46px + buffer = 140px */
    scroll-padding-top: 140px;
}

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 Promo Banner ===== */
.top-promo-banner {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #ff6b00 0%, #ff8533 50%, #ff6b00 100%);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    overflow: hidden;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.promo-banner-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}

.top-promo-banner img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

.top-promo-banner a {
    display: block;
    width: 100%;
    transition: var(--transition);
}

.top-promo-banner a:hover {
    opacity: 0.95;
}

.promo-banner-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.promo-banner-close:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-50%) scale(1.1);
}

/* Banner hidden state */
.top-promo-banner.hidden {
    display: none;
}

/* Responsive Top Promo Banner */
@media (max-width: 768px) {
    .top-promo-banner img {
        max-height: 60px;
    }

    .promo-banner-close {
        right: 10px;
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .top-promo-banner img {
        max-height: 50px;
    }
}

/* ===== 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;
}

/* Custom Logo from WordPress */
.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo .custom-logo-link {
    display: flex;
    align-items: center;
}

.logo .custom-logo,
.logo img {
    max-height: 55px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.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: 16px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    margin: 0;
    white-space: nowrap;
}

.logo-text p {
    font-size: 10px;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 2px 0 0 0;
    max-width: 280px;
    line-height: 1.3;
}

/* Ensure logo wraps correctly with custom logo image */
.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo .custom-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo .custom-logo-link+.logo-text,
.logo .logo-icon+.logo-text {
    margin-left: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hotline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hotline-icon {
    width: 38px;
    height: 38px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
    animation: pulse-ring 2s infinite;
    flex-shrink: 0;
}

@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: 11px;
    color: var(--gray-600);
}

.hotline-text strong {
    font-size: 14px;
    color: var(--secondary);
    white-space: nowrap;
}

.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: 5px;
    padding: 14px 14px;
    color: var(--white);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.3px;
    transition: var(--transition);
    white-space: nowrap;
}

.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;
    aspect-ratio: 1 / 1;
    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,
.product-image .product-thumb {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8f9fa;
    transition: var(--transition);
}

.product-image .attachment-woocommerce_thumbnail,
.product-image .attachment-medium_large {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8f9fa;
}

.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-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
}

.product-price del {
    color: var(--gray-500);
    font-weight: 400;
    font-size: 14px;
    margin-right: 8px;
}

.product-price ins {
    text-decoration: none;
    color: var(--danger);
}

.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: relative;
    top: 0;
}

.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: none;
    overflow-y: visible;
}

.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: 280px;
    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: relative;
    top: 0;
    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: none;
    overflow-y: visible;
}

.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;
    }
}

/* ===== WooCommerce Product Images Fix ===== */
/* Force product images to display properly - expanded selectors */
/* IMPORTANT: Excludes emoji images using :not() selectors */
.woocommerce ul.products li.product a img:not(.emoji):not(.wp-smiley):not([src*="s.w.org"]),
.woocommerce-products-wrapper ul.products li.product a img:not(.emoji):not(.wp-smiley):not([src*="s.w.org"]),
ul.products li.product a img:not(.emoji):not(.wp-smiley):not([src*="s.w.org"]),
ul.products li.product img:not(.emoji):not(.wp-smiley):not([src*="s.w.org"]),
.products .product img:not(.emoji):not(.wp-smiley):not([src*="s.w.org"]),
.products .product a img:not(.emoji):not(.wp-smiley):not([src*="s.w.org"]):not(.main-img),
.woocommerce .products .product .attachment-woocommerce_thumbnail,
.woocommerce .products .product img.wp-post-image,
body.woocommerce ul.products li.product a img:not(.emoji):not(.wp-smiley):not([src*="s.w.org"]):not(.main-img),
body.woocommerce-page ul.products li.product a img:not(.emoji):not(.wp-smiley):not([src*="s.w.org"]):not(.main-img),
.woocommerce-page ul.products li.product img:not(.emoji):not(.wp-smiley):not([src*="s.w.org"]):not(.main-img),
li.product .woocommerce-loop-product__link img:not(.emoji):not(.wp-smiley):not([src*="s.w.org"]),
li.product>a>img:not(.emoji):not(.wp-smiley):not([src*="s.w.org"]),
li.product img.attachment-woocommerce_thumbnail {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background: #f8f9fa !important;
}

/* IMPORTANT: Override for single product page - exclude thumbnail gallery and main image */
.type-product .thumb-item img,
.type-product .product-thumbnails img,
.type-product .gallery-thumbs img {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: auto !important;
    object-fit: cover !important;
}

.type-product .main-product-image .main-img,
.type-product .main-img {
    width: 100% !important;
    height: auto !important;
    max-height: 500px !important;
    min-height: auto !important;
    object-fit: contain !important;
}

/* Product card image container - all variations */
.product-image,
.product-card .product-image,
.shop-card .product-image,
li.product .woocommerce-loop-product__link,
li.product>a:first-child {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    min-height: unset !important;
    max-height: unset !important;
    overflow: hidden !important;
    display: block !important;
}

/* Product images inside containers */
.product-image img,
.product-card .product-image img,
.product-image .product-thumb,
.shop-card .product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background: #f8f9fa !important;
}

/* Override any WooCommerce inline width/height */
.woocommerce ul.products li.product a img[width],
.woocommerce ul.products li.product a img[height] {
    width: 100% !important;
    height: 100% !important;
}

/* ===== Single Product Page ===== */
.single-product-section {
    padding: 50px 0 80px;
    background: var(--gray-100);
}

.single-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

/* Product Gallery */
.product-gallery {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
}

.main-image {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 15px;
}

.main-image img.product-main-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.main-image .no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--gray-400);
    font-size: 60px;
}

.main-image .no-image span {
    font-size: 14px;
}

.sale-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 8px 16px;
    background: var(--danger);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    border-radius: 50px;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.gallery-thumbs .thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.gallery-thumbs .thumb:hover,
.gallery-thumbs .thumb.active {
    border-color: var(--primary);
}

.gallery-thumbs .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Details */
.product-details {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.product-meta-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--gray-600);
}

.product-meta-info a {
    color: var(--primary);
}

.product-meta-info a:hover {
    color: var(--secondary);
}

.product-details .product-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.3;
    display: block;
    -webkit-line-clamp: unset;
}

.product-price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.product-price-box .price {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary);
}

.product-price-box .price del {
    font-size: 18px;
    color: var(--gray-500);
    font-weight: 400;
}

.product-price-box .price ins {
    text-decoration: none;
}

.product-price-box .contact-price {
    color: var(--primary);
}

.stock-status .in-stock {
    color: var(--success);
    font-weight: 600;
}

.stock-status .out-of-stock {
    color: var(--danger);
    font-weight: 600;
}

.short-description {
    margin-bottom: 20px;
    color: var(--gray-700);
    line-height: 1.7;
}

/* Add to Cart */
.add-to-cart-box {
    margin-bottom: 25px;
}

.add-to-cart-box form.cart {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.add-to-cart-box .quantity {
    display: flex;
    align-items: center;
}

.add-to-cart-box .quantity input {
    width: 80px;
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 16px;
}

.add-to-cart-box .single_add_to_cart_button {
    padding: 15px 40px;
    background: var(--gradient-secondary);
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart-box .single_add_to_cart_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

/* Contact Box */
.contact-box {
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 102, 179, 0.05), rgba(0, 102, 179, 0.1));
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.contact-box p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--gray-700);
}

.contact-box p:last-child {
    margin-bottom: 0;
}

.contact-box i {
    color: var(--primary);
    width: 20px;
}

.contact-box a {
    color: var(--secondary);
    font-weight: 600;
}

/* Share Box */
.share-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.share-box span {
    color: var(--gray-600);
    font-size: 14px;
}

.share-box a {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.share-facebook {
    background: #3b5998;
}

.share-twitter {
    background: #1da1f2;
}

.share-box a:hover {
    transform: translateY(-3px);
}

/* Product Tabs */
.product-tabs-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 50px;
}

.tabs-nav {
    display: flex;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
}

.tabs-nav .tab-btn {
    padding: 18px 30px;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.tabs-nav .tab-btn:hover {
    color: var(--primary);
}

.tabs-nav .tab-btn.active {
    background: var(--white);
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tabs-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.description-content {
    color: var(--gray-700);
    line-height: 1.8;
}

.description-content h2,
.description-content h3 {
    color: var(--dark);
    margin: 20px 0 15px;
}

.description-content ul,
.description-content ol {
    margin-left: 20px;
    list-style: disc;
}

.description-content li {
    margin-bottom: 8px;
}

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid var(--gray-200);
}

.specs-table th,
.specs-table td {
    padding: 15px;
    text-align: left;
}

.specs-table th {
    width: 200px;
    background: var(--gray-100);
    font-weight: 600;
    color: var(--gray-700);
}

.specs-table td {
    color: var(--gray-700);
}

/* Related Products */
.related-products {
    margin-top: 50px;
}

.related-products .section-title {
    font-size: 24px;
    margin-bottom: 30px;
    text-align: left;
}

.related-products .section-title::after {
    margin: 15px 0 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Single Product Responsive */
@media (max-width: 992px) {
    .single-product-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .main-image {
        height: 350px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tabs-nav {
        flex-wrap: wrap;
    }

    .tabs-nav .tab-btn {
        flex: 1;
        padding: 15px;
        text-align: center;
        font-size: 13px;
    }

    .product-details .product-title {
        font-size: 22px;
    }

    .product-price-box {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .add-to-cart-box form.cart {
        flex-direction: column;
    }

    .add-to-cart-box .quantity input {
        width: 100%;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .specs-table th {
        width: 120px;
    }
}

/* ===== NEW Single Product Page - SEO Optimized ===== */
.single-product-wrapper {
    background: var(--gray-100);
}

/* Page Header */
.product-page-header {
    background: var(--gradient-primary);
    padding: 20px 0;
}

.product-page-header .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.product-page-header .breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
}

.product-page-header .breadcrumb a:hover {
    color: var(--white);
}

.product-page-header .breadcrumb .sep {
    opacity: 0.5;
}

.product-page-header .breadcrumb .current {
    color: var(--secondary);
    font-weight: 500;
}

/* Main Product Content */
.single-product-content {
    padding: 40px 0;
}

.product-main-grid {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 40px;
    align-items: start;
}

/* Gallery Column */
.product-gallery-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 100px;
}

.main-product-image {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 0;
}

.main-product-image .main-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.main-product-image .sale-label {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    background: var(--danger);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    border-radius: 50px;
}

.no-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--gray-400);
    font-size: 48px;
}

.no-image-placeholder span {
    font-size: 14px;
}

/* Thumbnails */
.product-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding: 5px 0;
}

.thumb-item {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: var(--white);
    transition: var(--transition);
}

.thumb-item:hover,
.thumb-item.active {
    border-color: var(--primary);
}

/* IMPORTANT: Protect thumbnail images from emoji/reset rules */
.thumb-item img,
.product-thumbnails img,
.gallery-thumbs img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    min-width: auto !important;
    min-height: auto !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Product Info Column */
.product-info-col {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.product-main-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
    margin: 0 0 20px;
}

.product-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-600);
}

.meta-item i {
    color: var(--primary);
}

.meta-item a {
    color: var(--primary);
}

.meta-item a:hover {
    color: var(--secondary);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

/* Price Section */
.product-price-section {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.05), rgba(255, 107, 0, 0.1));
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}

.price-display {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary);
}

.price-display del {
    font-size: 18px;
    color: var(--gray-500);
    font-weight: 400;
    margin-right: 10px;
}

.price-display ins {
    text-decoration: none;
}

.price-display.contact-price {
    color: var(--primary);
    font-size: 20px;
}

/* Short Description */
.product-short-desc {
    margin-bottom: 25px;
}

.product-short-desc .desc-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-short-desc .desc-title i {
    color: var(--primary);
}

.product-short-desc p {
    color: var(--gray-700);
    line-height: 1.7;
    margin: 0;
}

/* Contact CTA Box */
.contact-cta-box {
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    padding: 25px;
    margin-bottom: 20px;
    color: var(--white);
}

.contact-cta-box h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-phone {
    background: var(--success);
    color: var(--white);
}

.btn-phone-alt {
    background: var(--secondary);
    color: var(--white);
}

.btn-zalo {
    background: #0068FF;
    color: var(--white);
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: var(--white);
}

/* Share */
.product-share {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.product-share span {
    font-size: 14px;
    color: var(--gray-600);
}

.product-share a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    font-size: 14px;
    transition: var(--transition);
}

.share-fb {
    background: #3b5998;
}

.share-tw {
    background: #1da1f2;
}

.product-share a:hover {
    transform: translateY(-2px);
}

/* Product Details Section */
.product-details-section {
    padding: 0 0 40px;
}

.product-tabs-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.tabs-navigation {
    display: flex;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
}

.tab-trigger {
    flex: 1;
    padding: 18px 20px;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-bottom: 3px solid transparent;
}

.tab-trigger:hover {
    color: var(--primary);
    background: rgba(0, 102, 179, 0.05);
}

.tab-trigger.active {
    color: var(--primary);
    background: var(--white);
    border-bottom-color: var(--primary);
}

.tabs-panels {
    padding: 30px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.description-content {
    color: var(--gray-700);
    line-height: 1.8;
}

.description-content h2,
.description-content h3 {
    color: var(--dark);
    margin: 25px 0 15px;
}

.description-content ul,
.description-content ol {
    margin-left: 20px;
    list-style: disc;
}

.description-content li {
    margin-bottom: 8px;
}

.description-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 15px 0;
}

/* Specifications Table */
.specifications-table {
    width: 100%;
    border-collapse: collapse;
}

.specifications-table tr {
    border-bottom: 1px solid var(--gray-200);
}

.specifications-table tr:last-child {
    border-bottom: none;
}

.specifications-table th,
.specifications-table td {
    padding: 14px 16px;
    text-align: left;
    font-size: 14px;
}

.specifications-table th {
    width: 180px;
    background: var(--gray-100);
    font-weight: 600;
    color: var(--gray-700);
}

.specifications-table td {
    color: var(--gray-700);
}

/* Related Products Section */
.related-products-section {
    padding: 0 0 60px;
}

.section-heading {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-heading i {
    color: var(--primary);
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.related-product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.related-product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.related-product-card .product-link {
    display: block;
}

.related-product-card .product-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--gray-100);
}

.related-product-card .product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8f8f8;
    transition: var(--transition);
}

.related-product-card:hover .product-thumb img {
    transform: scale(1.05);
}

.related-product-card .no-thumb {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--gray-400);
}

.related-product-card .sale-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    background: var(--danger);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    border-radius: 50px;
}

.related-product-card .product-details {
    padding: 15px;
}

.related-product-card .product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-product-card .product-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--secondary);
}

/* WooCommerce Pagination Fix */
.woocommerce-pagination,
.shop-pagination {
    margin-top: 30px;
}

.woocommerce-pagination ul,
.shop-pagination ul {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-pagination ul li,
.shop-pagination ul li {
    display: inline-block !important;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span,
.shop-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--white);
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.woocommerce-pagination ul li a:hover,
.woocommerce-pagination ul li span.current,
.shop-pagination .page-numbers:hover,
.shop-pagination .page-numbers.current {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* Single Product Responsive */
@media (max-width: 992px) {
    .product-main-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .product-gallery-wrapper {
        position: static;
    }

    .main-product-image {
        height: 350px;
    }

    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-main-title {
        font-size: 20px;
    }

    .product-meta-row {
        flex-direction: column;
        gap: 10px;
    }

    .price-display {
        font-size: 24px;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .btn-contact {
        justify-content: center;
    }

    .tabs-navigation {
        flex-direction: column;
    }

    .tab-trigger {
        border-bottom: none;
        border-left: 3px solid transparent;
    }

    .tab-trigger.active {
        border-left-color: var(--primary);
    }

    .specifications-table th {
        width: 120px;
    }
}

@media (max-width: 576px) {
    .main-product-image {
        height: 280px;
    }

    .thumb-item {
        width: 60px;
        height: 60px;
    }

    .product-info-col {
        padding: 20px;
    }

    .related-products-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Zoom Button & Lightbox ===== */
.zoom-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 42px;
    height: 42px;
    background: rgba(0, 102, 179, 0.9);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-btn:hover {
    background: var(--primary);
    transform: scale(1.1);
}

/* Image Lightbox Modal */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    font-size: 36px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 100;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 100;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 18px;
    border-radius: 50px;
}

/* Override main image size - smaller */
.main-product-image {
    height: 320px !important;
}

@media (max-width: 768px) {
    .main-product-image {
        height: 260px !important;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }

    .zoom-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* ===== FIX Shop Page Grid - Larger Images ===== */
.woocommerce ul.products,
.woocommerce-products-wrapper ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce ul.products li.product,
.woocommerce-products-wrapper ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.woocommerce ul.products li.product:hover,
.woocommerce-products-wrapper ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Product Image - Full Size */
.woocommerce ul.products li.product a img,
.woocommerce-products-wrapper ul.products li.product a img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background: #f8f9fa !important;
    display: block;
}

/* Product Title - Clearer */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-products-wrapper ul.products li.product .woocommerce-loop-product__title {
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 15px 15px 10px !important;
    margin: 0 !important;
    color: var(--dark) !important;
    line-height: 1.4 !important;
    min-height: 60px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Product Price */
.woocommerce ul.products li.product .price,
.woocommerce-products-wrapper ul.products li.product .price {
    padding: 0 15px 15px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--secondary) !important;
}

/* Add to Cart Button */
.woocommerce ul.products li.product .button,
.woocommerce-products-wrapper ul.products li.product .button {
    display: block;
    width: calc(100% - 30px);
    margin: 0 15px 15px;
    padding: 12px;
    background: var(--primary);
    color: var(--white);
    text-align: center;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.woocommerce ul.products li.product .button:hover {
    background: var(--primary-dark);
}

/* Shop Products Area - Full Width */
.shop-products {
    width: 100%;
}

/* Fix: REMOVE ::before element in product grid completely */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
ul.products::before,
ul.products::after,
ul.products.columns-4::before,
ul.products.columns-4::after,
.woocommerce-products-wrapper ul.products::before,
.woocommerce-products-wrapper ul.products::after,
/* Ultra specific selectors */
body .woocommerce ul.products.columns-4::before,
body .woocommerce-products-wrapper ul.products.columns-4::before,
body ul.products.columns-4::before,
.shop-products ul.products::before,
.shop-products ul.products.columns-4::before,
body .shop-products ul.products.columns-4::before {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Fix: Hide any li that is not a product */
.woocommerce ul.products>li:not(.product),
ul.products>li:not(.product),
.woocommerce-products-wrapper ul.products>li:not(.product) {
    display: none !important;
}

/* Fix: Hide empty elements in product grid */
.woocommerce ul.products>*:empty,
ul.products>*:empty {
    display: none !important;
}

/* Fix: Hide loose elements in ul.products (not wrapped in li) */
ul.products>a,
ul.products>span,
ul.products>img,
ul.products>h2,
.woocommerce ul.products>a,
.woocommerce ul.products>span,
.woocommerce ul.products>img,
.woocommerce ul.products>h2,
.woocommerce-products-wrapper ul.products>a,
.woocommerce-products-wrapper ul.products>span,
.woocommerce-products-wrapper ul.products>img,
.woocommerce-products-wrapper ul.products>h2 {
    display: none !important;
}

.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* Responsive Shop Grid */
@media (max-width: 1200px) {

    .woocommerce ul.products,
    .woocommerce-products-wrapper ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .woocommerce ul.products,
    .woocommerce-products-wrapper ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .woocommerce ul.products li.product a img,
    .woocommerce-products-wrapper ul.products li.product a img {
        height: 180px !important;
    }
}

@media (max-width: 480px) {

    .woocommerce ul.products,
    .woocommerce-products-wrapper ul.products {
        grid-template-columns: 1fr !important;
    }

    .woocommerce ul.products li.product a img,
    .woocommerce-products-wrapper ul.products li.product a img {
        height: 200px !important;
    }
}

/* ===== PAGINATION FIX - HORIZONTAL LAYOUT ===== */
/* This overrides ALL pagination styles */
.woocommerce-pagination,
.shop-pagination,
nav.woocommerce-pagination,
.woocommerce .woocommerce-pagination,
body .woocommerce-pagination,
body .shop-pagination,
.woocommerce-pagination nav,
.shop-pagination nav {
    display: block !important;
    text-align: center !important;
    margin: 30px 0 !important;
    padding: 20px 0 !important;
    clear: both !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.woocommerce-pagination ul,
.woocommerce-pagination>ul,
.woocommerce-pagination .page-numbers,
.shop-pagination ul,
.shop-pagination>ul,
.shop-pagination .page-numbers,
nav.woocommerce-pagination ul,
body .woocommerce-pagination ul,
body .shop-pagination ul {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    border: none !important;
    background: transparent !important;
}

.woocommerce-pagination ul li,
.woocommerce-pagination .page-numbers li,
.shop-pagination ul li,
.shop-pagination .page-numbers li,
nav.woocommerce-pagination ul li,
body .woocommerce-pagination ul li,
body .shop-pagination ul li {
    display: inline-block !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    list-style: none !important;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span,
.woocommerce-pagination .page-numbers li a,
.woocommerce-pagination .page-numbers li span,
.shop-pagination ul li a,
.shop-pagination ul li span,
.shop-pagination a.page-numbers,
.shop-pagination span.page-numbers,
nav.woocommerce-pagination ul li a,
nav.woocommerce-pagination ul li span,
body .woocommerce-pagination ul li a,
body .woocommerce-pagination ul li span,
body .shop-pagination ul li a,
body .shop-pagination ul li span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 30px !important;
    height: 30px !important;
    padding: 0 8px !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    color: #333333 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.woocommerce-pagination ul li a:hover,
.shop-pagination ul li a:hover,
.shop-pagination a.page-numbers:hover,
body .woocommerce-pagination ul li a:hover,
body .shop-pagination ul li a:hover {
    color: #0066b3 !important;
    text-decoration: underline !important;
    background: transparent !important;
}

.woocommerce-pagination ul li span.current,
.woocommerce-pagination ul li .current,
.shop-pagination ul li span.current,
.shop-pagination span.page-numbers.current,
body .woocommerce-pagination ul li span.current,
body .shop-pagination ul li span.current,
.woocommerce-pagination ul li a.current,
.shop-pagination ul li a.current {
    color: #0066b3 !important;
    font-weight: 700 !important;
    cursor: default !important;
    background: transparent !important;
    border: none !important;
}

/* Prev/Next arrows */
.woocommerce-pagination ul li a.prev,
.woocommerce-pagination ul li a.next,
.shop-pagination ul li a.prev,
.shop-pagination ul li a.next {
    font-size: 18px !important;
}

/* Dots styling */
.woocommerce-pagination ul li span.dots,
.shop-pagination ul li span.dots {
    background: transparent !important;
    border: none !important;
    color: #666 !important;
    min-width: 30px !important;
}

/* === FIX: Remove blue bar from ul.page-numbers === */
ul.page-numbers,
.shop-pagination ul.page-numbers,
.woocommerce-pagination ul.page-numbers,
body ul.page-numbers,
nav ul.page-numbers {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    list-style: none !important;
    display: inline-flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 0 !important;
    margin: 0 auto !important;
}

ul.page-numbers li,
.shop-pagination ul.page-numbers li {
    background: transparent !important;
    border: none !important;
    list-style: none !important;
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
}

ul.page-numbers li a.page-numbers,
ul.page-numbers li span.page-numbers {
    background: transparent !important;
    border: none !important;
    color: #333 !important;
    padding: 5px 10px !important;
    text-decoration: none !important;
    font-size: 14px !important;
}

ul.page-numbers li a.page-numbers:hover {
    color: #0066b3 !important;
    text-decoration: underline !important;
}

ul.page-numbers li span.page-numbers.current {
    color: #0066b3 !important;
    font-weight: 700 !important;
}

ul.page-numbers li a.next.page-numbers,
ul.page-numbers li a.prev.page-numbers {
    display: none !important;
}

/* === ULTIMATE FIX: Remove ALL backgrounds from .shop-pagination === */
.shop-pagination,
.shop-pagination *,
.shop-pagination nav,
.shop-pagination nav.woocommerce-pagination,
.shop-pagination .woocommerce-pagination,
div.shop-pagination,
div.shop-pagination nav,
body .shop-pagination,
body .shop-pagination *,
body .shop-pagination nav {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* === NAV WOOCOMMERCE PAGINATION - REMOVE BLUE BAR === */
nav.woocommerce-pagination,
.woocommerce nav.woocommerce-pagination,
body nav.woocommerce-pagination,
.shop-pagination nav.woocommerce-pagination,
nav[class*="woocommerce-pagination"],
[class*="pagination"] nav,
.woocommerce-pagination,
body .woocommerce-pagination {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 20px 0 !important;
}

/* === EXACT SELECTOR FIX: .shop-pagination > nav > ul === */
.shop-pagination nav ul,
.shop-pagination>nav>ul,
div.shop-pagination nav ul,
div.shop-pagination>nav>ul,
section.shop-section .shop-pagination nav ul,
body section.shop-section .shop-pagination nav ul,
body>section.shop-section>div>div>div>div.shop-pagination>nav>ul {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* === NEW CUSTOM PAGINATION STYLE - Circle Style === */
.custom-pagination {
    text-align: center;
    margin: 30px 0;
    padding: 20px 0;
}

.custom-pagination .pagination-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.custom-pagination .page-num {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid #ddd;
    border-radius: 50%;
    background: #fff;
    transition: all 0.2s ease;
}

.custom-pagination .page-num:hover {
    color: #1da1f2;
    border-color: #1da1f2;
}

.custom-pagination .page-num.current {
    color: #fff;
    background: #1da1f2;
    border-color: #1da1f2;
    font-weight: 600;
}

.custom-pagination .page-num.page-arrow {
    font-size: 16px;
    font-weight: 400;
}

.custom-pagination .page-dots {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    color: #999;
    font-size: 14px;
    border: 2px solid #ddd;
    border-radius: 50%;
    background: #fff;
}

/* ===== FIX: Emoji/Icon Images in Product Content ===== */
/* Target ALL images in description/content areas to prevent oversized display */

/* General emoji fix */
img.emoji,
img.wp-smiley {
    width: 1em !important;
    height: 1em !important;
    max-width: 1em !important;
    max-height: 1em !important;
    display: inline !important;
    vertical-align: -0.1em !important;
    margin: 0 2px !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: none !important;
}

/* Fix for SMALL images (emoji/icons) in product description tables - max 50px */
.description-content table img[width],
.tab-panel table img[width],
#tab-description table img[width],
.entry-content table img[width],
.product-short-desc table img[width],
.woocommerce-product-details__short-description table img[width] {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
}

/* Normal product images in tables - preserve aspect ratio */
.description-content table img,
.tab-panel table img,
#tab-description table img,
.entry-content table img,
.product-short-desc table img,
.woocommerce-product-details__short-description table img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 5px auto;
    object-fit: contain;
}

/* Target images in table cells (th, td) - preserve aspect ratio */
.description-content th img,
.description-content td img,
.tab-panel th img,
.tab-panel td img,
#tab-description th img,
#tab-description td img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Fix for twemoji CDN images (s.w.org) */
.description-content img[src*="s.w.org"],
.description-content img[src*="twemoji"],
.tab-panel img[src*="s.w.org"],
.tab-panel img[src*="twemoji"],
#tab-description img[src*="s.w.org"],
#tab-description img[src*="twemoji"] {
    width: 1em !important;
    height: 1em !important;
    max-width: 1em !important;
    max-height: 1em !important;
    display: inline !important;
    vertical-align: -0.1em !important;
}

/* ========================================
   GLOBAL EMOJI & ICON FIX
   Fix for all emoji images site-wide
======================================== */

/* Fix all WordPress emoji images (img.emoji, .wp-smiley) */
img.emoji,
img.wp-smiley,
.emoji {
    width: 1em !important;
    height: 1em !important;
    max-width: 1em !important;
    max-height: 1em !important;
    min-width: 1em !important;
    min-height: 1em !important;
    display: inline !important;
    vertical-align: -0.1em !important;
    margin: 0 2px !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: none !important;
    object-fit: contain !important;
}

/* Fix emoji images from s.w.org CDN - site-wide */
/* IMPORTANT: Only target actual emoji CDN sources, not product images */
img[src*="s.w.org"],
img[src*="twemoji"] {
    width: 1em !important;
    height: 1em !important;
    max-width: 1em !important;
    max-height: 1em !important;
    min-width: 1em !important;
    min-height: 1em !important;
    display: inline !important;
    vertical-align: -0.1em !important;
    margin: 0 2px !important;
    padding: 0 !important;
}

/* Ensure product images in description are NOT affected by emoji rules */
.description-content img:not(.emoji):not(.wp-smiley):not([src*="s.w.org"]):not([src*="twemoji"]),
.tab-panel img:not(.emoji):not(.wp-smiley):not([src*="s.w.org"]):not([src*="twemoji"]),
#tab-description img:not(.emoji):not(.wp-smiley):not([src*="s.w.org"]):not([src*="twemoji"]),
.woocommerce-Tabs-panel--description img:not(.emoji):not(.wp-smiley):not([src*="s.w.org"]):not([src*="twemoji"]),
.entry-content img:not(.emoji):not(.wp-smiley):not([src*="s.w.org"]):not([src*="twemoji"]) {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    min-width: auto !important;
    min-height: auto !important;
    display: block !important;
    margin: 10px auto !important;
    object-fit: contain !important;
}

/* ========================================
   FOOTER ICON FIX
   Fix stretched Font Awesome icons in footer
======================================== */

/* Footer contact list icons - prevent stretching */
.footer-contact li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
}

.footer-contact li i,
.footer-contact li .fas,
.footer-contact li .fab,
.footer-contact li .far {
    flex-shrink: 0 !important;
    width: 16px !important;
    min-width: 16px !important;
    height: auto !important;
    line-height: 1.6 !important;
    text-align: center !important;
    color: var(--secondary) !important;
    font-size: 14px !important;
    margin-top: 2px !important;
}

/* Footer social icons */
.footer-social a i {
    width: auto !important;
    height: auto !important;
    flex-shrink: 0 !important;
}

/* ========================================
   PRODUCT PAGE ICON FIX
   Fix icons in product content areas
======================================== */

/* Fix icons in product short description & content */
.product-short-desc img.emoji,
.product-short-desc img[src*="s.w.org"],
.contact-cta-box img.emoji,
.contact-cta-box img[src*="s.w.org"],
.single-product-wrapper img.emoji,
.single-product-wrapper img[src*="s.w.org"] {
    width: 1em !important;
    height: 1em !important;
    max-width: 1em !important;
    max-height: 1em !important;
    display: inline !important;
    vertical-align: -0.1em !important;
}

/* Fix Font Awesome icons in product meta */
.product-meta-row i,
.meta-item i,
.stock-info i,
.contact-cta-box i,
.contact-buttons i {
    flex-shrink: 0 !important;
    width: auto !important;
    height: auto !important;
    font-size: inherit !important;
}

/* Fix icons in tabs navigation */
.tab-trigger i,
.tabs-navigation i {
    flex-shrink: 0 !important;
    width: auto !important;
    height: auto !important;
    margin-right: 6px !important;
}

/* ========================================
   HOTLINE & CTA SECTION ICON FIX
======================================== */

/* General hotline/CTA emoji fix */
[class*="hotline"] img.emoji,
[class*="hotline"] img[src*="s.w.org"],
[class*="cta"] img.emoji,
[class*="cta"] img[src*="s.w.org"],
.contact-cta-box img.emoji,
.contact-cta-box img[src*="s.w.org"] {
    width: 1em !important;
    height: 1em !important;
    max-width: 1em !important;
    max-height: 1em !important;
    display: inline !important;
    vertical-align: middle !important;
}

/* ========================================
   GENERAL CONTENT ICON FIX
   Apply to all content areas
======================================== */

/* Description content areas */
.description-content img.emoji,
.entry-content img.emoji,
.post-content img.emoji,
.woocommerce-Tabs-panel img.emoji,
.woocommerce-product-details__short-description img.emoji {
    width: 1em !important;
    height: 1em !important;
    max-width: 1em !important;
    max-height: 1em !important;
    display: inline !important;
    vertical-align: -0.1em !important;
    margin: 0 3px !important;
}

/* Fix all Font Awesome icons to not stretch */
i.fas,
i.fab,
i.far,
i.fal,
i.fad,
.fas,
.fab,
.far,
.fal,
.fad {
    flex-shrink: 0 !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
}

/* ========================================
   CRITICAL FIX: EMOJI FLEXBOX STRETCHING
   Fix emoji being stretched by flexbox containers
   This is the strongest override for the min-height issue
======================================== */

/* Ultimate emoji fix - prevent ALL stretching from flexbox */
/* IMPORTANT: Only target ACTUAL emoji sources - NOT product images */
img.emoji,
img.wp-smiley,
img[src*="s.w.org"],
img[src*="twemoji"],
img[draggable="false"][class*="emoji"] {
    width: 1em !important;
    height: 1em !important;
    max-width: 1em !important;
    max-height: 1em !important;
    min-width: 1em !important;
    min-height: 1em !important;
    display: inline !important;
    vertical-align: -0.1em !important;
    margin: 0 3px !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    align-self: center !important;
}

/* Fix for emoji inside flex containers - apply to parent too */
.contact-cta-box,
.product-short-desc,
.description-content,
.tab-panel,
[class*="hotline"],
.footer-contact li {
    align-items: flex-start !important;
}

/* Ensure the flex item containing emoji doesn't stretch */
.contact-cta-box h3,
.contact-cta-box p,
.product-short-desc p,
.description-content p,
.tab-panel p,
.footer-contact li {
    display: flex !important;
    align-items: flex-start !important;
    flex-wrap: wrap !important;
}

/* Force EMOJI images in product content to not be affected by flex stretching */
/* IMPORTANT: Only target actual emoji, not product images */
.single-product-content img.emoji,
article[class*="product"] img.emoji,
.single-product-wrapper img.emoji,
.single-product-wrapper img[src*="s.w.org"],
.single-product-wrapper img[src*="twemoji"] {
    height: 1em !important;
    min-height: 1em !important;
    max-height: 1em !important;
    align-self: center !important;
}

/* Reset product images in description to display properly */
.single-product-wrapper .description-content img:not(.emoji):not([src*="s.w.org"]):not([src*="twemoji"]),
.single-product-wrapper .tab-panel img:not(.emoji):not([src*="s.w.org"]):not([src*="twemoji"]),
.single-product-wrapper .woocommerce-Tabs-panel--description img:not(.emoji):not([src*="s.w.org"]):not([src*="twemoji"]) {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    min-height: auto !important;
    display: block !important;
    margin: 15px auto !important;
    object-fit: contain !important;
}

/* Footer specific fix for stretched icons */
.footer-contact li i {
    min-height: auto !important;
    max-height: 20px !important;
    height: auto !important;
    align-self: flex-start !important;
}

/* ========================================
   SIDEBAR OVERFLOW FIX - Prevent sidebar from overlapping footer
   ======================================== */
.shop-section {
    position: relative !important;
    z-index: 1 !important;
    overflow: visible !important;
    contain: layout !important;
}

.shop-layout {
    position: relative !important;
    overflow: visible !important;
}

.shop-sidebar,
aside.shop-sidebar {
    position: relative !important;
    z-index: 1 !important;
    overflow: visible !important;
    float: none !important;
    display: block !important;
}

.shop-sidebar .sidebar-widget,
aside.shop-sidebar .sidebar-widget {
    position: relative !important;
    z-index: 1 !important;
    overflow: hidden !important;
    transform: none !important;
}

.shop-sidebar .category-list,
aside.shop-sidebar .category-list {
    max-height: none !important;
    overflow-y: visible !important;
    position: relative !important;
}

/* Ensure footer stays below shop section */
.cta-section,
.footer,
footer,
.site-footer {
    position: relative !important;
    z-index: 2 !important;
    clear: both !important;
}

/* ===== PRODUCT IMAGE - SQUARE ASPECT RATIO FIX ===== */
/* Product card containers use aspect-ratio 1:1 */
.product-image,
.product-card .product-image,
.shop-card .product-image,
li.product .woocommerce-loop-product__link,
li.product>a:first-child {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
}

/* Product images fill container with contain - show full image */
.product-image img,
.product-card .product-image img,
.shop-card .product-image img,
.product-image .product-thumb,
.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img,
li.product img.attachment-woocommerce_thumbnail,
li.product img.wp-post-image,
.products-grid .product-card img,
.related-product-card .product-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background: #f8f9fa !important;
}