/**
 * COMPONENT CSS
 * Nơi lưu trữ:
 * 1. Quan hệ selector cha-con (.parent .child, .parent > .child)
 * 2. Ghép nhiều class (.className1.className2, .btn.btn-primary)
 * 3. Hover cha tác động con (.parent:hover .child)
 * 4. Background Gradient phức tạp, Glassmorphism, Box-shadow đa tầng
 * 5. Menu Dropdown đa cấp & Mobile Navigation Drawer
 * 6. WooCommerce Custom Overrides (Cart, Checkout, Single Product, Badges)
 */

/* ==========================================================================
   1. BACKGROUND GRADIENTS & SPECIAL EFFECTS
   ========================================================================== */
.bg-gradient-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1e3a8a 100%);
}

.bg-gradient-accent {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.bg-gradient-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.glass-header {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

/* ==========================================================================
   2. NÚT BẤM VÀ MULTI-CLASS SELECTORS (.className1.className2)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  padding: 0.625rem 1.25rem;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  border: 1px solid transparent;
}

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

.btn.btn-primary:hover {
  background-color: var(--color-primary-hover);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn.btn-secondary {
  background-color: var(--color-secondary);
  color: #ffffff;
}

.btn.btn-secondary:hover {
  background-color: var(--color-secondary-hover);
}

.btn.btn-outline {
  background-color: transparent;
  border-color: var(--color-slate-300);
  color: var(--color-slate-700);
}

.btn.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: var(--color-slate-50);
}

.btn.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.btn.btn-lg {
  padding: 0.75rem 1.75rem;
  font-size: 1.125rem;
}

/* ==========================================================================
   3. CARD SẢN PHẨM & HIỆU ỨNG HOVER CON (.parent:hover .child)
   ========================================================================== */
.product-card {
  border: 1px solid var(--color-slate-200);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.08);
}

/* Hover cha tác động phóng to ảnh thumbnail con */
.product-card .thumbnail-wrapper img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .thumbnail-wrapper img {
  transform: scale(1.06);
}

/* Hover cha tác động hiện thanh nút hành động con */
.product-card .product-hover-actions {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.product-card:hover .product-hover-actions {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ==========================================================================
   4. LOGO WEBSITE & TÙY BIẾN NHẬN DIỆN TRANG WEB (CUSTOM LOGO)
   ========================================================================== */
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  text-decoration: none;
}

.custom-logo {
  max-height: 3rem; /* 48px */
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.footer-col-about .custom-logo {
  max-height: 2.75rem; /* 44px */
}

/* ==========================================================================
   5. NAVIGATION MENU PHONG CÁCH BRICKS BUILDER & SUBMENU ĐA CẤP
   ========================================================================== */
.site-navigation .nav-menu {
  position: relative;
}

.site-navigation .menu-item {
  position: relative;
}

.site-navigation .menu-item > a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0;
  color: var(--color-slate-700);
  transition: color 0.2s ease;
}

.site-navigation .menu-item > a:hover,
.site-navigation .menu-item.current-menu-item > a {
  color: var(--color-primary);
}

/* Submenu Dropdown hiển thị khi hover cha */
.site-navigation .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-slate-100);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 50;
}

.site-navigation .menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-navigation .sub-menu .menu-item > a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  color: var(--color-slate-600);
}

.site-navigation .sub-menu .menu-item > a:hover {
  background-color: var(--color-slate-50);
  color: var(--color-primary);
}

/* Submenu cấp 2 (Nested) */
.site-navigation .sub-menu .menu-item-has-children > .sub-menu {
  top: 0;
  left: 100%;
}

/* ==========================================================================
   5. MOBILE DRAWER NAVIGATION
   ========================================================================== */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.mobile-nav-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 320px;
  background-color: #ffffff;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

.mobile-nav-drawer.is-open {
  transform: translateX(0);
}

.mobile-nav-drawer .sub-menu {
  display: none;
  padding-left: 1rem;
  border-left: 2px solid var(--color-slate-100);
  margin-top: 0.25rem;
}

