/*
Theme Name: Karofi Đà Nẵng
Theme URI: https://karofidanang.com
Author: Karofi Đà Nẵng
Author URI: https://karofidanang.com
Description: Theme chuyên biệt cho đại lý Karofi tại Đà Nẵng. Tương thích WooCommerce, Yoast SEO.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: karofi-danang
Tags: e-commerce, woocommerce, custom-menu, custom-logo, featured-images
*/

/* ==========================================================================
   CSS Variables / Design Tokens
   ========================================================================== */
:root {
  --kf-primary: #00aeef;
  --kf-primary-dark: #004a6e;
  --kf-primary-darker: #003a5c;
  --kf-primary-hover: #0095cc;
  --kf-text: #1a1a1a;
  --kf-text-muted: #6b7280;
  --kf-bg: #ffffff;
  --kf-bg-alt: #f8f9fa;
  --kf-border: #e5e7eb;
  --kf-shadow: 0 2px 8px rgba(0,0,0,0.08);
  --kf-shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
  --kf-radius: 10px;
  --kf-radius-sm: 6px;
  --kf-radius-pill: 20px;
  --kf-transition: 0.2s ease;
  --kf-max-width: 1200px;
  --kf-font: 'Roboto', sans-serif;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--kf-font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--kf-text);
  background: var(--kf-bg);
}

a { color: var(--kf-primary); text-decoration: none; transition: color var(--kf-transition); }
a:hover { color: var(--kf-primary-hover); }

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--kf-text);
}

ul, ol { list-style: none; }

button, input[type="submit"], .button {
  cursor: pointer;
  font-family: var(--kf-font);
}

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

/* ==========================================================================
   Top Bar
   ========================================================================== */
.kf-topbar {
  background: linear-gradient(135deg, #0091ea 0%, #00b0ff 50%, #0091ea 100%);
  color: #fff;
  font-size: 13px;
  padding: 8px 0;
}

.kf-topbar .wrap {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

.kf-topbar a { color: #fff; }
.kf-topbar a:hover { color: rgba(255,255,255,0.8); }

.kf-topbar-row1,
.kf-topbar-row2 {
  display: flex;
  gap: 20px;
  align-items: center;
  white-space: nowrap;
}

.kf-topbar-row2 {
  justify-content: flex-end;
  gap: 20px;
}

.kf-topbar-phones {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kf-topbar-divider {
  opacity: 0.5;
  margin: 0 4px;
}

.kf-topbar-socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kf-topbar-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: #fff;
  transition: all var(--kf-transition);
}
.kf-topbar-social:hover {
  background: rgba(255,255,255,0.4);
  color: #fff;
  transform: scale(1.1);
}

/* Zalo icon in topbar — original logo with white circle bg */
.kf-topbar-zalo img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  padding: 3px;
}

.kf-topbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.kf-topbar-item svg { flex-shrink: 0; }

/* ==========================================================================
   Header / Branding
   ========================================================================== */
.kf-header {
  background: #fff;
  padding: 15px 0;
  border-bottom: 1px solid var(--kf-border);
}

.kf-header .wrap {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 20px;
}

.kf-header-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
}

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

/* Hide hamburger on desktop */
.kf-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  color: var(--kf-text);
}

.kf-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--kf-text);
}

.kf-logo img {
  max-height: 50px;
  width: auto;
}

.kf-logo-text h1,
.kf-logo-text .site-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--kf-text);
  margin: 0;
  line-height: 1.2;
}

.kf-logo-text .site-description {
  font-size: 12px;
  color: var(--kf-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Search */
.kf-search {
  flex: 1;
  max-width: 500px;
}

.kf-search form {
  display: flex;
  border: 2px solid var(--kf-primary);
  border-radius: var(--kf-radius-sm);
  overflow: hidden;
}

.kf-search input[type="search"],
.kf-search input[type="text"] {
  flex: 1;
  border: none;
  padding: 10px 16px;
  font-size: 14px;
  outline: none;
  font-family: var(--kf-font);
}

.kf-search button {
  background: var(--kf-primary);
  color: #fff;
  border: none;
  padding: 10px 18px;
  font-size: 16px;
  transition: background var(--kf-transition);
}

.kf-search button:hover { background: var(--kf-primary-hover); }

/* Cart Icon */
.kf-cart {
  position: relative;
}

.kf-cart a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--kf-text);
  font-size: 14px;
  position: relative;
}

.kf-cart a > svg {
  position: relative;
  flex-shrink: 0;
}

.kf-cart-count {
  position: absolute;
  top: -6px;
  left: 15px;
  background: var(--kf-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  box-sizing: border-box;
}

.kf-cart-info {
  text-align: right;
  margin-left: 2px;
}

.kf-cart-label {
  font-size: 12px;
  color: var(--kf-text-muted);
}

.kf-cart-total {
  font-weight: 600;
  color: var(--kf-text);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.kf-nav {
  background: var(--kf-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.kf-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kf-nav ul {
  display: flex;
  gap: 0;
}

.kf-nav ul li a {
  display: block;
  color: #fff;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background var(--kf-transition);
}

.kf-nav ul li a:hover,
.kf-nav ul li.current-menu-item > a,
.kf-nav ul li.current_page_item > a {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* Dropdown */
.kf-nav ul li { position: relative; }

.kf-nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  box-shadow: var(--kf-shadow-hover);
  border-radius: 0 0 var(--kf-radius-sm) var(--kf-radius-sm);
  z-index: 1001;
  flex-direction: column;
}

.kf-nav ul li:hover > ul { display: flex; }

.kf-nav ul li ul li a {
  color: var(--kf-text);
  padding: 10px 18px;
  font-size: 13px;
  text-transform: none;
  border-bottom: 1px solid var(--kf-border);
}

.kf-nav ul li ul li:last-child a { border-bottom: none; }
.kf-nav ul li ul li a:hover { background: var(--kf-bg-alt); color: var(--kf-primary); }

/* Long dropdown — scroll */
.kf-nav ul li ul {
  max-height: 70vh;
  overflow-y: auto;
}

/* Sub-submenu */
.kf-nav ul li ul li ul {
  left: 100%;
  top: 0;
}

/* Mobile toggle */
.kf-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
}

/* ==========================================================================
   Product Category Nav Bar
   ========================================================================== */
.kf-cat-nav {
  background: var(--kf-primary-dark);
  padding: 0;
  display: none; /* shown only on homepage via front-page.php inline style */
}

.kf-cat-nav .wrap {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
}

.kf-cat-nav a {
  display: block;
  color: rgba(255,255,255,0.85);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background var(--kf-transition);
}

.kf-cat-nav a:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* ==========================================================================
   USP Trust Bar
   ========================================================================== */
.kf-usp {
  background: var(--kf-bg-alt);
  border-bottom: 1px solid var(--kf-border);
  padding: 14px 0;
}

.kf-usp .wrap {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.kf-usp-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--kf-text);
}

.kf-usp-item svg { flex-shrink: 0; }

/* Hide duplicate marquee items on desktop */
.kf-usp-item[aria-hidden="true"] { display: none; }

/* ==========================================================================
   Hero Banner — Image
   ========================================================================== */
.kf-hero {
  width: 100%;
  overflow: hidden;
  background: var(--kf-bg-alt);
}

.kf-hero img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ==========================================================================
   Section Titles
   ========================================================================== */
.kf-section {
  padding: 50px 0;
}

.kf-section-alt { background: var(--kf-bg-alt); }

.kf-section-title {
  text-align: center;
  margin-bottom: 40px;
}

.kf-section-title h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--kf-text);
  margin-bottom: 8px;
}

.kf-section-title p {
  color: var(--kf-text-muted);
  font-size: 15px;
}

/* ==========================================================================
   WooCommerce — Product Cards (NUCLEAR OVERRIDES)
   Kill ALL WooCommerce plugin float/width/clear styles
   ========================================================================== */

/* Container: Grid, not floats */
.woocommerce ul.products,
.woocommerce-page ul.products,
.woocommerce[class*="columns-"] ul.products,
body.woocommerce ul.products,
body.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  float: none !important;
  width: 100% !important;
}

/* Kill WooCommerce clearfix pseudo-elements */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
  display: none !important;
  content: none !important;
}

/* Product Card */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce ul.products[class*="columns-"] li.product,
body .woocommerce ul.products li.product,
body.woocommerce ul.products li.product,
body.woocommerce-page ul.products li.product {
  background: #fff !important;
  border-radius: var(--kf-radius) !important;
  box-shadow: var(--kf-shadow) !important;
  overflow: hidden !important;
  transition: box-shadow 0.2s ease, transform 0.2s ease !important;
  text-align: center !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  clear: none !important;
  position: relative !important;
  list-style: none !important;
  display: flex !important;
  flex-direction: column !important;
}

.woocommerce ul.products li.product:hover {
  box-shadow: var(--kf-shadow-hover) !important;
  transform: translateY(-3px) !important;
}

/* Product Image — let <a> flow naturally, image gets its own square */
body.woocommerce ul.products li.product a:first-child,
body .woocommerce ul.products li.product a:first-child {
  display: flex !important;
  flex-direction: column !important;
  text-decoration: none !important;
  color: inherit !important;
}

