@charset "UTF-8";
/* ============================================================
   STARTER THEME — GENERAL SCSS
   Scope: Global (load trên mọi trang)
   Chứa: Variables, Reset, Typography, Layout, Buttons, Forms,
          Header, Footer, Sidebar, Loading, Utilities
   ============================================================ */
/* ======================== ROOT VARIABLES ========================
   THAY ĐỔI THEO DỰ ÁN: Colors, Fonts, Spacing
   ============================================================ */
:root {
  /* Colors — BADASS New (Figma họ Casal). Xem .kiro/steering/brand-tokens.md */
  --color-primary: #0a6174;
  --color-primary-hover: #085566;
  --color-secondary: #067284;
  --color-accent: #0a6174;
  --color-text: #0a0a0a;
  --color-text-sub: #737373;
  --color-bg: #ffffff;
  --color-bg-alt: #f9f9f9;
  --color-border: #e5e5e5;
  --color-success: #22c55e;
  --color-error: #ef4444;
  /* Fonts — auto từ settings.theme_font_heading / theme_font_body */
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  /* ── Container / Layout ──
     Figma: Layout/Grid/Margin = 80px (desktop), 16px (mobile)
     max-width 1440px → nội dung tối đa 1280px (1440 - 80*2)
  */
  --container-max: 1600px;
  --container-padding: 16px;
  /* mobile */
  --container-padding-desk: 40px;
  /* desktop ≥992px — Figma Grid/Margin */
  /* Spacing */
  --section-padding: 60px;
  --section-padding-mobile: 40px;
  --gap: 16px;
  --radius: 4px;
  /* Header */
  --header-height: 70px;
  /* Transitions */
  --transition: 0.3s ease; }

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

html {
  -webkit-text-size-adjust: 100%;
  line-height: 1.5;
  scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased; }

@media (min-width: 992px) {
  body {
    font-size: 16px; } }

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition); }

a:hover {
  color: var(--color-primary); }

ul, ol {
  list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit; }

input, select, textarea {
  font: inherit;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 10px 12px;
  width: 100%;
  outline: none;
  transition: border-color var(--transition);
  color: var(--color-text);
  background: var(--color-bg); }

input[type="hidden"], input[type="submit"], input[type="checkbox"], input[type="radio"] {
  width: auto;
  padding: 0;
  border: none;
  background: none; }

input:focus, select:focus, textarea:focus {
  border-color: var(--color-primary); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--color-text); }

/* ======================== LAYOUT ========================
   Container duy nhất — dùng cho mọi section trên toàn site
   Mobile:  padding 16px (--container-padding)
   Desktop: padding 80px (--container-padding-desk, Figma Grid/Margin)
   Max-width: 1600px
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding); }

@media (min-width: 992px) {
  .container {
    padding-left: var(--container-padding-desk);
    padding-right: var(--container-padding-desk); } }

/* Full-bleed wrapper — dùng khi section cần bg full width
   nhưng nội dung bên trong vẫn dùng .container */
.container--fluid {
  width: 100%;
  padding-left: 0;
  padding-right: 0; }

/* Main content area */
.main-content {
  min-height: 40vh; }

/* Utility */
.d-none {
  display: none !important; }

@media (min-width: 992px) {
  .d-lg-none {
    display: none !important; } }

@media (max-width: 991px) {
  .d-none-mobile {
    display: none !important; } }

.d-lg-flex {
  display: none !important; }

@media (min-width: 992px) {
  .d-lg-flex {
    display: flex !important; } }

/* ======================== BUTTONS ======================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
  text-transform: uppercase; }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border: 1px solid var(--color-primary); }

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

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary); }

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

.btn-full {
  width: 100%; }

.btn.loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative; }

.btn.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .6s linear infinite; }

@keyframes spin {
  to {
    transform: rotate(360deg); } }

@media (min-width: 992px) {
  .btn {
    height: 50px;
    padding: 0 32px;
    font-size: 15px; } }

/* ======================== TOPBAR ========================
   Figma: gradient casal/900→800→900, text white 14/18 regular
   ============================================================ */
.topbar {
  background: #0a0a0a;
  overflow: hidden;
  height: 30px;
  display: flex;
  align-items: center;
  position: relative;
  white-space: nowrap; }

.topbar__track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  animation: topbar-scroll 22s linear infinite;
  gap: 80px; }

.topbar__text {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 30px;
  letter-spacing: -0.1px;
  color: #fff;
  flex-shrink: 0;
  white-space: nowrap; }

@keyframes topbar-scroll {
  0% {
    transform: translateX(0); }
  100% {
    transform: translateX(-50%); } }

@media (min-width: 992px) {
  .topbar__track {
    animation: none;
    justify-content: center;
    width: 100%; }
  .topbar__text:last-child {
    display: none; } }

/* ── Topbar multi-text (2-3 nội dung chạy tự động) ── */
.topbar__multi {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
  height: 30px; }

.topbar__item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 30px;
  letter-spacing: -0.1px;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none; }

.topbar__item.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto; }

@media (prefers-reduced-motion: reduce) {
  .topbar__item {
    transition: none; } }

/* ======================== HEADER ========================
   Figma: node 40009482:91327
   bg white, shadow MD, padding 20px 40px 16px
   ============================================================ */
/* ── Header group wrapper ── */
.site-header-group {
  position: sticky;
  top: 0;
  z-index: 100; }

.site-header {
  background: #fff;
  box-shadow: none;
  transition: box-shadow 0.25s ease; }

