/*
Theme Name: Hunika
Theme URI: http://hunika.test
Author: Hunika
Description: Theme WooCommerce cho Hunika - nội thất thông minh, sofa bed & giường gấp đa năng. Giao diện dạng shop 1 cột nội dung, header cyan, grid sản phẩm 4 cột.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: hunika
Tags: e-commerce, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
	--h-primary: #08a8d6;
	--h-primary-dark: #0690b9;
	--h-primary-light: #e6f7fd;
	--h-price: #ff9400;
	--h-cta: #f44336;
	--h-cta-dark: #d93025;
	--h-ink: #262626;
	--h-ink-soft: #5c6470;
	--h-muted: #8a9099;
	--h-line: #e6e8eb;
	--h-bg: #ffffff;
	--h-bg-soft: #f5f7f8;
	--h-radius: 8px;
	--h-radius-lg: 14px;
	--h-shadow: 0 1px 3px rgba(16, 24, 40, .08);
	--h-shadow-hover: 0 8px 24px rgba(16, 24, 40, .12);
	--h-container: 1340px;
	--h-header-h: 64px;
}

/* ==========================================================================
   2. Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: 'K2D', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: var(--h-ink);
	background: var(--h-bg);
	overflow-x: hidden;
}

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

/* Inline icons default to text size; components override where needed. */
.h-icon { width: 1em; height: 1em; flex: 0 0 auto; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--h-primary); }

h1, h2, h3, h4, h5 { margin: 0 0 .6em; line-height: 1.3; font-weight: 700; }
h1 { font-size: 28px; }
h2 { font-size: 23px; }
h3 { font-size: 19px; }
h4 { font-size: 17px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 22px; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

.h-container {
	width: 100%;
	max-width: var(--h-container);
	margin: 0 auto;
	padding: 0 16px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
	left: 8px; top: 8px; z-index: 999;
	background: #fff; padding: 10px 16px; border-radius: 4px;
}

/* ==========================================================================
   3. Header
   ========================================================================== */
.site-header { position: relative; z-index: 200; }

.header-top {
	background: var(--h-primary);
	padding: 10px 0;
}
.header-top-inner {
	display: flex;
	align-items: center;
	gap: 22px;
}

.site-brand { flex: 0 0 auto; }
.site-brand .brand-box {
	display: flex;
	align-items: center;
	gap: 9px;
	background: #fff;
	border-radius: var(--h-radius);
	padding: 6px 14px;
	min-height: 44px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}
.site-brand img { max-height: 38px; width: auto; }
.brand-text { line-height: 1.05; }
.brand-name {
	display: block;
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -.4px;
	color: var(--h-primary);
}
.brand-tagline {
	display: block;
	font-size: 8.5px;
	font-weight: 600;
	letter-spacing: .4px;
	text-transform: uppercase;
	color: var(--h-ink-soft);
}

/* search */
.header-search { flex: 1 1 auto; max-width: 620px; }
.header-search form {
	display: flex;
	background: #fff;
	border-radius: 999px;
	overflow: hidden;
	height: 40px;
}
.header-search input[type="search"] {
	flex: 1 1 auto;
	border: 0;
	background: transparent;
	padding: 0 18px;
	font-size: 14px;
	outline: none;
	min-width: 0;
}
.header-search input::placeholder { color: #a5acb5; }
.header-search button {
	flex: 0 0 46px;
	border: 0;
	background: transparent;
	color: var(--h-primary);
	display: grid;
	place-items: center;
}
.header-search button svg { width: 18px; height: 18px; }

/* header actions */
.header-actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 18px;
	color: #fff;
}
.header-hotline {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: 14px;
	white-space: nowrap;
}
.header-hotline svg { width: 20px; height: 20px; flex: 0 0 auto; }
.header-hotline small {
	display: block;
	font-size: 10px;
	font-weight: 500;
	opacity: .85;
	text-transform: uppercase;
	letter-spacing: .3px;
}
.header-cart {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: 14px;
	white-space: nowrap;
	color: #fff;
}
.header-cart:hover { color: #fff; opacity: .9; }
.header-cart svg { width: 22px; height: 22px; }
.header-cart .cart-count {
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--h-cta);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	display: grid;
	place-items: center;
}

.mobile-toggle {
	display: none;
	border: 0;
	background: transparent;
	color: #fff;
	padding: 4px;
}
.mobile-toggle svg { width: 26px; height: 26px; }

/* ---- nav row ---- */
.header-nav {
	background: #fff;
	border-bottom: 1px solid var(--h-line);
	box-shadow: 0 1px 4px rgba(16, 24, 40, .05);
}
.header-nav-inner {
	display: flex;
	align-items: stretch;
	gap: 26px;
	min-height: 46px;
}

/* category mega dropdown */
.cat-dropdown { position: relative; flex: 0 0 270px; display: flex; align-items: center; }
.cat-dropdown-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	border: 1px solid var(--h-line);
	border-radius: var(--h-radius);
	background: #fff;
	padding: 8px 12px;
	font-size: 14px;
	font-weight: 600;
	color: var(--h-ink);
}
.cat-dropdown-toggle .bars { flex: 0 0 auto; width: 16px; height: 16px; color: var(--h-primary); }
.cat-dropdown-toggle .chev { margin-left: auto; width: 14px; height: 14px; color: var(--h-muted); transition: transform .2s; }
.cat-dropdown.open .cat-dropdown-toggle .chev { transform: rotate(180deg); }