body.woocommerce ul.products li.product a img,
body.woocommerce ul.products li.product img,
body .woocommerce ul.products li.product a img,
body .woocommerce ul.products li.product img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  margin: 0 !important;
  padding: 12px !important;
  border-radius: 0 !important;
  position: relative !important;
  background: #f8f9fa !important;
}

/* Sale Badge — Small pill */
.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale,
body .woocommerce span.onsale {
  background: var(--kf-primary) !important;
  color: #fff !important;
  border-radius: var(--kf-radius-pill) !important;
  padding: 3px 10px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  min-height: auto !important;
  min-width: auto !important;
  line-height: 1.4 !important;
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  right: auto !important;
  z-index: 2 !important;
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  text-align: center !important;
}

.woocommerce span.onsale::before,
.woocommerce span.onsale::after {
  display: none !important;
}

/* Single product page — keep sale badge inside the product gallery */
.single-product div.product {
  position: relative;
}
.single-product div.product > span.onsale {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  z-index: 2 !important;
}
.single-product .woocommerce-product-gallery {
  position: relative;
}

/* Product Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-category__title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h3 {
  font-size: 14px !important;
  font-weight: 500 !important;
  padding: 12px 12px 4px !important;
  margin: 0 !important;
  color: var(--kf-text) !important;
  text-align: center !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  line-height: 1.4 !important;
  min-height: 48px !important;
}

/* Price */
.woocommerce ul.products li.product .price {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--kf-primary) !important;
  padding: 4px 12px !important;
  margin: 0 !important;
}

.woocommerce ul.products li.product .price del {
  color: var(--kf-text-muted) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
}

.woocommerce ul.products li.product .price ins {
  background: transparent !important;
  text-decoration: none !important;
  color: var(--kf-primary) !important;
}

/* Add to Cart Button */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product .add_to_cart_button,
.woocommerce ul.products li.product .product_type_simple,
.woocommerce ul.products li.product a.add_to_cart_button {
  background: var(--kf-primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--kf-radius-sm) !important;
  padding: 8px 20px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin: auto 12px 14px !important;
  transition: background 0.2s ease !important;
  display: inline-block !important;
  text-align: center !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product a.button:hover {
  background: var(--kf-primary-hover) !important;
}

/* Add to Cart — Loading state (spinner) */
.woocommerce ul.products li.product .button.loading {
  opacity: 0.7 !important;
  pointer-events: none;
  position: relative;
  color: transparent !important;
}
.woocommerce ul.products li.product .button.loading::after {
  content: "" !important;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: kf-spin 0.6s linear infinite;
}
@keyframes kf-spin {
  to { transform: rotate(360deg); }
}

/* Add to Cart — Added state (checkmark) */
.woocommerce ul.products li.product .button.added {
  background: var(--kf-primary-hover) !important;
  color: transparent !important;
  pointer-events: none;
  position: relative;
}
.woocommerce ul.products li.product .button.added::after {
  content: "✓" !important;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

/* View cart link after add */
.woocommerce ul.products li.product .added_to_cart {
  display: inline-block;
  margin: 4px 12px 10px;
  font-size: 12px;
  color: var(--kf-primary);
  font-weight: 600;
}
.woocommerce ul.products li.product .added_to_cart:hover {
  text-decoration: underline;
}

/* WooCommerce Toast / Notices */
.woocommerce-message,
.woocommerce-info {
  border-top-color: var(--kf-primary) !important;
  background: #f0f9ff !important;
  color: var(--kf-text) !important;
  padding: 12px 16px !important;
  border-radius: var(--kf-radius) !important;
  font-size: 14px;
  margin-bottom: 20px;
}
.woocommerce-error {
  border-top-color: #e74c3c !important;
  background: #fff5f5 !important;
  padding: 12px 16px !important;
  border-radius: var(--kf-radius) !important;
  font-size: 14px;
  margin-bottom: 20px;
}
.woocommerce-message a.button,
.woocommerce-info a.button {
  background: var(--kf-primary) !important;
  color: #fff !important;
  border-radius: 6px !important;
  padding: 8px 16px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

/* Custom toast for AJAX add to cart */
.kf-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--kf-primary);
  color: #fff;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  z-index: 99999;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 10px;
}
.kf-toast.show {
  transform: translateX(0);
}
.kf-toast .kf-toast-icon {
  font-size: 18px;
}

/* Star Rating */
.woocommerce ul.products li.product .star-rating {
  margin: 6px auto 0 !important;
  font-size: 12px !important;
}

/* Result count & ordering — inline on same row */
.woocommerce .woocommerce-result-count {
  margin-bottom: 0 !important;
  float: left !important;
  line-height: 36px;
  font-size: 14px;
  color: var(--kf-text-muted);
}
.woocommerce .woocommerce-ordering {
  margin-bottom: 16px !important;
  float: right !important;
}

/* ==========================================================================
   WooCommerce — Single Product Page (FULL LAYOUT)
   Since we dequeued WooCommerce CSS, we must style everything
   ========================================================================== */
.woocommerce div.product,
.woocommerce #content div.product {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 40px !important;
  padding: 30px 0 !important;
}

/* Flexslider — essential styles (since WooCommerce CSS is dequeued) */
.flex-viewport { max-height: 2000px; transition: all 1s ease; }
.loading .flex-viewport { max-height: 300px; }
.flexslider {
  margin: 0;
  padding: 0;
  position: relative;
}
.flexslider .slides { margin: 0; padding: 0; list-style: none; }
.flexslider .slides > li { display: none; -webkit-backface-visibility: hidden; position: relative; }
.flexslider .slides > li:first-child { display: block; }
.flexslider .slides img { width: 100%; display: block; }
.flex-pauseplay span { text-transform: capitalize; }
.flex-direction-nav {
  margin: 0;
  padding: 0;
  list-style: none;
}
.flex-direction-nav a {
  text-decoration: none;
  display: block;
  width: 36px;
  height: 36px;
  margin: -18px 0 0;
  position: absolute;
  top: 50%;
  z-index: 10;
  overflow: hidden;
  opacity: 0;
  cursor: pointer;
  background: rgba(0,0,0,0.5);
  color: #fff;
  text-align: center;
  line-height: 36px;
  font-size: 18px;
  border-radius: 50%;
  transition: all 0.3s ease;
}
.flex-direction-nav a::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}
.flex-direction-nav a.flex-prev { left: 10px; }
.flex-direction-nav a.flex-prev::before { transform: rotate(-135deg); margin-left: 3px; }
.flex-direction-nav a.flex-next { right: 10px; }
.flex-direction-nav a.flex-next::before { transform: rotate(45deg); margin-right: 3px; }
.flexslider:hover .flex-direction-nav a { opacity: 0.7; }
.flexslider:hover .flex-direction-nav a:hover { opacity: 1; }

/* WooCommerce Product Gallery */
.woocommerce-product-gallery {
  position: relative;
  overflow: visible;
}
.woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
  transition: all 0s cubic-bezier(0.7, 0, 0.3, 1) !important;
}
.woocommerce-product-gallery .flex-viewport {
  overflow: hidden;
  border-radius: var(--kf-radius);
}

/* Images — Left column */
.woocommerce div.product div.images,
.woocommerce #content div.product div.images {
  width: 48% !important;
  float: none !important;
}

.woocommerce div.product div.images img {
  width: 100% !important;
  height: auto !important;
  border-radius: var(--kf-radius) !important;
  box-shadow: var(--kf-shadow) !important;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image {
  margin-bottom: 10px;
}

/* Gallery thumbnails */
.woocommerce div.product div.images .flex-control-thumbs,
.woocommerce div.product div.images ol.flex-control-thumbs {
  display: flex !important;
  gap: 8px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 10px 0 0 !important;
}

.woocommerce div.product div.images .flex-control-thumbs li {
  width: 70px !important;
  flex-shrink: 0;
}

.woocommerce div.product div.images .flex-control-thumbs li img {
  border-radius: var(--kf-radius-sm) !important;
  border: 2px solid transparent !important;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s ease;
}

.woocommerce div.product div.images .flex-control-thumbs li img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs li img:hover {
  border-color: var(--kf-primary) !important;
  opacity: 1;
}

/* Summary — Right column */
.woocommerce div.product div.summary,
.woocommerce #content div.product div.summary {
  width: 48% !important;
  float: none !important;
}

.woocommerce div.product .product_title {
  font-size: 26px !important;
  font-weight: 700 !important;
  margin-bottom: 12px !important;
  line-height: 1.3 !important;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--kf-primary) !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  margin-bottom: 16px !important;
  display: block !important;
}

.woocommerce div.product p.price del {
  color: var(--kf-text-muted) !important;
  font-size: 18px !important;
  font-weight: 400 !important;
}

.woocommerce div.product p.price ins {
  background: none !important;
  text-decoration: none !important;
}

.woocommerce div.product .woocommerce-product-details__short-description {
  margin-bottom: 20px !important;
  color: var(--kf-text-muted) !important;
  line-height: 1.7 !important;
  font-size: 15px !important;
}

