/* =========================================
   HopQua Theme - Main Stylesheet
   Optimized for PageSpeed & SEO
   ========================================= */

/* CSS Variables */
:root {
    --primary: #e74c3c;
    --primary-dark: #c0392b;
    --primary-light: #ff6b6b;
    --secondary: #2c3e50;
    --secondary-light: #34495e;
    --accent: #f39c12;
    --success: #27ae60;
    --bg: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #f0f0f0;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --border: #e0e0e0;
    --border-light: #f0f0f0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-sm: 4px;
    --transition: 0.3s ease;
    --font: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --container: 1200px;
    --header-height: 70px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    color: var(--secondary);
    font-weight: 700;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 15px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
    background: rgba(255,255,255,0.9);
    color: var(--secondary);
    border-radius: var(--radius-sm);
}

.btn-sm:hover {
    background: #fff;
    color: var(--primary);
}

/* =========================================
   TOP BAR
   ========================================= */
.top-bar {
    background: var(--secondary);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    padding: 6px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--transition);
}

.top-bar-item:hover {
    color: #fff;
}

.top-bar-item svg {
    flex-shrink: 0;
}

/* =========================================
   HEADER
   ========================================= */
.site-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 0;
    height: var(--header-height);
}

.site-logo {
    flex-shrink: 0;
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

.site-logo a {
    display: flex;
    align-items: center;
}

.site-title-link {
    text-decoration: none;
}

.site-title {
    font-size: 20px;
    color: var(--primary);
    white-space: nowrap;
}

/* Header Search */
.header-search {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-form {
    display: flex;
    border: 2px solid var(--border);
    border-radius: 50px;
    overflow: hidden;
    transition: border-color var(--transition);
}

.search-form:focus-within {
    border-color: var(--primary);
}

.search-input {
    flex: 1;
    padding: 10px 18px;
    border: none;
    font-size: 14px;
    outline: none;
    background: transparent;
}

.search-btn {
    padding: 10px 18px;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background var(--transition);
}

.search-btn:hover {
    background: var(--primary-dark);
}

/* Search Dropdown */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    margin-top: 4px;
    display: none;
    z-index: 100;
    max-height: 400px;
    overflow-y: auto;
}

.search-results-dropdown.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition);
}

.search-result-item:hover {
    background: var(--bg-light);
}

.search-result-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.search-result-info h4 {
    font-size: 14px;
    margin-bottom: 2px;
}

.search-result-info .price {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.header-action {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
    padding: 6px;
    border-radius: var(--radius);
    transition: all var(--transition);
    text-decoration: none;
}

.header-action:hover {
    color: var(--primary);
    background: var(--bg-light);
}

.header-action svg {
    flex-shrink: 0;
}

.action-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.action-text small {
    font-size: 11px;
    color: var(--text-muted);
}

.action-text strong {
    font-size: 13px;
}

/* Cart Count */
.header-cart {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}

.hamburger span {
    display: block;
    height: 2px;
    background: var(--secondary);
    border-radius: 2px;
    transition: all var(--transition);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* =========================================
   MAIN NAVIGATION
   ========================================= */
.main-nav {
    background: var(--secondary);
}

.nav-inner {
    display: flex;
    align-items: center;
}

/* Categories Dropdown */
.nav-categories {
    position: relative;
    flex-shrink: 0;
}

.categories-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background var(--transition);
    white-space: nowrap;
}

.categories-toggle:hover {
    background: var(--primary-dark);
}

.categories-toggle .caret {
    transition: transform var(--transition);
}

.categories-toggle.active .caret {
    transform: rotate(180deg);
}

.categories-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius) var(--radius);
    display: none;
    z-index: 999;
}

.categories-dropdown.active {
    display: block;
}

.categories-list {
    padding: 8px 0;
}

.categories-list > li {
    position: relative;
}

.categories-list > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    color: var(--text);
    font-size: 14px;
    transition: all var(--transition);
}

.categories-list > li > a:hover {
    background: var(--bg-light);
    color: var(--primary);
    padding-left: 24px;
}

.cat-count {
    font-size: 12px;
    color: var(--text-muted);
}

.categories-list > li.has-children > a::after {
    content: '›';
    font-size: 18px;
    color: var(--text-muted);
}

