/******************************************************************
Theme Name: MONA.Media Theme v3
Theme URI: #
Description:
Author: MONA.Media / Website
Author URI: https://mona.media/thiet-ke-website-tai-hcm/
Version: 3.0
Tags:
*/

.alignnone {
  margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
  display: block;
  margin: 5px auto;
}
#image-sizes-credit {
  display: none;
}
.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

a img.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

a img.alignnone {
  margin: 5px 20px 20px 0;
}

a img.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

a img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* .wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center
} */

.wp-caption.alignleft,
.wp-caption.alignnone {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
  margin: 5px 0 20px 20px;
}

.wp-caption img {
  border: 0;
  height: auto;
  margin: 0;
  max-width: 98.5%;
  padding: 0;
  width: auto;
}
.ml-1 {
  margin-left: 0.5rem;
}
.mr-1 {
  margin-right: 0.5rem;
}
.wp-caption p.wp-caption-text {
  font-size: 11px;
  line-height: 17px;
  margin: 0;
  padding: 0 4px 5px;
}

.mona-product-pagination .page-numbers,
.mona-product-pagination .page-numbers li {
  display: inline-block;
}

.mona-gallery {
  column-count: 3;
  -webkit-column-count: 3;
  -moz-column-count: 3;
}

.mona-content {
  color: #000;
}

.mona-content p {
  margin: 10px 0;
}

.mona-content strong {
  font-weight: bold;
}

.mona-content em {
  font-style: italic;
}

.mona-content a {
  color: #bf2922;
}

.mona-content blockquote {
  margin: 20px;
  padding: 10px;
  border-left: 4px solid #e5be95;
}

.mona-content table {
  max-width: 100%;
  border-collapse: collapse;
  width: auto;
  margin-bottom: 40px;
}

.mona-content table th,
.mona-content table td {
  border: 1px solid #bdbdbd;
  padding: 5px 10px;
  vertical-align: middle;
}

.clearfix:before {
  display: table;
  content: " ";
}

.clearfix:after {
  content: "";
  display: table;
  clear: both;
}

.mona-content ul,
.mona-content ol {
  padding-left: 40px;
  margin-bottom: 20px;
  list-style-position: outside;
}

.mona-content h1 {
  margin: 10px 0;
  font-size: 36px;
}

.mona-content h2 {
  font-size: 30px;
  margin: 10px 0;
}

.mona-content h3 {
  font-size: 24px;
  margin: 10px 0;
}

.mona-content h4 {
  font-size: 20px;
  margin: 10px 0;
}

.mona-content h5 {
  font-size: 18px;
  margin: 10px 0;
}

.mona-content h6 {
  font-size: 16px;
  margin: 10px 0;
}

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

#add_payment_method table.cart img,
.woocommerce-cart table.cart img,
.woocommerce-checkout table.cart img {
  width: 100px;
}

#add_payment_method table.cart .product-thumbnail,
.woocommerce-cart table.cart .product-thumbnail,
.woocommerce-checkout table.cart .product-thumbnail {
  width: 100px;
}

#add_payment_method table.cart input,
.woocommerce-cart table.cart input,
.woocommerce-checkout table.cart input,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  font-family: inherit;
  width: 100%;
  height: 40px;
  font-size: 14px;
  border: solid 1px #e1e1e1;
  padding: 10px 15px;
  line-height: 20px;
  outline: 0;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.woocommerce form .form-row textarea.input-text {
  min-height: 100px;
}

#add_payment_method table.cart input[type="number"],
.woocommerce-cart table.cart input[type="number"],
.woocommerce-checkout table.cart input[type="number"] {
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
  appearance: textfield;
  padding: 5px;
}

.woocommerce a.remove,
.woocommerce .cart .button,
.woocommerce .cart input.button {
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background-color: #384259;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background-color: #001a54;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background-color: #001a54;
  color: #fff;
}

#coupon_code {
  height: 28px;
}

.woocommerce table.shop_table th {
  background: #384259;
  color: #fff;
}

.cart-collaterals .cart_totals h2 {
  font-size: 20px;
}

.cart-collaterals .cart_totals > h2,
.woocommerce-additional-fields > h3,
.woocommerce-billing-fields > h3,
#order_review_heading {
  font-size: 20px;
  color: #384259;
}