.mobile-nav-drawer .menu-item.is-expanded > .sub-menu {
  display: block;
}

/* ==========================================================================
   6. WOOCOMMERCE CHUYÊN BIỆT (OVERRIDES)
   ========================================================================== */

/* Star Ratings */
.star-rating {
  overflow: hidden;
  position: relative;
  height: 1.2em;
  line-height: 1.2;
  font-size: 0.875rem;
  width: 5.4em;
  font-family: star;
  color: var(--color-accent);
}

/* Form Fields Chung (Inputs, Labels, Select, Textarea) */
.woocommerce form .form-row {
  margin-bottom: 1.25rem;
  display: block;
}

.woocommerce form .form-row label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-slate-700);
  margin-bottom: 0.375rem;
}

.woocommerce form .form-row label .required {
  color: var(--color-danger);
  font-weight: 700;
}

.woocommerce form .form-row .input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
  width: 100%;
  background-color: var(--color-slate-50);
  border: 1px solid var(--color-slate-300);
  border-radius: var(--radius-xl);
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  color: var(--color-slate-900);
  outline: none;
  transition: all 0.2s ease;
}

.woocommerce form .form-row .input-text:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .form-row textarea:focus {
  border-color: var(--color-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Select2 Container Overrides cho WooCommerce Dropdown */
.select2-container--default .select2-selection--single {
  height: 42px !important;
  background-color: var(--color-slate-50) !important;
  border: 1px solid var(--color-slate-300) !important;
  border-radius: var(--radius-xl) !important;
  display: flex !important;
  align-items: center !important;
  padding-left: 0.5rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 40px !important;
  right: 0.5rem !important;
}

/* Bảng Giỏ hàng Responsive trên Mobile */
@media (max-width: 767px) {
  .woocommerce-cart-form table.shop_table {
    display: block;
    width: 100%;
    border: none;
  }
  .woocommerce-cart-form table.shop_table thead {
    display: none;
  }
  .woocommerce-cart-form table.shop_table tbody,
  .woocommerce-cart-form table.shop_table tr {
    display: block;
    width: 100%;
  }
  .woocommerce-cart-form table.shop_table tr.cart_item {
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: #ffffff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-slate-200);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }
  .woocommerce-cart-form table.shop_table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0;
    border: none;
    border-bottom: 1px dashed var(--color-slate-100);
  }
  .woocommerce-cart-form table.shop_table td:last-child {
    border-bottom: none;
  }
  .woocommerce-cart-form table.shop_table td::before {
    content: attr(data-title);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-slate-500);
  }
  .woocommerce-cart-form table.shop_table td.product-thumbnail {
    justify-content: center;
    padding-bottom: 0.75rem;
  }
  .woocommerce-cart-form table.shop_table td.product-thumbnail::before {
    display: none;
  }
  .woocommerce-cart-form table.shop_table td.product-remove {
    justify-content: flex-end;
  }
  .woocommerce-cart-form table.shop_table td.product-remove::before {
    display: none;
  }
}

/* Nút Tiến Hành Thanh Toán & Thao Tác Giỏ Hàng */
.wc-proceed-to-checkout a.checkout-button {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-xl);
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
  transition: all 0.2s ease;
}

.wc-proceed-to-checkout a.checkout-button:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

/* Khung Mã Giảm Giá Checkout Toggle */
.woocommerce-form-coupon-toggle .woocommerce-info {
  background: #ffffff;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-xl);
  padding: 0.875rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--color-slate-700);
}

.woocommerce-form-coupon-toggle .showcoupon {
  color: var(--color-primary);
  font-weight: 600;
}

form.checkout_coupon {
  background: #ffffff;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Form Thanh toán WooCommerce 2 Cột */
@media (min-width: 1024px) {
  form.woocommerce-checkout {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 2rem;
    align-items: start;
  }
}

/* Bảng Đơn Hàng Tại Checkout (#order_review) */
#order_review table.shop_table {
  width: 100%;
  border-collapse: collapse;
}

#order_review table.shop_table th,
#order_review table.shop_table td {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-slate-100);
  font-size: 0.875rem;
}