.site-header-group.is-sticky .site-header {
  box-shadow: 0 4px 8px rgba(16, 24, 40, 0.1), 0 2px 4px rgba(16, 24, 40, 0.06); }

/* trang chủ + landing: main-content không cần margin vì header đã sticky tách riêng */
.template-index .main-content,
.template-page-landing .main-content {
  margin-top: 0; }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  /* Dùng chung container padding — không tự định nghĩa padding riêng */
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 14px var(--container-padding);
  position: relative; }

@media (min-width: 992px) {
  .site-header__inner {
    padding-top: 20px;
    padding-bottom: 16px;
    padding-left: 40px;
    padding-right: 40px; } }

@media (max-width: 991.98px) {
  /* Layout 3 cột cân đối: hamburger | logo (căn giữa) | actions */
  .site-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0; }
  .site-header__hamburger {
    justify-self: flex-start;
    order: 1; }
  .site-header__logo {
    position: static;
    transform: none;
    justify-self: center;
    order: 2; }
  .site-header__nav {
    display: none; }
  /* ẩn desktop nav */
  .site-header__actions {
    justify-self: flex-end;
    margin-left: 0;
    gap: 12px;
    order: 3; }
  /* Ẩn icon search trên mobile (có nút tìm kiếm riêng khi mở menu) */
  .site-header__action--search {
    display: none; }
  .site-header__action-label {
    display: none; }
  .site-header__actons-left {
    display: flex;
    align-items: center;
    gap: 12px;
    order: 1; }
    .site-header__actons-left .site-header__action--search {
      order: 2; } }

/* ── Hamburger (mobile only) ── */
.site-header__hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #0a0a0a;
  flex-shrink: 0; }

@media (min-width: 992px) {
  .site-header__hamburger {
    display: none; } }

/* ── Logo ── */
.site-header__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  position: relative; }

.site-header__logo-default {
  width: 160px;
  height: 30px;
  display: block;
  object-fit: contain; }

.site-header__logo-overlay {
  width: 160px;
  height: 30px;
  object-fit: contain;
  display: none; }

/* Scrolled / trang khác: hiện logo default, ẩn logo overlay */
.site-header__logo-overlay {
  display: none; }

@media (max-width: 991px) {
  .site-header__logo-default,
  .site-header__logo-overlay {
    width: 120px;
    height: auto; } }

/* ── Desktop Nav ── */
.site-header__nav {
  display: none;
  flex: 1 1 0;
  min-width: 0; }

@media (min-width: 992px) {
  .site-header__nav {
    display: flex;
    align-items: center;
    justify-content: center; } }

.nav-list {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0; }

.nav-list__item {
  position: relative; }

.nav-list__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 23px;
  letter-spacing: -0.1px;
  color: #0a0a0a;
  white-space: nowrap;
  text-transform: uppercase;
  transition: opacity 0.2s; }

.nav-list__link:hover {
  opacity: 0.7;
  color: #0a0a0a; }

.nav-list__item.is-active .nav-list__link {
  opacity: 0.7; }

/* SALE item */
.nav-list__item--sale {
  position: relative; }

.nav-list__link--sale {
  color: #dc2626;
  font-weight: 600;
  position: relative;
  animation: sale-pulse 2s ease-in-out infinite; }

.nav-list__link--sale:hover {
  opacity: 0.8;
  color: #dc2626;
  animation: none; }

@keyframes sale-pulse {
  0%, 100% {
    color: #dc2626;
    text-shadow: none; }
  50% {
    color: #ff3333;
    text-shadow: 0 0 8px rgba(220, 38, 38, 0.5); } }

.nav-list__sale-badge {
  position: absolute;
  top: -8px;
  left: calc(100% - 14px);
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 600;
  line-height: 10px;
  letter-spacing: -0.1px;
  color: #dc2626;
  white-space: nowrap;
  pointer-events: none;
  animation: badge-bounce 1.5s ease-in-out infinite; }

@keyframes badge-bounce {
  0%, 100% {
    transform: translateY(0); }
  50% {
    transform: translateY(-2px); } }

/* Chevron */
.nav-list__chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.2s; }

.nav-list__item.has-sub:hover .nav-list__chevron,
.nav-list__item.has-sub:focus-within .nav-list__chevron {
  transform: rotate(180deg); }

/* Dropdown — ĐÃ THAY BẰNG MEGA MENU, giữ block này để tham khảo
.nav-list__sub { ... }
*/
/* ======================== MEGA MENU ========================
   Figma: node 40002015:44301 — panel 2 cột + ảnh phải
   Width ~892px, bg white, shadow XL, border-radius 4px
   ============================================================ */
.mega-menu {
  display: none;
  position: fixed;
  top: auto;
  left: 0;
  right: 0;
  z-index: 300;
  pointer-events: none;
  /* vùng trong suốt không chặn click */ }

/* Hover được xử lý bởi JS trong general.js */
.mega-menu__inner {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 0 4px 4px 4px;
  overflow: hidden;
  box-shadow: 0 24px 48px -12px rgba(16, 24, 40, 0.18);
  width: 860px;
  position: relative;
  pointer-events: auto;
  /* chỉ bắt sự kiện trên panel thật */ }