/* Quantity input */
.woocommerce div.product form.cart {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin-bottom: 24px !important;
}

.woocommerce div.product form.cart .quantity {
  display: flex !important;
  align-items: center !important;
}

.woocommerce div.product form.cart .quantity input.qty {
  width: 60px !important;
  text-align: center !important;
  border: 1px solid var(--kf-border) !important;
  border-radius: var(--kf-radius-sm) !important;
  padding: 10px !important;
  font-size: 16px !important;
}

/* Add to cart button */
.woocommerce div.product .single_add_to_cart_button {
  background: var(--kf-primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--kf-radius-sm) !important;
  padding: 14px 36px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  cursor: pointer !important;
  transition: background 0.2s ease !important;
}

.woocommerce div.product .single_add_to_cart_button:hover {
  background: var(--kf-primary-hover) !important;
}

/* Product meta (SKU, categories, tags) */
.woocommerce div.product .product_meta {
  margin-top: 20px !important;
  padding-top: 20px !important;
  border-top: 1px solid var(--kf-border) !important;
  font-size: 14px !important;
  color: var(--kf-text-muted) !important;
}

.woocommerce div.product .product_meta > span {
  display: block !important;
  margin-bottom: 6px !important;
}

.woocommerce div.product .product_meta a {
  color: var(--kf-primary) !important;
}

/* Tabs — Full width below both columns */
.woocommerce div.product .woocommerce-tabs {
  width: 100% !important;
  margin-top: 20px !important;
  clear: both !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  display: flex !important;
  gap: 0 !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 0 0 !important;
  border-bottom: 2px solid var(--kf-border) !important;
  background: transparent !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs::after {
  display: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: transparent !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
  display: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: block !important;
  padding: 12px 24px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--kf-text-muted) !important;
  text-decoration: none !important;
  border-bottom: 2px solid transparent !important;
  margin-bottom: -2px !important;
  transition: all 0.2s ease !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
  color: var(--kf-primary) !important;
  border-bottom-color: var(--kf-primary) !important;
}

.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel,
.woocommerce div.product .woocommerce-tabs .panel {
  padding: 24px 0 !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  background: transparent !important;
  border: none !important;
}

.woocommerce div.product .woocommerce-tabs .panel h2 {
  font-size: 20px !important;
  margin-bottom: 16px !important;
}

/* Contain videos, iframes, images inside product description */
.woocommerce div.product .woocommerce-tabs .panel,
.kf-product-main .entry-content,
.kf-product-main .summary {
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.woocommerce div.product .woocommerce-tabs .panel img,
.kf-product-main .entry-content img {
  max-width: 100% !important;
  height: auto !important;
}
.woocommerce div.product .woocommerce-tabs .panel iframe,
.woocommerce div.product .woocommerce-tabs .panel video,
.woocommerce div.product .woocommerce-tabs .panel embed,
.woocommerce div.product .woocommerce-tabs .panel object,
.kf-product-main iframe,
.kf-product-main video {
  max-width: 100% !important;
}
.woocommerce div.product .woocommerce-tabs .panel .wp-video,
.woocommerce div.product .woocommerce-tabs .panel .fluid-width-video-wrapper {
  max-width: 100% !important;
}

/* Related products */
.woocommerce div.product .related,
.woocommerce div.product .upsells {
  width: 100% !important;
  clear: both !important;
  margin-top: 40px !important;
}

.woocommerce div.product .related h2,
.woocommerce div.product .upsells h2 {
  font-size: 22px !important;
  font-weight: 700 !important;
  margin-bottom: 24px !important;
}

/* Star rating */
.woocommerce .star-rating {
  display: inline-block;
  overflow: hidden;
  position: relative;
  height: 1em;
  line-height: 1;
  font-size: 14px;
  width: 5.4em;
  font-family: star;
  color: #f0c14b;
}

.woocommerce .star-rating::before {
  content: "★★★★★";
  color: #ddd;
  float: left;
  top: 0;
  left: 0;
  position: absolute;
}

.woocommerce .star-rating span {
  overflow: hidden;
  float: left;
  top: 0;
  left: 0;
  position: absolute;
  padding-top: 1.5em;
}

.woocommerce .star-rating span::before {
  content: "★★★★★";
  top: 0;
  position: absolute;
  left: 0;
  color: #f0c14b;
}

/* Mobile: stack columns */
@media (max-width: 768px) {
  .woocommerce div.product,
  .woocommerce #content div.product {
    flex-direction: column !important;
    gap: 20px !important;
  }

  .woocommerce div.product div.images,
  .woocommerce #content div.product div.images,
  .woocommerce div.product div.summary,
  .woocommerce #content div.product div.summary {
    width: 100% !important;
  }

  .woocommerce div.product .product_title {
    font-size: 22px !important;
  }

  .woocommerce div.product p.price,
  .woocommerce div.product span.price {
    font-size: 22px !important;
  }
}

/* Product gallery — square container + hover zoom */
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
  overflow: hidden;
  border-radius: var(--kf-radius);
}

.woocommerce div.product div.images .woocommerce-product-gallery__image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f8f9fa;
  border-radius: var(--kf-radius);
}

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  transition: transform 0.4s ease !important;
  cursor: zoom-in;
}

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper img:hover {
  transform: scale(1.5) !important;
  cursor: zoom-in;
}

/* Review form — star selector */
.woocommerce #review_form .comment-form-rating {
  margin-bottom: 16px;
}

.woocommerce #review_form .comment-form-rating label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

.woocommerce #review_form .comment-form-rating .stars {
  display: inline-flex !important;
  gap: 4px;
  margin-bottom: 10px;
}

.woocommerce #review_form .comment-form-rating .stars a {
  font-size: 0 !important;
  display: inline-block;
  width: 24px;
  height: 24px;
  text-decoration: none !important;
  position: relative;
}

.woocommerce #review_form .comment-form-rating .stars a::before {
  content: "★";
  font-size: 22px;
  color: #ddd;
  position: absolute;
  top: 0;
  left: 0;
}

.woocommerce #review_form .comment-form-rating .stars a:hover ~ a::before {
  color: #ddd !important;
}

.woocommerce #review_form .comment-form-rating .stars:hover a::before {
  color: #f0c14b;
}

.woocommerce #review_form .comment-form-rating .stars a:hover::before,
.woocommerce #review_form .comment-form-rating .stars a.active::before {
  color: #f0c14b;
}

.woocommerce #review_form .comment-form-rating .stars.selected a.active::before,
.woocommerce #review_form .comment-form-rating .stars.selected a:not(.active)::before {
  color: #f0c14b;
}

/* Review form textarea & input */
.woocommerce #review_form textarea,
.woocommerce #review_form input[type="text"],
.woocommerce #review_form input[type="email"] {
  border: 1px solid var(--kf-border) !important;
  border-radius: var(--kf-radius-sm) !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  width: 100% !important;
  font-family: var(--kf-font) !important;
}

.woocommerce #review_form textarea:focus,
.woocommerce #review_form input:focus {
  border-color: var(--kf-primary) !important;
  outline: none !important;
}

.woocommerce #review_form .form-submit input[type="submit"] {
  background: var(--kf-primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--kf-radius-sm) !important;
  padding: 10px 24px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}

/* Review list */
.woocommerce #reviews .commentlist {
  list-style: none !important;
  padding: 0 !important;
}

.woocommerce #reviews .commentlist li {
  padding: 16px 0 !important;
  border-bottom: 1px solid var(--kf-border) !important;
}

/* Hide zoom trigger */
.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
  display: none !important;
}

/* ==========================================================================
   WooCommerce — Cart Page
   ========================================================================== */
.woocommerce-cart table.cart {
  border-collapse: collapse;
  width: 100%;
}

.woocommerce-cart table.cart th {
  background: var(--kf-bg-alt);
  padding: 12px 16px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.woocommerce-cart table.cart td {
  padding: 16px;
  border-bottom: 1px solid var(--kf-border);
  vertical-align: middle;
}

.woocommerce-cart table.cart img {
  width: 80px;
  border-radius: var(--kf-radius-sm);
}

.woocommerce .cart-collaterals .cart_totals {
  background: var(--kf-bg-alt);
  padding: 24px;
  border-radius: var(--kf-radius);
}

/* ==========================================================================
   WooCommerce — Checkout Page
   ========================================================================== */
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row input,
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row select,
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row textarea {
  border: 1px solid var(--kf-border);
  border-radius: var(--kf-radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  width: 100%;
  transition: border-color var(--kf-transition);
}

.woocommerce-checkout input:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
  border-color: var(--kf-primary);
  outline: none;
}

#place_order {
  background: var(--kf-primary) !important;
  border-radius: var(--kf-radius-sm);
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 600;
  width: 100%;
}

#place_order:hover { background: var(--kf-primary-hover) !important; }

/* ==========================================================================
   WooCommerce — General Buttons
   ========================================================================== */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--kf-primary);
  color: #fff;
  border: none;
  border-radius: var(--kf-radius-sm);
  padding: 10px 24px;
  font-weight: 500;
  transition: background var(--kf-transition);
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  background: var(--kf-primary-hover);
  color: #fff;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background: var(--kf-primary);
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background: var(--kf-primary-hover);
}