.sub-categories {
    position: absolute;
    left: 100%;
    top: 0;
    width: 250px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    display: none;
    z-index: 1000;
}

.categories-list > li:hover > .sub-categories {
    display: block;
}

.sub-categories ul {
    padding: 8px 0;
}

.sub-categories li a {
    display: block;
    padding: 8px 20px;
    color: var(--text);
    font-size: 14px;
    transition: all var(--transition);
}

.sub-categories li a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

/* Primary Menu */
.primary-menu {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
}

.primary-menu > li > a {
    display: block;
    padding: 12px 18px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
    white-space: nowrap;
}

.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Submenu */
.primary-menu > li {
    position: relative;
}

.primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 8px 0;
    display: none;
    z-index: 999;
}

.primary-menu > li:hover > .sub-menu {
    display: block;
}

.primary-menu .sub-menu li a {
    display: block;
    padding: 8px 20px;
    color: var(--text);
    font-size: 14px;
    transition: all var(--transition);
}

.primary-menu .sub-menu li a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

/* Nav Promo */
.nav-promo {
    margin-left: auto;
    flex-shrink: 0;
}

.promo-text {
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* =========================================
   MOBILE MENU
   ========================================= */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background: #fff;
    z-index: 9999;
    overflow-y: auto;
    transition: left var(--transition);
    box-shadow: var(--shadow-lg);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
}

.mobile-menu-logo img {
    max-height: 40px;
}

.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text);
}

/* Mobile Search */
.mobile-search {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-light);
}

.mobile-search form {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 50px;
    overflow: hidden;
}

.mobile-search input[type="search"] {
    flex: 1;
    padding: 8px 15px;
    border: none;
    font-size: 14px;
    outline: none;
}

.mobile-search button {
    padding: 8px 12px;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
}

/* Mobile Nav */
.mobile-nav {
    padding: 10px 0;
}

.mobile-menu-list {
    list-style: none;
}

.mobile-menu-list li {
    border-bottom: 1px solid var(--border-light);
}

.mobile-menu-item-wrap {
    display: flex;
    align-items: center;
}

.mobile-menu-item-wrap a {
    flex: 1;
    display: block;
    padding: 12px 20px;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
}

.mobile-submenu-toggle {
    padding: 12px 16px;
    background: none;
    border: none;
    border-left: 1px solid var(--border-light);
    cursor: pointer;
    color: var(--text-muted);
    transition: all var(--transition);
}

.mobile-submenu-toggle[aria-expanded="true"] {
    transform: rotate(180deg);
}

.mobile-submenu {
    display: none;
    background: var(--bg-light);
}

.mobile-submenu.active {
    display: block;
}

.mobile-submenu li a {
    padding-left: 36px !important;
    font-size: 14px;
}

/* Mobile Categories */
.mobile-categories {
    padding: 15px 20px;
    border-top: 1px solid var(--border);
}