.cat-dropdown-panel {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	width: 290px;
	background: #fff;
	border: 1px solid var(--h-line);
	border-radius: var(--h-radius);
	box-shadow: var(--h-shadow-hover);
	padding: 6px;
	display: none;
	max-height: 70vh;
	overflow-y: auto;
}
.cat-dropdown.open .cat-dropdown-panel { display: block; }
.cat-dropdown-panel a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	border-radius: 6px;
	font-size: 14px;
	color: var(--h-ink);
}
.cat-dropdown-panel a:hover { background: var(--h-primary-light); color: var(--h-primary-dark); }
.cat-dropdown-panel img { width: 28px; height: 28px; object-fit: cover; border-radius: 4px; flex: 0 0 auto; }
.cat-dropdown-panel .count { margin-left: auto; font-size: 12px; color: var(--h-muted); }

/* main menu */
.main-nav { flex: 1 1 auto; display: flex; align-items: center; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav li { position: relative; }
.main-nav > ul > li > a {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 12px 14px;
	font-size: 14px;
	font-weight: 600;
	color: var(--h-ink);
	white-space: nowrap;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.current-menu-item > a,
.main-nav > ul > li.current_page_item > a { color: var(--h-primary); }
.main-nav .menu-item-has-children > a::after {
	content: '';
	width: 6px; height: 6px;
	border-right: 1.6px solid currentColor;
	border-bottom: 1.6px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
}
.main-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 260px;
	background: #fff;
	border: 1px solid var(--h-line);
	border-radius: var(--h-radius);
	box-shadow: var(--h-shadow-hover);
	padding: 6px;
	display: none;
	flex-direction: column;
	gap: 0;
	z-index: 30;
}
.main-nav li:hover > .sub-menu { display: flex; }
.main-nav .sub-menu a {
	display: block;
	padding: 9px 12px;
	font-size: 13.5px;
	border-radius: 6px;
	color: var(--h-ink);
}
.main-nav .sub-menu a:hover { background: var(--h-primary-light); color: var(--h-primary-dark); }

/* mobile drawer */
.mobile-drawer {
	position: fixed;
	inset: 0 auto 0 0;
	width: min(320px, 86vw);
	background: #fff;
	z-index: 900;
	transform: translateX(-100%);
	transition: transform .25s ease;
	overflow-y: auto;
	padding: 18px 16px 40px;
	box-shadow: 4px 0 24px rgba(0, 0, 0, .18);
}
.mobile-drawer.open { transform: none; }
.mobile-drawer h4 {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .6px;
	color: var(--h-muted);
	margin: 18px 0 8px;
}
.mobile-drawer ul { list-style: none; margin: 0; padding: 0; }
.mobile-drawer ul a { display: block; padding: 10px 4px; border-bottom: 1px solid var(--h-line); font-size: 14.5px; font-weight: 500; }
.mobile-drawer .sub-menu { padding-left: 14px; }
.drawer-close { position: absolute; top: 12px; right: 12px; border: 0; background: transparent; font-size: 26px; line-height: 1; color: var(--h-muted); }
.drawer-backdrop {
	position: fixed; inset: 0;
	background: rgba(0, 0, 0, .45);
	z-index: 890;
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

/* ==========================================================================
   4. Hero slider
   ========================================================================== */
.hero-slider { position: relative; overflow: hidden; background: var(--h-bg-soft); }
.hero-track { display: flex; transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
.hero-slide { flex: 0 0 100%; }
.hero-slide img { width: 100%; }
.hero-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 38px; height: 38px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, .82);
	color: var(--h-ink);
	display: grid;
	place-items: center;
	box-shadow: var(--h-shadow);
}
.hero-arrow:hover { background: #fff; }
.hero-arrow svg { width: 18px; height: 18px; }
.hero-prev { left: 14px; }
.hero-next { right: 14px; }
.hero-dots {
	position: absolute;
	bottom: 12px; left: 0; right: 0;
	display: flex;
	justify-content: center;
	gap: 7px;
}
.hero-dots button {
	width: 9px; height: 9px;
	border: 0; border-radius: 999px;
	background: rgba(255, 255, 255, .6);
	padding: 0;
}
.hero-dots button.active { background: #fff; width: 22px; }

/* ==========================================================================
   5. Section shell
   ========================================================================== */
.h-section { padding: 30px 0; }
.h-section.tight { padding: 18px 0; }

.section-head {
	background: var(--h-primary);
	color: #fff;
	border-radius: var(--h-radius) var(--h-radius) 0 0;
	padding: 11px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}
.section-head h2 {
	margin: 0;
	font-size: 19px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .2px;
}
.section-head .head-links { display: flex; gap: 6px; flex-wrap: wrap; }
.section-head .head-links a {
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	padding: 4px 11px;
	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: 999px;
	white-space: nowrap;
}
.section-head .head-links a:hover { background: #fff; color: var(--h-primary); }

.section-body {
	border: 1px solid var(--h-line);
	border-top: 0;
	border-radius: 0 0 var(--h-radius) var(--h-radius);
	padding: 18px;
	background: #fff;
}

/* section with a tall category banner on the left */
.section-split { display: grid; grid-template-columns: 262px 1fr; gap: 18px; align-items: start; }
.section-aside { position: sticky; top: 14px; }
.section-aside a { display: block; border-radius: var(--h-radius); overflow: hidden; }
.section-aside img { width: 100%; border-radius: var(--h-radius); }
.section-aside .aside-cap {
	margin-top: 10px;
	display: block;
	background: var(--h-primary);
	color: #fff;
	text-align: center;
	padding: 9px 12px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 14px;
	text-transform: uppercase;
}

.section-more { text-align: center; margin-top: 20px; }

/* ==========================================================================
   6. Buttons
   ========================================================================== */
.h-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 0;
	border-radius: 999px;
	padding: 11px 28px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	transition: background .18s, box-shadow .18s, transform .12s;
}
.h-btn:active { transform: translateY(1px); }
.h-btn-cta { background: var(--h-cta); color: #fff; }
.h-btn-cta:hover { background: var(--h-cta-dark); color: #fff; }
.h-btn-primary { background: var(--h-primary); color: #fff; }
.h-btn-primary:hover { background: var(--h-primary-dark); color: #fff; }
.h-btn-ghost { background: #fff; color: var(--h-primary); border: 1.5px solid var(--h-primary); }
.h-btn-ghost:hover { background: var(--h-primary); color: #fff; }
.h-btn-block { display: flex; width: 100%; }
.h-btn-sq { border-radius: var(--h-radius); }

/* ==========================================================================
   7. Product grid + card
   ========================================================================== */
.product-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

/**
 * woocommerce.css ships a float clearfix:
 *   .woocommerce .products ul::before/::after { content:" "; display:table }
 * Inside a CSS grid those two pseudo-elements become real grid items and knock
 * a hole in the first cell. The related-products template avoids the `products`
 * class for that reason; this guard covers any other wrapper (a plugin, a
 * shortcode) that puts a `.products` ancestor around one of these grids.
 * Selectors are written long enough to outrank the WooCommerce rule.
 */
.woocommerce .products .product-grid::before,
.woocommerce .products .product-grid::after,
.woocommerce .products .post-grid::before,
.woocommerce .products .post-grid::after,
.product-grid::before, .product-grid::after,
.post-grid::before, .post-grid::after,
.feature-row::before, .feature-row::after,
.footer-cols::before, .footer-cols::after,
.section-split::before, .section-split::after,
.sp-top::before, .sp-top::after,
.layout-2col::before, .layout-2col::after {
	content: none;
	display: none;
}
.product-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.p-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--h-line);
	border-radius: var(--h-radius);
	overflow: hidden;
	transition: box-shadow .2s, transform .2s;
}
.p-card:hover { box-shadow: var(--h-shadow-hover); transform: translateY(-2px); }

.p-card-media { position: relative; display: block; background: #fff; }
.p-card-media .p-thumb {
	aspect-ratio: 1 / 1;
	width: 100%;
	object-fit: cover;
	background: var(--h-bg-soft);
}
.p-card-media .p-thumb-alt {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .3s;
	object-fit: cover;
	width: 100%; height: 100%;
}
.p-card:hover .p-thumb-alt { opacity: 1; }

.p-badge {
	position: absolute;
	top: 8px; left: 8px;
	z-index: 2;
	background: var(--h-cta);
	color: #fff;
	font-size: 11.5px;
	font-weight: 700;
	padding: 3px 9px;
	border-radius: 999px;
}
.p-badge-out { background: var(--h-muted); }

.p-card-body { padding: 11px 12px 13px; display: flex; flex-direction: column; flex: 1 1 auto; gap: 7px; }
.p-card-title {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	text-transform: uppercase;
	min-height: 2.8em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.p-card-title a:hover { color: var(--h-primary); }

.p-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.p-price .amount, .p-price ins .amount { color: var(--h-price); font-size: 16px; font-weight: 700; text-decoration: none; }
.p-price ins { text-decoration: none; background: transparent; }
.p-price del, .p-price del .amount {
	color: var(--h-muted);
	font-size: 13px;
	font-weight: 500;
	text-decoration: line-through;
}
.p-card-body .p-actions { margin-top: auto; }
.p-card-body .p-actions .h-btn { width: 100%; padding: 9px 14px; font-size: 13px; border-radius: 6px; }

.p-rating { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--h-muted); }
.p-stars { color: #ffb400; letter-spacing: 1px; font-size: 13px; }

/* ==========================================================================
   8. Full-width banner strip
   ========================================================================== */
.banner-strip { position: relative; }
.banner-strip img { width: 100%; max-height: 420px; object-fit: cover; }
.banner-strip .banner-overlay {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	text-align: center;
	color: #fff;
	padding: 20px;
	background: linear-gradient(rgba(0, 0, 0, .28), rgba(0, 0, 0, .42));
}
.banner-strip .banner-overlay h2 {
	font-size: clamp(20px, 3.6vw, 44px);
	font-weight: 800;
	text-transform: uppercase;
	text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
	margin: 0 0 8px;
}
.banner-strip .banner-overlay p {
	font-size: clamp(13px, 1.6vw, 20px);
	font-weight: 600;
	margin: 0;
	text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}

/* ==========================================================================
   9. Feature / policy row
   ========================================================================== */
.feature-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}
.feature-item {
	background: #fff;
	border: 1px solid var(--h-line);
	border-radius: var(--h-radius);
	padding: 18px 16px;
	text-align: center;
}
.feature-item .fi-icon {
	width: 52px; height: 52px;
	margin: 0 auto 10px;
	border-radius: 999px;
	background: var(--h-primary-light);
	color: var(--h-primary);
	display: grid;
	place-items: center;
}
.feature-item .fi-icon svg { width: 26px; height: 26px; }
.feature-item h3 { font-size: 15px; margin: 0 0 5px; text-transform: uppercase; }
.feature-item p { font-size: 13px; color: var(--h-ink-soft); margin: 0; }

/* ==========================================================================
   10. Post cards
   ========================================================================== */
.post-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.post-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.b-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--h-line);
	border-radius: var(--h-radius-lg);
	overflow: hidden;
	transition: box-shadow .2s, transform .2s;
}
.b-card:hover { box-shadow: var(--h-shadow-hover); transform: translateY(-2px); }
.b-card-media img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: var(--h-bg-soft); }
.b-card-body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.b-card-meta { font-size: 12px; color: var(--h-muted); display: flex; gap: 6px; align-items: center; }
.b-card-meta .h-icon { width: 14px; height: 14px; }
.b-card-title {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.b-card-excerpt {
	margin: 0;
	font-size: 13px;
	color: var(--h-ink-soft);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.b-card-more { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--h-primary); }

/* ==========================================================================
   11. Breadcrumb + page shell
   ========================================================================== */
.h-breadcrumb {
	background: var(--h-bg-soft);
	border-bottom: 1px solid var(--h-line);
	padding: 10px 0;
	font-size: 13px;
	color: var(--h-ink-soft);
}
.h-breadcrumb .h-container { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.h-breadcrumb a { color: var(--h-ink-soft); }
.h-breadcrumb a:hover { color: var(--h-primary); }
.h-breadcrumb .sep { color: var(--h-muted); }
.h-breadcrumb .current { color: var(--h-ink); font-weight: 600; }

.page-shell { padding: 26px 0 40px; }
.page-head { margin-bottom: 20px; }
.page-head h1 { margin: 0 0 6px; font-size: 27px; }
.page-head .page-sub { color: var(--h-ink-soft); font-size: 14px; margin: 0; }

.layout-2col { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }

.entry-content { font-size: 15.5px; line-height: 1.8; }
.entry-content h2 { font-size: 22px; margin: 1.5em 0 .5em; }
.entry-content h3 { font-size: 18px; margin: 1.4em 0 .5em; }
.entry-content img { border-radius: var(--h-radius); margin: 1em auto; }
.entry-content figure { margin: 1.2em 0; }
.entry-content figcaption { font-size: 13px; color: var(--h-muted); text-align: center; margin-top: 6px; }
.entry-content blockquote {
	margin: 1.2em 0;
	padding: 12px 18px;
	border-left: 3px solid var(--h-primary);
	background: var(--h-primary-light);
	border-radius: 0 var(--h-radius) var(--h-radius) 0;
}
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 14px; }
.entry-content th, .entry-content td { border: 1px solid var(--h-line); padding: 9px 12px; text-align: left; }
.entry-content th { background: var(--h-bg-soft); font-weight: 700; }
.entry-content a { color: var(--h-primary); text-decoration: underline; text-underline-offset: 2px; }
.entry-content iframe { width: 100%; max-width: 100%; border: 0; border-radius: var(--h-radius); display: block; }
.entry-content ul, .entry-content ol { padding-left: 24px; }
.entry-content ul li, .entry-content ol li { margin-bottom: .4em; }

/* sidebar */
.h-sidebar .widget {
	background: #fff;
	border: 1px solid var(--h-line);
	border-radius: var(--h-radius);
	padding: 16px;
	margin-bottom: 18px;
}
.h-sidebar .widget-title {
	margin: -16px -16px 14px;
	padding: 11px 16px;
	background: var(--h-primary);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	border-radius: var(--h-radius) var(--h-radius) 0 0;
}
.h-sidebar ul { list-style: none; margin: 0; padding: 0; }
.h-sidebar ul li { padding: 7px 0; border-bottom: 1px dashed var(--h-line); font-size: 14px; }
.h-sidebar ul li:last-child { border-bottom: 0; }

.side-post { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--h-line); }
.side-post:last-child { border-bottom: 0; }
.side-post img { width: 76px; height: 56px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; }
.side-post h4 {
	margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.4;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ==========================================================================
   12. Single product
   ========================================================================== */
.single-product-wrap { padding: 24px 0 40px; }
.sp-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; align-items: start; }

.sp-gallery { display: grid; grid-template-columns: 78px 1fr; gap: 12px; align-items: start; }
.sp-thumbs { display: flex; flex-direction: column; gap: 9px; max-height: 520px; overflow-y: auto; }
.sp-thumbs img {
	width: 78px; height: 78px;
	object-fit: cover;
	border: 2px solid var(--h-line);
	border-radius: 6px;
	cursor: pointer;
}
.sp-thumbs img.active { border-color: var(--h-primary); }
.sp-main {
	border: 1px solid var(--h-line);
	border-radius: var(--h-radius);
	overflow: hidden;
	background: #fff;
}
.sp-main img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

.sp-title { font-size: 25px; margin: 0 0 8px; text-transform: uppercase; line-height: 1.28; }
.sp-meta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--h-ink-soft); margin-bottom: 14px; }
.sp-sku strong { color: var(--h-ink); }

.sp-price-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.sp-price-now { font-size: 30px; font-weight: 800; color: var(--h-price); line-height: 1; }
.sp-price-old { font-size: 16px; color: var(--h-muted); text-decoration: line-through; }
.sp-discount {
	background: var(--h-cta);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 5px;
}

.sp-benefits {
	background: #1f2530;
	color: #e9edf2;
	border-radius: var(--h-radius);
	padding: 14px 18px;
	margin-bottom: 18px;
	list-style: none;
}
.sp-benefits li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; font-size: 13.5px; }
.sp-benefits li svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 2px; color: #4ad3a1; }

.sp-qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.sp-qty-row > label { font-size: 14px; font-weight: 600; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--h-line); border-radius: 6px; overflow: hidden; }
.qty-stepper button { width: 36px; height: 38px; border: 0; background: var(--h-bg-soft); font-size: 18px; color: var(--h-ink); }
.qty-stepper button:hover { background: var(--h-primary-light); color: var(--h-primary); }
.qty-stepper input {
	width: 52px; height: 38px;
	border: 0; border-left: 1px solid var(--h-line); border-right: 1px solid var(--h-line);
	text-align: center; font-weight: 600;
	-moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.sp-cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.sp-cta-row .h-btn { padding: 14px 18px; font-size: 15px; border-radius: 6px; }
.sp-cta-row .h-btn small { display: block; font-size: 11px; font-weight: 500; opacity: .85; }

/* Colour siblings of the same model */
.sp-variants { margin-bottom: 16px; }
.sp-variants-label {
	display: block;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--h-ink-soft);
	margin-bottom: 8px;
}
.sp-variants-list { display: flex; flex-wrap: wrap; gap: 9px; }
.sp-variant {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px 12px 5px 5px;
	border: 1.5px solid var(--h-line);
	border-radius: 999px;
	background: #fff;
	font-size: 13px;
	font-weight: 600;
	color: var(--h-ink);
	transition: border-color .15s, background .15s;
}
.sp-variant img {
	width: 32px;
	height: 32px;
	border-radius: 999px;
	object-fit: cover;
	flex: 0 0 auto;
	background: var(--h-bg-soft);
}
.sp-variant:hover { border-color: var(--h-primary); color: var(--h-primary-dark); }
.sp-variant.is-current {
	border-color: var(--h-primary);
	background: var(--h-primary-light);
	color: var(--h-primary-dark);
	cursor: default;
}

.hunika-viewed, .related { margin-top: 34px; }

.sp-wholesale {
	border: 1px dashed var(--h-primary);
	background: var(--h-primary-light);
	border-radius: var(--h-radius);
	padding: 14px 16px;
	text-align: center;
}
.sp-wholesale strong { display: block; font-size: 14.5px; color: var(--h-primary-dark); text-transform: uppercase; }
.sp-wholesale span { font-size: 13px; color: var(--h-ink-soft); }

/* tabs */
.sp-tabs { margin-top: 34px; }
.sp-tabs-nav { display: flex; gap: 4px; border-bottom: 2px solid var(--h-line); flex-wrap: wrap; }
.sp-tabs-nav button {
	border: 0;
	background: transparent;
	padding: 11px 20px;
	font-size: 15px;
	font-weight: 700;
	color: var(--h-ink-soft);
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
}
.sp-tabs-nav button.active { color: var(--h-primary); border-bottom-color: var(--h-primary); }
.sp-tab-panel { display: none; padding: 20px 0; }
.sp-tab-panel.active { display: block; }

.related-products { margin-top: 40px; }

/* ==========================================================================
   13. Shop archive
   ========================================================================== */
.shop-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--h-line);
}
.shop-toolbar .woocommerce-result-count { margin: 0; font-size: 13.5px; color: var(--h-ink-soft); }
.shop-toolbar select {
	border: 1px solid var(--h-line);
	border-radius: 6px;
	padding: 8px 12px;
	font-size: 14px;
	background: #fff;
}