/* ==========================================================================
   WooCommerce — Messages
   ========================================================================== */
.woocommerce-message {
  border-top-color: var(--kf-primary);
}

.woocommerce-message::before {
  color: var(--kf-primary);
}

/* ==========================================================================
   WooCommerce — Breadcrumb
   ========================================================================== */
.woocommerce .woocommerce-breadcrumb {
  font-size: 13px;
  color: var(--kf-text-muted);
  padding: 16px 0;
  margin-bottom: 0;
}

.woocommerce .woocommerce-breadcrumb a {
  color: var(--kf-primary);
}

/* ==========================================================================
   WooCommerce — Pagination
   ========================================================================== */
.woocommerce nav.woocommerce-pagination ul {
  border: none;
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 30px;
}

.woocommerce nav.woocommerce-pagination ul li {
  border: none;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  border: 1px solid var(--kf-border);
  border-radius: var(--kf-radius-sm);
  padding: 8px 14px;
  font-size: 14px;
  color: var(--kf-text);
  background: #fff;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
  background: var(--kf-primary);
  color: #fff;
  border-color: var(--kf-primary);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--kf-primary);
  color: #fff;
  border-color: var(--kf-primary);
}

/* ==========================================================================
   WooCommerce — Widgets (sidebar/footer product widgets)
   ========================================================================== */
.woocommerce ul.product_list_widget li {
  padding: 10px 0;
  border-bottom: 1px solid var(--kf-border);
}

.woocommerce ul.product_list_widget li img {
  width: 60px;
  border-radius: var(--kf-radius-sm);
}

/* ==========================================================================
   Storytelling Sections (Traviet-inspired 2-column)
   ========================================================================== */
.kf-story {
  padding: 70px 0;
}

.kf-story-row {
  display: flex;
  align-items: center;
  gap: 60px;
}

.kf-story-reverse {
  flex-direction: row-reverse;
}

.kf-story-img {
  flex: 1;
  position: relative;
  border-radius: var(--kf-radius);
  overflow: hidden;
  min-height: 380px;
  background: #f8f9fa;
}

.kf-story-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: var(--kf-radius);
}

/* Placeholder icon when no image exists */
.kf-story-img-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.35;
}

.kf-story-img img[src]:not([src=""]) ~ .kf-story-img-placeholder {
  display: none;
}

.kf-story-text {
  flex: 1;
}

.kf-story-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--kf-primary);
  margin-bottom: 12px;
  padding: 4px 14px;
  background: rgba(0, 174, 239, 0.08);
  border-radius: var(--kf-radius-pill);
}

.kf-story-text h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--kf-text);
}

.kf-story-text p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--kf-text-muted);
  margin-bottom: 14px;
}

.kf-story-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--kf-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.kf-story-link:hover {
  color: var(--kf-primary-dark);
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .kf-story { padding: 40px 0; }
  .kf-story-row,
  .kf-story-reverse {
    flex-direction: column !important;
    gap: 30px;
  }
  .kf-story-img {
    min-height: 250px;
    width: 100%;
  }
  .kf-story-text h2 { font-size: 24px; }
}

/* ==========================================================================
   Services / USP Boxes
   ========================================================================== */
.kf-services {
  padding: 70px 0;
  background: linear-gradient(180deg, #f0f8ff 0%, #fff 100%);
}

.kf-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 10px;
}

.kf-service-box {
  background: #fff;
  border-radius: var(--kf-radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}

.kf-service-box:hover {
  box-shadow: 0 8px 30px rgba(0,174,239,0.1);
  transform: translateY(-4px);
  border-color: rgba(0,174,239,0.15);
}

.kf-service-icon {
  margin-bottom: 18px;
}

.kf-service-icon svg {
  display: inline-block;
}

.kf-service-box h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--kf-text);
  line-height: 1.4;
}

.kf-service-box p {
  font-size: 14px;
  color: var(--kf-text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .kf-services { padding: 40px 0; }
  .kf-services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .kf-service-box { padding: 24px 16px; }
  .kf-service-box h3 { font-size: 14px; }
}

@media (max-width: 480px) {
  .kf-services-grid {
    grid-template-columns: 1fr;
  }
}
/* ==========================================================================
   Abstract Decorative Dividers
   ========================================================================== */
.kf-divider {
  width: 100%;
  line-height: 0;
  margin: 0;
  padding: 0;
}

.kf-divider svg {
  width: 100%;
  height: 60px;
  display: block;
}

.kf-divider-flip {
  transform: scaleY(-1);
}

/* Abstract icon in section titles */
.kf-abstract-icon {
  display: block;
  margin: 0 auto 16px;
  opacity: 0.7;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.kf-testimonials {
  padding: 70px 0;
  background: #f8f9fa;
}

.kf-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.kf-testimonial-card {
  background: #fff;
  border-radius: var(--kf-radius);
  padding: 32px 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  position: relative;
}

.kf-testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 60px;
  line-height: 1;
  color: rgba(0, 174, 239, 0.1);
  font-family: Georgia, serif;
}

.kf-testimonial-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.07);
  transform: translateY(-3px);
}

.kf-testimonial-stars {
  color: #f5a623;
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.kf-testimonial-text {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--kf-text-muted);
  font-style: italic;
  margin-bottom: 20px;
  min-height: 80px;
}

.kf-testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid #f0f0f0;
  padding-top: 18px;
}

.kf-testimonial-author img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(100%);
  border: 2px solid #e8e8e8;
}

.kf-testimonial-author strong {
  display: block;
  font-size: 14px;
  color: var(--kf-text);
  margin-bottom: 2px;
}

.kf-testimonial-author span {
  font-size: 12px;
  color: var(--kf-text-muted);
}

@media (max-width: 768px) {
  .kf-testimonials { padding: 40px 0; }
  .kf-testimonials-grid {
    display: grid;
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    grid-auto-columns: 280px;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .kf-testimonials-grid::-webkit-scrollbar { display: none; }
  .kf-testimonial-card {
    scroll-snap-align: start;
    min-width: 280px;
  }
  .kf-testimonial-text { min-height: auto; }
}

/* ==========================================================================
   Blog Grid (Homepage)
   ========================================================================== */
.kf-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.kf-blog-card {
  background: #fff;
  border-radius: var(--kf-radius);
  box-shadow: var(--kf-shadow);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.kf-blog-card:hover {
  box-shadow: var(--kf-shadow-hover);
  transform: translateY(-3px);
}

.kf-blog-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.kf-blog-card-body {
  padding: 18px;
}

.kf-blog-date {
  font-size: 12px;
  color: var(--kf-text-muted);
  display: block;
  margin-bottom: 6px;
}

.kf-blog-card-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.kf-blog-card-body h3 a {
  color: var(--kf-text);
}

.kf-blog-card-body h3 a:hover {
  color: var(--kf-primary);
}

.kf-blog-card-body p {
  font-size: 14px;
  color: var(--kf-text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.kf-blog-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--kf-primary);
  text-transform: uppercase;
}

/* CTA Button */
.kf-btn {
  display: inline-block;
  background: var(--kf-primary);
  color: #fff;
  padding: 12px 30px;
  border-radius: var(--kf-radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: background 0.2s ease, transform 0.2s ease;
}

.kf-btn:hover {
  background: var(--kf-primary-hover);
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .kf-blog-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.kf-footer {
  background: var(--kf-primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 50px 0 0;
}

.kf-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.kf-footer h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.kf-footer h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--kf-primary);
  border-radius: 2px;
}

.kf-footer p { margin-bottom: 10px; font-size: 14px; }

.kf-footer a { color: rgba(255,255,255,0.8); }
.kf-footer a:hover { color: #fff; }

.kf-footer ul li {
  padding: 5px 0;
}

.kf-footer ul li a {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.kf-footer ul li a::before {
  content: '›';
  color: var(--kf-primary);
  font-weight: 700;
}

.kf-footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
}

.kf-footer-contact-item svg { flex-shrink: 0; margin-top: 2px; }

/* Footer Social Links */
.kf-footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.kf-footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--kf-primary);
  color: #fff;
  transition: all var(--kf-transition);
}
.kf-footer-social-link:hover {
  background: var(--kf-primary-hover);
  color: #fff;
  transform: scale(1.1);
}

/* Footer Bottom */
/* Company Info (Hoá đơn đỏ) */
.kf-footer-company {
  background: rgba(0,0,0,0.15);
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.kf-company-info {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  line-height: 1.8;
}
.kf-company-info svg {
  flex-shrink: 0;
  margin-top: 2px;
  stroke: rgba(255,255,255,0.5);
}
.kf-company-info div {
  display: flex;
  flex-direction: column;
}
.kf-company-info strong {
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  margin-bottom: 2px;
}
.kf-company-info a {
  color: rgba(255,255,255,0.8);
}
.kf-company-info a:hover {
  color: #fff;
}

.kf-footer-bottom {
  background: var(--kf-primary-darker);
  padding: 16px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.kf-footer-bottom a { color: rgba(255,255,255,0.8); }

/* ==========================================================================
   Content — Pages, Blog
   ========================================================================== */
.kf-content {
  padding: 30px 0;
}

.kf-content .wrap {
  max-width: 900px;
}

.kf-page-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--kf-border);
}
/* Blog Posts */

/* ==========================================================================
   Contact Page
   ========================================================================== */
.kf-contact-layout {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 40px;
}
.kf-contact-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.kf-contact-card {
  background: #fff;
  border: 1px solid var(--kf-border);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  transition: all var(--kf-transition);
}
.kf-contact-card:hover {
  border-color: var(--kf-primary);
  box-shadow: 0 4px 12px rgba(14,165,233,0.1);
}
.kf-contact-card-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--kf-primary), var(--kf-primary-hover));
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.kf-contact-card-icon svg { stroke: #fff; }
.kf-contact-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--kf-text);
}
.kf-contact-card p {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}
.kf-contact-card a { color: var(--kf-primary); }

