/*
Theme Name: In Hương Giang
Theme URI: https://inhuonggiang.vn
Author: In Hương Giang
Description: Giao diện WooCommerce cho xưởng in ấn phong cách Việt Nam. Màu đỏ-vàng truyền thống, bố cục thực dụng, tối ưu chuyển đổi bán hàng.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ihg
Tags: woocommerce, vietnamese, print-shop, e-commerce, red, custom-menu
WC requires at least: 7.0
WC tested up to: 8.6
*/

/* =====================================================
   CSS VARIABLES
   ===================================================== */
:root {
  --red:       #d0021b;
  --red-dark:  #a30015;
  --red-light: #fff0f0;
  --red-mid:   #b80018;
  --yellow:    #f5a623;
  --yellow2:   #ffd700;
  --dark:      #1a1a1a;
  --text:      #333333;
  --muted:     #777777;
  --border:    #e0d6c8;
  --bg:        #f5f0e8;
  --white:     #ffffff;
  --surface:   #fafaf8;
  --green:     #1a8c3c;
  --blue:      #0066cc;
  --orange:    #ff6b35;
  --purple:    #7b2d8b;

  --radius-sm: 3px;
  --radius:    5px;
  --radius-lg: 8px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,.08);
  --shadow:    0 3px 12px rgba(0,0,0,.12);
  --shadow-lg: 0 6px 24px rgba(0,0,0,.16);

  --font: 'Roboto', 'Segoe UI', Arial, sans-serif;
  --ease: cubic-bezier(.25,.46,.45,.94);
}

/* =====================================================
   RESET
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
  overflow-x: hidden;
}
body {
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}
#page {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
img  { max-width: 100%; height: auto; display: block; }
a    { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; background: none; border: none; }

/* =====================================================
   UTILITY
   ===================================================== */