.cat-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.cat-chips a {
	border: 1px solid var(--h-line);
	border-radius: 999px;
	padding: 7px 16px;
	font-size: 13.5px;
	font-weight: 600;
	background: #fff;
}
.cat-chips a:hover, .cat-chips a.active { background: var(--h-primary); border-color: var(--h-primary); color: #fff; }

.h-pagination { margin-top: 28px; display: flex; justify-content: center; }
.h-pagination ul, .h-pagination .page-numbers { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0; flex-wrap: wrap; }
.h-pagination .page-numbers li { list-style: none; }
.h-pagination a.page-numbers, .h-pagination span.page-numbers {
	display: grid;
	place-items: center;
	min-width: 38px; height: 38px;
	padding: 0 10px;
	border: 1px solid var(--h-line);
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	background: #fff;
}
.h-pagination .page-numbers.current { background: var(--h-primary); border-color: var(--h-primary); color: #fff; }
.h-pagination a.page-numbers:hover { border-color: var(--h-primary); color: var(--h-primary); }

.cat-hero { margin-bottom: 20px; border-radius: var(--h-radius); overflow: hidden; }
/* Source banners are square product shots; crop them to a strip. */
.cat-hero img { width: 100%; max-height: 260px; object-fit: cover; object-position: center 35%; }

/* ---- category intro (teaser above the grid) ---- */
.cat-intro {
	margin-bottom: 22px;
	padding: 18px 20px;
	background: var(--h-bg-soft);
	border: 1px solid var(--h-line);
	border-radius: var(--h-radius);
}
.cat-intro.has-media {
	display: grid;
	grid-template-columns: 1fr 280px;
	gap: 22px;
	align-items: center;
}
.cat-intro-text { font-size: 14.5px; line-height: 1.75; }
.cat-intro-text p:last-of-type { margin-bottom: 0; }
.cat-intro-more { margin: 14px 0 0; }
.cat-intro-more .h-btn { padding: 10px 22px; }
.cat-intro-more .h-icon { width: 14px; height: 14px; }
.cat-intro-media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--h-radius);
	border: 1px solid var(--h-line);
	background: #fff;
}