/* Contact Form */
.kf-contact-form-wrap {
  background: #fff;
  border: 1px solid var(--kf-border);
  border-radius: 12px;
  padding: 32px;
}
.kf-contact-form-wrap h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--kf-text);
}
.kf-contact-form-desc {
  color: #666;
  font-size: 14px;
  margin-bottom: 24px;
}
.kf-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.kf-form-group {
  margin-bottom: 16px;
}
.kf-form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--kf-text);
}
.kf-form-group label span { color: #e74c3c; }
.kf-form-group input,
.kf-form-group select,
.kf-form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--kf-border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--kf-transition);
  background: #fff;
  box-sizing: border-box;
}
.kf-form-group input:focus,
.kf-form-group select:focus,
.kf-form-group textarea:focus {
  border-color: var(--kf-primary);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.1);
}
.kf-form-group textarea { resize: vertical; min-height: 120px; }
.kf-form-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--kf-primary), var(--kf-primary-hover));
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--kf-transition);
  font-family: inherit;
}
.kf-form-submit:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(14,165,233,0.3); }
.kf-form-submit:disabled { opacity: 0.6; cursor: wait; transform: none; }
.kf-form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}
.kf-form-success { background: #ecfdf5; color: #065f46; border: 1px solid #6ee7b7; }
.kf-form-error { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
.kf-spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: kf-spin 0.6s linear infinite;
}
@keyframes kf-spin { to { transform: rotate(360deg); } }

/* Google Maps */
.kf-contact-map {
  margin-top: 20px;
  margin-bottom: 40px;
}



/* ==========================================================================
   Blog Layout (with sidebar)
   ========================================================================== */
.kf-blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}
.kf-blog-main { min-width: 0; }
.kf-blog-sidebar { position: sticky; top: 100px; }

.kf-sidebar-widget {
  background: #fff;
  border: 1px solid var(--kf-border);
  border-radius: var(--kf-radius);
  padding: 0;
  margin-bottom: 20px;
  overflow: hidden;
}
.kf-sidebar-title {
  font-size: 16px;
  font-weight: 700;
  padding: 16px 20px;
  margin: 0;
  background: var(--kf-primary);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.kf-sidebar-title svg { flex-shrink: 0; stroke: #fff; }

/* Category List */
.kf-sidebar-cat-list { list-style: none; margin: 0; padding: 0; }
.kf-sidebar-cat-list li { border-bottom: 1px solid var(--kf-border); }
.kf-sidebar-cat-list li:last-child { border-bottom: none; }
.kf-sidebar-cat-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  color: var(--kf-text);
  font-size: 14px;
  transition: all var(--kf-transition);
}
.kf-sidebar-cat-list li a:hover {
  background: #f8f9fa;
  color: var(--kf-primary);
  padding-left: 24px;
}
.kf-sidebar-count {
  background: var(--kf-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  min-width: 24px;
  text-align: center;
}

/* Tags */
.kf-sidebar-tags {
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.kf-sidebar-tag {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--kf-border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--kf-text-muted);
  transition: all var(--kf-transition);
}
.kf-sidebar-tag:hover {
  background: var(--kf-primary);
  color: #fff;
  border-color: var(--kf-primary);
}

/* Best Selling Products */
.kf-sidebar-products { list-style: none; margin: 0; padding: 0; }
.kf-sidebar-product-item { border-bottom: 1px solid var(--kf-border); }
.kf-sidebar-product-item:last-child { border-bottom: none; }
.kf-sidebar-product-item a {
  display: flex;
  gap: 12px;
  padding: 12px 20px;
  align-items: center;
  transition: all var(--kf-transition);
}
.kf-sidebar-product-item a:hover { background: #f8f9fa; }
.kf-sidebar-product-img {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--kf-border);
}
.kf-sidebar-product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.kf-sidebar-product-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kf-sidebar-product-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--kf-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 2;
}
.kf-sidebar-product-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--kf-primary);
}
.kf-sidebar-product-price del {
  font-size: 11px;
  color: var(--kf-text-muted);
  font-weight: 400;
}
.kf-sidebar-product-price ins { text-decoration: none; }

@media (max-width: 768px) {
  .kf-blog-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .kf-blog-sidebar { position: static; }
}

.kf-post {
  background: #fff;
  border-radius: var(--kf-radius);
  box-shadow: var(--kf-shadow);
  overflow: hidden;
  margin-bottom: 30px;
  transition: box-shadow var(--kf-transition);
}

.kf-post:hover { box-shadow: var(--kf-shadow-hover); }

/* Single post — flat white, no card effect */
.kf-single-post {
  box-shadow: none !important;
  border-radius: 0 !important;
  background: #fff !important;
  overflow: visible !important;
  padding: 0;
}
.kf-single-post:hover {
  box-shadow: none !important;
}

.kf-post-thumb img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.kf-post-content {
  padding: 20px;
}

.kf-post-content h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.kf-post-content h2 a { color: var(--kf-text); }
.kf-post-content h2 a:hover { color: var(--kf-primary); }

.kf-post-meta {
  font-size: 13px;
  color: var(--kf-text-muted);
  margin-bottom: 10px;
}

.kf-post-excerpt {
  color: var(--kf-text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.kf-read-more {
  display: inline-block;
  margin-top: 12px;
  color: var(--kf-primary);
  font-weight: 500;
  font-size: 14px;
}

/* ==========================================================================
   Pagination (blog)
   ========================================================================== */
.kf-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 20px 0 40px;
}

.kf-pagination a,
.kf-pagination span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--kf-border);
  border-radius: var(--kf-radius-sm);
  font-size: 14px;
  color: var(--kf-text);
}

.kf-pagination a:hover,
.kf-pagination span.current {
  background: var(--kf-primary);
  color: #fff;
  border-color: var(--kf-primary);
}

/* ==========================================================================
   404
   ========================================================================== */
.kf-404 {
  text-align: center;
  padding: 80px 20px;
}

.kf-404 h1 {
  font-size: 120px;
  font-weight: 800;
  color: var(--kf-primary);
  line-height: 1;
}

.kf-404 p {
  font-size: 18px;
  color: var(--kf-text-muted);
  margin: 16px 0 30px;
}

.kf-btn {
  display: inline-block;
  background: var(--kf-primary);
  color: #fff;
  padding: 12px 30px;
  border-radius: var(--kf-radius-sm);
  font-weight: 500;
  transition: background var(--kf-transition);
}

.kf-btn:hover { background: var(--kf-primary-hover); color: #fff; }

/* ==========================================================================
   WooCommerce Cart Page
   ========================================================================== */
.woocommerce-cart .woocommerce {
  padding: 30px 0;
}

/* Cart table */
.woocommerce table.shop_table {
  border: 1px solid var(--kf-border) !important;
  border-radius: var(--kf-radius) !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden;
  width: 100%;
  margin-bottom: 24px;
  table-layout: auto;
}
.woocommerce table.shop_table th {
  background: var(--kf-bg) !important;
  padding: 14px 16px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px;
  color: var(--kf-text) !important;
  border-bottom: 1px solid var(--kf-border) !important;
  white-space: nowrap;
}
.woocommerce table.shop_table td {
  padding: 16px !important;
  vertical-align: middle !important;
  border-bottom: 1px solid var(--kf-border) !important;
  border-top: none !important;
}
.woocommerce table.shop_table tr:last-child td {
  border-bottom: none !important;
}

/* Cart column widths */
.woocommerce table.shop_table .product-remove { width: 40px; text-align: center; }
.woocommerce table.shop_table .product-thumbnail { width: 90px; }
.woocommerce table.shop_table .product-name { min-width: 180px; }
.woocommerce table.shop_table .product-price,
.woocommerce table.shop_table .product-quantity,
.woocommerce table.shop_table .product-subtotal { white-space: nowrap; }

/* Product thumbnail in cart */
.woocommerce table.shop_table .product-thumbnail img {
  width: 80px !important;
  height: 80px !important;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--kf-border);
  background: #f8f9fa;
  padding: 4px;
}

/* Product name link */
.woocommerce table.shop_table .product-name a {
  color: var(--kf-primary) !important;
  font-weight: 600;
  font-size: 15px;
}
.woocommerce table.shop_table .product-name a:hover {
  text-decoration: underline;
}