/* Roboto via @import — loaded in functions.php enqueue */
.container {
  max-width: 1260px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* =====================================================
   HEADER TOP BAR
   ===================================================== */
.header-topbar {
  background: var(--red-dark);
  padding: 5px 0;
  font-size: 12px;
  color: rgba(255,255,255,.85);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.header-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.topbar-hotline b { color: var(--yellow2); }
.topbar-links { display: flex; gap: 14px; }
.topbar-links a { color: rgba(255,255,255,.8); transition: color .15s; }
.topbar-links a:hover { color: var(--yellow2); }

/* =====================================================
   MAIN HEADER
   ===================================================== */
.site-header {
  background: var(--red);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

/* Logo */
.site-logo { flex: none; }
.logo-wrap { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--yellow);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  color: var(--red);
  flex: none;
}
.logo-text-wrap {}
.logo-name {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.3px;
}
.logo-name span { color: var(--yellow2); }
.logo-tagline {
  font-size: 10px;
  color: rgba(255,255,255,.75);
  text-transform: uppercase;
  letter-spacing: .8px;
}

/* Search */
.header-search {
  flex: 1;
  max-width: 500px;
}
.search-form {
  display: flex;
}
.search-input {
  flex: 1;
  border: none;
  padding: 9px 14px;
  font-size: 14px;
  border-radius: var(--radius) 0 0 var(--radius);
  outline: none;
  color: var(--dark);
}
.search-input::placeholder { color: #aaa; }
.search-btn {
  background: var(--yellow);
  border: none;
  padding: 9px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  transition: background .15s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.search-btn:hover { background: var(--yellow2); }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.hdr-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #fff;
  padding: 6px 10px;
  border-radius: var(--radius);
  transition: background .15s;
  white-space: nowrap;
  font-size: 11px;
}
.hdr-btn:hover { background: rgba(255,255,255,.15); color: var(--yellow2); }
.hdr-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.hdr-cart { position: relative; }
.cart-bubble {
  position: absolute;
  top: 2px;
  right: 4px;
  background: var(--yellow);
  color: var(--dark);
  font-size: 10px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}
.hotline-btn {
  background: var(--yellow);
  color: var(--dark);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background .15s;
}
.hotline-btn:hover { background: var(--yellow2); color: var(--dark); }

/* =====================================================
   NAVIGATION
   ===================================================== */
.main-nav {
  background: var(--red-mid);
  border-top: 1px solid rgba(255,255,255,.12);
}
.nav-inner {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  gap: 0;
  scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-link {
  color: rgba(255,255,255,.9);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 3px solid transparent;
  transition: all .15s;
}
.nav-link:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav-link.active,
.nav-link.current-menu-item { border-bottom-color: var(--yellow); color: var(--yellow); font-weight: 700; }

/* =====================================================
   PROMO TICKER
   ===================================================== */
.promo-ticker {
  background: var(--red);
  border-top: 1px dashed rgba(255,255,255,.25);
  padding: 6px 0;
  overflow: hidden;
}
.ticker-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ticker-badge {
  background: var(--yellow);
  color: var(--dark);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 2px;
  text-transform: uppercase;
  flex: none;
}
.ticker-track {
  overflow: hidden;
  flex: 1;
}
.ticker-content {
  display: inline-flex;
  gap: 40px;
  animation: ticker-scroll 28s linear infinite;
  white-space: nowrap;
}
.ticker-content:hover { animation-play-state: paused; }
.ticker-item {
  font-size: 12px;
  color: rgba(255,255,255,.9);
}
.ticker-item::before { content: "🔥 "; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =====================================================
   FLASH SALE BAR
   ===================================================== */
.flash-sale-bar {
  background: #fff;
  border-top: 3px solid var(--red);
  border-bottom: 2px solid var(--border);
  padding: 10px 0;
}
.flash-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
}
.flash-badge {
  background: var(--red);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  flex: none;
  line-height: 1.2;
  text-align: center;
}
.flash-badge span { color: var(--yellow); display: block; font-size: 11px; }
.flash-countdown {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: none;
}
.cd-box {
  background: var(--dark);
  color: #fff;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  font-size: 18px;
  font-weight: 800;
  font-family: 'Courier New', monospace;
  min-width: 34px;
  text-align: center;
  line-height: 1;
}
.cd-colon { font-size: 18px; font-weight: 800; color: var(--red); }
.flash-products {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  flex: 1;
  padding: 2px 0;
  scrollbar-width: none;
}
.flash-products::-webkit-scrollbar { display: none; }
.flash-card {
  flex: none;
  width: 90px;
  background: var(--red-light);
  border: 1px solid #ffd6d6;
  border-radius: var(--radius);
  padding: 6px;
  text-align: center;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.flash-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.flash-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
}
.flash-card-name {
  font-size: 10px;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 3px;
}
.flash-card-price { font-size: 11px; font-weight: 800; color: var(--red); }

/* =====================================================
   SHOP LAYOUT
   ===================================================== */
.shop-wrapper {
  padding: 14px 0 30px;
}
.shop-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 14px;
  align-items: start;
}

/* =====================================================
   SIDEBAR
   ===================================================== */
.shop-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: 110px;
}
.sb-section { border-bottom: 1px solid var(--border); }
.sb-section:last-child { border-bottom: none; }
.sb-head {
  background: var(--red);
  color: #fff;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.sb-head svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; flex: none; }
.sb-body { padding: 6px 0; }
.sb-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all .12s;
}
.sb-link:hover { background: var(--red-light); border-left-color: var(--red); color: var(--red); }
.sb-link.active { background: var(--red-light); border-left-color: var(--red); color: var(--red); font-weight: 700; }
.sb-count {
  background: var(--bg);
  color: var(--muted);
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 10px;
}
.sb-link.active .sb-count { background: #ffd0d0; color: var(--red); }
.sb-promo { padding: 10px 12px; display: flex; flex-direction: column; gap: 7px; }
.sb-promo-item {
  background: #fff8e1;
  border: 1px dashed var(--yellow);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-size: 11px;
  color: var(--text);
  line-height: 1.4;
}
.sb-promo-item strong { color: var(--red); font-size: 12px; display: block; margin-bottom: 2px; }
.sb-service { padding: 6px 0; }
.sb-service-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 12px;
  color: var(--muted);
}
.sb-service-item span:first-child { font-size: 14px; }

/* Price filter */
.price-filter { padding: 12px 14px; }
.price-range-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--muted);
}
.price-range-row input {
  flex: 1;
  border: 1px solid var(--border);
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  outline: none;
  width: 100%;
}
.price-range-row input:focus { border-color: var(--red); }
.btn-filter {
  width: 100%;
  background: var(--red);
  color: #fff;
  border: none;
  padding: 7px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.btn-filter:hover { background: var(--red-dark); }

/* =====================================================
   TOOLBAR
   ===================================================== */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  margin-bottom: 12px;
  gap: 10px;
  flex-wrap: wrap;
}
.toolbar-count {
  font-size: 13px;
  color: var(--muted);
}
.toolbar-count strong { color: var(--text); }
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.toolbar-sort {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.toolbar-sort select {
  border: 1px solid var(--border);
  padding: 5px 28px 5px 9px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center;
  appearance: none;
  cursor: pointer;
  outline: none;
}
.toolbar-sort select:focus { border-color: var(--red); }
.view-toggle { display: flex; gap: 3px; }
.view-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  transition: all .12s;
  font-size: 13px;
}
.view-btn:hover { border-color: var(--red); color: var(--red); }
.view-btn.active { background: var(--red); border-color: var(--red); color: #fff; }

/* =====================================================
   PRODUCT CARDS
   ===================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.products-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.products-grid.list-view { grid-template-columns: 1fr; }

/* WooCommerce ul.products override */
ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px !important;
  padding: 0 !important;
  margin: 0 !important;
}