#order_review table.shop_table tr.order-total th,
#order_review table.shop_table tr.order-total td {
  border-top: 2px solid var(--color-slate-200);
  border-bottom: none;
  padding-top: 1rem;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-slate-900);
}

#order_review table.shop_table tr.order-total td strong {
  color: var(--color-primary);
}

/* Phương Thức Thanh Toán (Payment Gateways) */
ul.wc_payment_methods {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

ul.wc_payment_methods li.wc_payment_method {
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-xl);
  padding: 1rem;
  background-color: var(--color-slate-50);
  transition: all 0.2s ease;
}

ul.wc_payment_methods li.wc_payment_method:hover,
ul.wc_payment_methods li.wc_payment_method input[type="radio"]:checked ~ label {
  border-color: var(--color-primary);
}

ul.wc_payment_methods li.wc_payment_method label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-slate-900);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

ul.wc_payment_methods div.payment_box {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border-radius: var(--radius-lg);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-slate-600);
  border-left: 3px solid var(--color-primary);
}

/* Nút Đặt Hàng (#place_order) */
#order_review #place_order {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-xl);
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
  transition: all 0.25s ease;
}

#order_review #place_order:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

/* Badges Thông Báo (Notices & Alerts) */
.woocommerce-message, 
.woocommerce-error, 
.woocommerce-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-xl);
  font-size: 0.875rem;
  font-weight: 500;
}

.woocommerce-message {
  background-color: #ecfdf5;
  color: #065f46;
  border-left: 4px solid var(--color-success);
}

.woocommerce-message a.button {
  background: #ffffff;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-md);
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.woocommerce-message a.button:hover {
  background: #065f46;
  color: #ffffff;
}

.woocommerce-error {
  background-color: #fef2f2;
  color: #991b1b;
  border-left: 4px solid var(--color-danger);
}

.woocommerce-info {
  background-color: #eff6ff;
  color: #1e40af;
  border-left: 4px solid var(--color-primary);
}

/* My Account Bảng Đơn Hàng */
table.woocommerce-orders-table {
  width: 100%;
  border-collapse: collapse;
}

table.woocommerce-orders-table th {
  background-color: var(--color-slate-50);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-slate-500);
  padding: 0.75rem 1rem;
}

table.woocommerce-orders-table td {
  padding: 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--color-slate-100);
}

table.woocommerce-orders-table a.woocommerce-button {
  background-color: var(--color-slate-100);
  color: var(--color-slate-800);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-lg);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all 0.2s;
}

table.woocommerce-orders-table a.woocommerce-button:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

/* ==========================================================================
   7. SWIPER SLIDER CUSTOM STYLING
   ========================================================================== */
.swiper {
  width: 100%;
  height: 100%;
}

/* Swiper Navigation Buttons tinh chỉnh hiện đại */
.swiper-button-next,
.swiper-button-prev {
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--color-slate-800);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--color-slate-100);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  transform: scale(1.08);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 0.95rem;
  font-weight: 700;
}

/* Swiper Pagination Bullets */
.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: var(--color-slate-400);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  width: 24px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  opacity: 1;
}

/* Hero Slider Specifics */
.hero-swiper .swiper-pagination-bullet {
  background: #ffffff;
  opacity: 0.6;
}

.hero-swiper .swiper-pagination-bullet-active {
  background: #ffffff;
  opacity: 1;
}

/* ==========================================================================
   8. GSAP ANIMATION HELPERS (CHỐNG FOUC)
   ========================================================================== */
.gsap-reveal {
  opacity: 0;
  will-change: transform, opacity;
}

/* ==========================================================================
   9. ICON & MULTILINE TEXT ALIGNMENT HELPERS
   ========================================================================== */
.icon-first-line,
.icon-box-horizontal {
  display: flex;
  align-items: flex-start;
}

.icon-first-line > svg,
.icon-first-line > .icon,
.icon-box-horizontal > svg,
.icon-box-horizontal > .icon,
.icon-box-horizontal > .icon-box {
  flex-shrink: 0;
  margin-top: 0.125rem; /* Căn ngang chuẩn xác với cap-height của dòng chữ đầu tiên */
}