/* ── Panel trái: links ── */
.mega-menu__links {
  flex: 0 0 auto;
  width: 380px;
  padding: 20px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border-radius: 2px 0 0 2px;
  border-right: 1px solid #f5f5f5; }

/* Dòng "Tất cả [tên menu]" */
.mega-menu__viewall {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 24px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 23px;
  letter-spacing: -0.1px;
  color: #0a6174;
  text-decoration: none;
  transition: opacity 0.15s; }

.mega-menu__viewall:hover {
  opacity: 0.75;
  color: #0a6174; }

.mega-menu__viewall svg {
  flex-shrink: 0; }

.mega-menu__divider {
  width: 100%;
  height: 1px;
  background: #e5e5e5;
  border: none;
  margin: 0 0 20px;
  flex-shrink: 0; }

/* 2 cột link */
.mega-menu__cols {
  display: flex;
  gap: 48px;
  padding: 0 24px;
  flex: 1 1 auto;
  align-items: flex-start; }

.mega-menu__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0; }

.mega-menu__item {
  display: block;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 23px;
  letter-spacing: -0.1px;
  color: #0a0a0a;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s; }

.mega-menu__item:hover {
  color: #0a6174; }

/* ── Panel phải: ảnh ── */
.mega-menu__image {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center; }

.mega-menu__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0; }

.mega-menu__image--empty {
  background: #f0f0f0; }

/* ── Actions ── */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  margin-left: auto; }

@media (max-width: 991px) {
  .site-header__actions {
    gap: 12px; } }

.site-header__action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #0a0a0a;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
  transition: opacity 0.2s; }

.site-header__action:hover {
  opacity: 0.7; }

.site-header__action svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0; }

/* Search + Account: label text */
.site-header__action-label {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 23px;
  letter-spacing: -0.1px;
  color: #0a0a0a;
  opacity: 0.6;
  text-decoration: none;
  white-space: nowrap; }

/* 1. Bỏ label "Tìm kiếm" và "Đăng nhập" — chỉ hiện icon */
.site-header__action-label {
  display: none !important; }

/* Cart badge */
.site-header__cart-wrap {
  position: relative;
  display: inline-flex; }

.cart-count {
  position: absolute;
  top: -2px;
  right: -4px;
  background: #0a6174;
  color: #fff;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  line-height: 13px;
  letter-spacing: -0.1px;
  width: 14px;
  height: 14px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center; }

.cart-count.is-hidden {
  display: none; }

/* ======================== SEARCH OVERLAY ======================== */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 200;
  padding: 16px 0;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0s linear 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }

.search-open .search-overlay {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.3s ease, visibility 0s; }

.search-overlay__inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px; }

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e5e5e5;
  border-radius: 100px;
  padding: 0 16px;
  height: 48px;
  background: #fff; }

.search-form svg {
  flex-shrink: 0;
  color: #404040; }

.search-form input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 23px;
  color: #0a0a0a;
  background: transparent;
  padding: 0;
  width: 100%; }

.search-form input::placeholder {
  color: #a3a3a3; }

.search-overlay__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: #404040;
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s; }

.search-overlay__close:hover {
  opacity: 0.7; }

.search-results {
  margin-top: 8px; }

.search-results__item {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #e5e5e5;
  text-decoration: none;
  color: #0a0a0a; }

.search-results__item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0; }

.search-results__title {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 2px; }

.search-results__price {
  font-size: 13px;
  color: #dc2626;
  font-weight: 600; }

.search-results__more {
  display: block;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #0a6174; }

.search-results__empty {
  text-align: center;
  padding: 20px;
  color: #737373;
  font-size: 14px; }

/* ======================== SIDEBAR (Cart + Menu) ======================== */
.sidebar {
  position: fixed;
  top: 0;
  height: 100%;
  z-index: 1000;
  background: #fff;
  transition: transform 0.3s ease;
  overflow: hidden; }

.sidebar--right {
  right: 0;
  width: 543px;
  max-width: 100vw;
  transform: translateX(100%); }

.sidebar--left {
  left: 0;
  width: 320px;
  max-width: 85vw;
  transform: translateX(-100%); }

.sidebar-cart-open .sidebar--right {
  transform: translateX(0); }

.sidebar-menu-open .sidebar--left {
  transform: translateX(0); }

.sidebar-cart-open .site-overlay, .sidebar-menu-open .site-overlay {
  display: block; }

.sidebar__inner {
  display: flex;
  flex-direction: column;
  height: 100%; }

.sidebar__head {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  gap: 8px; }

.sidebar__logo {
  display: flex;
  justify-content: center; }

.sidebar__logo img {
  max-width: 120px;
  height: auto;
  display: block; }

.sidebar__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  text-align: center; }

.sidebar__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: flex-end; }

.sidebar__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px; }

.sidebar__foot {
  padding: 16px 20px;
  border-top: 1px solid var(--color-border); }

/* ======================== SIDEBAR CART (New Design) ======================== */
.sidebar-cart {
  background: #fafafa;
  border-radius: 2px 0 0 2px; }

.sidebar-cart .sidebar__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative; }

/* ===== Loading khi render lại giỏ hàng qua AJAX (mini cart + cart page) ===== */
.is-cart-loading {
  position: relative;
  pointer-events: none;
  user-select: none; }

/* Lớp skeleton shimmer phủ lên vùng đang tải (giữ nguyên DOM thật bên dưới) */
.bs-cart-skeleton {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: #fafafa;
  overflow: hidden;
  opacity: 0;
  animation: bsCartFadeIn 0.18s ease forwards; }

.bs-cart-skeleton__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px; }

.bs-cart-skeleton__row {
  display: flex;
  align-items: stretch;
  gap: 12px;
  background: #fff;
  border-radius: 4px;
  padding: 10px; }

.bs-cart-skeleton__img {
  flex-shrink: 0;
  width: 80px;
  height: 110px;
  border-radius: 4px; }

.bs-cart-skeleton__lines {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px; }