.woocommerce table.shop_table.woocommerce-checkout-review-order-table tfoot th {
  background: #fff;
  color: #000;
}

.mona-wrapper-404 {
  width: 700px;
  margin: auto;
  max-width: 100%;
  background: #f5f5f5;
  padding: 40px;
  text-align: center;
  box-shadow: 0 0 10px 0px #9c9c9c;
  -webkit-box-shadow: 0 0 10px 0px #9c9c9c;
  border-radius: 5px;
}

.mona-wrapper-404 .title-404 {
  font-size: 100px;
  margin: 0;
  color: #b91c1c;
}

.mona-wrapper-404 .content-404 {
  font-style: italic;
  margin: 0;
  margin-bottom: 20px;
}

.mona-wrapper-404 .mona-button-style {
  text-decoration: none;
  text-transform: uppercase;
  font-weight: normal;
  border: 1px solid #b91d1c;
  padding: 10px 20px;
  border-radius: 10px;
  box-sizing: border-box;
  display: inline-block;
  font-size: 15px;
  transition: all 0.3s ease-in-out;
  -webkit-transition: all 0.3s ease-in-out;
}

.mona-wrapper-404 .mona-button-style:hover {
  background: #b91d1c;
  color: #fff;
}

ul.wc-item-meta li {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 12px;
}

ul.wc-item-meta li strong.wc-item-meta-label {
  font-weight: bold;
}

/* Product Origin (Xuất xứ) */
.prddt-prd-origin {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
}

.prddt-prd-origin .origin-label {
  color: #666;
  display: flex;
  align-items: center;
  gap: 5px;
}

.prddt-prd-origin .origin-label i {
  color: #e31837;
}

.prddt-prd-origin .origin-value {
  font-weight: 600;
  color: #e31837;
}

/* ===========================================
   Subcategories Display on Category Page
   =========================================== */
.pcate-subcategories {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.subcate-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}

.subcate-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  transition: all 0.3s ease;
  text-decoration: none;
  min-width: 100px;
  gap: 8px;
}

.subcate-item:hover {
  border-color: #e31837;
  box-shadow: 0 2px 8px rgba(227, 24, 55, 0.15);
}

.subcate-item .subcate-img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
}

.subcate-item .subcate-img img {
  max-height: 40px;
  max-width: 80px;
  width: auto;
  object-fit: contain;
}

.subcate-item .subcate-name {
  font-weight: 600;
  font-size: 12px;
  color: #333;
  text-align: center;
  line-height: 1.3;
}

.subcate-item:hover .subcate-name {
  color: #e31837;
}

/* ===========================================
   Price Filter Checkboxes
   =========================================== */