/* Remove item button */
.woocommerce table.shop_table .product-remove a.remove {
  color: #e74c3c !important;
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: all var(--kf-transition);
}
.woocommerce table.shop_table .product-remove a.remove:hover {
  background: #e74c3c !important;
  color: #fff !important;
}

/* Quantity input */
.woocommerce table.shop_table .quantity input.qty {
  width: 60px !important;
  padding: 8px 10px !important;
  border: 1px solid var(--kf-border) !important;
  border-radius: 6px !important;
  text-align: center;
  font-size: 15px;
  outline: none;
}

/* Cart actions row — coupon left, update button right (SAME ROW) */
.woocommerce table.shop_table td.actions {
  padding: 16px !important;
}
.woocommerce table.shop_table td.actions > .coupon {
  display: inline-flex !important;
  gap: 8px;
  align-items: center;
  float: left;
}
.woocommerce table.shop_table td.actions > button[name="update_cart"] {
  float: right;
}
.woocommerce table.shop_table td.actions::after {
  content: '';
  display: table;
  clear: both;
}
.woocommerce .coupon input.input-text {
  padding: 10px 14px !important;
  border: 1px solid var(--kf-border) !important;
  border-radius: 6px !important;
  font-size: 14px;
  outline: none;
  width: 180px;
}
.woocommerce .coupon input.input-text:focus {
  border-color: var(--kf-primary) !important;
}
.woocommerce .coupon button,
.woocommerce button[name="update_cart"] {
  padding: 10px 20px !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: all var(--kf-transition);
}
.woocommerce .coupon button {
  background: var(--kf-primary) !important;
  color: #fff !important;
  border: none !important;
}
.woocommerce .coupon button:hover {
  background: var(--kf-primary-hover) !important;
}
.woocommerce button[name="update_cart"] {
  background: #fff !important;
  color: var(--kf-primary) !important;
  border: 2px solid var(--kf-primary) !important;
}
.woocommerce button[name="update_cart"]:hover {
  background: var(--kf-primary) !important;
  color: #fff !important;
}
.woocommerce button[name="update_cart"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Cart totals */
.woocommerce .cart_totals {
  background: #fff;
  border: 1px solid var(--kf-border);
  border-radius: var(--kf-radius);
  padding: 24px !important;
  width: 100%;
  max-width: 100%;
}
.woocommerce .cart_totals h2 {
  font-size: 20px !important;
  margin-bottom: 16px !important;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--kf-primary);
}
.woocommerce .cart_totals table {
  border: none !important;
}
.woocommerce .cart_totals table th {
  background: transparent !important;
  padding: 12px 0 !important;
  font-size: 15px !important;
  border-bottom: 1px solid var(--kf-border) !important;
}
.woocommerce .cart_totals table td {
  padding: 12px 0 !important;
  text-align: right !important;
  font-size: 15px !important;
  border-bottom: 1px solid var(--kf-border) !important;
}
.woocommerce .cart_totals .order-total th,
.woocommerce .cart_totals .order-total td {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--kf-primary) !important;
  border-bottom: none !important;
}

/* Checkout button */
.woocommerce .wc-proceed-to-checkout a.checkout-button {
  display: block !important;
  background: var(--kf-primary) !important;
  color: #fff !important;
  padding: 14px 24px !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--kf-transition);
  margin-top: 16px;
}
.woocommerce .wc-proceed-to-checkout a.checkout-button:hover {
  background: var(--kf-primary-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* ==========================================================================
   WooCommerce Checkout Page
   ========================================================================== */
.woocommerce-checkout .woocommerce {
  padding: 30px 0;
}
.woocommerce form.checkout_coupon,
.woocommerce form.login,
.woocommerce form.register {
  border: 1px solid var(--kf-border) !important;
  border-radius: var(--kf-radius) !important;
  padding: 24px !important;
}
.woocommerce-checkout .form-row label {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select {
  padding: 10px 14px !important;
  border: 1px solid var(--kf-border) !important;
  border-radius: 6px !important;
  font-size: 14px;
  width: 100%;
  outline: none;
  transition: border-color var(--kf-transition);
}
.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus {
  border-color: var(--kf-primary) !important;
}
.woocommerce #order_review {
  background: #fff;
  border: 1px solid var(--kf-border);
  border-radius: var(--kf-radius);
  padding: 24px;
}
.woocommerce #place_order {
  background: var(--kf-primary) !important;
  color: #fff !important;
  padding: 14px 24px !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  width: 100%;
  border: none !important;
  cursor: pointer;
  transition: all var(--kf-transition);
}
.woocommerce #place_order:hover {
  background: var(--kf-primary-hover) !important;
}

/* ==========================================================================
   Back to Top
   ========================================================================== */
.kf-back-to-top {
  position: fixed;
  bottom: 200px;
  right: 30px;
  background: var(--kf-primary);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--kf-shadow);
  transition: background var(--kf-transition), opacity var(--kf-transition);
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  border: none;
  cursor: pointer;
}

.kf-back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.kf-back-to-top:hover { background: var(--kf-primary-hover); }

/* WooCommerce Sort Dropdown */
.woocommerce-ordering select.orderby,
.woocommerce .woocommerce-ordering select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23555'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid var(--kf-border);
  border-radius: var(--kf-radius);
  padding: 10px 40px 10px 16px;
  font-size: 14px;
  color: var(--kf-text);
  cursor: pointer;
  outline: none;
  transition: border-color var(--kf-transition), box-shadow var(--kf-transition);
  min-width: 220px;
}
.woocommerce-ordering select.orderby:focus,
.woocommerce .woocommerce-ordering select:focus {
  border-color: var(--kf-primary);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}
.woocommerce-ordering select.orderby:hover,
.woocommerce .woocommerce-ordering select:hover {
  border-color: var(--kf-primary);
}
.woocommerce-ordering select.orderby option,
.woocommerce .woocommerce-ordering select option {
  padding: 8px 12px;
  font-size: 14px;
}

/* Product Listing Images — contain (no crop) in fixed square */
.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #fff;
  padding: 10px;
}
@media (max-width: 768px) {
  .woocommerce ul.products li.product a img,
  .woocommerce ul.products li.product img {
    height: 160px;
  }
}

/* ==========================================================================
   Shop / Archive — Sidebar + Main Layout
   ========================================================================== */
.kf-shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  grid-template-rows: auto 1fr;
  gap: 20px 30px;
  align-items: start;
  padding: 20px 0;
}

/* Desktop: price filter top-left, sidebar bottom-left, products span right */
.kf-shop-price-filter {
  grid-column: 1;
  grid-row: 1;
}
.kf-shop-sidebar {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 100px;
}
.kf-shop-main {
  grid-column: 2;
  grid-row: 1 / -1;
  min-width: 0;
}

/* Price filter widget */
.kf-price-filter-inner {
  padding: 16px;
}
.kf-price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.kf-price-field {
  flex: 1;
}
.kf-price-field label {
  display: block;
  font-size: 12px;
  color: var(--kf-text-muted);
  margin-bottom: 4px;
}
.kf-price-field input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--kf-border);
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  transition: border-color var(--kf-transition);
}
.kf-price-field input:focus {
  border-color: var(--kf-primary);
}
.kf-price-sep {
  color: var(--kf-text-muted);
  margin-top: 18px;
}

.kf-price-shortcuts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 12px;
}
.kf-price-btn {
  padding: 6px 8px;
  background: var(--kf-bg);
  border: 1px solid var(--kf-border);
  border-radius: 6px;
  font-size: 12px;
  color: var(--kf-text);
  cursor: pointer;
  transition: all var(--kf-transition);
}
.kf-price-btn:hover {
  background: var(--kf-primary);
  color: #fff;
  border-color: var(--kf-primary);
}

.kf-filter-submit {
  width: 100%;
  padding: 10px;
  background: var(--kf-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--kf-transition);
}
.kf-filter-submit:hover {
  background: var(--kf-primary-hover);
}

/* Tag active state */
.kf-tag-item.active {
  background: var(--kf-primary);
  color: #fff;
  border-color: var(--kf-primary);
}

/* Footer Logo */
.kf-footer-logo {
  margin-bottom: 16px;
}
.kf-footer-logo img {
  max-width: 180px;
  height: auto;
  filter: brightness(0) invert(1);
}

/* ==========================================================================
   Single Product — Sidebar Layout
   ========================================================================== */
.kf-single-product-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  align-items: start;
  padding: 20px 0;
}

.kf-product-main {
  min-width: 0;
  width: 100%;
}

/* Force WooCommerce product to fill full width with flex layout */
.kf-product-main div.product {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 30px;
  width: 100% !important;
  max-width: 100% !important;
}
.kf-product-main .woocommerce-product-gallery {
  width: 45% !important;
  float: none !important;
  flex-shrink: 0;
}
.kf-product-main .summary.entry-summary {
  flex: 1 !important;
  width: auto !important;
  float: none !important;
  min-width: 0;
}
/* Tabs, related products, upsells — full width below */
.kf-product-main .woocommerce-tabs,
.kf-product-main .related.products,
.kf-product-main .upsells.products {
  width: 100% !important;
  flex-basis: 100% !important;
}

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