.bs-cart-skeleton__line {
  display: block;
  height: 12px;
  border-radius: 6px; }

/* Biến thể cho trang cart: ảnh lớn hơn (110px) khớp .bs_cart__item */
.bs-cart-skeleton--cart .bs-cart-skeleton__img {
  width: 110px;
  height: 150px; }

.bs-cart-skeleton--cart .bs-cart-skeleton__line {
  height: 14px; }

/* Hiệu ứng shimmer quét ngang */
.sk-shimmer {
  position: relative;
  background: #ececec;
  overflow: hidden; }

.sk-shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.75) 50%, transparent 100%);
  animation: bsCartShimmer 1.25s ease-in-out infinite; }

@keyframes bsCartFadeIn {
  to {
    opacity: 1; } }

@keyframes bsCartShimmer {
  100% {
    transform: translateX(100%); } }

/* Tôn trọng người dùng tắt animation: ẩn shimmer, chỉ hiện khối tĩnh */
@media (prefers-reduced-motion: reduce) {
  .bs-cart-skeleton {
    animation: none;
    opacity: 1; }
  .sk-shimmer::after {
    animation: none;
    display: none; } }

/* Close button: góc phải trên trong drawer — cả desktop lẫn mobile */
.sc__close {
  position: absolute;
  top: 12px;
  right: 12px;
  left: auto;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #0a0a0a;
  padding: 0;
  z-index: 2;
  transition: opacity 0.15s; }

.sc__close:hover {
  opacity: 0.7; }

.sc__content {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  padding: 32px 32px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px; }

.sc__title {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 500;
  line-height: 36px;
  letter-spacing: -0.7px;
  color: #0a6174;
  margin: 0; }

/* Steps */
.sc__steps {
  width: 100%; }

.sc__steps-track {
  display: flex;
  align-items: flex-start;
  width: 100%; }

.sc__step {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-align: center; }

.sc__step-row {
  display: flex;
  align-items: center;
  width: 100%; }

.sc__step-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; }

.sc__step-dot.is-pending {
  background: #a3a3a3; }

.sc__step.gm-reached .sc__step-dot {
  cursor: pointer; }

.sc__step-line {
  flex: 1 1 0;
  height: 2px;
  background: #0a0a0a;
  min-width: 0; }

.sc__step-line--invisible {
  background: transparent;
  pointer-events: none; }

.sc__step-text {
  width: 100%; }

.sc__step-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: -0.1px;
  color: #0a0a0a;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap; }

.sc__step-sub {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: -0.1px;
  color: #404040;
  margin: 2px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap; }

/* Promo */
.sc__promo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap; }

.sc__promo-text {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: -0.1px;
  color: #000;
  margin: 0;
  flex: 1 1 0;
  min-width: 0; }

.sc__promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 20px;
  background: #0a6174;
  color: #fff;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  line-height: 14px;
  letter-spacing: -0.1px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0; }

.sc__promo-btn:hover {
  background: #085566;
  color: #fff; }

/* Cart Items */
.sc__items {
  display: flex;
  flex-direction: column;
  gap: 10px; }

.sc__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  min-width: 0; }

.sc__item-img {
  flex: 0 0 72px;
  width: 72px;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: #f5f5f5; }

.sc__item-img a {
  display: block;
  width: 100%;
  height: 100%; }

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

.sc__item-body {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px; }

.sc__item-name {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: -0.1px;
  color: #0a0a0a;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap; }

.sc__item-variant {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: #737373;
  margin: 0; }

/* Hàng: selects trái + qty+giá phải */
.sc__item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px; }

.sc__item-selects {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap; }

.sc__item-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0; }

.sc__item-price-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px; }

.sc__item-price {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: -0.1px;
  color: #0a0a0a;
  white-space: nowrap; }

.sc__item-compare {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  line-height: 14px;
  color: #737373;
  text-decoration: line-through;
  white-space: nowrap; }

/* Select pill — đồng bộ với cart page */
.sc__select {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  border-radius: 100px;
  padding: 0 22px 0 10px;
  min-height: 28px;
  min-width: 60px;
  overflow: hidden;
  flex-shrink: 0; }

.sc__select-input {
  flex: 1 1 0;
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  outline: none;
  padding: 4px 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: -0.1px;
  color: #0a0a0a;
  cursor: pointer; }

.sc__select-chevron {
  position: absolute;
  right: 4px;
  pointer-events: none;
  color: #0a0a0a;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  opacity: 0.6; }

.sc__select--color {
  min-width: 100px; }

/* Qty stepper pill */
.sc__item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e5e5e5;
  border-radius: 100px;
  padding: 3px 8px;
  min-height: 28px;
  flex-shrink: 0; }

.sc__qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: #0a0a0a;
  padding: 0;
  transition: opacity 0.15s; }

.sc__qty-btn:hover {
  opacity: 0.6; }

.sc__qty-val {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: #0a0a0a;
  min-width: 16px;
  text-align: center; }

/* Nút Xóa */
.sc__item-delete {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: #737373;
  transition: color 0.15s;
  align-self: flex-start;
  margin-top: 1px; }