.pcate-fillc-price {
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

.price-filter-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-filter-checkboxes .recheck-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.price-filter-checkboxes .recheck-item:hover {
  background: #f5f5f5;
}

.price-filter-checkboxes .recheck-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.price-filter-checkboxes .recheck-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 50%;
  margin-right: 10px;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.price-filter-checkboxes .recheck-input:checked + .recheck-checkbox {
  background: #e31837;
  border-color: #e31837;
}

.price-filter-checkboxes .recheck-input:checked + .recheck-checkbox::after {
  content: '';
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.price-filter-checkboxes .recheck-text {
  font-size: 14px;
  color: #333;
}

/* Custom Price Range Inputs */
.price-custom-range {
  padding-top: 15px;
  border-top: 1px dashed #ddd;
}

.price-inputs-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-input-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  position: relative;
}

.price-input-wrap .price-input {
  width: 100%;
  padding: 8px 25px 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.price-input-wrap .price-input:focus {
  border-color: #e31837;
  outline: none;
}

.price-input-wrap .price-suffix {
  position: absolute;
  right: 8px;
  color: #999;
  font-size: 12px;
}

.price-separator {
  color: #999;
  font-weight: 600;
}

/* Price Range Slider */
.price-slider-wrap {
  position: relative;
  height: 30px;
  margin: 10px 0;
}

.price-slider-track {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 6px;
  background: #ddd;
  border-radius: 3px;
}

.price-slider-range {
  position: absolute;
  height: 100%;
  background: linear-gradient(90deg, #ff6b00, #e31837);
  border-radius: 3px;
}

.price-slider {
  position: absolute;
  width: 100%;
  height: 6px;
  top: 50%;
  transform: translateY(-50%);
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
}

.price-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #fff;
  border: 3px solid #ff6b00;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

.price-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.price-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #fff;
  border: 3px solid #ff6b00;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Hide number input arrows */
.price-input::-webkit-outer-spin-button,
.price-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.price-input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

@media (max-width: 768px) {
  .subcate-list {
    gap: 8px;
  }

  .subcate-item {
    padding: 8px 12px;
    min-width: 80px;
  }

  .subcate-item .subcate-img img {
    max-height: 30px;
  }

  .subcate-item .subcate-name {
    font-size: 11px;
  }

  .price-inputs-row {
    flex-wrap: wrap;
  }

  .price-input-wrap {
    min-width: 45%;
  }
}

/* ===========================================
   Subcategories - Chỉ hiển thị tên
   =========================================== */
.subcate-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: #fff;
  transition: all 0.3s ease;
  text-decoration: none;
}

.subcate-item:hover {
  border-color: #e31837;
  background: #fff5f5;
}

.subcate-item .subcate-name {
  font-weight: 600;
  font-size: 13px;
  color: #333;
}

.subcate-item .subcate-count {
  font-size: 12px;
  color: #999;
}

.subcate-item:hover .subcate-name {
  color: #e31837;
}

/* ===========================================
   Product Card - Hover Effects & Badges
   =========================================== */

/* ===========================================
   Product Card - Simple Hover Effect
   =========================================== */

/* Card hover - mở rộng card với shadow */
.prd-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prd-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Viền cam khi hover */
.prd-card:hover .prd-card-inner {
  border-color: #ff6b00;
}

.prd-card-inner {
  border: 2px solid transparent;
  border-radius: 8px;
  transition: border-color 0.3s ease;
  background: #fff;
}

/* Image container - giữ nguyên tỷ lệ ảnh */
.prd-card-img {
  position: relative;
  overflow: visible;
}

.prd-card-img .inner {
  display: block;
}

.prd-card-img .inner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Nút CTA khi hover - đặt dưới ảnh */
.prd-card-cta {
  display: block;
  text-align: center;
  background: #ff6b00;
  color: #fff;
  padding: 10px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  text-transform: uppercase;
  margin: 10px 15px 0;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.prd-card-cta:hover {
  background: #e65c00;
  color: #fff;
}

.prd-card:hover .prd-card-cta {
  opacity: 1;
  max-height: 50px;
  margin-bottom: 10px;
}

/* Badges giảm giá */
.prd-card-badges {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 5;
}

.prd-badge {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.prd-badge-save {
  background: #e31837;
  color: #fff;
}

.prd-badge-flash {
  background: #ff9800;
  color: #fff;
}

.prd-badge-flash i {
  margin-right: 3px;
}

/* Giá với hiệu ứng sale */
.prd-card-price.has-sale {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.prd-card-price .price-sale {
  color: #e31837;
  font-weight: 700;
  font-size: 16px;
}

.prd-card-price .price-sale .woocommerce-Price-amount {
  color: #e31837;
}

.prd-card-price .price-regular {
  color: #999;
  font-size: 13px;
  text-decoration: line-through;
}

.prd-card-price .price-regular .woocommerce-Price-amount {
  color: #999;
}

/* Ẩn badge cũ */
.prd-card-sale {
  display: none;
}

@media (max-width: 768px) {
  .prd-card-cta {
    padding: 8px 15px;
    font-size: 12px;
  }

  .prd-badge {
    padding: 3px 8px;
    font-size: 10px;
  }

  .prd-card-price .price-sale {
    font-size: 14px;
  }

  .prd-card-price .price-regular {
    font-size: 12px;
  }
}

/* ===========================================
   Category Header - 2 dòng layout
   =========================================== */

/* Dòng 1: Tiêu đề category */
.pcate-title-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.pcate-title-row .pcate-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.pcate-title-row .filter-product-count {
  font-size: 14px;
  color: #666;
  background: #f0f0f0;
  padding: 4px 12px;
  border-radius: 20px;
}

/* Dòng 2: Search + Sort + Filter */
.pcate-heads-row2 {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* Search box - mở rộng tối đa */
.pcate-search-inline {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 4px;
  flex: 1;
  min-width: 280px;
}

.pcate-search-inline .search-icon {
  padding: 0 12px;
  color: #999;
}

.pcate-search-input {
  border: none;
  background: transparent;
  padding: 12px 15px;
  flex: 1;
  font-size: 14px;
  outline: none;
}

.pcate-search-input::placeholder {
  color: #999;
}

.pcate-search-btn {
  background: #ff6b00;
  border: none;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  font-weight: 500;
  font-size: 14px;
}

.pcate-search-btn:hover {
  background: #e65c00;
}

/* Sort + Filter button */
.pcate-heads-row2 .b-group {
  flex-shrink: 0;
}

.pcate-heads-row2 .pcate-open {
  flex-shrink: 0;
  margin-left: auto;
}

/* Ẩn search trong sidebar */
.m-filter-search {
  display: none;
}

@media (max-width: 768px) {
  .pcate-title-row .pcate-title {
    font-size: 22px;
  }

  .pcate-search-inline {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
  }

  .pcate-heads-row2 {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .pcate-heads-row2 .b-group {
    width: 100%;
  }

  .pcate-heads-row2 .pcate-open {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
   AJAX Filter Loading & Empty States
   ======================================== */

/* Loading overlay */
.monaPostsList.processing {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
  min-height: 300px;
}

.monaPostsList.processing::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #ff6b00;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  z-index: 100;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Empty state */
.pcate-list.pcate-empty {
  padding: 60px 20px;
  text-align: center;
  background: #f9f9f9;
  border-radius: 8px;
  margin: 20px 0;
}

.pcate-empty .empty-message {
  max-width: 400px;
  margin: 0 auto;
}

.pcate-empty .empty-message i {
  font-size: 48px;
  color: #ccc;
  margin-bottom: 20px;
}

.pcate-empty .empty-message p {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}

.pcate-empty .m-clear-filter {
  background: #ff6b00;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}

.pcate-empty .m-clear-filter:hover {
  background: #e55a00;
}

/* AJAX Pagination */
.ajax-pagination {
  text-align: center;
  padding: 30px 0;
  margin-top: 20px;
}

.ajax-pagination .pagination-info {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
}

.ajax-pagination .ajax-load-more {
  background: #ff6b00;
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
}

.ajax-pagination .ajax-load-more:hover {
  background: #e55a00;
  transform: translateY(-2px);
}

/* Filter product count */
.filter-product-count {
  font-size: 14px;
  color: #666;
  margin-left: 10px;
}

/* ===========================================
   Search Autocomplete
   =========================================== */
.pcate-search-inline {
  position: relative;
}

.search-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
}

.autocomplete-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #eee;
  transition: background 0.2s ease;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover {
  background: #f5f5f5;
}

.autocomplete-item img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #eee;
}

.autocomplete-item div {
  flex: 1;
  min-width: 0;
}

.autocomplete-item .ac-title {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.autocomplete-item .ac-price {
  display: block;
  font-size: 13px;
  color: #e31837;
  font-weight: 600;
}


/* ===========================================
   Header V2 - Redesigned Layout
   =========================================== */

/* Header 2 rows layout */
.header.header-v2 .header-wrap {
  display: none; /* Hide old structure */
}

.header.header-v2 .container {
  display: flex;
  flex-direction: column;
}

/* Row 1: Logo + Search + Actions */
.header-top {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 0;
}

.header-top .header-logo {
  flex-shrink: 0;
}

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

/* Search Bar Inline - centered with flex grow */
.header-search-inline {
  flex: 1;
  position: relative;
}

/* Push actions to far right */
.header-actions {
  margin-left: auto;
}

.header-search-form {
  width: 100%;
}

.header-search-input-wrap {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  overflow: hidden;
}

.header-search-input-wrap:focus-within {
  border-color: #ff6b00;
  background: #fff;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.15);
}

.header-search-icon {
  padding: 0 15px;
  color: #999;
  font-size: 16px;
}

.header-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 10px;
  font-size: 15px;
  outline: none;
  min-width: 200px;
}

.header-search-input::placeholder {
  color: #999;
}

.header-search-btn {
  background: #ff6b00;
  border: none;
  color: #fff;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  white-space: nowrap;
}

.header-search-btn:hover {
  background: #e65c00;
}

/* Autocomplete dropdown */
.header-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
  display: none;
}

.header-autocomplete.show {
  display: block;
}

.header-ac-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s ease;
}

.header-ac-item:hover {
  background: #fff8f5;
}

.header-ac-item:last-child {
  border-bottom: none;
}

.header-ac-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 4px;
  background: #f9f9f9;
}

.header-ac-info {
  flex: 1;
  min-width: 0;
}

.header-ac-title {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-ac-price {
  display: block;
  font-size: 14px;
  color: #e31837;
  font-weight: 600;
  margin-top: 4px;
}

.header-ac-all {
  display: block;
  text-align: center;
  padding: 12px;
  background: #f9f9f9;
  color: #ff6b00;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
}

.header-ac-all:hover {
  background: #ff6b00;
  color: #fff;
}

.header-ac-item.focused {
  background: #fff8f5;
  outline: 2px solid #ff6b00;
}

/* Actions - Shopee style compact */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-actions .header-action-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: transparent;
  transition: all 0.2s ease;
}

.header-actions .header-action-icon .icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-actions .header-action-icon .icon i {
  font-size: 20px;
  color: #555;
}

.header-actions .header-action-icon:hover {
  background: #f5f5f5;
}

.header-actions .header-action-icon:hover .icon i {
  color: #ff6b00;
}

.header-actions .header-action-icon.active .icon i {
  color: #e31837;
}

.header-cart {
  position: relative;
}

.header-cart .btn {
  background: #ff6b00;
  border-radius: 4px;
  padding: 8px 16px;
  height: 38px;
  display: flex;
  align-items: center;
}

.header-cart .btn .btn-inner {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-cart .btn .icon i {
  font-size: 15px;
}

.header-cart .btn .text {
  font-size: 13px;
  font-weight: 600;
}

.header-cart .btn:hover {
  background: #e65c00;
}

.header-cart .tnum {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #e31837;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* Row 2: Navigation - Clean white nav bar */
.header-bottom {
  background: #fff;
  border-top: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: relative;
  z-index: 100;
}

.header-bottom .header-nav {
  width: 100%;
  height: inherit;
  margin: 0 auto;
}

.header-bottom .header-nav .menu {
  height: inherit;
}

.header-bottom .menu-nav,
.header-nav .menu-nav {
  display: flex;
  justify-content: center;
}

.header-bottom .menu-nav > .menu-list,
.header-nav .menu-nav > .menu-list {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
  align-items: center;
}

.header-bottom .menu-nav > .menu-list > .menu-item,
.header-nav .menu-nav > .menu-list > .menu-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

/* Top level menu items */
.header-bottom .menu-nav > .menu-list > .menu-item > a,
.header-bottom .menu-nav > .menu-list > .menu-item > .menu-link,
.header-nav .menu-nav > .menu-list > .menu-item > .menu-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  color: #333;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
  text-transform: uppercase;
}

.header-bottom .menu-nav > .menu-list > .menu-item > a::after,
.header-bottom .menu-nav > .menu-list > .menu-item > .menu-link::after,
.header-nav .menu-nav > .menu-list > .menu-item > a::after,
.header-nav .menu-nav > .menu-list > .menu-item > .menu-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  background: #ff6b00;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.header-bottom .menu-nav > .menu-list > .menu-item:hover > a::after,
.header-bottom .menu-nav > .menu-list > .menu-item:hover > .menu-link::after,
.header-bottom .menu-nav > .menu-list > .menu-item.current-menu-item > a::after,
.header-nav .menu-nav > .menu-list > .menu-item:hover > a::after,
.header-nav .menu-nav > .menu-list > .menu-item:hover > .menu-link::after,
.header-nav .menu-nav > .menu-list > .menu-item.current-menu-item > a::after {
  transform: scaleX(1);
}

.header-bottom .menu-nav > .menu-list > .menu-item:hover > a,
.header-bottom .menu-nav > .menu-list > .menu-item:hover > .menu-link,
.header-bottom .menu-nav > .menu-list > .menu-item.current-menu-item > a,
.header-nav .menu-nav > .menu-list > .menu-item:hover > a,
.header-nav .menu-nav > .menu-list > .menu-item:hover > .menu-link,
.header-nav .menu-nav > .menu-list > .menu-item.current-menu-item > a {
  color: #ff6b00;
}

/* Mega menu dropdown - Copy from original template */
@media screen and (min-width: 1201px) {
  .header-nav .menu-item:hover > .menu-mega {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.header-nav .menu-item > .menu-mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: #fff;
  transform: translateY(0.5rem);
  transition: 0.3s ease-in-out;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
}

/* Keep menu-item relative for proper top positioning */
.header-nav .menu-nav > .menu-list > .menu-item {
  position: relative;
}

.header-nav .menu-item > .menu-mega .menu-mega-py {
  box-shadow: 0px 0.4rem 3rem 0px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  max-height: calc(100vh - var(--size-hd));
  position: relative;
}

.header-nav .menu-item > .menu-mega .menu-mega-pri {
  padding: 2.4rem;
  height: 100%;
  background: linear-gradient(315deg, rgba(255, 255, 255, 0.81) 0%, rgba(255, 255, 255, 0) 100%), linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%);
  position: relative;
}

.header-nav .menu-item > .menu-mega .menu-mega-pri::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: #e27237;
  backdrop-filter: blur(2.5rem);
  z-index: -1;
}

.header-nav .menu-item > .menu-mega .menu-mega-pri .t-title {
  color: #fff;
  font-size: 2.4rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}

.header-nav .menu-item > .menu-mega .menu-mega-pri .menu-mega-list .menu-mega-item .menu-mega-link {
  font-size: 1.8rem;
  text-transform: uppercase;
  color: #fff;
}

.header-nav .menu-item > .menu-mega .menu-mega-pri .menu-mega-list .menu-mega-item::after {
  color: #fff;
}

.header-nav .menu-item > .menu-mega .menu-mega-pri .menu-mega-list .menu-mega-item.active .menu-mega-link,
.header-nav .menu-item > .menu-mega .menu-mega-pri .menu-mega-list .menu-mega-item:hover .menu-mega-link {
  color: #031230;
}

.header-nav .menu-item > .menu-mega .menu-mega-pri .menu-mega-list .menu-mega-item.active::after,
.header-nav .menu-item > .menu-mega .menu-mega-pri .menu-mega-list .menu-mega-item:hover::after {
  color: #031230;
}

.header-nav .menu-item > .menu-mega .megaPanel {
  display: none;
}

.header-nav .menu-item > .menu-mega .megaPanel.open {
  display: block;
  animation: fadeIn 0.75s ease-in;
}

.header-nav .menu-item > .menu-mega .menu-mega-row {
  display: flex;
  margin: 0 -1.2rem;
  width: 100%;
}

.header-nav .menu-item > .menu-mega .menu-mega-left {
  width: 20%;
  padding: 0 1.2rem;
}

.header-nav .menu-item > .menu-mega .menu-mega-right {
  width: 80%;
  padding: 0 1.2rem;
}

.header-nav .menu-item > .menu-mega .menu-mega-list {
  display: flex;
  flex-direction: column;
  row-gap: 1.8rem;
  margin-top: 1.6rem;
}

.header-nav .menu-item > .menu-mega .menu-mega-item {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  transition: 0.3s ease-in-out;
  align-items: center;
  cursor: pointer;
}

.header-nav .menu-item > .menu-mega .menu-mega-item.active .menu-mega-link {
  color: #f66315;
}

.header-nav .menu-item > .menu-mega .menu-mega-item.active::after {
  color: #f66315;
}

@media (hover: hover) {
  .header-nav .menu-item > .menu-mega .menu-mega-item:hover .menu-mega-link {
    color: #f66315;
  }
  .header-nav .menu-item > .menu-mega .menu-mega-item:hover::after {
    color: #f66315;
  }
}

.header-nav .menu-item > .menu-mega .menu-mega-item::after {
  content: "\f054";
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Font Awesome 6 Pro";
  transition: 0.3s ease-in-out;
  color: #fff;
}

.header-nav .menu-item > .menu-mega .menu-mega-link {
  font-size: 1.6rem;
  font-weight: 500;
  color: #444545;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.header-nav .menu-item > .menu-mega .menu-mega-side {
  padding: 2.4rem 0;
}

.header-nav .menu-item > .menu-mega .menu-mega-flex {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -1.6rem;
  row-gap: 2rem;
}

.header-nav .menu-item > .menu-mega .menu-mega-col {
  width: 25%;
  padding: 0 1.6rem;
}

.header-nav .menu-item > .menu-mega .menu-mega-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 0.1rem solid #031230;
  font-size: 1.8rem;
  font-weight: 500;
  text-transform: uppercase;
  transition: 0.3s ease-in-out;
  color: #f66315;
}

.header-nav .menu-item > .menu-mega .menu-mega-head a {
  color: inherit;
  text-decoration: none;
}

.header-nav .menu-item > .menu-mega .menu-mega-head a:hover {
  color: #031230;
}

@media screen and (min-width: 1201px) {
  .header-nav .menu-item > .menu-mega .menu-mega-head .icon {
    display: none;
  }
}

.header-nav .menu-item > .menu-mega .menu-mega-box .menu-mega-list {
  row-gap: 0.6rem;
  margin-top: 1rem;
}

.header-nav .menu-item > .menu-mega .menu-mega-box .menu-mega-list .menu-mega-item::after {
  display: none;
}

.header-nav .menu-item > .menu-mega .menu-mega-box .menu-mega-list .menu-mega-item .menu-mega-link {
  color: #444545;
  font-size: 1.4rem;
  text-transform: none;
  font-weight: 400;
}

.header-nav .menu-item > .menu-mega .menu-mega-box .menu-mega-list .menu-mega-item:hover .menu-mega-link {
  color: #f66315;
}

.header-nav .menu-item > .menu-mega .menu-mega-box .btn {
  margin: unset;
  padding: unset;
  background: unset;
}

.header-nav .menu-item > .menu-mega .menu-mega-box .btn .btn-inner {
  padding: 0 0.2rem;
}

.header-nav .menu-item > .menu-mega .menu-mega-box .btn .btn-inner .text {
  color: #f66315;
  line-height: 1.55;
}

@media (hover: hover) {
  .header-nav .menu-item > .menu-mega .menu-mega-box .btn .btn-inner .text:hover {
    color: #031230;
  }
}

.header-nav .menu-item > .menu-mega .menu-mega-box .btn::before {
  display: none;
}

/* Mega scroll */
.header-nav .menu-item > .menu-mega .mega-scroll {
  max-height: 60vh;
  overflow-y: auto;
}

/* None PC elements in mega menu */
@media screen and (min-width: 1201px) {
  .header-nav .menu-item > .menu-mega .none-pc {
    display: none;
  }
}

/* Simple dropdown (non-mega) - for menu items without mega menu */
.header-nav .menu-nav > .menu-list > .menu-item > .menu-list {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 2px 10px;
  transition: 0.3s ease-in-out;
  padding-left: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  z-index: 1000;
}

@media screen and (min-width: 1201px) {
  .header-nav .menu-nav > .menu-list > .menu-item:hover > .menu-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.header-nav .menu-nav > .menu-list > .menu-item > .menu-list > .menu-item {
  padding: 0.8rem 0;
  width: 100%;
}

.header-nav .menu-nav > .menu-list > .menu-item > .menu-list > .menu-item > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #444545;
  font-size: 1.4rem;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.2s ease;
}

.header-nav .menu-nav > .menu-list > .menu-item > .menu-list > .menu-item:hover > a {
  color: #f66315;
}

/* Hide burger on desktop */
.header-v2 .header-burger {
  display: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .header-search-inline {
    max-width: 400px;
  }

  .header-search-btn span {
    display: none;
  }

  .header-search-btn::before {
    content: '\f002';
    font-family: 'Font Awesome 6 Pro';
    font-weight: 300;
  }

  .header-search-btn {
    padding: 14px 18px;
  }

  .header-bottom .menu-link {
    padding: 12px 15px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .header-top {
    flex-wrap: wrap;
    gap: 10px;
  }

  .header-v2 .header-burger {
    display: block;
    order: 1;
  }

  .header-top .header-logo {
    order: 2;
    flex: 1;
  }

  .header-actions {
    order: 3;
  }

  .header-search-inline {
    order: 4;
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }

  .header-bottom {
    display: none;
  }

  .header-cart .btn .text {
    display: none;
  }

  .header-cart .btn {
    padding: 10px 12px;
  }
}