/* ==========================================================================
   10. ACCESSIBILITY ENHANCEMENTS (A11Y 100 PTS)
   ========================================================================== */
.skip-link {
  position: absolute;
  top: -9999px;
  left: 1rem;
  z-index: 9999;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 1rem;
  position: fixed;
  z-index: 99999;
}

/* Tôn trọng người dùng bật chế độ giảm hiệu ứng chuyển động */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   11. RESTEK CUSTOM COMPONENTS & LAYOUT STYLING
   ========================================================================== */
.restek-topbar {
  background-color: #0f172a;
  color: #cbd5e1;
  font-size: 0.8125rem;
}

.restek-navbar {
  background-color: #075723; /* Nền xanh đậm đồng nhất chuẩn ảnh mẫu */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.restek-category-tab {
  background-color: #0a7a33; /* Xanh lá sáng phẳng, không viền, không bo tròn, không nổi */
  color: #ffffff;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  height: 46px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.025em;
  padding: 0 1.25rem;
  transition: background-color 0.2s ease;
}

.restek-category-tab:hover {
  background-color: #08662a;
}

/* Khung tìm kiếm phẳng chuẩn ảnh mẫu */
.restek-search-bar {
  display: flex;
  align-items: center;
  border-radius: 2px;
  overflow: hidden;
}

.restek-search-bar .search-field {
  height: 32px;
  border: none !important;
  outline: none !important;
  border-radius: 2px 0 0 2px;
  padding: 0 0.625rem;
  font-size: 0.75rem;
  color: #1e293b;
  background: #ffffff;
}

.restek-search-bar .search-submit,
.search-submit,
.restek-search-form button {
  height: 32px;
  width: 34px;
  background-color: #d35400;
  border: 0 !important;
  border-width: 0 !important;
  border-style: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 2px 2px 0;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color 0.2s ease;
}

.restek-search-bar .search-submit:hover,
.search-submit:hover,
.restek-search-form button:hover {
  background-color: #b94600;
  border: 0 !important;
  outline: none !important;
}

/* Back to Top Button: Phẳng tuyệt đối, không có viền 2 màu */
#back-to-top-btn {
  border: 0 !important;
  border-width: 0 !important;
  border-style: none !important;
  outline: none !important;
  background-color: #1e293b;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

#back-to-top-btn:hover {
  background-color: #334155;
  border: 0 !important;
  outline: none !important;
}

/* Category Sidebar & Hierarchical Flyout Menu */
.category-sidebar {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 30;
}

.category-sidebar .category-sidebar-header {
  padding: 0.75rem 1rem;
  background-color: #075723; /* Nền xanh thương hiệu RESTEK */
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
}

.category-sidebar .cat-list-root {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
  position: static;
}

.category-sidebar .cat-item {
  position: relative;
  list-style: none;
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.2s ease;
}

.category-sidebar .cat-item:last-child {
  border-bottom: none;
}

.category-sidebar .cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
}

.category-sidebar .cat-item:hover > .cat-link {
  background-color: #f0fdf4;
  color: #075723;
  padding-left: 1.05rem;
}

.category-sidebar .cat-item:hover > .cat-link svg {
  transform: translateX(3px);
  color: #075723;
}

/* Category Flyout Menu (Desktop: hiển thị bay sang phải khi hover) */
.category-sidebar .cat-flyout-menu {
  position: absolute;
  top: -1px;
  left: 100%;
  width: 290px;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  pointer-events: none;
  margin-left: 0.25rem;
}

.category-sidebar .cat-item.has-children:hover > .cat-flyout-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

.category-sidebar .cat-flyout-inner {
  overflow: hidden;
  border-radius: 0.5rem;
}

