/*
 * ============================================================
 * AUTOSHOP — style.css  (Global)
 * Theme Name:   AutoShop
 * Description:  Showroom xe ô tô — Toyota Dealership
 * Version:      1.0.0
 * Text Domain:  autoshop
 * ============================================================ */

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  /* ── Brand Colors ─────────────────────────────────────── */
  --color-red: #eb0a1e; /* Toyota Red — màu thương hiệu chính */
  --color-red-dark: #b80015; /* Hover / active */
  --color-red-pale: #fff0f1; /* Background tint */

  /* ── Neutrals ─────────────────────────────────────────── */
  --color-black: #0d0d0d;
  --color-dark: #1a1a1a; /* Heading màu đậm */
  --color-dark-2: #2d2d2d;
  --color-charcoal: #444444;
  --color-mid: #6e6e6e;
  --color-muted: #9a9a9a;
  --color-border: #e4e4e4;
  --color-border-light: #f0f0f0;
  --color-off-white: #f8f8f8;
  --color-white: #ffffff;

  /* ── UI Colors ────────────────────────────────────────── */
  --color-bg: #ffffff;
  --color-bg-alt: #f6f6f6; /* Section nền xám nhạt */
  --color-bg-dark: #111111; /* Section nền tối */
  --color-text: #222222;
  --color-text-light: #6e6e6e;
  --color-success: #16a34a;
  --color-warning: #d97706;
  --color-info: #0369a1;

  /* ── Typography ───────────────────────────────────────── */
  --font-heading: "Plus Jakarta Sans", Arial, sans-serif;
  --font-sub: "Plus Jakarta Sans", Arial, sans-serif;
  --font-body: "Plus Jakarta Sans", Arial, sans-serif;

  /* ── Font Sizes ───────────────────────────────────────── */
  --fs-xs: 11px;
  --fs-sm: 13px;
  --fs-base: 15px;
  --fs-md: 17px;
  --fs-lg: 20px;
  --fs-xl: 24px;
  --fs-2xl: 30px;
  --fs-3xl: 38px;
  --fs-4xl: 50px;
  --fs-5xl: 66px;
  --fs-6xl: 84px;

  /* ── Font Weights ─────────────────────────────────────── */
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 800;

  /* ── Letter Spacing ───────────────────────────────────── */
  --ls-tight: -0.02em;
  --ls-normal: 0em;
  --ls-wide: 0.04em;
  --ls-wider: 0.08em;
  --ls-widest: 0.16em;

  /* ── Line Heights ─────────────────────────────────────── */
  --lh-tight: 1.15;
  --lh-snug: 1.35;
  --lh-normal: 1.65;
  --lh-relaxed: 1.85;

  /* ── Spacing ──────────────────────────────────────────── */
  --space-xs: 6px;
  --space-sm: 12px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 60px;
  --space-2xl: 80px;
  --space-3xl: 120px;

  /* ── Layout ───────────────────────────────────────────── */
  --container-max: 1200px;
  --container-wide: 1440px;
  --container-narrow: 760px;
  --gutter: 60px;

  /* ── Header ───────────────────────────────────────────── */
  --header-height: 72px;
  --header-height-m: 60px;

  --au-gap-2xs: 8px;
  --au-gap-xs: 12px;
  --au-gap-sm: 16px;
  --au-gap-md: 24px;
  --au-gap-lg: 32px;
  --au-gap-xl: 48px;
  --au-gap-2xl: 64px;
  --au-page-hero-pad-top: 48px;
  --au-page-hero-pad-bottom: 40px;
  --au-page-hero-breadcrumb-gap: 16px;
  --au-page-hero-title-gap: 12px;
  --au-page-breadcrumb-strip-pad-y: 14px;

  /* ── Border Radius ────────────────────────────────────── */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* ── Shadows ──────────────────────────────────────────── */
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.13);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.18);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.07);
  --shadow-red: 0 4px 20px rgba(235, 10, 30, 0.25);

  /* ── Transitions ──────────────────────────────────────── */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.36s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ── Z-index ──────────────────────────────────────────── */
  --z-base: 1;
  --z-above: 10;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-header: 900;
  --z-overlay: 940;
  --z-drawer: 950;
  --z-modal: 1000;
  --z-toast: 1100;
}

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

