.woocommerce-product-rating {
  display: flex;
  align-items: center;
  margin: 8px 0;
}

.star-rating {
  overflow: hidden;
  position: relative;
  height: 1.2em;
  line-height: 1;
  font-size: 14px; /* Kích thước ngôi sao */
  width: 5.4em; /* Độ rộng bắt buộc cho 5 ngôi sao */
  font-family: Arial, sans-serif;
  color: #e2e8f0; /* Màu của sao rỗng (Màu xám nhạt Premium) */
}

.star-rating::before {
  content: '★★★★★';
  opacity: 1;
  position: absolute;
  top: 0;
  left: 0;
}

.star-rating span {
  overflow: hidden;
  float: left;
  top: 0;
  left: 0;
  position: absolute;
  padding-top: 1.2em;
  color: #ffb500; /* Màu của sao đặc (Màu vàng kim Premium) */
}

.star-rating span::before {
  content: '★★★★★';
  position: absolute;
  top: 0;
  left: 0;
}

:root {
  --color-theme: #e11d48;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  background: #f5f5f7;
  color: #374151;
  font-size: 14px;
  font-family: 'M PLUS U', sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
}

ul,
ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

table {
  border-collapse: collapse;
}

iframe {
  border: 0;
}

::selection {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.icon-svg {
  display: block;
  width: 24px;
  height: 24px;
  stroke: #1f2937;
  stroke-width: 1.5;
}

.shop-header {
  background: #fff;
  width: 100%;
  position:sticky;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 15px;
}

.shop-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  height: 60px;
}

.shop-header .header-left,
.shop-header .header-mid,
.shop-header .header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-header .header-logo {
  display: block;
}

.shop-header .header-logo img {
  width: 120px;
  height: auto;
  display: block;
}

.shop-header .header-nav {
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  width: 75%;
  background: #fff;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 1002;
}

.header-nav.active {
  transform: translateX(0);
}

.shop-header .header-menu {
  display: flex;
  flex-direction: column;
}

.shop-header .header-menu li a {
  display: block;
  padding: 10px 12px;
  font-size: 1rem;
  color: #0f172a;
  transition: color 0.3s ease;
  text-decoration: none;
}

.shop-header .header-menu li a:hover {
  color: #e11d48;
  background: rgba(225, 29, 72, 0.05);
}

.shop-header .nav-logo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1001;
  inset: 0;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-btn {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--color-theme);
  width: 18px;
  height: 18px;
  display: block;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
}

/* Main Product */

/* --- ACCESSIBILITY HELPER --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- MAIN SECTION LAYOUT --- */
.main-product {
}

.header-sec {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  text-align: left;
}

/* --- PRODUCT GRID (RESPONSIVE) --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 15px;
}

/* --- PRODUCT ITEM CARD --- */
.product-item {
  background-color: #ffffff;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 1px 2px 0 rgba(15, 23, 42, 0.03),
    0 4px 6px -1px rgba(15, 23, 42, 0.05),
    0 10px 15px -3px rgba(15, 23, 42, 0.03);
}

/* .product-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
} */

/* --- PRODUCT THUMBNAIL (MEDIA) --- */
.product-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: #f5f5f7;
  overflow: hidden;
  margin-bottom: 10px;
  position: relative;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.product-item:hover .product-thumb img {
  transform: scale(1.04);
}

.product-label {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--color-theme);
  padding: 5px 10px;
  border-radius: 5px;
  color: #fff;
}

/* --- PRODUCT TITLE --- */
.product-title {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 8px 0;
  padding: 0 15px;
}

.product-title a {
  color: #0f172a;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-title a:hover {
  color: #e11d48;
}

/* --- PRODUCT MID (RATING & SOLD) --- */
.product-mid {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 10px;
  padding: 0 15px;
}

.product-rating {
  color: #f59e0b;
  letter-spacing: 2px;
}

.product-sold {
  color: #6b7280;
  font-weight: 500;
}

/* --- PRODUCT BOTTOM (PRICING & BUTTONS) --- */
.product-bottom {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 12px;
  column-gap: 8px;
  align-items: baseline;
  padding: 0 15px 15px 15px;
}

.product-price-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  flex-direction: row-reverse;
  width: 100%;
}

.current-price,
ins .woocommerce-Price-amount, .woocommerce-Price-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none !important ;
}

