/*
Theme Name:   NEKO
Theme URI:    https://neko.com.vn
Description:  Custom Theme for NEKO
Author:       NEKO
Author URI:   https://neko.com.vn
Version:      1.0.0
Text Domain:  neko
*/

/* --- DESIGN SYSTEM & TOKENS --- */
:root {
    /* Color Palette */
    --bg-dark: #000000;
    --bg-dark-light: #111111;
    --bg-light: #ffffff;
    --bg-light-gray: #f8f9fa;
    --color-accent: #ef872d; /* Brand Logo Gold */
    --color-accent-hover: #d8721c;
    --color-accent-rgb: 239, 135, 45;
    --text-main: #111111;
    --text-muted: #555555;
    --text-light: #ffffff;
    --text-light-muted: #aaaaaa;
    --border-color: #e5e5e5;
    --border-dark: #222222;
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Container Width */
    --container-width: 1440px;
    --transition-speed: 0.3s;
}

/* --- GLOBAL STYLES --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

*:focus {
    outline: none !important;
}

table, th, td {
    border: none;
}

/* Disable WordPress Gutenberg default black border style override */
html :where([style*="border-color"]) {
    border-style: none;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-light-gray);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-main);
    margin-bottom: 0.5em;
}

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

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

ul, ol {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.btn-primary {
    background-color: var(--color-accent);
    color: #121824;
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--color-accent-rgb), 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
}

.btn-secondary:hover {
    background-color: var(--color-accent);
    color: #ffffff;
    transform: translateY(-2px);
}

/* --- HEADER --- */
.site-header {
    background-color: var(--bg-light); /* White background */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    color: var(--text-main);
    transition: all var(--transition-speed);
}

/* Align sticky header under the admin bar when logged in */
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.site-logo a {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--color-accent);
    display: flex;
    align-items: center;
}

.site-logo span {
    color: var(--text-main);
}

.main-navigation ul {
    display: flex;
    gap: 30px;
}

.main-navigation a {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.5px;
    position: relative;
    padding: 10px 0;
    color: #000000;
}

.main-navigation a:hover,
.main-navigation li.current-menu-item a {
    color: var(--color-accent);
}

/* Dropdown Chevron-down icon for items with sub-menus */
.main-navigation li.menu-item-has-children > a {
    padding-right: 15px;
}

.main-navigation li.menu-item-has-children > a::before {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 9px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform var(--transition-speed);
    color: inherit;
    opacity: 0.7;
}

.main-navigation li.menu-item-has-children:hover > a::before {
    transform: translateY(-50%) rotate(180deg);
    color: var(--color-accent);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-speed);
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Dropdown Sub-menu styling */
.main-navigation li {
    position: relative;
}

.main-navigation li .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-light);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    min-width: 220px;
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-speed);
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 999;
}

.main-navigation li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation li .sub-menu li {
    width: 100%;
}

.main-navigation li .sub-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
    color: var(--text-main);
    letter-spacing: 0.3px;
    transition: all var(--transition-speed);
}

.main-navigation li .sub-menu a:hover {
    background-color: var(--bg-light-gray);
    color: var(--color-accent);
    padding-left: 25px;
}

.main-navigation li .sub-menu a::after {
    display: none;
}

/* 3rd-level nested dropdown menu (opens to the right of level 2) */
.main-navigation li .sub-menu li {
    position: relative;
}

.main-navigation li .sub-menu li .sub-menu {
    top: 0;
    left: 100%;
    transform: translateY(0) translateX(10px);
}

.main-navigation li .sub-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) translateX(0);
}

/* Level 2 parent links indicating Level 3 submenus */
.main-navigation .sub-menu li.menu-item-has-children > a {
    padding-right: 30px;
}

.main-navigation .sub-menu li.menu-item-has-children > a::before {
    content: "\f054"; /* chevron-right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 8px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: color var(--transition-speed);
    color: inherit;
    opacity: 0.6;
}

.main-navigation .sub-menu li.menu-item-has-children:hover > a::before {
    color: var(--color-accent);
    transform: translateY(-50%) rotate(0deg);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 24px;
    cursor: pointer;
}

/* --- FOOTER --- */
.site-footer {
    background-color: #ffffff;
    color: #444444;
    padding: 80px 0 50px;
    border-top: 1px solid #eeeeee;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 0;
}

.footer-widget h3 {
    color: #111111;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-accent);
}

.footer-widget ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-widget li {
    display: flex;
    align-items: center;
}

.footer-widget .menu li::before {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 10px;
    color: var(--color-accent);
    margin-right: 8px;
    display: inline-block;
}

.footer-widget a {
    color: #555555;
    font-size: 14px;
    transition: all var(--transition-speed);
}

.footer-widget a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #444444;
}