.product-card,
ul.products li.product {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .18s var(--ease), border-color .18s, box-shadow .18s;
  position: relative;
  display: flex;
  flex-direction: column;
  list-style: none !important;
}
.product-card:hover,
ul.products li.product:hover {
  border-color: var(--red);
  box-shadow: 0 4px 18px rgba(208,2,27,.15);
  transform: translateY(-3px);
}

/* Image area */
.product-card-img,
ul.products li.product .woocommerce-loop-product__link > img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .3s var(--ease);
}
.product-card:hover .product-card-img,
ul.products li.product:hover .woocommerce-loop-product__link > img {
  transform: scale(1.05);
}
.product-card-imgwrap {
  overflow: hidden;
  position: relative;
  background: var(--bg);
}

/* Badges */
.product-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  z-index: 2;
  line-height: 1;
}
.badge-sale   { background: var(--red);    color: #fff; }
.badge-hot    { background: var(--orange); color: #fff; }
.badge-new    { background: var(--green);  color: #fff; }
.badge-order  { background: var(--purple); color: #fff; }

.product-sale-flash,
.woocommerce span.onsale { /* WooCommerce sale badge */
  background: var(--red) !important;
  color: #fff !important;
  padding: 3px 8px !important;
  border-radius: var(--radius-sm) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  line-height: 1.4 !important;
  top: 7px !important;
  left: 7px !important;
  margin: 0 !important;
}

/* Wishlist btn */
.product-wishlist {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 30px;
  height: 30px;
  background: rgba(255,255,255,.85);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all .15s;
  z-index: 2;
  color: var(--muted);
  font-size: 14px;
}
.product-card:hover .product-wishlist { opacity: 1; }
.product-wishlist:hover { color: var(--red); border-color: var(--red); }
.product-wishlist.liked { opacity: 1; color: var(--red); }

/* Quick actions overlay */
.product-quick {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(208,2,27,.9);
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  transform: translateY(100%);
  transition: transform .2s var(--ease);
}
.product-card:hover .product-quick { transform: translateY(0); }
.quick-btn {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background .12s;
  white-space: nowrap;
}
.quick-btn:hover { background: rgba(255,255,255,.25); }

/* Card body */
.product-card-body {
  padding: 10px 10px 6px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-cat {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 3px;
}
.product-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
  transition: color .12s;
}
.product-card:hover .product-name { color: var(--red); }

/* Rating */
.product-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
}
.stars { color: var(--yellow); font-size: 11px; letter-spacing: 1px; }
.rating-num { font-size: 11px; color: var(--muted); }

/* Price */
.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.price-new {
  font-size: 15px;
  font-weight: 800;
  color: var(--red);
}
.price-old {
  font-size: 11px;
  color: var(--muted);
  text-decoration: line-through;
}
.price-pct {
  font-size: 10px;
  background: var(--red-light);
  color: var(--red);
  border: 1px solid #ffd0d0;
  padding: 1px 5px;
  border-radius: 2px;
  font-weight: 800;
}
.price-contact {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  background: #e8f4ff;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* Sold bar */
.sold-bar {
  padding: 2px 0 8px;
  margin-top: auto;
}
.sold-track {
  height: 5px;
  background: #f0e8e8;
  border-radius: 3px;
  overflow: hidden;
}
.sold-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--yellow));
  border-radius: 3px;
}
.sold-text {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.sold-text strong { color: var(--red); }

/* Card footer */
.product-card-foot {
  padding: 0 10px 10px;
  display: flex;
  gap: 6px;
}
.btn-addcart {
  flex: 1;
  background: var(--red);
  color: #fff;
  border: none;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.btn-addcart:hover { background: var(--red-dark); }
.btn-addcart svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; flex: none; }
.btn-view {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 9px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  transition: all .12s;
  display: flex;
  align-items: center;
}
.btn-view:hover { border-color: var(--red); color: var(--red); }
.btn-view svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }

/* WooCommerce add to cart button */
.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--red) !important;
  color: #fff !important;
  border: none !important;
  padding: 8px 14px !important;
  border-radius: var(--radius-sm) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background .15s !important;
  width: 100% !important;
  text-align: center !important;
  display: block !important;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover { background: var(--red-dark) !important; }