.sc__item-delete:hover {
  color: #ef4444; }

.sc__item-remove {
  display: none; }

.sc__empty {
  text-align: center;
  padding: 40px 0;
  color: var(--color-text-sub);
  font-size: 14px; }

/* Footer */
.sc__footer {
  padding: 0 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
  background: #fafafa; }

.sc__total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px; }

.sc__total-label {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 23px;
  letter-spacing: -0.1px;
  color: #0a0a0a; }

.sc__total-price {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
  letter-spacing: -0.2px;
  color: #0a0a0a;
  display: inline-flex;
  align-items: baseline;
  gap: 2px; }

.sc__total-unit {
  text-decoration: underline;
  text-underline-offset: 1px; }

.sc__actions {
  display: flex;
  gap: 8px; }

.sc__btn {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: -0.1px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s; }

.sc__btn--primary {
  background: #0a6174;
  color: #fff;
  border: 1px solid #0a6174; }

.sc__btn--primary:hover {
  background: #085566;
  border-color: #085566;
  color: #fff; }

.sc__btn--outline {
  background: transparent;
  color: #0a0a0a;
  border: 1px solid #0a0a0a; }

.sc__btn--outline:hover {
  background: #0a0a0a;
  color: #fff; }

/* Responsive */
@media (max-width: 767px) {
  .sidebar--right {
    width: 100vw;
    max-width: 100vw; }
  .sc__content {
    padding: 48px 16px 16px; }
  .sc__footer {
    padding: 0 16px 24px; }
  .sc__title {
    font-size: 24px;
    line-height: 30px; }
  .sc__promo {
    flex-wrap: wrap;
    gap: 8px; }
  .sc__promo-text {
    font-size: 14px;
    line-height: 20px; }
  .sc__promo-btn {
    padding: 8px 16px;
    font-size: 12px; }
  .sc__step-label {
    font-size: 11px; }
  .sc__step-sub {
    font-size: 11px; }
  .sc__item-right {
    gap: 8px; }
  .sc__select {
    min-width: 55px; }
  .sc__item-row {
    flex-wrap: wrap; }
  .sc__select-input {
    font-size: 12px; }
  .sc__item-qty {
    gap: 8px;
    padding: 5px 8px; }
  .sc__btn {
    font-size: 13px;
    min-height: 44px; } }

@media (max-width: 440.98px) {
  .sc__item-row-xs {
    flex-direction: column;
    align-items: flex-start; }
  .sc__item-body {
    position: relative; }
  .sc__item-delete {
    position: absolute;
    top: 10px;
    right: 10px; } }

@media (max-width: 400px) {
  .sc__actions {
    flex-direction: column; }
  .sc__btn {
    flex: none;
    width: 100%; } }

/* Overlay */
.site-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999; }

/* ======================== LOADING — Skeleton Shimmer ======================== */
.site-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
  background: #fff; }

.site-loading.active {
  display: block;
  pointer-events: auto;
  animation: slFadeIn 0.15s ease forwards; }

@keyframes slFadeIn {
  to {
    opacity: 1; } }

.site-loading__overlay {
  display: none; }

/* Skeleton layout */
.site-loading__skeleton {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden; }

/* Header bar */
.sl-sk__bar--header {
  width: 100%;
  height: 64px;
  flex-shrink: 0;
  border-radius: 0;
  margin-bottom: 32px; }

/* Body 2-col (image + info) */
.sl-sk__body {
  flex: 1;
  padding: 0 16px;
  display: flex;
  justify-content: center; }

.sl-sk__main {
  width: 100%;
  max-width: 1200px;
  display: flex;
  gap: 32px;
  align-items: flex-start; }

/* Image block */
.sl-sk__block--img {
  flex: 0 0 42%;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  max-height: 60vh; }

/* Info lines block */
.sl-sk__block--info {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 12px; }

.sl-sk__line {
  border-radius: 6px;
  flex-shrink: 0; }

.sl-sk__line--lg {
  height: 28px;
  width: 80%; }

.sl-sk__line--md {
  height: 20px;
  width: 55%; }

.sl-sk__line--sm {
  height: 16px;
  width: 40%; }

.sl-sk__line--btn {
  height: 48px;
  width: 100%;
  border-radius: 100px;
  margin-top: 8px; }

/* Shimmer pulse effect */
.sk-pulse {
  background: #eee;
  position: relative;
  overflow: hidden; }

.sk-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.72) 50%, transparent 100%);
  animation: skPulse 1.4s ease-in-out infinite; }

@keyframes skPulse {
  100% {
    transform: translateX(100%); } }

/* Mobile: stack vertically */
@media (max-width: 767px) {
  .sl-sk__bar--header {
    height: 56px;
    margin-bottom: 16px; }
  .sl-sk__main {
    flex-direction: column;
    gap: 16px; }
  .sl-sk__block--img {
    flex: none;
    width: 100%;
    aspect-ratio: 3 / 4;
    max-height: 55vw;
    border-radius: 6px; }
  .sl-sk__body {
    padding: 0 12px; }
  .sl-sk__line--lg {
    height: 22px; }
  .sl-sk__line--md {
    height: 16px; }
  .sl-sk__line--sm {
    height: 14px; }
  .sl-sk__line--btn {
    height: 44px; } }

/* Respect reduce-motion */
@media (prefers-reduced-motion: reduce) {
  .sk-pulse::after {
    animation: none;
    display: none; }
  .site-loading.active {
    animation: none;
    opacity: 1; } }

/* ======================== PRODUCT CARD
   Figma: node 40009614:76839 — pixel-perfect
   ============================================================ */
.product-card {
  display: flex;
  flex-direction: column;
  border-radius: 2px;
  overflow: hidden; }

.product-card__media {
  display: block;
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
  flex-shrink: 0; }

.product-card__media-link {
  display: block;
  position: absolute;
  inset: 0;
  text-decoration: none;
  z-index: 1; }

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; }

.product-card__quickadd {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 60px 0 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none; }

.product-card:hover .product-card__quickadd,
.product-card:focus-within .product-card__quickadd {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto; }

.product-card__quickadd-inner {
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px; }

.product-card__quickadd-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 23px;
  letter-spacing: -0.1px;
  color: #0a0a0a;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center; }

.product-card__quickadd-close {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  padding: 0;
  z-index: 1;
  transition: background 0.15s; }

.product-card__quickadd-close:hover {
  background: rgba(255, 255, 255, 0.25); }

.product-card__cart-mobile {
  display: none;
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid #e5e5e5;
  border-radius: 50%;
  color: #0a0a0a;
  cursor: pointer;
  padding: 0;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(16, 24, 40, 0.12);
  transition: background 0.15s, border-color 0.15s, transform 0.15s; }

@media (hover: hover) {
  .product-card__cart-mobile:hover {
    background: #f5f5f5;
    border-color: #d4d4d4;
    color: #0a0a0a; } }

.product-card__cart-mobile:active {
  transform: scale(0.95); }

.product-card__cart-mobile-plus {
  position: absolute;
  top: 2px;
  right: 5px;
  width: 10px;
  height: 10px;
  font-size: 8px;
  font-weight: 700;
  line-height: 10px;
  text-align: center;
  background: #0a0a0a;
  color: #ffffff;
  border-radius: 50%; }

.product-card__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: center; }

.product-card__size {
  width: 40px;
  height: 36px;
  padding: 0;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.1px;
  color: #0a0a0a;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; }

.product-card__size:hover {
  background: #0a6174;
  color: #fff;
  border-color: #0a6174; }

.product-card__size.is-disabled,
.product-card__size[disabled] {
  background: rgba(240, 240, 240, 0.6);
  color: rgba(0, 0, 0, 0.3);
  cursor: not-allowed;
  text-decoration: line-through; }

.product-card__size.is-disabled:hover,
.product-card__size[disabled]:hover {
  background: rgba(240, 240, 240, 0.6);
  color: rgba(0, 0, 0, 0.3);
  border-color: #e5e5e5; }

.product-card__size--full {
  flex: 1 1 100%;
  font-weight: 500; }

@media (max-width: 767px) {
  /* Mobile: cart button hiện, desktop hover panel ẩn */
  .product-card__cart-mobile {
    display: flex; }
  .product-card__quickadd {
    display: none !important; } }

/* Mobile quickadd backdrop */
.mobile-quickadd-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1099;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease; }

.mobile-quickadd-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto; }

/* ── Global Mobile Quickadd Bottom Sheet ── */
#globalQuickaddSheet {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10050; }

#globalQuickaddSheet.is-open {
  display: block; }

#globalQuickaddBackdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease; }

#globalQuickaddSheet.is-open #globalQuickaddBackdrop {
  opacity: 1; }

#globalQuickaddPanel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 24px 20px 40px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(100%);
  transition: transform 0.3s ease; }