.footer-contact-info i {
    color: var(--color-accent);
    margin-top: 4px;
}

.footer-bottom-wrap {
    background-color: #000000;
    color: #aaaaaa;
    padding: 25px 0;
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid var(--border-dark);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.footer-social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer-social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    color: #ffffff;
    border-radius: 50%;
    transition: all var(--transition-speed);
}

.footer-social-links a.facebook {
    background-color: #1877F2;
}

.footer-social-links a.youtube {
    background-color: #FF0000;
}

.footer-social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* --- HOME PAGE --- */
/* Hero Section */
.home-hero {
    height: calc(100vh - 80px);
    min-height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--text-light);
}

.home-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15,23,42,0.9) 0%, rgba(15,23,42,0.4) 100%);
}

.hero-content {
    position: relative;
    max-width: 650px;
    z-index: 10;
}

.hero-tagline {
    font-family: var(--font-heading);
    color: var(--color-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 35px;
    color: var(--text-light-muted);
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Categories Section */
.home-section {
    padding: 100px 0;
}

.section-title-wrap {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--color-accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-size: 36px;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.category-card {
    background-color: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    text-align: center;
    transition: all var(--transition-speed);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.category-icon-wrapper {
    height: 150px;
    background-color: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-accent);
    font-size: 48px;
}

.category-card h3 {
    padding: 20px 15px;
    font-size: 16px;
    margin-bottom: 0;
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all var(--transition-speed);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-image {
    position: relative;
    padding-bottom: 100%; /* Square aspect */
    background-color: #f1f5f9;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-meta {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 8px;
}

.product-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.product-card h3 a:hover {
    color: var(--color-accent);
}

.product-price-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-accent-hover);
}

.view-detail-link {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-detail-link:hover {
    color: var(--color-accent);
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all var(--transition-speed);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.news-image {
    height: 220px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .news-image img {
    transform: scale(1.08);
}

.news-info {
    padding: 25px;
}

.news-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: block;
}

.news-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.news-card h3 a:hover {
    color: var(--color-accent);
}

.news-excerpt {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- PRODUCT DETAIL PAGE --- */
.product-detail-layout {
    padding: 20px 0 60px;
}

.product-main-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 80px;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-main-image {
    background-color: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.product-thumbnails {
    display: flex;
    gap: 15px;
    overflow-x: auto;
}

.product-thumb {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border var(--transition-speed);
}

.product-thumb.active,
.product-thumb:hover {
    border-color: var(--color-accent);
}

.product-summary {
    padding-top: 10px;
}

.product-breadcrumbs {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.product-breadcrumbs a:hover {
    color: var(--color-accent);
}

.product-summary h1 {
    font-size: 38px;
    margin-bottom: 20px;
}

.product-price-box {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.product-price-label {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.product-price-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-accent-hover);
    margin-top: 5px;
}

.product-details-list {
    margin-bottom: 40px;
}

.product-details-list li {
    display: flex;
    margin-bottom: 12px;
}

.detail-label {
    width: 140px;
    font-weight: 700;
    color: var(--text-main);
}

.detail-value {
    color: var(--text-muted);
}

.product-actions {
    display: flex;
    gap: 15px;
}

/* Alternating content sections */
.product-description-sections {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.alternating-section {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 80px 0;
}

.alternating-section:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.alternating-section.layout-text-image {
    flex-direction: row;
}

.alternating-section.layout-image-text {
    flex-direction: row-reverse;
}

.section-column-text {
    flex: 1;
}

.section-column-text h2 {
    font-size: 28px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.section-column-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--color-accent);
}

.section-column-text p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 15px;
}

.section-column-image {
    flex: 1;
}

.section-column-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Specifications Table */
.product-specs-section {
    padding: 80px 0;
    background-color: var(--bg-light-gray);
}

.specs-table-container {
    max-width: 100%;
    margin: 0;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid #e5e7eb;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    transition: background-color 0.15s ease;
}

.specs-table tr:nth-child(odd) {
    background-color: #ffffff;
}

.specs-table tr:nth-child(even) {
    background-color: #f9fafb; /* Soft premium gray */
}

.specs-table tr:hover {
    background-color: #f3f4f6; /* Subtle hover effect */
}

.specs-table tr:not(:last-child) {
    border-bottom: 1px solid #e5e7eb;
}

.specs-table td {
    padding: 14px 20px;
    font-size: 14.5px;
    line-height: 1.5;
    color: #4b5563;
}

.specs-label {
    width: 35%;
    font-weight: 600;
    color: #1f2937;
    font-family: var(--font-heading);
    border-right: 1px solid #e5e7eb;
}

.specs-value {
    color: #4b5563;
    padding-left: 20px;
}

/* --- POST DETAIL / SIDEBAR --- */
.blog-layout {
    padding: 60px 0;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
}

.post-article {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    border: 1px solid var(--border-color);
}

.post-header {
    margin-bottom: 30px;
}

.post-meta {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.post-meta span:not(:last-child)::after {
    content: '|';
    margin: 0 10px;
    color: var(--border-color);
}

.post-title {
    font-size: 34px;
    margin-bottom: 0;
}

.post-featured-image {
    margin-bottom: 35px;
    border-radius: 8px;
    overflow: hidden;
}

.post-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-main);
}

.post-content p {
    margin-bottom: 25px;
}

.post-content a,
.staggered-text a,
.product-short-desc a,
.product-package-includes-wrap a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-speed);
}

.post-content a:hover,
.staggered-text a:hover,
.product-short-desc a:hover,
.product-package-includes-wrap a:hover {
    color: var(--color-accent-hover);
    text-decoration: none;
}

.post-content h2, .post-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.widget {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    border: 1px solid var(--border-color);
}

.widget h3 {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.widget h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-accent);
}

.widget-recent-posts li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--border-color);
}