/* ---- category long article (below the grid) ---- */
.cat-article { margin-top: 34px; }

/**
 * Collapsed with max-height, not display:none - the whole article stays in the
 * DOM and readable by crawlers either way.
 */
.cat-article-content {
	position: relative;
	max-height: 320px;
	overflow: hidden;
	transition: max-height .35s ease;
}
.cat-article-content::after {
	content: '';
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 120px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 85%);
	pointer-events: none;
	transition: opacity .25s;
}
.cat-article.is-open .cat-article-content { max-height: none; }
.cat-article.is-open .cat-article-content::after { opacity: 0; }

.cat-article-actions { margin-top: 16px; text-align: center; }
.cat-article-actions .h-icon { width: 15px; height: 15px; transition: transform .25s; }
.cat-article.is-open .cat-article-actions .h-icon { transform: rotate(180deg); }

.cat-article-content h2 {
	font-size: 21px;
	margin: 1.6em 0 .6em;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--h-primary-light);
}
.cat-article-content h2:first-child { margin-top: 0; }
.cat-article-content h3 { font-size: 17px; margin: 1.4em 0 .5em; color: var(--h-primary-dark); }

/**
 * Product shots are square; full column width makes them tower over the text.
 *
 * Scoped under .entry-content so it outranks `.entry-content figure`, which
 * sets `margin: 1.2em 0` and would otherwise cancel the auto centring.
 */