/* =====================================================
   SINGLE PRODUCT PAGE
   ===================================================== */
.single-product-wrap {
  padding: 16px 0 30px;
}
.single-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

/* Gallery */
.single-gallery { position: sticky; top: 110px; }
.gallery-main {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  margin-bottom: 8px;
  aspect-ratio: 4/3;
  cursor: zoom-in;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.gallery-main:hover img { transform: scale(1.03); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.gallery-thumb {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  background: var(--bg);
  transition: border-color .12s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--red); }

/* Single info */
.single-info {}
.single-breadcrumb {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
.single-breadcrumb a:hover { color: var(--red); }
.single-breadcrumb .sep { color: var(--border); }

.single-badges { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.single-badge {
  padding: 3px 10px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.single-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 10px;
}

.single-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.single-rating .stars { font-size: 14px; color: var(--yellow); }
.single-sold-count { font-size: 12px; color: var(--muted); }
.single-sold-count strong { color: var(--red); }

.single-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}
.single-price .price-main {
  font-size: 26px;
  font-weight: 900;
  color: var(--red);
}
.single-price .price-orig {
  font-size: 15px;
  color: var(--muted);
  text-decoration: line-through;
}
.single-price .price-save {
  font-size: 12px;
  background: var(--red-light);
  color: var(--red);
  border: 1px solid #ffd0d0;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

/* Options */
.option-block { margin-bottom: 14px; }
.option-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.option-selected { font-weight: 400; color: var(--muted); font-size: 12px; }
.size-list { display: flex; gap: 6px; flex-wrap: wrap; }
.size-btn {
  min-width: 44px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 13px;
  cursor: pointer;
  transition: all .12s;
}
.size-btn:hover, .size-btn.active { border-color: var(--red); background: var(--red-light); color: var(--red); font-weight: 700; }

/* Qty */
.qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.qty-ctrl {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--muted);
  font-size: 18px;
  font-weight: 300;
  cursor: pointer;
  transition: all .12s;
  border: none;
}
.qty-btn:hover { background: var(--red-light); color: var(--red); }
.qty-input {
  width: 50px;
  height: 38px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-size: 15px;
  font-weight: 700;
  outline: none;
  background: var(--white);
}
.stock-tag {
  font-size: 12px;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 5px;
}
.stock-tag::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}

/* CTA */
.cta-row { display: flex; gap: 8px; margin-bottom: 14px; }
.btn-buy {
  flex: 1;
  background: var(--red);
  color: #fff;
  border: none;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.btn-buy:hover { background: var(--red-dark); }
.btn-buy svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.btn-hotline {
  background: var(--yellow);
  color: var(--dark);
  border: none;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-hotline:hover { background: var(--yellow2); }
.btn-wish {
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  transition: all .12s;
}
.btn-wish:hover { border-color: var(--red); color: var(--red); }
.btn-wish svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* Trust box */
.trust-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}
.trust-icon { font-size: 18px; flex: none; line-height: 1; }
.trust-item strong { color: var(--text); display: block; font-size: 12px; }

/* Meta */
.product-meta {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.meta-row { display: flex; gap: 8px; }
.meta-key { color: var(--muted); min-width: 80px; }
.meta-val { color: var(--text); }
.meta-val a:hover { color: var(--red); }

/* =====================================================
   TABS
   ===================================================== */
.product-tabs { margin-top: 28px; border-top: 3px solid var(--red); }
.tabs-nav {
  display: flex;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.tab-btn {
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: all .15s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--red); border-bottom-color: var(--red); }
.tab-pane { display: none; padding: 20px 0; }
.tab-pane.active { display: block; }

.woo-desc { max-width: 72ch; line-height: 1.85; color: var(--muted); font-size: 14px; }
.woo-desc p { margin-bottom: 12px; }
.woo-desc strong { color: var(--text); }
.woo-desc h3, .woo-desc h4 { color: var(--text); margin-bottom: 8px; margin-top: 16px; }
.woo-desc ul { list-style: disc; padding-left: 20px; color: var(--muted); }

.specs-tbl { border-collapse: collapse; font-size: 13px; }
.specs-tbl tr { border-bottom: 1px solid var(--border); }
.specs-tbl tr:last-child { border-bottom: none; }
.specs-tbl td { padding: 10px 14px; }
.specs-tbl td:first-child { color: var(--muted); font-weight: 600; width: 180px; }

/* =====================================================
   REVIEWS
   ===================================================== */
.reviews-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
}
.rating-overview { text-align: center; }
.rating-big { font-size: 56px; font-weight: 900; color: var(--dark); line-height: 1; }
.rating-stars { font-size: 20px; color: var(--yellow); margin: 4px 0; }
.rating-sub { font-size: 12px; color: var(--muted); }
.rating-bars { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.bar-row { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.bar-lbl { width: 12px; color: var(--muted); text-align: right; }
.bar-bg { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--red), var(--yellow)); border-radius: 3px; }

.review-list { display: flex; flex-direction: column; gap: 16px; }
.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.review-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px; }
.reviewer { display: flex; align-items: center; gap: 10px; }
.reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex: none;
}
.reviewer-name { font-weight: 700; font-size: 14px; }
.reviewer-date { font-size: 11px; color: var(--muted); }
.review-text { font-size: 13px; line-height: 1.7; color: var(--muted); }