.category-sidebar .cat-flyout-header {
  padding: 0.65rem 0.85rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-sidebar .cat-flyout-header h4 {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f172a;
}

.category-sidebar .cat-flyout-header a {
  font-size: 0.6875rem;
  color: #075723;
  font-weight: 600;
  text-decoration: underline;
}

.category-sidebar .subcat-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0.4rem;
  max-height: 440px;
  overflow-y: auto;
}

.category-sidebar .subcat-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.65rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  color: #475569;
  text-decoration: none;
  transition: all 0.15s ease;
}

.category-sidebar .subcat-item a:hover {
  background-color: #f0fdf4;
  color: #075723;
  padding-left: 0.85rem;
}

/* Service Promo Cards (Hero bottom) */
.service-promo-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  height: 200px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(0,0,0,0.16);
}

.service-promo-card .service-bg-img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-promo-card:hover .service-bg-img {
  transform: scale(1.08);
}

.service-promo-card .service-overlay {
  background: linear-gradient(180deg, rgba(15,23,42,0.2) 0%, rgba(15,23,42,0.85) 100%);
}

/* Header Personnel Contact Card */
.contact-personnel-card {
  border-left: 2px solid #e2e8f0;
  padding-left: 0.875rem;
  transition: border-color 0.2s ease;
}

.contact-personnel-card:hover {
  border-color: #0d5c24;
}

/* Search Bar */
.restek-search-form {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 320px;
}

.restek-search-form input {
  padding-right: 2.75rem;
  border-radius: var(--radius-full);
}

/* Product Card Styling */
.restek-product-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.restek-product-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.08);
}

.restek-product-card .img-box img {
  transition: transform 0.4s ease;
}

.restek-product-card:hover .img-box img {
  transform: scale(1.06);
}

/* Floating Contact Button */
.floating-contact-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.floating-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  text-decoration: none;
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 24px rgba(0,0,0,0.3);
}

.floating-btn.btn-hotline {
  background-color: #dc2626;
}

.floating-btn.btn-zalo {
  background-color: #0284c7;
}

.pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid currentColor;
  animation: pulse-ring-anim 2s infinite;
  opacity: 0.6;
}

@keyframes pulse-ring-anim {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

/* ==========================================================================
   12. SVG SIZING ENFORCEMENT & REST-BAR MENU
   ========================================================================== */
svg.w-3 { width: 0.75rem !important; height: 0.75rem !important; }
svg.w-3\.5 { width: 0.875rem !important; height: 0.875rem !important; }
svg.w-4 { width: 1rem !important; height: 1rem !important; }
svg.w-5 { width: 1.25rem !important; height: 1.25rem !important; }
svg.w-6 { width: 1.5rem !important; height: 1.5rem !important; }
svg.w-7 { width: 1.75rem !important; height: 1.75rem !important; }
svg.w-8 { width: 2rem !important; height: 2rem !important; }
svg.w-9 { width: 2.25rem !important; height: 2.25rem !important; }
svg.w-10 { width: 2.5rem !important; height: 2.5rem !important; }
svg.w-12 { width: 3rem !important; height: 3rem !important; }

svg.h-3 { height: 0.75rem !important; }
svg.h-3\.5 { height: 0.875rem !important; }
svg.h-4 { height: 1rem !important; }
svg.h-5 { height: 1.25rem !important; }
svg.h-6 { height: 1.5rem !important; }
svg.h-7 { height: 1.75rem !important; }
svg.h-8 { height: 2rem !important; }
svg.h-9 { height: 2.25rem !important; }
svg.h-10 { height: 2.5rem !important; }
svg.h-12 { height: 3rem !important; }

.restek-navbar .nav-menu {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  list-style: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
  gap: 0 !important;
}

.restek-navbar .nav-menu > li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* Ký tự phân cách | giữa các menu như ảnh mẫu */
.restek-navbar .nav-menu > li + li::before {
  content: "|";
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0.5rem;
  font-weight: 300;
  font-size: 0.8125rem;
  user-select: none;
}

@media (min-width: 1280px) {
  .restek-navbar .nav-menu > li + li::before {
    margin: 0 0.85rem;
  }
}

.restek-navbar .nav-menu > li > a {
  display: inline-flex !important;
  align-items: center !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.8125rem !important;
  padding: 0.75rem 0.25rem !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
  white-space: nowrap !important;
  letter-spacing: 0.025em;
}

.restek-navbar .nav-menu > li > a:hover {
  color: #86efac !important;
}

.restek-navbar .nav-menu > li.current-menu-item > a {
  color: #ffffff !important;
}

/* Swiper Hero Banner (Chiều cao cân xứng hoàn hảo với danh mục bên trái) */
.hero-swiper {
  width: 100% !important;
  height: 460px !important;
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
}

@media (max-width: 1023px) {
  .hero-swiper {
    height: 400px !important;
  }
}

@media (max-width: 640px) {
  .hero-swiper {
    height: 340px !important;
  }
}

.hero-swiper .swiper-slide {
  height: 100% !important;
  width: 100% !important;
  position: relative;
  display: flex !important;
  align-items: center;
}


/* Category Sidebar Styling */
.category-sidebar {
  background-color: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.category-sidebar ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0.25rem 0 !important;
}

.category-sidebar .cat-item {
  border-bottom: 1px solid #f1f5f9;
  list-style: none !important;
  margin: 0 !important;
}

.category-sidebar .cat-item:last-child {
  border-bottom: none;
}

.category-sidebar .cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.875rem;
  color: #334155;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.category-sidebar .cat-link:hover {
  background-color: #f0fdf4;
  color: #047857;
  padding-left: 1.125rem;
}