.original-price,
del .woocommerce-Price-amount.amount {
  font-size: 0.95rem;
  color: #6b7280;
  text-decoration: line-through;
  justify-self: end;
}

/* Dual Button UI Setup */
.buy-now,
.preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  cursor: pointer;
}

.buy-now {
  grid-column: span 2;
  background-color: #e11d48;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.15);
}

.buy-now:hover {
  background-color: #be185d;
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.25);
}

.preview {
  grid-column: span 2;
  background-color: transparent;
  color: #374151;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.preview:hover {
  background-color: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.15);
  color: #0f172a;
}

/* --- ACCESSIBILITY HELPER --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- SEARCH FORM CONTAINER --- */
.search-form {
  width: 100%;
  /* max-width: 350px; */
  position: fixed;
  top: 0;
  left: 0;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  z-index: 1003;
}

.search-form.active {
  transform: translateY(0);
}

.search-wrapper {
  height: 55px;
  position: relative;
  display: flex;
  align-items: center;
  /* background-color: #f5f5f7;  */
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  padding: 2px; /* Tạo khoảng đệm cách lề cho nút bấm bên trong */
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- SEARCH ICON (Kính lúp) --- */
.search-icon {
  position: absolute;
  left: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b7280; /* Màu xám Muted tinh tế */
  pointer-events: none; /* Tránh cản trở tương tác chuột vào input */
}

/* --- INPUT FIELD --- */
.search-input {
  width: 100%;
  height: 30px;
  padding: 0 16px 0 42px; /* Dành khoảng trống bên trái cho kính lúp */
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.95rem;
  font-weight: 400;
  color: #0f172a; /* Chữ xám đen đậm đà */
}

/* Placeholder cho shop sản phẩm số */
.search-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

/* Loại bỏ nút xóa mặc định rườm rà của một số trình duyệt để tự custom sau */
.search-input::-webkit-search-decoration,
.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-results-button,
.search-input::-webkit-search-results-decoration {
  display: none;
}

/* --- INTERACTIVE STATES (Hiệu ứng Focus cực mượt) --- */
/* .search-wrapper:focus-within {
  background-color: #ffffff; /* Đổi sang nền trắng tinh khi click vào */
  border-color: #e11d48; /* Viền chuyển sang màu Hồng Đỏ Accent thương hiệu */
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.08); /* Đổ bóng mờ mịn rộng ra xung quanh */
} */

.search-wrapper:focus-within .search-icon {
  color: #e11d48; /* Icon kính lúp tự động chuyển sang Hồng đỏ khi gõ chữ */
}

/* --- SUBMIT BUTTON --- */
.search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 18px;
  background-color: #0f172a; /* Màu Slate tối cao cấp làm nền cho nút */
  color: #ffffff;
  border: none;
  border-radius: 7px; /* Bo góc nhỏ hơn cha một chút tạo tỷ lệ lồng nhau hoàn hảo */
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-submit:hover {
  background-color: #e11d48; /* Khi hover vào nút bấm, chuyển sang Hồng đỏ công nghệ kích thích click */
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.2);
}

/* --- BACK TO TOP BUTTON CONTAINER --- */
.back-to-top {
  position: fixed;
  bottom: 15px;
  right: 15px;
  width: 44px;
  height: 44px;
  padding: 0;
  background-color: #ffffff; /* Nền trắng Premium */
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 9999;

  /* Căn giữa icon mũi tên */
  display: inline-flex;
  align-items: center;
  justify-content: center;

  /* Trạng thái ẩn mặc định: Đẩy nhẹ xuống và mờ dần */
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);

  /* Đổ bóng mịn màng tách biệt khỏi nội dung số phía dưới */
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.04);

  /* Báo hiệu cho trình duyệt chuẩn bị phần cứng trước khi chạy animation */
  will-change: transform, opacity, visibility;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Trạng thái kích hoạt khi cuộn xuống qua 300px */
.back-to-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Hiệu ứng Hover nhấc nhẹ tinh tế */
.back-to-top:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.08),
    0 12px 32px rgba(0, 0, 0, 0.06);
}

/* Đổi màu icon sang Hồng Đỏ Cyber khi hover */
.back-to-top:hover .arrow-icon {
  color: #e11d48;
}

/* --- SVG PROGRESS CIRCLE --- */
.progress-circle {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg); /* Xoay vòng tròn để tiến trình bắt đầu chạy từ đỉnh 12 giờ */
}