/* =====================================================
   RELATED PRODUCTS
   ===================================================== */
.related-section { padding: 24px 0; border-top: 1px solid var(--border); margin-top: 24px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::before {
  content: '';
  width: 4px;
  height: 22px;
  background: var(--red);
  border-radius: 2px;
  display: block;
}
.section-more {
  font-size: 13px;
  color: var(--red);
  font-weight: 600;
  border: 1px solid var(--red);
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  transition: all .12s;
}
.section-more:hover { background: var(--red); color: #fff; }

/* =====================================================
   PAGINATION
   ===================================================== */
.woocommerce-pagination,
.pagination-wrap {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}
.page-numbers {
  display: flex;
  gap: 5px;
  align-items: center;
}
.page-numbers li {}
.page-numbers li a,
.page-numbers li span {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all .12s;
  background: var(--white);
}
.page-numbers li a:hover { border-color: var(--red); color: var(--red); }
.page-numbers li span.current { background: var(--red); border-color: var(--red); color: #fff; }

/* =====================================================
   MINI CART DRAWER
   ===================================================== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 980;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  background: var(--white);
  z-index: 990;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .28s var(--ease);
  box-shadow: -4px 0 24px rgba(0,0,0,.18);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-head {
  background: var(--red);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-drawer-title { font-size: 16px; font-weight: 800; }
.cart-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 18px;
  transition: background .12s;
}
.cart-close:hover { background: rgba(255,255,255,.35); }
.cart-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 70px 1fr auto; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; }
.cart-item-img { width: 70px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-item-name { font-size: 13px; font-weight: 600; }
.cart-item-meta { font-size: 11px; color: var(--muted); }
.cart-item-price { font-size: 13px; font-weight: 800; color: var(--red); text-align: right; }
.cart-footer { padding: 14px; border-top: 1px solid var(--border); background: var(--surface); }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cart-total-label { font-size: 14px; font-weight: 700; }
.cart-total-price { font-size: 20px; font-weight: 900; color: var(--red); }
.btn-checkout {
  width: 100%;
  background: var(--red);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s;
  margin-bottom: 8px;
}
.btn-checkout:hover { background: var(--red-dark); }
.btn-cart-page {
  width: 100%;
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .12s;
  text-align: center;
  display: block;
}
.btn-cart-page:hover { border-color: var(--red); color: var(--red); }

/* =====================================================
   TOAST
   ===================================================== */
.ihg-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--dark);
  color: #fff;
  padding: 11px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 9999;
  transform: translateY(20px);
  opacity: 0;
  transition: all .25s var(--ease);
  pointer-events: none;
  max-width: 320px;
  box-shadow: var(--shadow-lg);
}
.ihg-toast.show { transform: translateY(0); opacity: 1; }
.ihg-toast .toast-icon { font-size: 18px; flex: none; }

/* =====================================================
   FEATURE BAR
   ===================================================== */
.feature-bar {
  background: var(--white);
  border-top: 3px solid var(--red);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 20px;
  border-right: 1px solid var(--border);
}
.feature-item:last-child { border-right: none; }
.feature-icon { font-size: 30px; flex: none; line-height: 1; }
.feature-text {}
.feature-text strong { font-size: 13px; color: var(--dark); display: block; font-weight: 800; }
.feature-text span { font-size: 11px; color: var(--muted); }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: #1a1a1a;
  color: rgba(255,255,255,.75);
  padding: 30px 0 14px;
  margin-top: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .logo-name { font-size: 22px; margin-bottom: 10px; display: block; }
.footer-desc { font-size: 13px; line-height: 1.7; margin-bottom: 14px; color: rgba(255,255,255,.6); max-width: 280px; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.footer-contact a { display: flex; align-items: center; gap: 7px; color: rgba(255,255,255,.75); transition: color .12s; }
.footer-contact a:hover { color: var(--yellow); }
.footer-contact .fi { font-size: 14px; color: var(--red); }
.footer-col-title { font-size: 13px; font-weight: 800; color: #fff; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .5px; position: relative; padding-bottom: 8px; }
.footer-col-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 28px; height: 2px; background: var(--red); }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,.6); transition: color .12s; }
.footer-links a:hover { color: var(--yellow); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,.4);
  flex-wrap: wrap;
  gap: 8px;
}
.payment-list { display: flex; gap: 6px; }
.pay-badge {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.6);
}