/* Sidebar Widget Base */
.kf-sidebar-widget {
  background: #fff;
  border: 1px solid var(--kf-border);
  border-radius: var(--kf-radius);
  overflow: hidden;
}

.kf-sidebar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  padding: 16px;
  margin: 0;
  background: var(--kf-primary);
  color: #fff;
}
.kf-sidebar-title svg {
  flex-shrink: 0;
}

/* Category List */
.kf-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.kf-cat-list li {
  border-bottom: 1px solid var(--kf-border);
}
.kf-cat-list li:last-child {
  border-bottom: none;
}
.kf-cat-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  color: var(--kf-text);
  font-size: 14px;
  transition: all var(--kf-transition);
}
.kf-cat-list li a:hover,
.kf-cat-list li.active a {
  background: rgba(0, 123, 255, 0.06);
  color: var(--kf-primary);
  padding-left: 20px;
}
.kf-cat-count {
  background: var(--kf-bg);
  color: var(--kf-text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  min-width: 28px;
  text-align: center;
}
.kf-cat-list li.active .kf-cat-count {
  background: var(--kf-primary);
  color: #fff;
}

/* Tag Cloud */
.kf-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
}
.kf-tag-item {
  display: inline-block;
  padding: 5px 12px;
  background: var(--kf-bg);
  color: var(--kf-text);
  border-radius: var(--kf-radius-pill);
  font-size: 13px;
  transition: all var(--kf-transition);
  border: 1px solid var(--kf-border);
}
.kf-tag-item:hover {
  background: var(--kf-primary);
  color: #fff;
  border-color: var(--kf-primary);
}

/* Sidebar Product List */
.kf-sidebar-products {
  padding: 8px 0;
}
.kf-sidebar-product-item {
  display: flex;
  gap: 12px;
  padding: 10px 16px;
  align-items: center;
  transition: background var(--kf-transition);
  border-bottom: 1px solid var(--kf-border);
}
.kf-sidebar-product-item:last-child {
  border-bottom: none;
}
.kf-sidebar-product-item:hover {
  background: rgba(0, 123, 255, 0.04);
}
.kf-sidebar-product-img {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
}
.kf-sidebar-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kf-sidebar-product-info {
  flex: 1;
  min-width: 0;
}
.kf-sidebar-product-info h4 {
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 4px;
  color: var(--kf-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}
.kf-sidebar-product-info .price {
  font-size: 13px;
  font-weight: 700;
  color: var(--kf-primary);
}
.kf-sidebar-product-info .price del {
  color: var(--kf-text-muted);
  font-weight: 400;
  font-size: 11px;
}

/* ==========================================================================
   Search Results
   ========================================================================== */
.kf-search-title {
  font-size: 24px;
  margin-bottom: 24px;
  color: var(--kf-text);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
/* --- Tablet (max 992px) --- */
@media (max-width: 992px) {
  .wrap { padding-left: 20px; padding-right: 20px; }

  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .woocommerce[class*="columns-"] ul.products,
  body.woocommerce ul.products,
  body.woocommerce-page ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
  }

  .kf-story-img { min-height: 350px; }

  .kf-services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .kf-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .kf-topbar .wrap { flex-direction: row; gap: 10px; text-align: center; }
  .kf-topbar-left { flex-direction: row; gap: 4px; }
}

/* --- Mobile (max 768px) --- */
@media (max-width: 768px) {
  /* Topbar: address shows full, wraps if needed */
  .kf-topbar-address {
    font-size: 12px;
    white-space: normal;
  }
  
  /* Zalo icon on mobile — no filter, show original blue logo */
  .kf-topbar-zalo img {
    filter: none !important;
  }
  
  /* Header search: compact */
  .kf-search {
    flex: 1 1 0 !important;
    min-width: 0 !important;
  }
  .kf-search input[type="search"] {
    font-size: 13px !important;
    padding: 8px 12px !important;
    min-width: 0 !important;
    width: 100% !important;
  }
  .kf-search button {
    padding: 8px 10px !important;
    font-size: 12px !important;
  }
  
  /* Cart badge: compact circle, clear of hamburger */
  .kf-cart-count {
    min-width: 16px !important;
    width: 16px !important;
    height: 16px !important;
    font-size: 9px !important;
    line-height: 16px !important;
    top: -4px !important;
    left: 12px !important;
    right: auto !important;
  }
  
  /* Hide cart info text on mobile to save space */
  .kf-cart-info { display: none; }
  
  /* Give header actions enough spacing so badge doesn't touch hamburger */
  .kf-header-actions {
    gap: 12px !important;
    flex-shrink: 0;
  }
  
  .kf-cart a svg {
    width: 22px !important;
    height: 22px !important;
  }
  
  .kf-cart a {
    gap: 0 !important;
  }
  
  .kf-menu-toggle {
    font-size: 20px !important;
    padding: 6px 10px !important;
  }
  
  /* === Mobile Cart Table — Card Layout === */
  .woocommerce table.shop_table.cart {
    display: block;
    border: none !important;
  }
  .woocommerce table.shop_table.cart thead { display: none; }
  .woocommerce table.shop_table.cart tbody,
  .woocommerce table.shop_table.cart tfoot { display: block; }

  .woocommerce table.shop_table.cart tbody tr {
    display: grid;
    grid-template-columns: 70px 1fr;
    grid-template-rows: auto auto;
    gap: 4px 12px;
    padding: 16px !important;
    margin-bottom: 12px;
    border: 1px solid var(--kf-border) !important;
    border-radius: 10px;
    position: relative;
    align-items: center;
    background: #fff;
  }
  .woocommerce table.shop_table.cart tbody tr td {
    border: none !important;
    padding: 0 !important;
    display: block;
  }

  /* Remove — top-right corner */
  .woocommerce table.shop_table.cart .product-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: auto !important;
  }
  .woocommerce table.shop_table.cart .product-remove a.remove {
    font-size: 18px !important;
    width: 24px !important; height: 24px !important;
  }

  /* Thumbnail — left column, spans 2 rows */
  .woocommerce table.shop_table.cart .product-thumbnail {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 70px !important;
  }
  .woocommerce table.shop_table.cart .product-thumbnail img {
    width: 65px !important;
    height: 65px !important;
    border-radius: 8px;
  }

  /* Name — right column row 1 */
  .woocommerce table.shop_table.cart .product-name {
    grid-column: 2;
    grid-row: 1;
    min-width: 0 !important;
    padding-right: 24px !important;
  }
  .woocommerce table.shop_table.cart .product-name a {
    font-size: 14px !important;
  }

  /* Price + Quantity + Subtotal — right column row 2, inline */
  .woocommerce table.shop_table.cart .product-price {
    grid-column: 2;
    grid-row: 2;
    font-size: 14px;
    color: var(--kf-primary);
    font-weight: 700;
  }
  .woocommerce table.shop_table.cart .product-quantity {
    display: none !important;
  }
  .woocommerce table.shop_table.cart .product-subtotal {
    display: none !important;
  }

  /* Actions row */
  .woocommerce table.shop_table.cart td.actions {
    display: block !important;
    padding: 12px 0 !important;
    border: none !important;
  }
  .woocommerce table.shop_table.cart td.actions .coupon {
    display: flex !important;
    gap: 8px;
    margin-bottom: 8px;
  }
  .woocommerce table.shop_table.cart td.actions .coupon input.input-text {
    flex: 1;
    width: auto !important;
    min-width: 0 !important;
  }
  .woocommerce table.shop_table.cart td.actions > button[name="update_cart"] {
    float: none !important;
    width: 100%;
    margin-top: 4px;
  }
  
  /* Global spacing */
  .kf-section { padding: 40px 0; }
  .kf-section-title h2 { font-size: 22px; }
  .kf-section-title p { font-size: 13px; }
  
  /* Hero */
  .kf-hero img { max-height: 280px; object-fit: cover; }
  
  /* Products on mobile: 2 columns — matching desktop selector specificity */
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .woocommerce[class*="columns-"] ul.products,
  body.woocommerce ul.products,
  body.woocommerce-page ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  
  /* CRITICAL: Reset the <a> wrapper — remove aspect-ratio so title/price aren't hidden */
  body.woocommerce ul.products li.product a:first-child,
  body .woocommerce ul.products li.product a:first-child {
    aspect-ratio: auto !important;
    overflow: visible !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  /* Image: relative position, contained in its own space */
  body.woocommerce ul.products li.product a img,
  body.woocommerce ul.products li.product img,
  body .woocommerce ul.products li.product a img,
  body .woocommerce ul.products li.product img {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    padding: 8px !important;
    background: #f8f9fa;
  }
  
  /* Product title — compact for mobile */
  .woocommerce ul.products li.product h2,
  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 12px !important;
    padding: 8px 8px 2px !important;
    min-height: 36px !important;
    -webkit-line-clamp: 2 !important;
  }
  
  /* Price — compact */
  .woocommerce ul.products li.product .price {
    font-size: 13px !important;
    padding: 2px 8px !important;
  }
  
  .woocommerce ul.products li.product .price del {
    font-size: 10px !important;
    display: block !important;
  }
  
  /* Button — full width, compact */
  .woocommerce ul.products li.product .button,
  .woocommerce ul.products li.product a.button {
    font-size: 11px !important;
    padding: 8px 8px !important;
    margin: 4px 8px 10px !important;
    display: block !important;
    text-align: center !important;
  }
  
  /* Sale badge — smaller on mobile */
  .woocommerce span.onsale,
  body .woocommerce span.onsale {
    font-size: 10px !important;
    padding: 2px 8px !important;
    top: 6px !important;
    left: 6px !important;
  }
  
  /* "Xem tất cả" button */
  .kf-btn {
    font-size: 13px;
    padding: 12px 28px;
  }
  
  /* Story sections: stack vertically */
  .kf-story { padding: 40px 0; }
  .kf-story-row,
  .kf-story-row.kf-story-reverse {
    flex-direction: column !important;
    gap: 24px;
  }
  
  .kf-story-img {
    width: 100% !important;
    min-height: 250px;
    border-radius: var(--kf-radius);
  }
  
  .kf-story-text {
    width: 100% !important;
    padding: 0 !important;
  }
  
  .kf-story-text h2 { font-size: 22px; }
  .kf-story-text p { font-size: 14px; }
  .kf-story-label { font-size: 11px; }
  
  /* Services: 2x2 grid */
  .kf-services { padding: 40px 0; }
  .kf-services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }
  
  .kf-service-box {
    padding: 20px 16px;
  }
  
  .kf-service-box h3 { font-size: 14px; }
  .kf-service-box p { font-size: 12px; }
  .kf-service-icon svg { width: 36px; height: 36px; }
  
  /* Testimonials: 2-row horizontal scroll (handled in dedicated media query above) */
  .kf-testimonial-card { padding: 24px 20px; }
  .kf-testimonial-text { font-size: 13.5px; min-height: auto; }
  .kf-testimonial-author img { width: 44px; height: 44px; }
  
  /* Blog: single column */
  .kf-blog-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  
  .kf-blog-card-body { padding: 16px; }
  .kf-blog-card-body h3 { font-size: 16px; }
  
  /* Divider */
  .kf-divider svg { height: 30px; }
  
  /* Product detail page */
  .woocommerce div.product,
  .woocommerce #content div.product {
    flex-direction: column !important;
    gap: 20px !important;
  }
  
  .woocommerce div.product div.images,
  .woocommerce #content div.product div.images,
  .woocommerce div.product div.summary,
  .woocommerce #content div.product div.summary {
    width: 100% !important;
  }
  
  .woocommerce div.product .product_title {
    font-size: 22px !important;
  }
  
  .woocommerce div.product p.price,
  .woocommerce div.product span.price {
    font-size: 22px !important;
  }
  
  /* Footer */
  .kf-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
  
  .kf-footer { padding: 40px 0 20px; }
  .kf-footer h3 { font-size: 16px; }
  .kf-footer p, .kf-footer li, .kf-footer a { font-size: 13px; }
  
  .kf-footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  
  /* === TOPBAR mobile === */
  .kf-topbar { padding: 8px 0; }
  .kf-topbar .wrap {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 4px;
    padding: 6px 16px;
  }
  .kf-topbar-row1 {
    font-size: 14px;
    justify-content: flex-start;
    width: 100%;
  }
  .kf-topbar-row2 {
    justify-content: space-between;
    width: 100%;
    font-size: 14px;
    font-weight: 600;
  }
  .kf-topbar-phones { gap: 4px; }
  .kf-topbar-social svg { width: 20px; height: 20px; }

  /* Fix sale badge on single product page */
  .single-product .woocommerce span.onsale,
  body.single-product span.onsale {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    z-index: 2 !important;
  }
  .single-product div.product {
    position: relative;
  }
  .single-product div.product > span.onsale {
    position: absolute !important;
    top: auto !important;
    left: 10px !important;
    z-index: 2 !important;
  }
  
  /* Shop layout — stack on mobile with correct order */
  .kf-shop-layout {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    gap: 16px !important;
  }
  .kf-shop-price-filter {
    grid-column: 1 !important;
    grid-row: auto !important;
    order: 1;
  }
  .kf-shop-main {
    grid-column: 1 !important;
    grid-row: auto !important;
    order: 2;
  }
  .kf-shop-sidebar {
    grid-column: 1 !important;
    grid-row: auto !important;
    order: 3;
    position: static;
  }

  /* Contact page on mobile */
  .kf-contact-info {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px;
  }
  .kf-contact-form-wrap { padding: 20px; }
  .kf-form-row { grid-template-columns: 1fr; gap: 0; }

  /* Single product sidebar — stack on mobile */
  .kf-single-product-layout {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
  .kf-product-sidebar {
    position: static;
  }

  /* Footer logo mobile */
  .kf-footer-logo img {
    max-width: 140px;
  }

  /* === HEADER mobile — logo left, cart+hamburger right === */
  .kf-header { padding: 10px 0; }
  .kf-header .wrap { gap: 8px; }
  
  .kf-header-row {
    gap: 10px;
  }
  
  .kf-logo img { max-height: 36px; }
  .kf-logo-text h1,
  .kf-logo-text .site-title { font-size: 16px; }
  .kf-logo-text .site-description { display: none; }
  
  /* Cart — compact on mobile */
  .kf-cart-info { display: none; }
  .kf-cart a { gap: 0; }
  .kf-cart svg { width: 22px; height: 22px; }
  
  /* Hamburger — show on mobile */
  .kf-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    width: 36px;
    height: 36px;
    background: var(--kf-primary) !important;
    color: #fff !important;
    border: none;
    border-radius: var(--kf-radius-sm);
    cursor: pointer;
  }
  
  /* Search — full width below header row */
  .kf-search { max-width: 100%; }
  
  /* === NAV mobile — hidden by default, shown on toggle === */
  .kf-nav { display: none; }
  .kf-nav.active { display: block; }
  .kf-nav .wrap { padding: 0; }
  .kf-nav ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  .kf-nav ul li { border-bottom: 1px solid var(--kf-border); }
  .kf-nav ul li a {
    padding: 12px 20px;
    font-size: 14px;
    display: block;
    text-align: left;
  }
  .kf-nav ul li ul { position: static; box-shadow: none; }
  
  /* === USP bar — marquee auto-scroll animation === */
  .kf-usp {
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .kf-usp::-webkit-scrollbar { display: none; }
  
  .kf-usp .wrap {
    display: flex;
    flex-wrap: nowrap;
    gap: 40px;
    padding: 10px 0;
    animation: uspMarquee 12s linear infinite;
    min-width: max-content;
    width: max-content;
  }
  
  .kf-usp-item {
    font-size: 13px;
    white-space: nowrap;
    gap: 6px;
  }
  .kf-usp-item svg { width: 18px; height: 18px; flex-shrink: 0; }
  .kf-usp-item[aria-hidden="true"] { display: flex !important; }
  
  @keyframes uspMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
}