/* Vòng nền xám mờ ẩn phía dưới */
.progress-bg {
  fill: none;
  stroke: rgba(0, 0, 0, 0.03);
  stroke-width: 3;
}

/* Vòng tiến trình chính chạy theo lượng cuộn trang */
.progress-bar {
  fill: none;
  stroke: #0f172a; /* Màu Slate 900 thanh lịch chỉn chu */
  stroke-width: 1.5;
  stroke-linecap: round; /* Bo tròn đầu mút thanh tiến trình */

  /* Chu vi vòng tròn bán kính 18px: 2 * PI * 18 = 113.097 */
  stroke-dasharray: 113.1;
  stroke-dashoffset: 113.1; /* Mặc định rỗng hoàn toàn */

  transition: stroke-dashoffset 0.1s linear;
}

/* --- ARROW ICON --- */
.arrow-icon {
  color: #0f172a;
  display: inline-flex;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
  z-index: 2;
}

.back-to-top:active .arrow-icon {
  transform: translateY(-2px); /* Nhấp nháy nhẹ khi nhấn kích hoạt click */
}

/* --- SMOOTH SCROLL FOR WHOLE SITE --- */
html {
  scroll-behavior: smooth; /* Kích hoạt cuộn mượt gốc của trình duyệt */
}

/* --- Khối User Bao Ngoài --- */
.user-dropdown {
    position: relative;
    display: inline-block;
}

/* Nút kích hoạt dạng Viên thuốc (Pill style) cực tinh tế */
.user-dropdown .user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid #f1f5f9;
    padding: 5px;
    border-radius: 40px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.user-dropdown .user-btn:hover {
    background-color: #f8fafc;
    border-color: #e2e8f0;
}

/* Định dạng Avatar */
.user-dropdown .user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
}

.user-dropdown .avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Text tên hiển thị */
.user-dropdown .user-name {
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
}

.user-dropdown .chevron-icon {
    color: #64748b;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Kích hoạt Trạng thái Hover & Click JS --- */
.user-dropdown:hover .dropdown-nav,
.user-dropdown.is-active .dropdown-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown:hover .chevron-icon,
.user-dropdown.is-active .chevron-icon {
    transform: rotate(180deg);
}

/* --- Khối Dropdown Menu --- */
.user-dropdown .dropdown-nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 240px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
}

/* Mũi tên chỉ ngược lên Button chính xác */
.user-dropdown .dropdown-arrow {
    position: absolute;
    top: -6px;
    right: 24px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    transform: rotate(45deg);
    border-left: 1px solid #f1f5f9;
    border-top: 1px solid #f1f5f9;
}

/* Danh sách Menu bên trong */
.user-dropdown .dropdown-list {
    list-style: none;
    padding: 6px;
    margin: 0;
}

.user-dropdown .dropdown-info {
    padding: 8px 12px;
}

.user-dropdown .user-email {
    font-size: 12px;
    color: #64748b;
    word-break: break-all;
}

.user-dropdown .dropdown-divider {
    height: 1px;
    background-color: #f1f5f9;
    margin: 6px 0;
}

/* Các đường dẫn Menu liên kết */
.user-dropdown .dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.user-dropdown .dropdown-link svg {
    color: #64748b;
    transition: color 0.15s ease;
}

/* Hiệu ứng Hover Item chung */
.user-dropdown .dropdown-link:hover {
    background-color: #f8fafc;
    color: var(--color-theme); /* Tone màu tím Indigo chuyên nghiệp cho SaaS/Digital */
}

.user-dropdown .dropdown-link:hover svg {
    color: var(--color-theme);
}

/* Hiệu ứng Hover riêng cho nút Đăng xuất (Red Soft Alert) */
.user-dropdown .dropdown-link.is-logout:hover {
    background-color: #fef2f2;
    color: #ef4444;
}

.user-dropdown .dropdown-link.is-logout:hover svg {
    color: #ef4444;
}

/* ==========================================================================
   FOOTER COMPONENT
   ========================================================================== */

/* 1. Base & Reset */
.footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 48px 0 24px;
    font-size: 0.85rem;
    line-height: 1.6;
    width: 100%;
}