/* Service Promo Cards */
.service-promo-card {
  min-height: 180px;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.service-promo-card .service-bg-img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-promo-card:hover .service-bg-img {
  transform: scale(1.08);
}

.service-promo-card .service-overlay {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.92) 100%);
}

/* Search Form */
.restek-search-form {
  position: relative;
  width: 280px;
}

.restek-search-form input[type="search"] {
  border-radius: 9999px;
  padding-right: 2.5rem;
}




/* ==========================================================================
   13. COMPONENT STYLING: WOOCOMMERCE, ARCHIVES, POSTS & UI BLOCKS
   ========================================================================== */

/* Buttons & Badges */
.btn-md {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.button-hero {
  padding: 0.75rem 1.75rem;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius-lg);
}

.button-primary {
  background-color: var(--color-primary);
  color: #ffffff;
}

.button-secondary {
  background-color: var(--color-secondary);
  color: #ffffff;
}

.badge-genuine {
  background-color: #ecfdf5;
  color: #047857;
  font-size: 11px;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid #a7f3d0;
}

/* Archives & Headers */
.archive-header,
.page-header,
.search-header,
.entry-header {
  margin-bottom: 2rem;
}

.archive-title,
.page-title,
.search-title,
.entry-title {
  font-size: 1.875rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.archive-description {
  margin-top: 0.5rem;
  color: #64748b;
  font-size: 0.875rem;
}

/* Blog & Search Grid */
.blog-grid,
.search-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .blog-grid,
  .search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Post Components */
.post-featured-image,
.post-thumbnail-wrapper {
  overflow: hidden;
  border-radius: 0.75rem;
}

.post-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

.post-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-card-title a:hover {
  color: var(--color-primary);
}

.post-excerpt {
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.6;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.post-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  margin: 3rem 0;
}

.prev-post,
.next-post {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.post-share {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Pagination Wrapper */
.pagination-wrapper,
.shop-pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding-top: 2.5rem;
}

/* Empty / No content state */
.no-content-state,
.no-results {
  text-align: center;
  padding: 4rem 1.5rem;
  background-color: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
}

/* WooCommerce Components */
.woocommerce-products-header {
  margin-bottom: 2rem;
}

.woocommerce-products-header__title {
  font-size: 1.875rem;
  font-weight: 800;
  color: #0f172a;
}

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background-color: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  margin-bottom: 1.5rem;
}

.toolbar-result-count {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

.toolbar-ordering select {
  font-size: 0.875rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  background-color: #ffffff;
  color: #334155;
}

.woocommerce-breadcrumbs-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 1.5rem;
}

.woocommerce-breadcrumbs-nav a {
  color: #475569;
  text-decoration: none;
}

.woocommerce-breadcrumbs-nav a:hover {
  color: var(--color-primary);
}

/* Single Product Overrides */
.product-summary-wrapper {
  display: flex;
  flex-direction: column;
}

.product-summary-wrapper .product-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.product-summary-wrapper .product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.product-gallery-wrapper {
  position: relative;
}

.product-tabs-wrapper {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

/* Cart & Checkout Overrides */
.woocommerce-cart-wrapper,
.woocommerce-my-account-wrapper {
  background-color: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .woocommerce-cart-wrapper,
  .woocommerce-my-account-wrapper {
    padding: 2.5rem;
  }
}

.cart-totals-inner,
.woocommerce-checkout-review-order {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.billing-details-wrapper,
.shipping-details-wrapper {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.thankyou-order-details {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 0.75rem;
  padding: 1.5rem;
}

/* Mini Cart */
.woocommerce-mini-cart {
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce-mini-cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.woocommerce-mini-cart__total {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  font-weight: 700;
  border-top: 2px solid #e2e8f0;
}

.woocommerce-mini-cart__buttons {
  display: flex;
  gap: 0.5rem;
}

.woocommerce-mini-cart__empty-message {
  padding: 2rem 1rem;
  text-align: center;
  color: #64748b;
}

/* Form Controls */
.woocommerce-form-row {
  margin-bottom: 1rem;
}

.woocommerce-form-row--wide {
  width: 100%;
}

.woocommerce-Input,
.woocommerce-form__input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce-Input:focus,
.woocommerce-form__input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(13, 92, 36, 0.15);
}

.woocommerce-Button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: #ffffff;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.woocommerce-Button:hover {
  background-color: var(--color-primary-hover);
}

/* Comments */
.comments-area-wrapper {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}


/* ==========================================================================
   14. ACCESSIBILITY, PROSE & WOOCOMMERCE SYSTEM TABLES
   ========================================================================== */

/* Screen Reader Text */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #047857;
  border-radius: 0.25rem;
  clip: auto !important;
  clip-path: none;
  color: #ffffff;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 1rem;
  line-height: normal;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  top: 1rem;
  width: auto;
  z-index: 100000;
}

/* Typography Prose & Entry Content */
.prose,
.entry-content,
.post-content {
  color: #334155;
  line-height: 1.75;
}

.prose p, .entry-content p, .post-content p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

.prose h2, .entry-content h2, .post-content h2 {
  font-size: 1.5em;
  margin-top: 1.75em;
  margin-bottom: 0.75em;
  font-weight: 700;
  color: #0f172a;
}

.prose h3, .entry-content h3, .post-content h3 {
  font-size: 1.25em;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-weight: 600;
  color: #0f172a;
}

.prose ul, .entry-content ul, .post-content ul {
  list-style-type: disc;
  margin-top: 1em;
  margin-bottom: 1em;
  padding-left: 1.5em;
}

.prose ol, .entry-content ol, .post-content ol {
  list-style-type: decimal;
  margin-top: 1em;
  margin-bottom: 1em;
  padding-left: 1.5em;
}

.prose img, .entry-content img, .post-content img {
  border-radius: 0.5rem;
  max-width: 100%;
  height: auto;
  margin: 1.5em 0;
}

.prose a, .entry-content a, .post-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* WooCommerce Tables & Checkout Layouts */
.shop_table_responsive,
.woocommerce-cart-form__contents {
  width: 100%;
  border-collapse: collapse;
}

.shop_table_responsive th,
.shop_table_responsive td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.shop_table_responsive th {
  background-color: #f8fafc;
  font-weight: 600;
  color: #475569;
}

.col2-set {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .col2-set {
    grid-template-columns: 1fr 1fr;
  }
}

.cart-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
}

.cart-empty-wrapper {
  text-align: center;
  padding: 4rem 1.5rem;
}

.return-to-shop .button {
  display: inline-flex;
  align-items: center;
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
}
