/* ===========================================================================
   SAGOTOOL — main.css
   Tông đỏ + vàng (mệnh Hỏa), giao diện kiểu Shopee, tối ưu nhẹ.
   =========================================================================== */

:root {
	/* 2 màu thương hiệu: ĐỎ tươi/sáng (không pha cam) + VÀNG tươi (mệnh Hỏa) */
	--c-primary: #f5222d;
	--c-primary-2: #e30613;
	--c-primary-dark: #c8101a;
	--c-accent: #ffd100;
	--c-accent-2: #ffe14d;
	--c-price: #f5222d;
	--c-text: #2b2b2b;
	--c-muted: #7a7a7a;
	--c-border: #ececec;
	--c-bg: #f5f5f5;
	--c-white: #fff;
	--radius: 8px;
	--radius-sm: 4px;
	--container: 1240px;
	--header-grad: linear-gradient(90deg, var(--c-primary) 0%, var(--c-primary-2) 100%);
	--shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
	--shadow: 0 2px 12px rgba(0, 0, 0, .1);
	--font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 14px;
	line-height: 1.5;
	color: var(--c-text);
	background: var(--c-bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--c-primary); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; }
button { font-family: inherit; cursor: pointer; }
.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; }

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

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 10px 22px; border: 1px solid transparent; border-radius: var(--radius-sm);
	font-weight: 600; transition: .15s; line-height: 1;
}
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-dark); color: #fff; }
.btn-accent { background: var(--c-accent); color: #3a2a00; }
.btn-accent:hover { background: var(--c-accent-2); }
.btn-outline { background: #fff; border-color: var(--c-primary); color: var(--c-primary); }
.btn-outline:hover { background: var(--c-primary); color: #fff; }

/* ===========================================================================
   HEADER
   =========================================================================== */
.topbar {
	background: var(--c-primary-dark);
	color: #ffe9e9;
	font-size: 12.5px;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 34px; }
.topbar__left { display: flex; align-items: center; gap: 8px; }
.topbar__right { display: flex; align-items: center; gap: 14px; }
.topbar__right a { color: #fff; }
.topbar__right a:hover { color: var(--c-accent-2); }
.topbar__sep { width: 1px; height: 14px; background: rgba(255, 255, 255, .35); }

.header-main { background: var(--header-grad); color: #fff; border-bottom: 3px solid var(--c-accent); }
.header-main__inner {
	display: flex; align-items: center; gap: 28px; padding: 14px 16px;
}
.site-branding img, .footer-logo { max-height: 52px; width: auto; background: #fff; border-radius: 6px; padding: 4px 8px; }
.logo-text { font-size: 24px; font-weight: 800; color: #fff; letter-spacing: .5px; }

.sago-search {
	flex: 1; position: relative; display: flex;
	background: #fff; border-radius: 4px; overflow: visible;
	border: 2px solid var(--c-accent);
}
.sago-search__input {
	flex: 1; border: 0; outline: 0; padding: 11px 14px; font-size: 14px; border-radius: 4px 0 0 4px;
}
.sago-search__btn {
	border: 0; background: var(--c-primary); color: #fff; padding: 0 22px; font-size: 16px; border-radius: 0 2px 2px 0;
}
.sago-search__btn:hover { background: var(--c-primary-dark); }
.sago-search__suggest {
	position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
	background: #fff; color: var(--c-text); border-radius: 6px; box-shadow: var(--shadow);
	max-height: 420px; overflow: auto;
}
.sago-search__suggest a {
	display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--c-border);
}
.sago-search__suggest a:hover { background: #fff6f6; }
.sago-search__suggest img { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; }
.sago-search__suggest .s-price { color: var(--c-price); font-weight: 700; margin-left: auto; }

.header-actions { display: flex; align-items: center; gap: 22px; }
.header-actions__item { display: flex; flex-direction: column; align-items: center; color: #fff; font-size: 12px; position: relative; }
.header-actions__item i { font-size: 20px; margin-bottom: 2px; }
.header-actions__item:hover { color: var(--c-accent-2); }
.cart-count {
	position: absolute; top: -8px; right: -10px; min-width: 18px; height: 18px; padding: 0 4px;
	background: var(--c-accent); color: #3a2a00; border-radius: 9px; font-size: 11px; font-weight: 700;
	display: flex; align-items: center; justify-content: center;
}

/* Thanh menu chính */
.cat-bar { background: #fff; border-bottom: 1px solid var(--c-border); box-shadow: var(--shadow-sm); }
.cat-bar__inner { display: flex; align-items: stretch; gap: 0; min-height: 48px; }

/* Khối mega "Danh mục sản phẩm" */
.cat-mega { position: relative; }
.cat-mega__btn { height: 48px; background: var(--c-primary); color: #fff; border: 0; padding: 0 18px; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 10px; cursor: pointer; white-space: nowrap; border-radius: 8px 8px 0 0; }
.cat-mega__btn:hover { background: var(--c-primary-dark); }
.cat-mega:hover .cm-caret { transform: rotate(180deg); }
.cm-caret { transition: transform .15s; }
.cat-mega__panel { position: absolute; top: 100%; left: 0; width: 300px; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--c-border); border-top: 0; border-radius: 0 0 8px 8px; padding: 6px 0; display: none; z-index: 60; list-style: none; margin: 0; }
.cat-mega:hover .cat-mega__panel { display: block; }
.cat-mega__panel li a { display: flex; align-items: center; gap: 12px; padding: 11px 16px; color: var(--c-text); font-size: 14px; }
.cat-mega__panel li a:hover { background: #fff0ef; color: var(--c-primary); }
.cat-mega__panel li a > span { flex: 1; }
.cat-mega__panel li a > i:first-child { width: 20px; text-align: center; color: var(--c-primary); }
.cat-mega__panel li a small { color: var(--c-muted); font-size: 12px; background: #f3f3f3; border-radius: 10px; padding: 0 7px; }
.cat-mega__panel li a .cm-arrow { color: #ccc; font-size: 11px; }

/* Menu ngang (icon + hover + active) */
.sago-cat-menu { display: flex; align-items: stretch; flex-wrap: wrap; gap: 0; margin: 0; }
.sago-cat-menu > li { position: relative; }
.sago-cat-menu > li > a { display: flex; align-items: center; height: 48px; padding: 0 16px; font-weight: 600; font-size: 14px; }
.sago-cat-menu > li > a:hover,
.sago-cat-menu > li.current-menu-item > a,
.sago-cat-menu > li.current_page_item > a,
.sago-cat-menu > li.current-menu-parent > a { color: var(--c-primary); background: #fff6f5; box-shadow: inset 0 -3px 0 var(--c-primary); }
.sago-mi { color: var(--c-primary); margin-right: 7px; }
.sago-caret { font-size: 11px; margin-left: 5px; opacity: .7; }
.sago-cat-menu ul.sub-menu { position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff; box-shadow: var(--shadow); border-radius: 0 0 8px 8px; padding: 6px 0; display: none; z-index: 55; list-style: none; margin: 0; }
.sago-cat-menu li:hover > ul.sub-menu { display: block; }
.sago-cat-menu ul.sub-menu li a { display: block; padding: 9px 16px; font-size: 13px; }
.sago-cat-menu ul.sub-menu li a:hover { background: #fff0ef; color: var(--c-primary); }

.cat-bar__hot { margin-left: auto; display: flex; align-items: center; gap: 7px; padding: 0 16px; color: var(--c-primary); font-weight: 700; }
.cat-bar__hot i { color: var(--c-accent); }
.cat-bar__hot:hover { color: var(--c-primary-dark); }

/* ===========================================================================
   HOME
   =========================================================================== */
.home-hero {
	background: var(--header-grad); color: #fff; padding: 48px 0;
}
.home-hero h1 { font-size: 34px; margin-bottom: 8px; }
.home-hero p { font-size: 16px; opacity: .95; margin-bottom: 20px; }
.home-hero .btn-primary { background: var(--c-accent); color: #3a2a00; }
.home-hero .btn-primary:hover { background: var(--c-accent-2); }

/* Banner trang chủ (ảnh banner shop) */
.home-banner { padding: 16px 0 4px; }
.home-banner__track { position: relative; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); line-height: 0; }
.home-banner__slide { display: block; }
.home-banner__slide img { display: block; width: 100%; height: auto; }
/* Nhiều banner: xếp chồng + fade tự chạy */
.home-banner.has-multi .home-banner__track { aspect-ratio: 1552 / 671; }
.home-banner.has-multi .home-banner__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.home-banner.has-multi .home-banner__slide img { width: 100%; height: 100%; object-fit: cover; }
.home-banner.has-multi .home-banner__slide.is-active { opacity: 1; }

.home-section { padding: 26px 0; }
.section-title {
	font-size: 20px; font-weight: 700; margin-bottom: 16px; position: relative; padding-left: 12px;
}
.section-title::before {
	content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 5px; border-radius: 3px;
	background: linear-gradient(var(--c-primary), var(--c-accent));
}

.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cat-grid__item {
	background: #fff; border-radius: var(--radius); padding: 16px 8px; text-align: center;
	box-shadow: var(--shadow-sm); transition: .15s;
}
.cat-grid__item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-grid__item img { width: 64px; height: 64px; object-fit: contain; margin: 0 auto 8px; }
.cat-grid__item span { font-size: 13px; display: block; }

/* ===========================================================================
   PRODUCT GRID + CARD (kiểu Shopee)
   =========================================================================== */
.product-grid,
.woocommerce ul.products,
ul.products {
	display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none;
}
.product-grid li,
.woocommerce ul.products li.product,
ul.products li {
	list-style: none; width: auto; float: none; margin: 0; clear: none;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; content: none; }

li.product, .product-card {
	background: #fff; border-radius: var(--radius); overflow: hidden; position: relative;
	box-shadow: var(--shadow-sm); transition: .15s; display: flex; flex-direction: column;
}
li.product:hover, .product-card:hover { box-shadow: 0 4px 16px rgba(227, 6, 19, .18); transform: translateY(-2px); z-index: 2; }

li.product a img, .product-card .pc-thumb img {
	width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block;
}
.pc-thumb { position: relative; display: block; }

.pc-badge {
	position: absolute; top: 0; left: 0; background: var(--c-accent); color: #3a2a00;
	font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 0 0 6px 0;
}
.pc-discount {
	position: absolute; top: 0; right: 0; background: var(--c-primary); color: #fff;
	font-size: 11px; font-weight: 700; padding: 3px 6px; text-align: center; border-radius: 0 0 0 6px; line-height: 1.1;
}
.pc-discount small { display: block; font-size: 9px; font-weight: 500; }

li.product .woocommerce-loop-product__title,
.pc-title {
	font-size: 13px; line-height: 1.35; margin: 0; padding: 8px 8px 4px; font-weight: 400; color: var(--c-text);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px;
}

li.product .price, .pc-price { padding: 0 8px; }
li.product .price, .pc-price__now { color: var(--c-price) !important; font-weight: 700; font-size: 16px; }
li.product .price del, .pc-price__old { color: var(--c-muted); font-weight: 400; font-size: 12px; margin-left: 4px; }
li.product .price ins { text-decoration: none; }

.pc-body { display: flex; flex-direction: column; flex: 1; }
.pc-meta { display: flex; align-items: center; gap: 6px; padding: 4px 8px 10px; font-size: 11px; color: var(--c-muted); margin-top: auto; }
.pc-meta .stars { color: var(--c-accent); }
.pc-meta .sold { margin-left: auto; }
.pc-meta .loc { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; }
.pc-soldout {
	position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%;
	background: rgba(0, 0, 0, .55); color: #fff; display: flex; align-items: center; justify-content: center;
	font-weight: 700; font-size: 13px; text-align: center;
}

/* nút add-to-cart trong loop (ẩn, hiện khi hover) */
li.product .button, li.product .added_to_cart {
	display: inline-block; margin: 0 8px 10px; background: #fff; border: 1px solid var(--c-primary);
	color: var(--c-primary); padding: 6px 10px; border-radius: 4px; font-size: 12px; font-weight: 600;
}
li.product .button:hover { background: var(--c-primary); color: #fff; }

/* ===========================================================================
   SINGLE PRODUCT (kiểu Shopee)
   =========================================================================== */
.sago-single { padding: 16px 0 40px; }
.sago-single .woocommerce-breadcrumb { font-size: 13px; color: var(--c-muted); margin-bottom: 12px; }
.sago-single .woocommerce-breadcrumb a { color: var(--c-muted); }
.sago-single .woocommerce-breadcrumb a:hover { color: var(--c-primary); }

.sp-top {
	display: grid; grid-template-columns: 440px 1fr; gap: 30px;
	background: #fff; padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.sp-gallery { position: relative; }
.sp-gallery .woocommerce-product-gallery { width: 100% !important; margin: 0; }
.sp-gallery .woocommerce-product-gallery__image img { border-radius: 6px; }
.sp-gallery .flex-control-thumbs { display: flex; gap: 8px; margin-top: 10px; padding: 0; }
.sp-gallery .flex-control-thumbs li { width: 64px !important; }
.sp-gallery .onsale { position: absolute; top: 8px; left: 8px; background: var(--c-primary); color: #fff; z-index: 5; padding: 3px 10px; border-radius: 4px; font-weight: 700; }

.sp-summary .product_title { font-size: 22px; line-height: 1.3; margin-bottom: 10px; }
.sp-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--c-border); font-size: 13px; color: var(--c-muted); }
.sp-stats .sp-rating { color: var(--c-accent); font-weight: 600; }
.sp-stats .sp-rating b { color: var(--c-primary); }
.sp-stats .sp-reviews-link { color: var(--c-muted); border-left: 1px solid var(--c-border); padding-left: 14px; }
.sp-stats .sp-sold { border-left: 1px solid var(--c-border); padding-left: 14px; }

.sp-summary p.price,
.sp-summary .price {
	background: #fff7f6; border-radius: 8px; padding: 14px 18px; margin: 14px 0;
	color: var(--c-price) !important; font-size: 28px; font-weight: 800;
}
.sp-summary .price del { color: var(--c-muted); font-size: 18px; font-weight: 400; margin-right: 10px; }
.sp-summary .price ins { text-decoration: none; }

.sp-summary .woocommerce-product-details__short-description { margin: 14px 0; color: #555; font-size: 14px; }

/* Variations + form mua hàng */
.sp-summary .variations { width: 100%; margin-bottom: 14px; }
.sp-summary .variations th { text-align: left; padding: 8px 12px 8px 0; vertical-align: middle; font-weight: 600; width: 120px; }
.sp-summary .variations td { padding: 6px 0; }
.sp-summary .variations select { padding: 9px 12px; border: 1px solid var(--c-border); border-radius: 6px; min-width: 220px; }
.sp-summary .reset_variations { font-size: 13px; margin-left: 8px; display: inline-block; margin-top: 6px; }

/* Biến thể dạng nút/tab (Shopee) */
.sago-variation-hidden { display: none !important; }
.sago-var-options { display: flex; flex-wrap: wrap; gap: 8px; }
.sago-var-btn {
	border: 1px solid var(--c-border); background: #fff; color: var(--c-text);
	border-radius: 4px; padding: 8px 14px; font-size: 13px; cursor: pointer; line-height: 1.2;
	min-width: 48px; position: relative;
}
.sago-var-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.sago-var-btn.selected { border-color: var(--c-primary); color: var(--c-primary); background: #fff0ef; font-weight: 600; }
.sago-var-btn.selected::after {
	content: ""; position: absolute; right: -1px; bottom: -1px; border: 9px solid var(--c-primary);
	border-top-color: transparent; border-left-color: transparent; border-radius: 0 0 4px 0;
}
.sago-var-btn.sago-var-disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.sago-var-btn.sago-var-disabled:hover { border-color: var(--c-border); color: var(--c-text); }

.sp-summary form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 16px 0; }
.sp-summary form.cart .quantity { display: flex; }
.sp-summary form.cart .quantity input.qty {
	width: 70px; height: 46px; text-align: center; border: 1px solid var(--c-border); border-radius: 6px; font-size: 16px;
}
.sp-summary .single_add_to_cart_button {
	height: 46px; padding: 0 26px; background: #fff0ef !important; color: var(--c-primary) !important;
	border: 1px solid var(--c-primary) !important; border-radius: 6px; font-weight: 700; font-size: 15px;
	display: inline-flex; align-items: center; gap: 8px;
}
.sp-summary .single_add_to_cart_button:hover { background: var(--c-primary) !important; color: #fff !important; }
.sp-summary .single_add_to_cart_button::before { content: "\f07a"; font-family: "Font Awesome 6 Free"; font-weight: 900; }
.sp-summary .sago-buynow,
.woocommerce .sp-summary button.sago-buynow {
	height: 46px; padding: 0 32px; background: var(--c-primary) !important; color: #fff !important; border: 0 !important; border-radius: 6px;
	font-weight: 700; font-size: 15px; text-shadow: none;
}
.sp-summary .sago-buynow:hover { background: var(--c-primary-dark) !important; }

.sp-summary .product_meta { font-size: 13px; color: var(--c-muted); margin-top: 12px; }
.sp-trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--c-border); font-size: 13px; color: #555; }
.sp-trust i { color: var(--c-primary); margin-right: 5px; }

/* Tabs + related */
.sp-bottom { margin-top: 20px; }
.woocommerce-tabs { background: #fff; padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.woocommerce-tabs ul.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--c-border); padding: 0; margin: 0 0 18px; }
.woocommerce-tabs ul.tabs li { list-style: none; }
.woocommerce-tabs ul.tabs li a { display: block; padding: 10px 18px; font-weight: 600; color: var(--c-text); }
.woocommerce-tabs ul.tabs li.active a { color: var(--c-primary); border-bottom: 2px solid var(--c-primary); margin-bottom: -2px; }
.woocommerce-tabs .panel { font-size: 14px; line-height: 1.7; }
.woocommerce-tabs .panel h2 { font-size: 18px; }

/* Khối mô tả sản phẩm (mặc định khi chưa có mô tả) */
.sp-desc .sp-desc-intro { font-size: 15px; margin: 0 0 14px; }
.sp-desc .sp-desc-commit { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.sp-desc .sp-desc-commit li { display: flex; align-items: center; gap: 10px; color: #444; }
.sp-desc .sp-desc-commit i { color: var(--c-primary); width: 18px; text-align: center; }
.sp-desc .sp-desc-note { color: #888; font-style: italic; margin: 0; }

.related.products, .up-sells.products { background: #fff; padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-top: 20px; }
.related.products > h2, .up-sells.products > h2 { font-size: 18px; margin-bottom: 14px; }

@media (max-width: 860px) {
	.sp-top { grid-template-columns: 1fr; }
}

/* ===========================================================================
   CART & CHECKOUT
   =========================================================================== */
.woocommerce-cart .woo-wrap, .woocommerce-checkout .woo-wrap, .woocommerce-account .woo-wrap { max-width: var(--container); }

table.shop_table { width: 100%; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); border-collapse: collapse; overflow: hidden; }
table.shop_table th, table.shop_table td { padding: 14px 16px; border-bottom: 1px solid var(--c-border); text-align: left; vertical-align: middle; }
table.shop_table thead th { background: #fafafa; font-size: 13px; text-transform: uppercase; color: var(--c-muted); }
.woocommerce-cart-form .product-thumbnail img { width: 64px; border-radius: 6px; }
.woocommerce-cart-form .product-remove a { color: var(--c-primary); font-weight: 700; }
.cart_totals { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 18px; margin-top: 18px; }
.cart_totals h2 { font-size: 18px; margin-bottom: 12px; }
.woocommerce .cart-collaterals { display: flex; justify-content: flex-end; }
.woocommerce .cart-collaterals .cart_totals { width: 420px; max-width: 100%; }

a.checkout-button, .wc-proceed-to-checkout a.button {
	display: block; background: var(--c-primary) !important; color: #fff !important; text-align: center;
	padding: 14px; border-radius: 6px; font-weight: 700; font-size: 16px;
}
a.checkout-button:hover { background: var(--c-primary-dark) !important; }
.woocommerce button.button[name="update_cart"], .woocommerce .actions .button { border-radius: 6px; }

/* Checkout 2 cột */
.woocommerce-checkout form.checkout.woocommerce-checkout {
	display: grid; grid-template-columns: 1fr 400px; gap: 0 24px; align-items: start;
}
.woocommerce-checkout #customer_details { grid-column: 1; grid-row: 1 / span 2; }
.woocommerce-checkout #order_review_heading { grid-column: 2; grid-row: 1; margin: 0 0 10px; }
.woocommerce-checkout #order_review { grid-column: 2; grid-row: 2; }
.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review {
	background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px;
}
.woocommerce-checkout h3 { font-size: 17px; margin-bottom: 14px; }
.woocommerce form .form-row { margin-bottom: 14px; }
.woocommerce form .form-row label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 13px; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row .select2-container,
.woocommerce-checkout select {
	width: 100%; padding: 11px 12px; border: 1px solid var(--c-border); border-radius: 6px; font-size: 14px;
}
/* Ô địa chỉ gõ-tìm (selectWoo/select2) — đồng bộ chiều cao/viền với input */
.woocommerce form .form-row .select2-container { padding: 0 !important; border: 0 !important; }
.select2-container--default .select2-selection--single { height: 42px; border: 1px solid var(--c-border); border-radius: 6px; background: #fff; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 40px; padding-left: 12px; color: var(--c-text); font-size: 14px; }
.select2-container--default .select2-selection--single .select2-selection__placeholder { color: #999; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 40px; right: 8px; }
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single { border-color: var(--c-primary); box-shadow: 0 0 0 2px rgba(245,34,45,.12); }
.select2-dropdown { border-color: var(--c-border); border-radius: 6px; }
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted { background: var(--c-primary) !important; }
.select2-search--dropdown .select2-search__field { border: 1px solid var(--c-border); border-radius: 6px; padding: 8px; }

.woocommerce-checkout ul.payment_methods { list-style: none; padding: 0; border: 1px solid var(--c-border); border-radius: 8px; }
.woocommerce-checkout ul.payment_methods li { padding: 12px 14px; border-bottom: 1px solid var(--c-border); }
.woocommerce-checkout ul.payment_methods li:last-child { border-bottom: 0; }
.woocommerce-checkout ul.payment_methods li label { font-weight: 600; display: inline; }
.woocommerce-checkout .payment_box { background: #fff7f6; border-radius: 6px; padding: 12px; font-size: 13px; }
#place_order, .woocommerce #payment #place_order {
	width: 100%; background: var(--c-primary) !important; color: #fff !important; border: 0; border-radius: 6px;
	padding: 15px; font-size: 17px; font-weight: 700; margin-top: 12px;
}
#place_order:hover { background: var(--c-primary-dark) !important; }
.woocommerce-checkout .woocommerce-info, .woocommerce-checkout .woocommerce-form-login-toggle { margin-bottom: 16px; }

@media (max-width: 860px) {
	.woocommerce-checkout form.checkout.woocommerce-checkout { grid-template-columns: 1fr; }
	.woocommerce-checkout #customer_details, .woocommerce-checkout #order_review_heading, .woocommerce-checkout #order_review { grid-column: 1; grid-row: auto; }
	.woocommerce .cart-collaterals .cart_totals { width: 100%; }
}

/* ===========================================================================
   MY ACCOUNT / LOGIN
   =========================================================================== */
.woocommerce-account .woo-wrap { max-width: 1040px; }
.woocommerce-account .woocommerce > h2,
.woocommerce form.login h2, .woocommerce form.register h2 { font-size: 18px; }
.woocommerce form.login, .woocommerce form.register {
	background: #fff; border: 1px solid var(--c-border); border-radius: 10px; padding: 24px;
	box-shadow: var(--shadow-sm); max-width: 460px;
}
.woocommerce .col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.woocommerce form.login .button, .woocommerce form.register .button,
.woocommerce-account .woocommerce-Button.button, .woocommerce-EditAccountForm .button {
	background: var(--c-primary) !important; color: #fff !important; border: 0 !important;
	border-radius: 6px; padding: 12px 28px !important; font-weight: 700; font-size: 15px;
}
.woocommerce form.login .button:hover, .woocommerce form.register .button:hover { background: var(--c-primary-dark) !important; }
.woocommerce form .form-row label.woocommerce-form__label-for-checkbox { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.woocommerce-LostPassword a { color: var(--c-primary); }

/* Dashboard tài khoản (đã đăng nhập): 2 cột sidebar + nội dung */
.woocommerce-account .entry-content { background: transparent; box-shadow: none; padding: 0; }
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: start; }
/* div notices rỗng của WooCommerce span hết hàng để không chiếm ô grid */
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-account .woocommerce-MyAccount-navigation { grid-column: 1; }
.woocommerce-account .woocommerce-MyAccount-content { grid-column: 2; }
.woocommerce-MyAccount-navigation { background: #fff; border: 1px solid var(--c-border); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-MyAccount-navigation li { margin: 0; }
.woocommerce-MyAccount-navigation li a { display: flex; align-items: center; gap: 11px; padding: 13px 18px; color: var(--c-text); border-bottom: 1px solid #f1f1f1; font-weight: 500; }
.woocommerce-MyAccount-navigation li:last-child a { border-bottom: 0; }
.woocommerce-MyAccount-navigation li a:hover,
.woocommerce-MyAccount-navigation li.is-active a { color: var(--c-primary); background: #fff6f5; box-shadow: inset 3px 0 0 var(--c-primary); }
.woocommerce-MyAccount-navigation li a::before { font-family: "Font Awesome 6 Free"; font-weight: 900; width: 18px; text-align: center; color: var(--c-primary); }
.woocommerce-MyAccount-navigation-link--dashboard a::before { content: "\f624"; }
.woocommerce-MyAccount-navigation-link--orders a::before { content: "\f466"; }
.woocommerce-MyAccount-navigation-link--downloads a::before { content: "\f019"; }
.woocommerce-MyAccount-navigation-link--edit-address a::before { content: "\f3c5"; }
.woocommerce-MyAccount-navigation-link--edit-account a::before { content: "\f007"; }
.woocommerce-MyAccount-navigation-link--customer-logout a::before { content: "\f2f5"; }
.woocommerce-MyAccount-content { background: #fff; border: 1px solid var(--c-border); border-radius: 10px; padding: 24px; box-shadow: var(--shadow-sm); min-height: 320px; }
.woocommerce-MyAccount-content table.shop_table { box-shadow: none; border: 1px solid var(--c-border); }
.woocommerce-MyAccount-content .button,
.woocommerce-MyAccount-content .woocommerce-Button { background: var(--c-primary) !important; color: #fff !important; border: 0 !important; border-radius: 6px; }
.woocommerce-MyAccount-content a:not(.button) { color: var(--c-primary); }
/* Khối buộc đặt mật khẩu sau khi đặt đơn */
.sago-setpass { border: 2px solid var(--c-primary); border-radius: 10px; padding: 18px 20px; margin: 0 0 22px; background: #fff6f5; }
.sago-setpass h3 { margin: 0 0 6px; color: var(--c-primary); font-size: 17px; }
.sago-setpass h3 i { margin-right: 6px; }
.sago-setpass p { margin: 0 0 14px; color: #555; font-size: 14px; }
.sago-setpass__form p { margin: 0 0 12px; }
.sago-setpass__form label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 14px; }
.sago-setpass__form input { width: 100%; max-width: 360px; padding: 10px 12px; border: 1px solid var(--c-border); border-radius: 6px; }
.sago-setpass__form .button { background: var(--c-primary) !important; color: #fff !important; border: 0 !important; border-radius: 6px; padding: 11px 22px; cursor: pointer; }

/* Hành trình đơn hàng (trong chi tiết đơn) */
.sago-journey { margin-top: 28px; }
.sago-journey > h2 { font-size: 18px; margin-bottom: 14px; }
.sago-journey__track { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: #fff6f5; border: 1px solid var(--c-border); border-radius: 8px; padding: 12px 16px; margin-bottom: 18px; }
.sago-journey__track i { color: var(--c-primary); margin-right: 4px; }
.sago-journey__btn { background: var(--c-primary) !important; color: #fff !important; border: 0 !important; border-radius: 6px; padding: 8px 16px; }
.sago-journey__timeline { list-style: none; margin: 0; padding: 0 0 0 6px; }
.sago-journey__timeline li { position: relative; padding: 0 0 22px 26px; border-left: 2px solid var(--c-border); }
.sago-journey__timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.sago-journey__timeline .sj-dot { position: absolute; left: -7px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--c-primary); box-shadow: 0 0 0 3px #fff6f5; }
.sago-journey__timeline .sj-label { font-weight: 600; }
.sago-journey__timeline .sj-desc { color: #666; font-size: 13px; margin-top: 2px; }
.sago-journey__timeline .sj-time { color: #999; font-size: 12px; margin-top: 2px; }
.sago-journey__timeline li.sj-current .sj-dot { background: #f59e0b; box-shadow: 0 0 0 3px #fff7e6; }
.sago-journey__timeline li.sj-current .sj-label { color: #b45309; }
.sago-journey__timeline li.sj-cancelled .sj-dot { background: #999; }
.sago-journey__timeline li.sj-cancelled .sj-label { color: #777; }
.sago-journey__note { color: #888; font-style: italic; font-size: 13px; }

@media (max-width: 768px) { .woocommerce-account .woocommerce { grid-template-columns: 1fr; } }

/* Nút hiện/ẩn mật khẩu (eye toggle) */
.woocommerce form .password-input,
.woocommerce-page form .password-input { position: relative; display: block; }
.woocommerce .password-input input.input-text { padding-right: 44px; }
.woocommerce .show-password-input {
	position: absolute; right: 6px; top: 0; bottom: 0; width: 38px;
	display: flex; align-items: center; justify-content: center; cursor: pointer; background: none;
}
.woocommerce .show-password-input::after {
	content: "\f06e"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: #999; font-size: 15px;
}
.woocommerce .show-password-input.display-password::after { content: "\f070"; color: var(--c-primary); }

@media (max-width: 600px) {
	.woocommerce .col2-set { grid-template-columns: 1fr; }
}

/* ===========================================================================
   CONTENT AREAS
   =========================================================================== */
.site-content { min-height: 50vh; }
.content-area { padding: 20px 16px 40px; }
.content-area.with-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 24px; }
.woo-wrap { padding: 20px 16px 40px; }
.page-header { margin-bottom: 18px; }
.page-title { font-size: 24px; }
.entry-content { background: #fff; padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.entry-content img { border-radius: 6px; }

.sidebar .widget, .post-card, .single-article {
	background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 16px;
}
.sidebar .widget { padding: 16px; }
.widget-title { font-size: 16px; margin-bottom: 10px; }

.post-list { display: grid; gap: 16px; }
.post-card { display: flex; gap: 14px; overflow: hidden; }
.post-card__thumb img { width: 200px; height: 130px; object-fit: cover; }
.post-card__body { padding: 12px 14px; }
.post-card__title { font-size: 17px; }

/* 404 */
.error-404__box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 48px; text-align: center; max-width: 560px; margin: 0 auto; }
.error-404__code { font-size: 64px; font-weight: 800; color: var(--c-primary); }

/* ===========================================================================
   FOOTER
   =========================================================================== */
.site-footer { background: #1f1f1f; color: #cfcfcf; margin-top: 30px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 28px; padding: 40px 16px; }
.footer-title { color: #fff; font-size: 15px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .5px; }
.footer-logo { max-height: 48px; }
.footer-slogan { margin: 10px 0 14px; font-size: 13px; }
.footer-contact { font-size: 13px; }
.footer-contact li { margin-bottom: 9px; display: flex; gap: 9px; align-items: flex-start; }
.footer-contact i { color: var(--c-accent); margin-top: 3px; width: 14px; text-align: center; }
.footer-menu li { margin-bottom: 9px; font-size: 13px; }
.footer-top a { color: #cfcfcf; }
.footer-top a:hover { color: var(--c-accent-2); }
/* Danh mục trong footer: dạng dọc (ghi đè style menu ngang) */
.footer-top .sago-cat-menu { display: block; }
.footer-top .sago-cat-menu > li { display: block; }
.footer-top .sago-cat-menu > li > a { display: block; height: auto; padding: 0 0 9px; font-weight: 400; font-size: 13px; background: none; box-shadow: none; }
.footer-top .sago-cat-menu > li > a:hover { background: none; box-shadow: none; color: var(--c-accent-2); }
.footer-top .sago-mi, .footer-top .sago-caret { display: none; }
/* Mạng xã hội */
.footer-social { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.footer-social .soc { width: 38px; height: 38px; border-radius: 50%; background: #333; color: #fff; display: flex; align-items: center; justify-content: center; transition: .15s; }
.footer-social .soc:hover { background: var(--c-primary); color: #fff; transform: translateY(-2px); }
.footer-social .soc.zalo:hover { background: #0068ff; }
.footer-social .soc.fb:hover { background: #1877f2; }
.footer-social .soc.yt:hover { background: #ff0000; }
/* Badge thanh toán / giao hàng */
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-badges .fb-badge { background: #333; border: 1px solid #444; border-radius: 6px; padding: 6px 10px; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }
.footer-badges .fb-badge i { color: var(--c-accent); }
.footer-ship { margin-top: 10px; font-size: 12.5px; color: #bdbdbd; }
.footer-ship i { color: var(--c-accent); margin-right: 6px; }
/* Bottom */
.footer-bottom { border-top: 1px solid #333; padding: 14px 0; font-size: 13px; }
.footer-bottom__inner { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-bottom__inner p { margin: 0; }
.footer-bottom__pay { color: #9a9a9a; }
.footer-credit { color: #9a9a9a; }
.footer-credit a { color: var(--c-accent-2); font-weight: 600; }
.footer-credit a:hover { text-decoration: underline; }
@media (max-width: 768px) { .footer-bottom__inner { flex-direction: column; text-align: center; } }

.float-zalo {
	position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 52px; height: 52px; border-radius: 50%;
	background: #0068ff; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px;
	box-shadow: var(--shadow); animation: sago-pulse 2s infinite;
}
@keyframes sago-pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 104, 255, .5); } 70% { box-shadow: 0 0 0 14px rgba(0, 104, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 104, 255, 0); } }

/* ===========================================================================
   RESPONSIVE
   =========================================================================== */
@media (max-width: 1024px) {
	.product-grid, .woocommerce ul.products, ul.products { grid-template-columns: repeat(4, 1fr); }
	.cat-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
	.header-main__inner { flex-wrap: wrap; gap: 12px; }
	.site-branding { order: 1; flex-basis: 100%; display: flex; justify-content: center; }
	.site-branding img, .site-branding .logo-text, .site-branding .custom-logo-link { margin-left: auto; margin-right: auto; }
	.header-actions { order: 2; margin: 0 auto; }
	.sago-search { order: 3; flex-basis: 100%; }
	.cat-bar { display: none; }
	.product-grid, .woocommerce ul.products, ul.products { grid-template-columns: repeat(2, 1fr); }
	.cat-grid { grid-template-columns: repeat(3, 1fr); }
	.content-area.with-sidebar { grid-template-columns: 1fr; }
	.footer-top { grid-template-columns: 1fr 1fr; gap: 20px; }
	.post-card { flex-direction: column; }
	.post-card__thumb img { width: 100%; height: 180px; }
	/* Topbar mobile: chỉ giữ Hotline, căn giữa cho gọn */
	.topbar { font-size: 12px; }
	.topbar__inner { justify-content: center; min-height: 32px; }
	.topbar__left { width: 100%; justify-content: center; }
	.topbar__right { display: none; }
}
@media (max-width: 420px) {
	.cat-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-top { grid-template-columns: 1fr; }
}

/* ===========================================================================
   BLOCK DANH MỤC TRANG CHỦ + LƯỚI ĐẶC THÙ
   =========================================================================== */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head .section-title { margin-bottom: 0; }
.section-more { display: inline-flex; align-items: center; gap: 5px; color: var(--c-primary); font-weight: 600; font-size: 14px; white-space: nowrap; }
.section-more:hover { color: var(--c-primary-dark); }

/* Trang chủ: 6 sản phẩm/hàng */
.product-grid--home { grid-template-columns: repeat(6, 1fr); }

/* Cửa hàng / danh mục: 4 cột (8 SP = 2 hàng) */
body.woocommerce-shop ul.products,
body.tax-product_cat ul.products { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
	.product-grid--home { grid-template-columns: repeat(4, 1fr); }
	body.woocommerce-shop ul.products,
	body.tax-product_cat ul.products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
	.product-grid--home { grid-template-columns: repeat(2, 1fr); }
	body.woocommerce-shop ul.products,
	body.tax-product_cat ul.products { grid-template-columns: repeat(2, 1fr); }
}