.widget-recent-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.widget-recent-posts a {
    font-weight: 600;
    font-size: 14px;
    display: block;
    line-height: 1.4;
    margin-bottom: 5px;
}

.widget-recent-posts a:hover {
    color: var(--color-accent);
}

.widget-recent-posts span {
    font-size: 12px;
    color: var(--text-muted);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 70px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none; /* Mobile menu implementation will toggle this */
    }
    
    .header-actions .search-toggle-btn {
        display: none !important;
    }
    
    @media (max-width: 576px) {
        .header-actions .btn-primary {
            display: none !important;
        }
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .home-hero {
        height: auto;
        padding: 120px 0 80px;
    }
    
    .hero-content h1 {
        font-size: 38px;
    }
    
    .product-main-info {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .alternating-section,
    .alternating-section.layout-image-text {
        flex-direction: column !important;
        gap: 30px;
        padding: 50px 0;
    }
    
    .blog-layout {
        grid-template-columns: 1fr;
    }
}

/* --- TEM PHU (SECONDARY LABEL) --- */
.product-tem-phu-section {
    padding: 60px 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
}
.product-tem-phu-card {
    background-color: var(--bg-light-gray);
    border-left: 4px solid var(--color-accent);
    border-radius: 4px;
    padding: 30px 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}
.tem-phu-title {
    font-size: 16px;
    letter-spacing: 1px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}
.tem-phu-title i {
    color: var(--color-accent);
    font-size: 18px;
}
.tem-phu-content {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-muted);
}
.tem-phu-content p {
    margin-bottom: 12px;
}
.tem-phu-content p:last-child {
    margin-bottom: 0;
}


/* Gallery Navigation Arrows on Main Image */
.product-main-image {
    position: relative;
    background-color: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
}

.product-main-image .nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #111111;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed);
    z-index: 10;
}

.product-main-image:hover .nav-arrow {
    opacity: 1;
    visibility: visible;
}

.product-main-image .nav-arrow:hover {
    background-color: var(--color-accent);
    color: #ffffff;
}

.product-main-image .prev-arrow {
    left: 20px;
}

.product-main-image .next-arrow {
    right: 20px;
}

/* More thumbnails overlay style (+N) */
.product-thumb {
    position: relative;
}

.more-thumbs-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    border-radius: 4px;
    pointer-events: none; /* Let clicks pass through to the parent thumbnail container */
}


/* Specs & Tem Phu Grid Layout */
.specs-tem-phu-grid.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.specs-tem-phu-grid.one-column {
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 991px) {
    .specs-tem-phu-grid.two-columns {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}


/* Search Popup styling */
#search-popup-input:focus {
    border-color: var(--color-accent) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 15px rgba(239, 135, 45, 0.2);
}

.close-search-popup:hover {
    color: var(--color-accent) !important;
    transform: rotate(90deg);
}

.search-toggle-btn:hover {
    color: var(--color-accent) !important;
}