html {
  font-family: var(--font-body);
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  margin-top: 0 !important; /* reset WP admin-bar */
  overflow-x: hidden;
  overflow-x: clip;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

button,
input,
select,
textarea,
option {
  font-family: var(--font-body);
}

/* ── Headings ─────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--color-dark);
  letter-spacing: var(--ls-tight);
  text-transform: uppercase;
}

h1 {
  font-size: var(--fs-5xl);
}
h2 {
  font-size: var(--fs-4xl);
}
h3 {
  font-size: var(--fs-3xl);
}
h4 {
  font-size: var(--fs-2xl);
}
h5 {
  font-size: var(--fs-xl);
}
h6 {
  font-size: var(--fs-lg);
}

/* ── Links ────────────────────────────────────────────────── */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* ── Images ───────────────────────────────────────────────── */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Lists ────────────────────────────────────────────────── */
ul,
ol {
  list-style: none;
}

/* ── Form elements ────────────────────────────────────────── */
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* ── HR ───────────────────────────────────────────────────── */
hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-md) 0;
}

/* Hide WP admin bar dư thừa */
#wpadminbar {
  display: none !important;
}

/* ============================================================
   CONTAINERS
   ============================================================ */

/* Standard 1200px */
.au-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}

/* Wide 1440px — banner, full-bleed */
.au-container--wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}

/* Narrow 760px — bài viết */
.au-container--narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}

/* Fluid — full width có padding */
.au-container--fluid {
  width: 100%;
  padding: 0 var(--gutter);
}

/* ============================================================
   SECTION
   ============================================================ */
.au-section {
  padding: var(--space-2xl) 0;
}

.au-section--sm {
  padding: var(--space-xl) 0;
}

.au-section--lg {
  padding: var(--space-3xl) 0;
}

/* Section nền xám */
.au-section--alt {
  background-color: var(--color-bg-alt);
}

/* Section nền tối */
.au-section--dark {
  background-color: var(--color-bg-dark);
  color: var(--color-white);
}

.au-section--dark h1,
.au-section--dark h2,
.au-section--dark h3,
.au-section--dark h4 {
  color: var(--color-white);
}

/* Section nền đỏ */
.au-section--red {
  background-color: var(--color-red);
  color: var(--color-white);
}

.au-section--red h1,
.au-section--red h2,
.au-section--red h3 {
  color: var(--color-white);
}

/* ============================================================
   SECTION HEADER (Title block)
   ============================================================ */
.au-section-head {
  margin-bottom: var(--space-lg);
}

.au-section-head--center {
  text-align: center;
}

/* Label nhỏ trên title */
.au-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sub);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 10px;
}

.au-label::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--color-red);
  flex-shrink: 0;
}

/* Section title */
.au-section-title {
  font-family: var(--font-heading);
  font-size: var(--fs-4xl);
  font-weight: var(--fw-black);
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
}

/* Accent text trong title */
.au-section-title .au-accent {
  color: var(--color-red);
}

/* Sub-title / mô tả dưới heading */
.au-section-desc {
  font-family: var(--font-sub);
  font-size: var(--fs-md);
  font-weight: var(--fw-regular);
  color: var(--color-text-light);
  line-height: var(--lh-relaxed);
  margin-top: var(--space-sm);
  max-width: 600px;
}

.au-section-head--center .au-section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* Divider đỏ dưới heading */
.au-section-divider {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-red);
  margin-top: var(--space-sm);
  border-radius: 2px;
}

.au-section-head--center .au-section-divider {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.au-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  font-family: var(--font-sub);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  white-space: nowrap;
  line-height: 1;
  position: relative;
  overflow: hidden;
}

/* Ripple effect */
.au-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.au-btn:hover::before {
  opacity: 1;
}

/* ── Primary (Đỏ filled) ──────────────────────────────────── */
.au-btn--primary {
  background: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
  box-shadow: var(--shadow-red);
}

.au-btn--primary:hover {
  background: var(--color-red-dark);
  border-color: var(--color-red-dark);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(235, 10, 30, 0.32);
}

.au-btn--primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-red);
}

/* ── Secondary (Đen filled) ───────────────────────────────── */
.au-btn--secondary {
  background: var(--color-dark);
  border-color: var(--color-dark);
  color: var(--color-white);
}

.au-btn--secondary:hover {
  background: var(--color-black);
  border-color: var(--color-black);
  color: var(--color-white);
  transform: translateY(-1px);
}

/* ── Outline đỏ ───────────────────────────────────────────── */
.au-btn--outline {
  background: transparent;
  border-color: var(--color-red);
  color: var(--color-red);
}