#globalQuickaddSheet.is-open #globalQuickaddPanel {
  transform: translateY(0); }

#globalQuickaddClose {
  position: absolute;
  top: -20px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: #0a0a0a;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); }

#globalQuickaddTitle {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
  color: #0a0a0a;
  margin: 0 0 4px; }

#globalQuickaddSubtitle {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #737373;
  margin-bottom: 16px; }

#globalQuickaddSizes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; }

#globalQuickaddSizes .gqa-size {
  min-width: 56px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 100px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: #0a0a0a;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  text-align: center; }

#globalQuickaddSizes .gqa-size:hover {
  border-color: #0a6174; }

#globalQuickaddSizes .gqa-size.is-soldout {
  color: #d4d4d4;
  border-color: #f5f5f5;
  text-decoration: line-through;
  cursor: not-allowed; }

.product-card__badge {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 2;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  line-height: 13px;
  letter-spacing: -0.1px;
  color: #fff;
  padding: 6px 10px;
  border-radius: 9999px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap; }

.product-card__badge--sale {
  background: var(--color-primary); }

.product-card__badge--soldout {
  background: rgba(0, 0, 0, 0.5); }

.product-card__flags {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end; }

.product-card__flag {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  color: #fff;
  padding: 7px 10px;
  border-radius: 999px;
  white-space: nowrap; }

.product-card__flag--new {
  background: var(--color-primary-hover); }

.product-card__flag--best {
  background: var(--color-primary); }

.product-card__frame {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  pointer-events: none; }

.product-card__frame img {
  width: 100%;
  height: auto;
  display: block; }

.product-card__info {
  padding: 12px 16px 12px 0;
  display: flex;
  flex-direction: column;
  gap: 6px; }

.product-card__variants {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  overflow: hidden; }

.product-card__variant {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  border-radius: 100px;
  padding: 2px;
  border: 1px solid #e6e6e6;
  background: transparent;
  transition: border-color 0.15s ease; }

.product-card__variant--dot {
  width: 36px;
  height: 24px; }

.product-card__variant--dot .swatch-dot {
  display: block;
  width: 30px;
  height: 18px;
  border-radius: 9999px;
  flex-shrink: 0; }

.product-card__variant--dot .swatch-dot--img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat; }