/* --- Small phone (max 480px) --- */
@media (max-width: 480px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  
  /* Hero */
  .kf-hero img { max-height: 220px; }
  
  /* Products: still 2 cols but tighter */
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .woocommerce[class*="columns-"] ul.products,
  body.woocommerce ul.products,
  body.woocommerce-page ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  
  .woocommerce ul.products li.product {
    padding: 8px !important;
  }
  
  .woocommerce ul.products li.product h2,
  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 12px !important;
    line-height: 1.3 !important;
  }
  
  .woocommerce ul.products li.product .price {
    font-size: 13px !important;
  }
  
  .woocommerce ul.products li.product .button,
  .woocommerce ul.products li.product a.button {
    font-size: 11px !important;
    padding: 7px 10px !important;
  }
  
  /* Section titles */
  .kf-section { padding: 30px 0; }
  .kf-section-title h2 { font-size: 20px; }
  .kf-section-title p { font-size: 12px; margin-bottom: 20px; }
  
  /* Story */
  .kf-story { padding: 30px 0; }
  .kf-story-img { min-height: 200px; }
  .kf-story-text h2 { font-size: 20px; }
  
  /* Services: single column on very small */
  .kf-services { padding: 30px 0; }
  .kf-services-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }
  
  /* Testimonials */
  .kf-testimonials { padding: 30px 0; }
  .kf-testimonial-card { padding: 20px 16px; }
  .kf-testimonial-card::before { font-size: 40px; top: 10px; right: 14px; }
  
  /* Blog */
  .kf-blog-card-body { padding: 14px; }
  .kf-blog-card-body h3 { font-size: 15px; }
  
  /* Footer */
  .kf-footer { padding: 30px 0 16px; }
  
  /* Nav on very small */
  .kf-nav ul li a {
    padding: 6px 8px;
    font-size: 12px;
  }
  
  /* Back to top smaller */
  .kf-back-to-top {
    width: 40px;
    height: 40px;
    font-size: 16px;
    right: 32px;
    bottom: 80px;
  }
}

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
  .kf-topbar, .kf-nav, .kf-usp, .kf-footer, .kf-back-to-top { display: none; }
  .kf-header { border-bottom: 2px solid #000; }
  body { font-size: 12pt; color: #000; }
}