.mobile-categories h3 {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.mobile-cat-list li a {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: var(--text);
    font-size: 14px;
    border-bottom: 1px solid var(--border-light);
}

.mobile-cat-list li a span {
    color: var(--text-muted);
    font-size: 12px;
}

/* Mobile Contact */
.mobile-contact {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: var(--bg-light);
    border-radius: var(--radius);
    color: var(--text);
    font-weight: 600;
}

/* =========================================
   BREADCRUMB
   ========================================= */
.hopqua-breadcrumb {
    padding: 12px 0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 13px;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '›';
    margin-right: 4px;
    color: var(--text-muted);
}

.breadcrumb-item a {
    color: var(--text-light);
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-item.active span {
    color: var(--text);
    font-weight: 500;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    padding: 20px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 15px;
    min-height: 380px;
}

.hero-slider {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.hero-slide {
    position: relative;
    height: 100%;
    min-height: 380px;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-default {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #8e44ad 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.hero-slide-content {
    color: #fff;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 14px;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
}

.hero-slide-content h2 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.3;
}

.hero-slide-content p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-side-banner {
    flex: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: #fff;
}

.hero-side-banner:first-child {
    background: linear-gradient(135deg, #2c3e50, #3498db);
}

.hero-side-banner:last-child {
    background: linear-gradient(135deg, #e74c3c, #f39c12);
}

.side-banner-content h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 6px;
}

.side-banner-content p {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 10px;
}

/* =========================================
   SECTIONS
   ========================================= */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 10px;
}

.section-title {
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.title-icon {
    font-size: 24px;
}

.sale-badge {
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 15px;
    width: 100%;
}

.section-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

.section-link:hover {
    color: var(--primary-dark);
}

/* =========================================
   CATEGORIES SECTION
   ========================================= */
.categories-section {
    padding: 40px 0;
    background: var(--bg-light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    transition: all var(--transition);
    text-decoration: none;
    color: var(--text);
    display: block;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    color: var(--primary);
}

.category-thumb {
    width: 120px;
    height: 120px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-light);
}

.category-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card h3 {
    font-size: 15px;
    margin-bottom: 4px;
    color: inherit;
}

.cat-product-count {
    font-size: 12px;
    color: var(--text-muted);
}

/* =========================================
   PRODUCT GRID
   ========================================= */
.featured-section,
.sale-section,
.new-products-section {
    padding: 40px 0;
}

.sale-section {
    background: var(--bg-light);
}

.products-grid,
.woocommerce ul.products {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.products-grid::-webkit-scrollbar,
.woocommerce ul.products::-webkit-scrollbar {
    display: none;
}

/* Products Wrapper (for arrows) */
.products-slider-wrap {
    position: relative;
}

.products-slider-wrap .slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-70%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all var(--transition);
    color: var(--text);
}

.products-slider-wrap .slider-arrow:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.products-slider-wrap .slider-arrow.arrow-left {
    left: -15px;
}

.products-slider-wrap .slider-arrow.arrow-right {
    right: -15px;
}

/* Product Card */
.product-card,
.woocommerce ul.products li.product {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    border: 1px solid var(--border-light);
    position: relative;
    min-width: 220px;
    max-width: 220px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.product-card:hover,
.woocommerce ul.products li.product:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.product-card-link {
    display: block;
    position: relative;
    overflow: hidden;
}

.product-card-link img,
.woocommerce ul.products li.product a img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform var(--transition);
}

.product-card:hover .product-card-link img,
.woocommerce ul.products li.product:hover a img {
    transform: scale(1.05);
}

/* Sale Badge */
.sale-badge,
.woocommerce span.onsale {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: #fff;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

/* Product Info */
.product-card-info {
    padding: 12px 15px;
}

.product-category {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin: 4px 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.price,
.woocommerce ul.products li.product .price {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
}

.price del {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
    margin-right: 6px;
}

.price ins {
    text-decoration: none;
    color: var(--primary);
}

/* Product Actions */
.product-card-actions {
    display: flex;
    gap: 8px;
    padding: 0 15px 15px;
}

.product-card-actions .button,
.product-card-actions .add_to_cart_button {
    flex: 1;
    padding: 8px 12px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all var(--transition);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-actions .button:hover,
.product-card-actions .add_to_cart_button:hover {
    background: var(--primary-dark);
}

.quick-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    transition: all var(--transition);
}

.quick-view-btn:hover {
    background: var(--secondary);
    color: #fff;
}

/* =========================================
   SERVICES SECTION
   ========================================= */
.services-section {
    padding: 50px 0;
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 30px 24px;
    text-align: center;
    transition: all var(--transition);
    border: 1px solid var(--border-light);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(231, 76, 60, 0.05));
    border-radius: 50%;
    color: var(--primary);
}

.service-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 12px;
}

.service-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

/* =========================================
   BLOG SECTION
   ========================================= */
.blog-section {
    padding: 50px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.blog-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    border: 1px solid var(--border-light);
}

.blog-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.blog-card-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 3/2;
}

.blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.blog-card:hover .blog-card-thumb img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 15px;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.blog-cat {
    background: var(--bg-light);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.blog-card-content h3 {
    font-size: 15px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.blog-card-content h3 a {
    color: var(--text);
}

.blog-card-content h3 a:hover {
    color: var(--primary);
}

.blog-card-content p {
    font-size: 13px;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.read-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

/* =========================================
   TRUST SECTION
   ========================================= */
.trust-section {
    padding: 50px 0;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: #fff;
    text-align: center;
}

.trust-content h2 {
    color: #fff;
    font-size: 26px;
    margin-bottom: 12px;
}

.trust-content p {
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
    font-size: 15px;
}

.trust-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.trust-stat strong {
    display: block;
    font-size: 36px;
    color: var(--accent);
    margin-bottom: 4px;
}

.trust-stat span {
    font-size: 14px;
    opacity: 0.9;
}

/* =========================================
   CONTENT LAYOUT
   ========================================= */
.content-wrapper {
    display: flex;
    gap: 30px;
    padding: 20px 0 40px;
}

.content-main {
    flex: 1;
    min-width: 0;
}

.content-sidebar {
    width: 280px;
    flex-shrink: 0;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Single Post / Page */
.single-post,
.single-page {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
}

.post-header,
.page-header-title {
    padding: 30px 30px 0;
}

.post-title,
.page-title {
    font-size: 28px;
    margin-bottom: 12px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-light);
}

.post-meta > * {
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-thumbnail {
    margin: 20px 0;
}

.post-thumbnail img {
    width: 100%;
}

.post-content,
.page-content {
    padding: 20px 30px 30px;
}

.entry-content h2 {
    font-size: 22px;
    margin: 24px 0 12px;
}

.entry-content h3 {
    font-size: 18px;
    margin: 20px 0 10px;
}

.entry-content p {
    margin-bottom: 16px;
}

.entry-content img {
    border-radius: var(--radius);
    margin: 16px 0;
}

.entry-content ul,
.entry-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.entry-content li {
    margin-bottom: 6px;
    list-style: disc;
}

.entry-content ol li {
    list-style: decimal;
}

/* Post Tags */
.post-tags {
    padding: 20px 30px;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.tag-link {
    background: var(--bg-light);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 13px;
    color: var(--text-light);
    transition: all var(--transition);
}

.tag-link:hover {
    background: var(--primary);
    color: #fff;
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px 30px;
    border-top: 1px solid var(--border-light);
}

.post-nav-link {
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
    display: block;
}

.post-nav-link:hover {
    border-color: var(--primary);
    background: var(--bg-light);
}

.nav-label {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}

.nav-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-nav-next {
    text-align: right;
}

/* Related Posts */
.related-posts {
    padding: 30px;
    border-top: 1px solid var(--border-light);
}

.related-posts h3 {
    margin-bottom: 16px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.related-post-card {
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}

.related-post-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.related-post-card img {
    aspect-ratio: 3/2;
    object-fit: cover;
}

.related-post-card h4 {
    padding: 8px 12px;
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Sidebar Widgets */
.widget {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
}

.widget-title {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.widget ul li {
    padding: 6px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--text);
}

.widget ul li a:hover {
    color: var(--primary);
}

/* Pagination */
.pagination {
    margin: 30px 0;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 4px 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    transition: all var(--transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* 404 Page */
.page-404 {
    padding: 80px 0;
    text-align: center;
}

.error-code {
    font-size: 120px;
    color: var(--primary);
    line-height: 1;
    opacity: 0.3;
}

.error-404-content h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.error-404-content p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 30px;
}

.error-search {
    max-width: 400px;
    margin: 0 auto;
}

/* Search Page */
.search-header {
    margin-bottom: 24px;
}

.search-title {
    font-size: 24px;
}

.search-count {
    color: var(--text-light);
    font-size: 14px;
}

.search-results .search-result-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    margin-bottom: 12px;
    transition: all var(--transition);
}

.search-results .search-result-item:hover {
    box-shadow: var(--shadow);
}

.search-thumb img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.search-content h2 {
    font-size: 16px;
    margin-bottom: 6px;
}

.search-content h2 a {
    color: var(--text);
}

.search-content h2 a:hover {
    color: var(--primary);
}

.search-post-type {
    display: inline-block;
    background: var(--bg-light);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* No Results */
.no-results,
.no-content {
    text-align: center;
    padding: 60px 20px;
}

.no-results h2,
.no-content h2 {
    margin-bottom: 10px;
}

.no-results p,
.no-content p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Search form */
.search-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
}

/* =========================================
   FOOTER
   ========================================= */
.footer-advantages {
    background: var(--bg-light);
    padding: 30px 0;
    border-top: 1px solid var(--border);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.advantage-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.advantage-icon {
    flex-shrink: 0;
    color: var(--primary);
}

.advantage-text h4 {
    font-size: 15px;
    margin-bottom: 2px;
}

.advantage-text p {
    font-size: 13px;
    color: var(--text-light);
}

.footer-main {
    background: var(--secondary);
    color: rgba(255, 255, 255, 0.8);
    padding: 40px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 30px;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-logo img,
.footer-logo .custom-logo-link img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

.footer-logo h3 {
    color: #fff;
    font-size: 22px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
}

.contact-item svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.8);
}

.contact-item a:hover {
    color: #fff;
}

.footer-title {
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.footer-menu li {
    margin-bottom: 8px;
}

.footer-menu li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: all var(--transition);
    display: inline-block;
}

.footer-menu li a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-social {
    margin-top: 20px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 0;
    font-size: 13px;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
}

.copyright a {
    color: rgba(255, 255, 255, 0.8);
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.payment-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
}

/* =========================================
   MOBILE BOTTOM NAV
   ========================================= */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 6px 0 env(safe-area-inset-bottom, 6px);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--text-light);
    font-size: 10px;
    padding: 4px 0;
    position: relative;
    text-decoration: none;
}

.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-call {
    color: var(--primary);
}

.bottom-cart-count {
    position: absolute;
    top: -2px;
    right: calc(50% - 16px);
    background: var(--primary);
    color: #fff;
    font-size: 9px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* =========================================
   FLOATING BUTTONS
   ========================================= */
.floating-buttons {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 998;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition);
    border: none;
    cursor: pointer;
}

.float-btn:hover {
    transform: scale(1.1);
}

.float-zalo {
    background: #0068ff;
}

.float-phone {
    background: var(--success);
    animation: phone-ring 2s infinite;
}

@keyframes phone-ring {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.1) rotate(-5deg); }
    20%, 40% { transform: scale(1.1) rotate(5deg); }
    50% { transform: scale(1); }
}

.float-top {
    background: var(--secondary);
}

/* =========================================
   WOOCOMMERCE OVERRIDES
   ========================================= */
.woocommerce .woocommerce-result-count {
    font-size: 14px;
    color: var(--text-light);
}

.woocommerce .woocommerce-ordering select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: #fff;
}

.woocommerce-info,
.woocommerce-message {
    border-top-color: var(--primary);
}

.woocommerce .quantity .qty {
    width: 60px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
}

.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 12px 24px;
    font-weight: 600;
    transition: all var(--transition);
}

.woocommerce .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: var(--primary-dark);
    color: #fff;
}

.woocommerce .button.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background: var(--primary);
}

.woocommerce .button.alt:hover,
.woocommerce a.button.alt:hover {
    background: var(--primary-dark);
}

/* Single Product */
.woocommerce div.product div.images {
    margin-bottom: 20px;
}

.woocommerce div.product p.price {
    font-size: 24px;
    color: var(--primary);
    font-weight: 700;
}

.woocommerce div.product .product_title {
    font-size: 26px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    margin-bottom: 0;
    padding: 0;
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    padding: 12px 20px;
    font-weight: 600;
    color: var(--text-light);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    border-bottom-color: var(--primary);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--primary);
}

.woocommerce div.product .woocommerce-tabs .panel {
    padding: 20px 0;
}

/* Cart Page */
.woocommerce table.shop_table {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.woocommerce table.shop_table th {
    background: var(--bg-light);
    font-weight: 600;
    padding: 12px 16px;
}

.woocommerce table.shop_table td {
    padding: 12px 16px;
    border-top: 1px solid var(--border-light);
}

/* Comments */
.comments-area {
    margin-top: 30px;
    padding: 30px;
    background: #fff;
    border-radius: var(--radius);
}

.comment-list {
    list-style: none;
}

.comment-list li {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
}

/* Archive Header */
.archive-header {
    margin-bottom: 24px;
}

.archive-title {
    font-size: 26px;
    margin-bottom: 8px;
}

.archive-description {
    color: var(--text-light);
    font-size: 15px;
}

/* WooCommerce wrapper */
.woo-wrapper {
    padding-top: 0;
}

/* Star Rating */
.star-rating {
    color: var(--accent);
}