.product-card__variant--dot.is-active {
  border-color: #000102;
  background: #fff; }

.product-card__variant--dot:hover:not(.is-active) {
  border-color: rgba(0, 0, 0, 0.2); }

.product-card__variant--label {
  height: 20px;
  min-width: 26px;
  padding: 0 6px;
  border-radius: 20px;
  border: 1px solid #e5e5e5;
  background: #fff;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: -0.1px;
  color: #404040;
  white-space: nowrap; }

.product-card__variant--label.is-active {
  border-color: #000102;
  background: #0a0a0a;
  color: #fff; }

.product-card__variant--label:hover:not(.is-active) {
  border-color: #737373; }

.product-card__variants-more {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: -0.1px;
  color: #0a0a0a;
  white-space: nowrap;
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s; }

.product-card__variants-more:hover {
  color: #0a6174; }

.product-card__variant.is-extra {
  display: none; }

.product-card__variants.is-expanded .product-card__variant.is-extra {
  display: inline-flex; }

.product-card__variants.is-expanded .product-card__variants-more {
  display: none; }

.product-card__name {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 23px;
  letter-spacing: -0.1px;
  color: #0a0a0a;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden; }

.product-card__name:hover {
  color: #0a6174; }

.product-card__prices {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px; }

.product-card__price {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 23px;
  letter-spacing: -0.1px;
  color: #0a0a0a; }

.product-card__price.is-sale {
  color: #0a6174; }

.product-card__compare {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 23px;
  letter-spacing: -0.2px;
  color: #737373;
  text-decoration: line-through; }

.product-card__discount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  line-height: 1; }

/* Mobile: giảm cỡ chữ tên/giá, tăng shape chọn màu */
@media (max-width: 767px) {
  .product-card__name {
    font-size: 13px;
    line-height: 18px; }
  .product-card__price {
    font-size: 14px;
    line-height: 20px; }
  .product-card__compare {
    font-size: 13px;
    line-height: 20px; }
  .product-card__discount {
    min-height: 24px;
    font-size: 13px;
    padding: 3px 8px; }
  .product-card__flag {
    font-size: 10px;
    padding: 6px 8px; }
  .product-card__variant--dot {
    width: 30px;
    height: 17px; }
  .product-card__variant--dot .swatch-dot {
    width: 26px;
    height: 13px; }
  .product-card__variant--label {
    height: 24px;
    min-width: 30px;
    font-size: 12px;
    line-height: 22px; } }

/* ======================== PAGINATION ======================== */
.pagination {
  display: flex;
  justify-content: center;
  padding: 32px 0; }

.pagination__inner {
  display: flex;
  align-items: center;
  gap: 4px; }

.pagination__item {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 14px;
  transition: var(--transition); }

.pagination__item:hover {
  background: var(--color-bg-alt); }

.pagination__item.is-current {
  background: var(--color-primary);
  color: #fff; }

.pagination__dots {
  pointer-events: none; }

/* ======================== TOAST ======================== */
.tf-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #333;
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none; }

.tf-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0); }

/* ======================== MOBILE MENU ======================== */
.mobile-menu {
  padding: 0; }

.mobile-menu__item {
  display: flex;
  align-items: center; }

.mobile-menu__item > a {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: inherit;
  text-decoration: none; }

.mobile-menu__arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-sub, #737373);
  padding: 0;
  transition: transform 0.25s ease; }

.mobile-menu__arrow.is-open {
  transform: rotate(90deg); }

/* Accordion: sub-menu xổ xuống thay vì slide sang */
.mobile-menu__sub {
  display: none;
  position: static;
  width: 100%;
  height: auto;
  background: transparent;
  transform: none;
  transition: none;
  padding: 0 0 8px 12px;
  overflow: visible; }

.mobile-menu__sub.is-open {
  display: block; }

.mobile-menu__back {
  display: none; }

/* Ẩn nút Quay lại (không cần trong accordion) */
.mobile-menu__back a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  font-size: 14px;
  color: var(--color-text-sub);
  border-bottom: 1px solid var(--color-border); }

.mobile-menu__sub li a {
  display: flex;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--color-border); }

.mobile-menu__sub li::last-child a {
  border-bottom: 0;
  padding-bottom: 0; }

/* item cha khi mở sub: flex-wrap để sub xuống dưới link cha */
.mobile-menu__item.has-sub {
  flex-wrap: wrap; }

.mobile-menu__item.has-sub > a {
  flex: 1 1 0; }

.mobile-menu__item.has-sub .mobile-menu__sub {
  flex: 0 0 100%; }

/* SALE item */
.mobile-menu__item--sale {
  position: relative; }

.mobile-menu__link--sale {
  color: #dc2626;
  font-weight: 600;
  position: relative;
  animation: sale-pulse 2s ease-in-out infinite; }
  .mobile-menu__link--sale span {
    position: relative; }

.mobile-menu__link--sale:hover {
  opacity: 0.8;
  color: #dc2626;
  animation: none; }

@keyframes sale-pulse {
  0%, 100% {
    color: #dc2626;
    text-shadow: none; }
  50% {
    color: #ff3333;
    text-shadow: 0 0 8px rgba(220, 38, 38, 0.5); } }

.mobile-menu__sale-badge {
  position: absolute;
  top: -8px;
  right: 0;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 600;
  line-height: 10px;
  letter-spacing: -0.1px;
  color: #dc2626;
  white-space: nowrap;
  pointer-events: none;
  animation: badge-bounce 1.5s ease-in-out infinite; }

@keyframes badge-bounce {
  0%, 100% {
    transform: translateY(0); }
  50% {
    transform: translateY(-2px); } }

/* ======================== CONTENT STYLE (RTE) ======================== */
.content-style-list h1, .content-style-list h2, .content-style-list h3, .content-style-list h4, .content-style-list h5, .content-style-list h6 {
  margin: 1em 0 0.5em; }

.content-style-list p {
  margin-bottom: 1em; }

.content-style-list ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 1em; }

.content-style-list ol {
  list-style: decimal;
  padding-left: 20px;
  margin-bottom: 1em; }

.content-style-list li {
  margin-bottom: 4px; }

.content-style-list img {
  max-width: 100% !important;
  height: auto !important;
  margin: 16px 0;
  border-radius: var(--radius); }

.content-style-list a {
  color: var(--color-primary);
  text-decoration: underline; }

.content-style-list table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em; }