.au-btn--outline:hover {
  background: var(--color-red);
  color: var(--color-white);
}

/* ── Outline trắng (trên nền tối/đỏ) ─────────────────────── */
.au-btn--outline-white {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--color-white);
}

.au-btn--outline-white:hover {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-red);
}

/* ── Ghost (outline đen) ──────────────────────────────────── */
.au-btn--ghost {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-dark);
}

.au-btn--ghost:hover {
  border-color: var(--color-dark);
  color: var(--color-dark);
}

/* ── Icon button ──────────────────────────────────────────── */
.au-btn--icon {
  padding: 12px;
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
}

/* ── Sizes ────────────────────────────────────────────────── */
.au-btn--sm {
  padding: 9px 20px;
  font-size: var(--fs-xs);
}

.au-btn--lg {
  padding: 16px 40px;
  font-size: var(--fs-base);
  letter-spacing: var(--ls-wider);
}

.au-btn--xl {
  padding: 18px 50px;
  font-size: var(--fs-md);
}

/* ── Full width ───────────────────────────────────────────── */
.au-btn--block {
  display: flex;
  width: 100%;
}

/* Icon inside btn */
.au-btn i,
.au-btn .fa {
  font-size: 0.9em;
  flex-shrink: 0;
}

/* ============================================================
   BADGE / TAG
   ============================================================ */
.au-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-family: var(--font-sub);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  line-height: 1;
}

.au-badge--red {
  background: var(--color-red);
  color: #fff;
}
.au-badge--dark {
  background: var(--color-dark);
  color: #fff;
}
.au-badge--new {
  background: #16a34a;
  color: #fff;
}
.au-badge--sale {
  background: var(--color-red);
  color: #fff;
}
.au-badge--hot {
  background: #d97706;
  color: #fff;
}
.au-badge--light {
  background: var(--color-bg-alt);
  color: var(--color-charcoal);
}

/* ============================================================
   PRICE
   ============================================================ */
.au-price {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--color-red);
  line-height: 1;
  letter-spacing: var(--ls-tight);
}

.au-price__unit {
  font-size: 0.6em;
  font-weight: var(--fw-semibold);
  margin-left: 2px;
}

.au-price--large {
  font-size: var(--fs-4xl);
}

.au-price--small {
  font-size: var(--fs-lg);
}

/* Giá cũ gạch ngang */
.au-price--old {
  color: var(--color-muted);
  text-decoration: line-through;
  font-size: var(--fs-md);
  font-weight: var(--fw-regular);
}

/* ============================================================
   CAR SPEC CHIPS (thông số xe nhỏ)
   ============================================================ */
.au-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.au-spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-family: var(--font-sub);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--color-charcoal);
  white-space: nowrap;
}

.au-spec-chip i {
  color: var(--color-red);
  font-size: 11px;
}

/* ============================================================
   CARD BASE (dùng chung cho xe, bài viết)
   ============================================================ */
.au-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

.au-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.au-card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-bg-alt);
}

.au-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.au-card:hover .au-card__img {
  transform: scale(1.04);
}

.au-card__body {
  padding: var(--space-md);
}

.au-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--color-dark);
  line-height: var(--lh-snug);
  text-transform: uppercase;
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--space-xs);
}

.au-card__title a:hover {
  color: var(--color-red);
}

/* ============================================================
   FORM INPUTS
   ============================================================ */
.au-input {
  display: block;
  width: 100%;
  padding: 11px 16px;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  color: var(--color-text);
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  outline: none;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
  line-height: var(--lh-normal);
}

.au-input::placeholder {
  color: var(--color-muted);
  font-size: var(--fs-sm);
}

.au-input:focus {
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(235, 10, 30, 0.1);
}

.au-input--dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}

.au-input--dark::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.au-input--dark:focus {
  border-color: var(--color-red);
}

/* Select */
.au-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236e6e6e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

/* Label */
.au-label-field {
  display: block;
  font-family: var(--font-sub);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-charcoal);
  margin-bottom: 6px;
}

/* ============================================================
   PAGE HERO + BREADCRUMB SYSTEM
   ============================================================ */