/* Homepage Search section styling */
.home-search-section input[type="search"]:focus {
    border-color: var(--color-accent) !important;
    box-shadow: 0 4px 20px rgba(239, 135, 45, 0.15) !important;
}

.home-search-section button:hover {
    color: var(--color-accent-hover) !important;
}


/* Homepage Categories Menu styling */
.home-menu-item > a {
    position: relative;
    padding-bottom: 8px;
}

.home-menu-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.home-menu-item:hover > a::after {
    width: 100%;
}

.home-menu-item:hover > a {
    color: var(--color-accent) !important;
}

.home-menu-item.dropdown:hover .home-submenu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.home-submenu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
}

.home-submenu li a {
    transition: all 0.3s ease;
}

.home-submenu li a:hover {
    color: var(--color-accent) !important;
    padding-left: 5px;
}

@media (max-width: 768px) {
    .home-categories-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px 25px !important;
        font-size: 15px !important;
    }
    .home-submenu {
        display: none !important;
    }
}


/* Product Warranty Badge styling */
.product-warranty-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(239, 135, 45, 0.08) !important;
    color: var(--color-accent) !important;
    border: 1px solid rgba(239, 135, 45, 0.2) !important;
    padding: 8px 16px !important;
    border-radius: 30px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 2px 6px rgba(239, 135, 45, 0.05);
}

.product-warranty-badge i {
    font-size: 14px;
}

.product-short-desc-wrap p {
    position: relative;
    padding-left: 24px;
    margin-bottom: 14px !important;
    line-height: 1.7 !important;
    color: #4b5563 !important;
    font-size: 14.5px;
}

.product-short-desc-wrap p::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-accent);
    font-weight: 700;
    font-size: 15px;
}

.product-short-desc-wrap ul {
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.product-short-desc-wrap li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px !important;
    line-height: 1.7 !important;
    color: #4b5563 !important;
    font-size: 14.5px;
    list-style-type: none !important;
}

.product-short-desc-wrap li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-accent);
    font-weight: 700;
    font-size: 15px;
}

/* News Search Bar styles */
.news-search-wrap form {
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}
.news-search-wrap form:focus-within {
    border-color: var(--color-accent) !important;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15) !important;
}
.news-search-wrap .search-submit:hover {
    color: var(--color-accent) !important;
}

/* Mobile Categories Horizontal Scrolling Layout */
@media (max-width: 768px) {
    .categories-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 15px !important;
        padding-bottom: 20px !important;
        padding-top: 10px !important;
        margin-left: -20px !important;
        margin-right: -20px !important;
        padding-left: 0 !important; /* Reset padding to use child margins */
        padding-right: 0 !important;
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
    }
    .categories-grid::-webkit-scrollbar {
        display: none !important;
    }
    .categories-grid .category-card {
        flex: 0 0 calc((100% - 22px) / 2.5) !important; /* Display exactly 2.5 cards */
        scroll-snap-align: start !important;
    }
    .categories-grid .category-card:first-child {
        margin-left: 35px !important; /* Bulletproof left spacing on first item */
    }
    .categories-grid .category-card:last-child {
        margin-right: 35px !important; /* Bulletproof right spacing on last item */
    }
    .categories-grid .category-icon-wrapper {
        height: 100px !important;
        font-size: 32px !important;
    }
    .categories-grid .category-card h3 {
        padding: 12px 10px !important;
        font-size: 13px !important;
    }
    /* Disable hover animation on mobile to prevent sticky touch hover bugs */
    .category-card:hover {
        transform: none !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.05) !important;
    }
}

/* --- FEATURES / WHY CHOOSE US SECTION --- */
.features-section {
    padding: 80px 0;
    background-color: var(--bg-light-gray);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.feature-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 35px 25px 30px;
    border: 1px solid #e9edf2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent) 0%, #f59e0b 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 35px rgba(239, 135, 45, 0.12);
    border-color: rgba(239, 135, 45, 0.35);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon-wrapper {
    width: 62px;
    height: 62px;
    border-radius: 12px;
    background: #fff7ed;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 22px;
    transition: all 0.3s ease;
    border: 1px solid #ffedd5;
}

.feature-card:hover .feature-icon-wrapper {
    background: var(--color-accent);
    color: #ffffff;
    border-color: var(--color-accent);
    transform: scale(1.08) rotate(3deg);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 12px;
    line-height: 1.4;
    letter-spacing: -0.2px;
}

.feature-card p {
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--text-muted);
    margin: 0;
    flex-grow: 1;
}

@media (max-width: 991px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .feature-card {
        padding: 25px 20px;
    }
}