/* Screen reader only - Ẩn phần tử chuẩn SEO (Không dùng display: none) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #1e293b;
}

.footer-title {
    color: #f8fafc;
    font-size: 18px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 16px;
    text-transform: capitalize;
}

.footer-desc {
    margin: 0 0 16px 0;
}

/* Lists & Links */
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 12px;
}

.footer-link,
.footer-legal-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover,
.footer-legal-link:hover,
.footer-link:focus {
    color: var(--color-theme); /* Hover màu sáng cho UX tốt */
}

/* Tags */
.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-tag {
    background-color: #1e293b;
    color: #e2e8f0;
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.footer-tag:hover {
    background-color: #334155;
    color: var(--color-theme);
}

/* Newsletter Form */
.footer-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #334155;
    border-radius: 6px;
    background-color: #0f172a;
    color: #f8fafc;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.footer-input:focus {
    border-color: var(--color-theme);
}

.footer-btn {
    background-color: var(--color-theme);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

/* Bottom - Mặc định 1 cột */
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding-top: 24px;
    text-align: center;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-legal-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-payments {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.payment-icon {
    width: 40px;
    height: 25px;
    object-fit: contain;
    background-color: #ffffff;
    padding: 2px;
    border-radius: 4px;
}

/* ==========================================================================
   3. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Tablet (Xoay ngang hoặc iPad) */
@media (min-width: 768px) {
    .footer-main {
        grid-template-columns: repeat(2, 1fr); /* 2 Cột */
    }

    .footer-form {
        flex-direction: row; /* Input và Button nằm ngang */
    }

    .footer-btn {
        flex-shrink: 0;
    }
}

/* Desktop chuẩn (Màn hình lớn) */
@media (min-width: 1024px) {
    .footer-main {
        grid-template-columns: repeat(4, 1fr); /* 4 Cột như yêu cầu */
    }

    .footer-bottom {
        flex-direction: row; /* Dàn ngang 2 bên */
        justify-content: space-between;
        text-align: left;
    }

    .footer-legal {
        flex-direction: row;
        align-items: center;
        gap: 32px;
    }

    .footer-legal-list {
        justify-content: flex-start;
    }

    .footer-payments {
        justify-content: flex-end;
    }
}

@media (min-width: 768px) {

  .shop-header .header-menu li a {
        position: relative; /* Cần thiết để định vị đường line bên dưới */
        display: inline-block; /* Thay vì block, inline-block giúp đường line dài bằng đúng chiều rộng chữ */
        padding: 8px 0; /* Thu hẹp padding dọc, bỏ padding ngang để line không bị dư ra ngoài chữ */
        margin: 0 12px; /* Dùng margin để tạo khoảng cách giữa các mục thay cho padding */
        font-weight: 500; /* Tăng độ đậm một chút cho giao diện premium */
    }

    /* Tạo đường line ẩn ở giữa dưới chân chữ */
    .shop-header .header-menu li a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px; /* Độ dày mảnh, tinh tế chuẩn premium */
        background-color: var(--color-theme); /* Màu sắc đồng bộ với chữ hoặc dùng màu Accent của Brand */

        /* Điểm cốt lõi: Thu nhỏ line về 0 và đặt tâm biến đổi ở GIỮA (center) */
        transform: scaleX(0);
        transform-origin: center;

        /* Cubic-bezier giúp hiệu ứng có độ "nảy" tự nhiên, sang trọng hơn ease-in-out thông thường */
        transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    }

    /* Hiệu ứng khi Hover */
    .shop-header .header-menu li a:hover {
        color: var(--color-theme); /* Có thể đổi sang màu thương hiệu nếu muốn */
    background: transparent;

    }

    /* Kích hoạt đường line dài ra từ giữa */
    .shop-header .header-menu li a:hover::after {
        transform: scaleX(1);
    }

  .shop-header .container {
    height: 70px;
  }
  .search-form {
    position: static;
    transform: none;
    width: auto;
    height: auto;
    transform: none;
    transition: none;
    background: #6b7280;
  }

  .search-wrapper {
    height: 35px;
  }

  .shop-header .header-right {
    gap: 15px;
  }
  .menu-btn,
  .shop-header .nav-logo,
  .search-btn {
    display: none;
  }

  .shop-header .header-nav {
    position: static;
    transform: none;
    width: auto;
    height: auto;
    background: none;
    transform: none;
    transition: none;
  }

  .shop-header .header-menu {
    flex-direction: row;
    align-items: center;
  }
}