/* =====================================================
   WOOCOMMERCE MESSAGES
   ===================================================== */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  padding: 10px 14px;
  border-radius: var(--radius);
  margin-bottom: 14px;
  font-size: 13px;
  border-left: 3px solid;
  display: flex;
  align-items: center;
  gap: 10px;
}
.woocommerce-message { background: #f0fff4; border-color: var(--green); color: var(--green); }
.woocommerce-info    { background: #fff8e1; border-color: var(--yellow); color: #7a5800; }
.woocommerce-error   { background: var(--red-light); border-color: var(--red); color: var(--red); }

/* Form elements */
.woocommerce input.input-text,
.woocommerce textarea,
.woocommerce select {
  border: 1px solid var(--border);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  width: 100%;
  font-size: 14px;
  transition: border-color .15s;
  background: var(--white);
  color: var(--text);
  outline: none;
}
.woocommerce input.input-text:focus,
.woocommerce textarea:focus,
.woocommerce select:focus { border-color: var(--red); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .shop-layout { grid-template-columns: 190px 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .single-grid { grid-template-columns: 1fr; }
  .single-gallery { position: static; }
}

@media (max-width: 768px) {
  .container { padding: 0 10px; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; }
  ul.products { grid-template-columns: repeat(2,1fr) !important; }
  .products-grid { grid-template-columns: repeat(2,1fr); }
  .header-search { display: none; }
  .feature-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-links { display: none; }
  .reviews-layout { grid-template-columns: 1fr; }
  .cart-drawer { width: 100%; }
  .flash-inner { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  ul.products { grid-template-columns: 1fr !important; }
  .products-grid { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; }
  .btn-wish { width: 100%; height: 46px; }
}

/* =====================================================
   GLOBAL OVERFLOW FIX – Không tràn ngang 1260px
   ===================================================== */

/* Tất cả section full-width không được tràn */
.header-topbar,
.site-header,
.main-nav,
.promo-ticker,
.flash-sale-section,
.flash-sale-bar,
.feature-bar,
.site-footer,
.home-hero,
.home-section,
.cta-band,
.shop-wrapper,
.single-product-wrap,
.sp-page,
.woo-main,
.products-archive {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Nav inner dùng container chuẩn */
.nav-inner {
  max-width: 1260px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

/* Đảm bảo tất cả .container con không bị overflow */
.container > * {
  max-width: 100%;
  box-sizing: border-box;
}

/* Grid items không tràn */
.sp-product-grid,
.sp-layout,
.sp-main,
.shop-layout,
.products-grid,
ul.products {
  max-width: 100%;
  box-sizing: border-box;
}

/* ============================================================
   IHG PRODUCT CARD (content-product.php override)
   ============================================================ */
ul.products.ihg-products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px !important;
  margin: 0 !important; padding: 0 !important;
  list-style: none !important;
}
ul.products.ihg-products.columns-4 { grid-template-columns: repeat(4,1fr) !important; }
ul.products.ihg-products.columns-2 { grid-template-columns: repeat(2,1fr) !important; }

.ihg-card {
  background: #fff; border: 1px solid #e0d6c6;
  border-radius: 8px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .18s ease, border-color .18s, box-shadow .18s;
  list-style: none !important;
}
.ihg-card:hover {
  border-color: #d0021b;
  transform: translateY(-3px);
  box-shadow: 0 4px 18px rgba(208,2,27,.13);
}
.ihg-card-imgwrap {
  position: relative; overflow: hidden;
  background: #f4f0e8; aspect-ratio: 4/3;
}
.ihg-card-img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; transition: transform .3s ease;
}
.ihg-card:hover .ihg-card-img { transform: scale(1.05); }
.ihg-card-imglink { display: block; width: 100%; height: 100%; }

/* Badge */
.ihg-badge { position: absolute; top: 7px; left: 7px; padding: 3px 8px; border-radius: 3px; font-size: 10px; font-weight: 800; text-transform: uppercase; z-index: 2; pointer-events: none; }
.ihg-b-sale  { background: #d0021b; color: #fff; }
.ihg-b-hot   { background: #e65c00; color: #fff; }
.ihg-b-new   { background: #1a8c3c; color: #fff; }
.ihg-b-order { background: #7b2d8b; color: #fff; }

/* Hover actions */
.ihg-card-actions {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(208,2,27,.92); padding: 8px;
  display: flex; gap: 6px; align-items: center;
  transform: translateY(100%); transition: transform .2s ease;
}
.ihg-card:hover .ihg-card-actions { transform: translateY(0); }
.ihg-btn-cart {
  flex: 1; background: rgba(255,255,255,.18); color: #fff;
  border: 1px solid rgba(255,255,255,.35); padding: 6px 8px;
  border-radius: 3px; font-size: 11px; font-weight: 700;
  cursor: pointer; text-align: center; transition: background .12s;
  text-decoration: none; display: block;
}
.ihg-btn-cart:hover { background: rgba(255,255,255,.3); color: #fff; }
.ihg-btn-view {
  background: rgba(255,255,255,.18); color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  width: 32px; height: 32px; border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; cursor: pointer; text-decoration: none; flex: none;
  transition: background .12s;
}
.ihg-btn-view:hover { background: rgba(255,255,255,.3); color: #fff; }

/* Card body */
.ihg-card-body { padding: 10px 10px 6px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.ihg-card-cat { font-size: 10px; color: #aaa; text-transform: uppercase; letter-spacing: .4px; }
.ihg-card-name { font-size: 13px; font-weight: 700; color: #333; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ihg-card-name a { color: #333; transition: color .12s; }
.ihg-card:hover .ihg-card-name a { color: #d0021b; }
.ihg-card-rating { display: flex; align-items: center; gap: 4px; }
.ihg-stars { color: #f5a623; font-size: 11px; }
.ihg-rc { font-size: 10px; color: #aaa; }

/* Price */
.ihg-price-row { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; margin-top: auto; padding-top: 5px; }
.ihg-p-new { font-size: 14px; font-weight: 800; color: #d0021b; }
.ihg-p-old { font-size: 10px; color: #bbb; text-decoration: line-through; }
.ihg-p-pct { font-size: 9px; background: #fff0f0; color: #d0021b; border: 1px solid #ffd0d0; padding: 1px 4px; border-radius: 2px; font-weight: 800; }
.ihg-p-contact { font-size: 11px; font-weight: 700; color: #0066cc; background: #e8f4ff; padding: 2px 7px; border-radius: 3px; }

/* Sold bar */
.ihg-sold-bar { padding: 0 10px 7px; }
.ihg-sold-track { height: 4px; background: #f0e8dc; border-radius: 2px; overflow: hidden; }
.ihg-sold-fill { height: 100%; background: linear-gradient(90deg,#d0021b,#f5a623); border-radius: 2px; }
.ihg-sold-txt { font-size: 10px; color: #aaa; margin-top: 3px; }
.ihg-sold-txt strong { color: #d0021b; font-weight: 700; }

/* Footer */
.ihg-card-foot { padding: 0 10px 10px; display: flex; gap: 6px; }
.ihg-btn-addcart {
  flex: 1; background: #d0021b; color: #fff; border: none;
  padding: 8px 10px; border-radius: 4px; font-size: 12px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  gap: 4px; transition: background .15s; font-family: inherit;
  text-decoration: none; text-align: center;
}
.ihg-btn-addcart:hover { background: #a80016; color: #fff; }
.ihg-btn-eye {
  background: #fff; border: 1px solid #e0d6c6; color: #888;
  padding: 8px 10px; border-radius: 4px; font-size: 14px;
  cursor: pointer; display: flex; align-items: center;
  text-decoration: none; transition: all .12s;
}
.ihg-btn-eye:hover { border-color: #d0021b; color: #d0021b; }

/* Responsive cards */
@media (max-width: 900px) {
  ul.products.ihg-products { grid-template-columns: repeat(2,1fr) !important; }
  ul.products.ihg-products.columns-4 { grid-template-columns: repeat(2,1fr) !important; }
}
@media (max-width: 480px) {
  ul.products.ihg-products { grid-template-columns: repeat(2,1fr) !important; gap: 8px !important; }
}