.content-style-list th, .content-style-list td {
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  text-align: left; }

/* ======================== BACK TO TOP ======================== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a6174;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease; }

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0); }

.back-to-top:hover {
  background: #085566;
  transform: translateY(-2px); }

.back-to-top:active {
  transform: translateY(0); }

.back-to-top svg {
  display: block; }

@media (max-width: 767px) {
  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 16px;
    right: 16px; } }

/* ======================== CONTACT WIDGET (ghim góc dưới phải) ======================== */
.contact-widget {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 998;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 10px; }

@media (max-width: 767px) {
  .contact-widget {
    bottom: 70px;
    right: 12px; } }

/* Nút toggle */
.contact-widget__toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #0a6174;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(10, 97, 116, 0.35);
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0; }

.contact-widget__toggle:hover {
  background: #085566;
  transform: scale(1.08); }

@media (max-width: 767px) {
  .contact-widget__toggle {
    width: 46px;
    height: 46px; } }

/* Ẩn/hiện icon open/close */
.contact-widget__icon-close {
  display: none; }

.contact-widget.is-open .contact-widget__icon-open {
  display: none; }

.contact-widget.is-open .contact-widget__icon-close {
  display: block; }

/* Menu list */
.contact-widget__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  /* Ẩn mặc định */
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease; }

.contact-widget.is-open .contact-widget__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0); }

/* Từng item */
.contact-widget__item {
  display: flex;
  align-items: center; }

.contact-widget__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 100px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: opacity 0.2s, transform 0.2s; }

.contact-widget__link:hover {
  opacity: 0.9;
  transform: translateX(-2px);
  color: #fff; }

.contact-widget__link svg {
  flex-shrink: 0;
  width: 32px;
  height: 32px; }

.contact-widget__label {
  display: none; }

/* Màu từng kênh */
.contact-widget__link--phone {
  background: #0a6174; }

.contact-widget__link--zalo {
  background: #fff;
  padding: 0; }
  .contact-widget__link--zalo svg {
    width: 52px;
    height: 52px; }

.contact-widget__link--fb {
  background: #1877f2; }

@media (max-width: 767px) {
  .contact-widget__label {
    display: none; }
  .contact-widget__link {
    justify-content: center;
    border-radius: 50%; }
    .contact-widget__link svg {
      width: 25px;
      height: 25px; }
  .contact-widget__link--zalo svg {
    width: 45px;
    height: 45px; } }

/* ======================== BREADCRUMB ======================== */
.breadcrumb {
  padding: 20px 0 0; }

.breadcrumb__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0; }

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.1px;
  color: #737373; }

.breadcrumb__sep {
  display: inline-flex;
  align-items: center;
  margin: 0 4px;
  color: #d4d4d4;
  flex-shrink: 0; }

.breadcrumb__link {
  color: #737373;
  text-decoration: none;
  transition: color 0.2s; }

.breadcrumb__link:hover {
  color: #0a0a0a; }

.breadcrumb__item--current {
  color: #0a0a0a;
  font-weight: 400; }

/* ======================== RECENTLY VIEWED ======================== */
.rv-section {
  padding-bottom: 60px; }

.rv__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px; }

.rv__title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 500;
  line-height: 52px;
  letter-spacing: -1px;
  color: #0a0a0a;
  text-transform: uppercase;
  margin: 0; }

.rv__viewall {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: -0.1px;
  color: #0a6174;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.2s; }

.rv__viewall:hover {
  opacity: 0.7; }

.rv__viewall svg {
  flex-shrink: 0; }

.rv__wrap {
  position: relative; }

.rv__track {
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory; }

.rv__track::-webkit-scrollbar {
  display: none; }

.rv__grid {
  display: flex;
  gap: 12px; }

.rv__grid .product-card {
  flex: 0 0 calc((100% - 3 * 12px) / 4);
  min-width: 240px;
  scroll-snap-align: start; }

/* Lazyload activation cho AJAX-injected cards */
.rv__grid .product-card__img[data-src] {
  opacity: 0;
  transition: opacity 0.3s; }

.rv__grid .product-card__img:not([data-src]):not(.product-card__img-back) {
  opacity: 1; }

/* Nav arrows */
.rv__nav {
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% - 27px));
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a6174;
  color: #fff;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  box-shadow: 0 4px 8px -2px rgba(16, 24, 40, 0.1), 0 2px 4px -2px rgba(16, 24, 40, 0.06);
  transition: background 0.2s, opacity 0.2s;
  z-index: 2;
  padding: 6px; }

.rv__nav:hover {
  background: #085566; }

.rv__nav.is-hidden {
  opacity: 0;
  pointer-events: none; }

.rv__nav--prev {
  left: -18px; }

.rv__nav--next {
  right: -18px; }

@media (max-width: 991px) {
  .rv__title {
    font-size: 26px;
    line-height: 36px; }
  .rv__grid .product-card {
    flex: 0 0 calc((100% - 12px) / 2); }
  .rv__nav {
    display: none; } }

@media (max-width: 767px) {
  .rv-section {
    padding-bottom: 40px; }
  .rv__title {
    font-size: 22px;
    line-height: 30px; }
  .rv__grid .product-card {
    flex: 0 0 160px;
    min-width: 160px; } }