.au-page-hero {
  --au-page-hero-bg: transparent;
  --au-page-hero-border: none;
  --au-page-hero-title-color: var(--color-dark);
  --au-page-hero-desc-color: var(--color-charcoal);
  --au-page-hero-eyebrow-color: var(--color-red);
  --au-page-hero-align: left;
  background: var(--au-page-hero-bg);
  border-bottom: var(--au-page-hero-border);
  padding: var(--au-page-hero-pad-top) 0 var(--au-page-hero-pad-bottom);
}

.au-page-hero--surface {
  --au-page-hero-bg: #fff;
  --au-page-hero-border: 1px solid var(--color-border-light);
}

.au-page-hero--dark {
  --au-page-hero-title-color: #ffffff;
  --au-page-hero-desc-color: rgba(255, 255, 255, 0.72);
}

.au-page-hero--accent {
  --au-page-hero-title-color: #ffffff;
  --au-page-hero-desc-color: rgba(255, 255, 255, 0.85);
}

.au-page-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: var(--au-page-hero-align);
}

.au-page-hero__inner--narrow {
  max-width: min(100%, var(--container-narrow));
}

.au-page-hero__breadcrumb {
  margin: 0 0 var(--au-page-hero-breadcrumb-gap);
}

.au-page-hero__eyebrow {
  margin: 0 0 var(--au-gap-xs);
  font-family: var(--font-sub);
  font-size: 11px;
  font-weight: var(--fw-black);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--au-page-hero-eyebrow-color);
}

.au-page-hero__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--au-page-hero-title-color);
}

.au-page-hero__desc {
  margin: var(--au-page-hero-title-gap) 0 0;
  max-width: min(100%, var(--container-narrow));
  font-family: var(--font-sub);
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.6;
  color: var(--au-page-hero-desc-color);
}

.au-page-breadcrumb-strip,
.au-breadcrumb-bar {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border-light);
  padding: var(--au-page-breadcrumb-strip-pad-y) 0;
}

.au-page-breadcrumb-strip__inner {
  max-width: min(100%, var(--container-narrow));
}

.au-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--au-gap-2xs);
  font-family: var(--font-sub);
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--color-charcoal);
}

.au-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-dark);
  text-decoration: none !important;
  transition: color var(--transition-fast);
}

.au-breadcrumb a:hover {
  color: var(--color-red);
  text-decoration: none !important;
}

.au-breadcrumb__sep {
  font-size: 10px;
  color: var(--color-border);
  margin: 0 var(--au-gap-2xs);
}

.au-breadcrumb [aria-current="page"] {
  color: var(--color-charcoal);
  font-weight: var(--fw-medium);
}

.au-breadcrumb--light {
  color: rgba(255, 255, 255, 0.7);
}

.au-breadcrumb--light a {
  color: #ffffff !important;
  text-decoration: none !important;
}

.au-breadcrumb--light a:hover {
  color: rgba(255, 255, 255, 0.75) !important;
  text-decoration: none !important;
}

.au-breadcrumb--light .au-breadcrumb__sep {
  color: rgba(255, 255, 255, 0.35);
}

.au-breadcrumb--light [aria-current="page"] {
  color: rgba(255, 255, 255, 0.85);
  font-weight: var(--fw-medium);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.au-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: var(--space-lg) 0;
}

.au-pagination__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-family: var(--font-sub);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-charcoal);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.au-pagination__item:hover,
.au-pagination__item.is-active {
  background: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
}

.au-pagination__item.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ============================================================
   VIEW MORE LINK
   ============================================================ */
.au-view-more {
  text-align: center;
  margin-top: var(--space-lg);
}

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.au-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-red);
  border-radius: 50%;
  animation: au-spin 0.6s linear infinite;
  margin: 0 auto;
}

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

/* ============================================================
   BACK TO TOP
   ============================================================ */
#au-back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--color-red);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition-base);
  z-index: var(--z-sticky);
  text-decoration: none;
}

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

#au-back-to-top:hover {
  background: var(--color-red-dark);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* ============================================================
   UTILITIES
   ============================================================ */