.hk-art-figure,
.entry-content .hk-art-figure {
	margin: 1.6em auto;
	max-width: 540px;
}
.hk-art-figure img {
	width: 100%;
	border-radius: var(--h-radius);
	border: 1px solid var(--h-line);
}
.hk-art-figure figcaption {
	margin-top: 8px;
	font-size: 13px;
	color: var(--h-muted);
	text-align: center;
	font-style: italic;
}

/* ==========================================================================
   14. Footer
   ========================================================================== */
.site-footer { background: var(--h-primary); color: #fff; margin-top: 40px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-main { padding: 34px 0 26px; }
.footer-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 30px; }
.footer-cols h3 {
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	margin: 0 0 14px;
	letter-spacing: .2px;
}
.footer-cols p, .footer-cols li { font-size: 13.5px; line-height: 1.75; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols ul li { padding: 3px 0; }
.footer-map iframe, .footer-map img { width: 100%; border: 0; border-radius: var(--h-radius); min-height: 150px; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
	width: 34px; height: 34px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .18);
	display: grid;
	place-items: center;
}
.footer-social a:hover { background: #fff; color: var(--h-primary); }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, .25);
	padding: 13px 0;
	font-size: 12.5px;
	text-align: center;
}

/* floating contact buttons */
.float-contact {
	position: fixed;
	right: 16px;
	bottom: 18px;
	z-index: 500;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.float-contact a {
	width: 48px; height: 48px;
	border-radius: 999px;
	display: grid;
	place-items: center;
	color: #fff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.float-contact a svg { width: 24px; height: 24px; }
.float-phone { background: var(--h-cta); animation: h-pulse 2s infinite; }
.float-zalo { background: #0068ff; font-weight: 800; font-size: 12px; }
.float-messenger { background: #0084ff; }
@keyframes h-pulse {
	0%, 100% { box-shadow: 0 4px 14px rgba(0, 0, 0, .25), 0 0 0 0 rgba(244, 67, 54, .5); }
	50% { box-shadow: 0 4px 14px rgba(0, 0, 0, .25), 0 0 0 12px rgba(244, 67, 54, 0); }
}

/* ==========================================================================
   15. WooCommerce overrides
   ========================================================================== */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	border-radius: var(--h-radius);
	border: 1px solid var(--h-line);
	border-left: 4px solid var(--h-primary);
	background: var(--h-bg-soft);
	padding: 13px 18px;
	margin: 0 0 18px;
	list-style: none;
	font-size: 14px;
}
.woocommerce-error { border-left-color: var(--h-cta); }
.woocommerce-message .button, .woocommerce-info .button { float: right; }

.woocommerce .button, .woocommerce a.button, .woocommerce button.button,
.woocommerce input.button, .woocommerce #respond input#submit {
	background: var(--h-primary);
	color: #fff;
	border: 0;
	border-radius: 6px;
	padding: 11px 22px;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.2;
}
.woocommerce .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce input.button:hover, .woocommerce #respond input#submit:hover {
	background: var(--h-primary-dark);
	color: #fff;
}
.woocommerce .button.alt, .woocommerce a.button.alt, .woocommerce button.button.alt,
.woocommerce input.button.alt { background: var(--h-cta); }
.woocommerce .button.alt:hover, .woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover { background: var(--h-cta-dark); }

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text {
	border: 1px solid var(--h-line);
	border-radius: 6px;
	padding: 10px 12px;
	font-size: 14px;
	width: 100%;
}
.woocommerce table.shop_table {
	border-radius: var(--h-radius);
	border-color: var(--h-line);
	font-size: 14px;
}
.woocommerce table.shop_table th { background: var(--h-bg-soft); }
.woocommerce-cart table.cart img { width: 66px; border-radius: 6px; }

.woocommerce .quantity .qty {
	border: 1px solid var(--h-line);
	border-radius: 6px;
	padding: 8px;
	width: 64px;
}
.woocommerce div.product form.cart { margin: 0; }
.woocommerce span.onsale {
	background: var(--h-cta);
	border-radius: 999px;
	padding: 3px 11px;
	font-size: 12px;
	font-weight: 700;
	min-height: 0;
	min-width: 0;
	line-height: 1.6;
	top: 8px; left: 8px; right: auto;
	margin: 0;
}
.woocommerce .star-rating span::before, .woocommerce .star-rating::before { color: #ffb400; }
.woocommerce nav.woocommerce-pagination ul { border: 0; gap: 6px; display: flex; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	border: 1px solid var(--h-line);
	border-radius: 6px;
	min-width: 38px;
	padding: 9px 11px;
	font-weight: 600;
}
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--h-primary); color: #fff; border-color: var(--h-primary); }

.woocommerce-checkout #payment { background: var(--h-bg-soft); border-radius: var(--h-radius); }
.woocommerce-checkout #payment div.payment_box { background: #fff; border-radius: 6px; }
.woocommerce #respond input#submit.alt, .woocommerce a.button.alt.checkout-button { background: var(--h-cta); }

/* ==========================================================================
   16. Responsive
   ========================================================================== */
@media (max-width: 1200px) {
	.section-split { grid-template-columns: 210px 1fr; }
	.footer-cols { grid-template-columns: 1.4fr 1fr 1fr; }
	.footer-map { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
	.cat-intro.has-media { grid-template-columns: 1fr 220px; gap: 16px; }
	.product-grid, .product-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
	.post-grid { grid-template-columns: repeat(2, 1fr); }
	.feature-row { grid-template-columns: repeat(2, 1fr); }
	.layout-2col { grid-template-columns: 1fr; }
	.sp-top { grid-template-columns: 1fr; gap: 24px; }
	.cat-dropdown { flex: 0 0 220px; }
	.header-search { max-width: none; }
}

@media (max-width: 860px) {
	.header-nav { display: none; }
	.mobile-toggle { display: block; order: -1; }
	.header-top-inner { gap: 12px; flex-wrap: wrap; }
	.header-search { order: 3; flex-basis: 100%; }
	.header-hotline { display: none; }
	.section-split { grid-template-columns: 1fr; }
	.section-aside { position: static; }
	.section-aside img { max-height: 240px; object-fit: cover; }
}

@media (max-width: 680px) {
	body { font-size: 14px; }
	.product-grid, .product-grid.cols-5, .product-grid.cols-3 { grid-template-columns: repeat(2, 1fr); gap: 11px; }
	.post-grid, .post-grid.cols-3 { grid-template-columns: 1fr; }
	.feature-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	/**
	 * On a phone the intro used to run 654px tall - a full-width photo stacked
	 * on top of five paragraphs - which pushed the first product card past
	 * 1300px. The photo goes (the grid right below is nothing but photos of the
	 * same products) and the text is clamped to a few lines, with the existing
	 * "Xem thêm" button as the way into the full article at the bottom.
	 */
	.cat-intro { padding: 14px; }
	.cat-intro.has-media { grid-template-columns: 1fr; }
	.cat-intro-media { display: none; }
	.cat-intro-text {
		position: relative;
		max-height: 8.4em;
		overflow: hidden;
	}
	.cat-intro-text::after {
		content: '';
		position: absolute;
		left: 0; right: 0; bottom: 0;
		height: 2.6em;
		background: linear-gradient(to bottom, rgba(245, 247, 248, 0), var(--h-bg-soft) 85%);
		pointer-events: none;
	}
	.cat-article-content { max-height: 260px; }
	.cat-article-content h2 { font-size: 18px; }
	.cat-article-content h3 { font-size: 16px; }
	.footer-cols { grid-template-columns: 1fr; gap: 22px; }
	.section-head { flex-direction: column; align-items: flex-start; gap: 9px; }
	.section-head h2 { font-size: 16px; }
	.section-body { padding: 12px; }
	.sp-gallery { grid-template-columns: 1fr; }
	.sp-thumbs { flex-direction: row; max-height: none; overflow-x: auto; }
	.sp-cta-row { grid-template-columns: 1fr; }
	.sp-title { font-size: 20px; }
	.sp-price-now { font-size: 25px; }
	.p-card-title { font-size: 12px; }
	.page-head h1 { font-size: 22px; }
	.brand-name { font-size: 20px; }
}