/* Text */
.text-left {
  text-align: left;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.text-red {
  color: var(--color-red);
}
.text-dark {
  color: var(--color-dark);
}
.text-muted {
  color: var(--color-muted);
}
.text-white {
  color: var(--color-white);
}
.text-upper {
  text-transform: uppercase;
}
.text-bold {
  font-weight: var(--fw-bold);
}
.text-semibold {
  font-weight: var(--fw-semibold);
}

/* Background */
.bg-white {
  background-color: var(--color-white);
}
.bg-alt {
  background-color: var(--color-bg-alt);
}
.bg-dark {
  background-color: var(--color-bg-dark);
}
.bg-red {
  background-color: var(--color-red);
}

/* Display */
.d-flex {
  display: flex;
}
.d-block {
  display: block;
}
.align-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.flex-wrap {
  flex-wrap: wrap;
}
.flex-grow {
  flex: 1;
}
.gap-sm {
  gap: var(--space-sm);
}
.gap-md {
  gap: var(--space-md);
}

/* Spacing helpers */
.mt-sm {
  margin-top: var(--space-sm);
}
.mt-md {
  margin-top: var(--space-md);
}
.mt-lg {
  margin-top: var(--space-lg);
}
.mb-sm {
  margin-bottom: var(--space-sm);
}
.mb-md {
  margin-bottom: var(--space-md);
}
.mb-lg {
  margin-bottom: var(--space-lg);
}

/* Border */
.border-top {
  border-top: 1px solid var(--color-border);
}
.border-bottom {
  border-bottom: 1px solid var(--color-border);
}

/* Screen reader only */
.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;
}

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

/* Fill helper (position absolute inset 0) */
.au-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ============================================================
   WOOCOMMERCE — RESET BỎ DEFAULT
   ============================================================ */
.woocommerce-notices-wrapper:empty,
.woocommerce-result-count {
  display: none;
}

/* Ẩn breadcrumb Woo (dùng breadcrumb riêng) */
.woocommerce-breadcrumb {
  display: none !important;
}

/* ============================================================
   RESPONSIVE BASE
   ============================================================ */

/* Tablet ≤ 1024px */
@media (max-width: 1024px) {
  :root {
    --gutter: 32px;
    --fs-5xl: 54px;
    --fs-4xl: 42px;
    --fs-3xl: 32px;
    --au-page-hero-pad-top: 40px;
    --au-page-hero-pad-bottom: 32px;
  }
}

/* Mobile ≤ 768px */
@media (max-width: 768px) {
  :root {
    --gutter: 20px;
    --fs-6xl: 56px;
    --fs-5xl: 44px;
    --fs-4xl: 34px;
    --fs-3xl: 26px;
    --fs-2xl: 22px;
    --space-2xl: 60px;
    --space-3xl: 80px;
    --au-page-hero-pad-top: 32px;
    --au-page-hero-pad-bottom: 24px;
    --au-page-hero-breadcrumb-gap: 14px;
    --au-page-breadcrumb-strip-pad-y: 12px;
  }

  .au-section {
    padding: var(--space-xl) 0;
  }
  .au-section--lg {
    padding: var(--space-2xl) 0;
  }

  .au-section-title {
    font-size: var(--fs-3xl);
  }

  #au-back-to-top {
    bottom: 16px;
    right: 16px;
  }
}

/* Mobile nhỏ ≤ 480px */
@media (max-width: 480px) {
  :root {
    --gutter: 16px;
    --fs-4xl: 28px;
    --fs-3xl: 24px;
    --au-page-hero-pad-top: 28px;
    --au-page-hero-pad-bottom: 22px;
  }
}

/* Admin bar compensation */
.admin-bar #au-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar #au-header {
    top: 46px;
  }
}
/* ============================================================
   BREADCRUMB — Global reset (all pages, all variants)
   body prefix → specificity (0,1,1,1) > user agent (0,1,1)
   ============================================================ */
body .au-breadcrumb a,
body .au-breadcrumb a:link,
body .au-breadcrumb a:visited,
body .au-breadcrumb a:-webkit-any-link,
body [class*="breadcrumb"] a,
body [class*="breadcrumb"] a:link,
body [class*="breadcrumb"] a:visited,
body [class*="breadcrumb"] a:-webkit-any-link {
  color: var(--color-dark);
  text-decoration: none !important;
  text-decoration-line: none !important;
}

body .au-breadcrumb a:hover,
body [class*="breadcrumb"] a:hover {
  color: var(--color-red);
  text-decoration: none !important;
}

/* Light variant (nền tối/đỏ) */
body .au-breadcrumb--light a,
body .au-breadcrumb--light a:link,
body .au-breadcrumb--light a:visited,
body .au-breadcrumb--light a:-webkit-any-link {
  color: #ffffff !important;
  text-decoration: none !important;
}

body .au-breadcrumb--light a:hover {
  color: rgba(255, 255, 255, 0.75) !important;
  text-decoration: none !important;
}
