@font-face {
  font-family: "Alexandria";
  src: url("../fonts/Alexandria-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alexandria";
  src: url("../fonts/Alexandria-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SVN-Lobster";
  src: url("../fonts/SVN-Lobster.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #f05277;
  --heading: #4b4d52;
  --muted: #7e7b7d;
  --border: #f0d6de;
  --header-h: 72px;
  --aa-gutter: 16px;
}

* { box-sizing: border-box; }
html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body { margin: 0; padding: 0; }
.aa-body {
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: "Alexandria", ui-sans-serif, system-ui, sans-serif;
  color: #111;
  background: #fff;
  overflow-x: clip;
}
.aa-main { flex: 1; min-width: 0; }
a { color: inherit; text-decoration: none; transition: color .2s, opacity .2s; }
img { max-width: 100%; height: auto; display: block; }
button,
input,
select,
textarea { font: inherit; max-width: 100%; }

/* WP/Woo accessibility labels — theme tắt WC CSS nên phải tự định nghĩa */
.screen-reader-text,
.screen-reader-text span,
.ui-helper-hidden-accessible {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  word-wrap: normal !important;
  white-space: nowrap !important;
}

.aa-container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 var(--aa-gutter);
}

.aa-script {
  font-family: "SVN-Lobster", cursive;
  color: var(--primary);
  font-weight: 400;
  line-height: 1.2;
}

.aa-price-old {
  color: #9a9a9a;
  text-decoration: line-through;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
}
.aa-price-new {
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
}

/* Header */
.aa-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(240, 82, 119, .12);
}
.aa-header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
  padding: 8px 0;
}
.aa-header__logo { flex-shrink: 0; }
.aa-header__logo img { height: 48px; width: auto; object-fit: contain; }
.aa-nav { display: none; align-items: center; gap: 1.75rem; margin-left: .5rem; }
.aa-nav__link {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2px;
  color: var(--primary);
  white-space: nowrap;
}
.aa-nav__link.is-active { border-bottom: 2px solid var(--primary); padding-bottom: 2px; }
.aa-nav__link:hover { opacity: .8; }
.aa-search {
  margin-left: auto;
  display: none;
  align-items: center;
  width: 100%;
  max-width: 360px;
  border-radius: 999px;
  border: 1px solid rgba(240, 82, 119, .4);
  background: #fff;
  padding: 8px 16px;
  min-width: 0;
}
.aa-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  font-size: 14px;
  background: transparent;
  font-family: inherit;
}
.aa-search button {
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  flex-shrink: 0;
  padding: 4px;
}
.aa-header__actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-left: auto;
  flex-shrink: 0;
}
.aa-icon-link {
  color: var(--primary);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}
.aa-cart-badge {
  position: absolute;
  right: 2px;
  top: 2px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.aa-cart-badge[hidden] { display: none !important; }

@media (min-width: 900px) {
  :root { --header-h: 85px; }
  .aa-header__inner { gap: 1.5rem; padding: 0; height: var(--header-h); min-height: var(--header-h); }
  .aa-header__logo img { height: 58px; }
  .aa-nav { display: flex; }
  .aa-nav__link { font-size: 16px; }
  .aa-header__actions { margin-left: .5rem; }
}
@media (min-width: 1024px) {
  .aa-search { display: flex; }
}

/* Hero */
.aa-hero { position: relative; overflow: hidden; background: #fde6ec; }
.aa-hero__track {
  position: relative;
  aspect-ratio: 2048 / 878;
  max-height: min(62vw, 820px);
  width: 100%;
}
@media (max-width: 639px) {
  .aa-hero__track {
    aspect-ratio: 16 / 10;
    max-height: none;
    min-height: 180px;
  }
}
.aa-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .7s;
  pointer-events: none;
}
.aa-hero__slide.is-active { opacity: 1; pointer-events: auto; }
.aa-hero__slide picture,
.aa-hero__slide img { width: 100%; height: 100%; display: block; }
.aa-hero__slide img { object-fit: cover; object-position: center; }
/* Below-fold: giảm work main-thread trên mobile */
.aa-intro,
.aa-feature,
.aa-products-home,
.aa-products-promo,
.aa-news,
.aa-footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 600px;
}
.aa-hero__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.aa-hero__dots button {
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  cursor: pointer;
  padding: 0;
  transition: all .3s;
}
.aa-hero__dots button.is-active { width: 32px; opacity: 1; }
.aa-hero__dots button:not(.is-active) { width: 20px; opacity: .3; }

/* Intro */
.aa-intro { padding: 32px 0 40px; }
@media (min-width: 768px) {
  .aa-intro { padding: 48px 0 64px; }
}
.aa-intro__titles { text-align: center; margin-bottom: 24px; }
@media (min-width: 768px) {
  .aa-intro__titles { margin-bottom: 40px; }
}
.aa-intro__titles h3 {
  margin: 0 0 8px;
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 600;
  color: var(--heading);
  letter-spacing: .2px;
  line-height: 1.3;
}
.aa-intro__titles h4 {
  margin: 0 auto;
  max-width: 36em;
  font-size: clamp(14px, 3.4vw, 20px);
  font-weight: 400;
  color: var(--muted);
  line-height: 1.5;
  padding: 0 8px;
}
.aa-intro__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.aa-intro__img { overflow: hidden; border-radius: 20px; }
.aa-intro__img img { width: 100%; transition: transform .3s; }
.aa-intro__img:hover img { transform: scale(1.03); }
@media (min-width: 768px) {
  .aa-intro__grid { grid-template-columns: repeat(3, 1fr); }
}

/* Feature */
.aa-feature { padding: 24px 0 40px; }
.aa-feature__inner { text-align: center; position: relative; }
.aa-feature__img {
  display: none;
  margin: 0 auto;
  max-width: 890px;
  width: 100%;
  border-radius: 12px;
}
.aa-feature__img.is-active { display: block; }
.aa-feature__dots { margin-top: 16px; display: flex; justify-content: center; gap: 8px; }
.aa-feature__dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: #111;
  opacity: .25;
  cursor: pointer;
  padding: 0;
}
.aa-feature__dots button.is-active { background: var(--primary); opacity: 1; }

/* Products home */
.aa-products-home { padding: 28px 0 40px; }
@media (min-width: 768px) {
  .aa-products-home { padding: 40px 0 56px; }
}
.aa-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-bottom: 20px;
}
@media (min-width: 768px) {
  .aa-tabs { gap: 12px 75px; margin-bottom: 24px; }
}
.aa-tabs button {
  position: relative;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: clamp(17px, 4.2vw, 22px);
  font-weight: 600;
  color: #333;
  cursor: pointer;
  padding: 6px 2px 8px;
  min-height: 44px;
}
.aa-tabs button.is-active { color: var(--primary); }
.aa-tabs button.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: var(--primary);
}
.aa-products-home__all { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.aa-products-home__all a { color: var(--primary); font-size: 14px; font-weight: 600; padding: 4px 0; }
.aa-products-home__all a:hover { text-decoration: underline; }
.aa-products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 10px;
}
.aa-products-grid.is-hidden { display: none; }
@media (min-width: 768px) {
  .aa-products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}
@media (min-width: 1024px) {
  .aa-products-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.aa-product-card {
  text-align: center;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.aa-product-card__link { display: block; min-width: 0; }
.aa-product-card__image {
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 12px;
  background: #fff5f8;
  aspect-ratio: 1 / 1;
}
.aa-product-card__image img {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  object-fit: contain;
  transition: transform .3s;
}
.aa-product-card:hover .aa-product-card__image img { transform: scale(1.04); }
.aa-product-card__title {
  margin: 0 0 8px;
  padding: 0 2px;
  font-size: clamp(12px, 3.2vw, 13px);
  font-weight: 700;
  color: #111;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
.aa-product-card__price {
  margin: 0 0 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
}
.aa-btn-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid var(--primary);
  background: #fff;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  width: 100%;
  max-width: 160px;
  margin: 0 auto;
  min-height: 40px;
}
@media (min-width: 768px) {
  .aa-btn-cart {
    width: auto;
    max-width: none;
    padding: 6px 16px;
    font-size: 13px;
  }
}
.aa-btn-cart:hover { background: var(--primary); color: #fff; }
.aa-btn-cart svg { flex-shrink: 0; }

/* Khuyến mãi & Combo (homepage) */
.aa-products-promo { padding: 28px 0 40px; background: #fff; }
@media (min-width: 768px) {
  .aa-products-promo { padding: 40px 0 56px; }
}
.aa-products-promo__title {
  margin: 0 0 20px;
  text-align: center;
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 600;
  color: var(--heading);
}
.aa-products-grid--promo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 768px) {
  .aa-products-grid--promo { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* News */
.aa-news { padding: 40px 0 56px; background: #fff8fa; }
.aa-news__title {
  margin: 0 0 32px;
  text-align: center;
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 600;
  color: var(--heading);
}
.aa-news__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.aa-news__image {
  position: relative;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 12px;
  background: #fff0f4;
  aspect-ratio: 4 / 3;
}
.aa-news__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  transition: opacity .2s;
}
.aa-news__card:hover .aa-news__image img { opacity: .92; }
.aa-news__card h5 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  line-height: 1.35;
}
.aa-news__card:hover h5 { color: var(--primary); }
.aa-news__card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 640px) {
  .aa-news__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .aa-news__grid { grid-template-columns: repeat(5, 1fr); }
}

/* Footer */
.aa-footer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 48px 0;
}
.aa-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.aa-footer__logo { width: 160px; margin-bottom: 16px; }
.aa-footer__badge { width: 140px; margin-bottom: 12px; }
.aa-footer__dmca { width: 100px; }
.aa-footer__list { list-style: none; margin: 0; padding: 0; }
.aa-footer__list li { margin-bottom: 8px; }
.aa-footer__list a { font-size: 14px; color: #333; }
.aa-footer__list a:hover { color: var(--primary); }
.aa-footer__company { font-size: 14px; line-height: 1.7; color: #555; }
.aa-footer__company p { margin: 0 0 8px; }
@media (min-width: 768px) {
  .aa-footer__grid { grid-template-columns: repeat(4, 1fr); }
}

/* Floating contact */
.aa-float {
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.aa-float__zalo,
.aa-float__msgr {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #b8e0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 104, 255, .18);
}
.aa-float__phone {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  background: #ff7a00;
  color: #fff;
  padding: 10px 16px;
  box-shadow: 0 6px 18px rgba(255, 122, 0, .35);
}
.aa-float__phone:hover { background: #ff8a1a; }
.aa-float__phone-label { display: block; font-size: 11px; font-weight: 500; opacity: .95; }
.aa-float__phone-num { display: block; font-size: 15px; font-weight: 700; letter-spacing: .04em; }

/* Pages */
.aa-page { padding: 32px 0 64px; }
.aa-breadcrumb { font-size: 14px; color: var(--muted); margin: 16px 0 24px; }
.aa-breadcrumb a:hover { color: var(--primary); }
.aa-article h1 { font-size: clamp(28px, 4vw, 40px); color: var(--heading); margin: 0 0 16px; }
.aa-article__meta {
  margin: 0 0 24px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff8fa;
}
.aa-article__byline,
.aa-article__dates,
.aa-article__cats {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
.aa-article__byline strong { color: #333; font-weight: 600; }
.aa-article__sep { margin: 0 6px; color: #ccc; }
.aa-article__cats a { color: var(--primary); font-weight: 600; }
.aa-article__excerpt {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: #444;
}
.aa-eeat {
  margin-top: 40px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}
.aa-eeat__title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--heading);
}
.aa-eeat__pillars {
  margin: 0 0 14px;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.7;
  color: #444;
}
.aa-eeat__pillars li { margin-bottom: 6px; }
.aa-eeat__pillars strong { color: var(--primary); }
.aa-eeat__text {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.7;
  color: #555;
}
.aa-eeat__facts {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.aa-eeat__facts a { color: var(--primary); font-weight: 600; }
.aa-article__thumb {
  margin-bottom: 24px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff0f4;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aa-article__thumb img,
.aa-article__thumb .wp-post-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}
.aa-content { font-size: 16px; line-height: 1.8; color: #333; }
.aa-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.aa-content h2 {
  margin: 1.6em 0 .6em;
  font-size: clamp(22px, 2.4vw, 28px);
  color: var(--heading);
  line-height: 1.3;
}
.aa-content h3 {
  margin: 1.3em 0 .5em;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--heading);
}
.aa-content p { margin: 0 0 1em; }
.aa-content ul, .aa-content ol { margin: 0 0 1em; padding-left: 1.25em; }
.aa-content blockquote {
  margin: 1.2em 0;
  padding: 12px 16px;
  border-left: 3px solid var(--primary);
  background: #fff8fa;
  color: #444;
}

/* About */
.aa-about { padding: 48px 0 64px; }
.aa-about__row {
  display: grid;
  gap: 40px;
  align-items: center;
}
.aa-about .aa-script { font-size: clamp(36px, 5vw, 48px); margin: 0 0 24px; }
.aa-about__text { font-size: clamp(14px, 1.6vw, 15px); line-height: 1.75; color: #333; margin: 0; }
.aa-about__img { overflow: hidden; border-radius: 16px; }
.aa-about-mid { padding-bottom: 40px; }
.aa-about-mid__grid {
  display: grid;
  gap: 24px;
  align-items: center;
}
.aa-about-mid__logo img { width: 180px; margin: 0 auto; }
.aa-about-vision { padding-bottom: 80px; }
.aa-about-vision__grid { display: grid; gap: 40px; }
.aa-about-vision .aa-script { font-size: clamp(32px, 4vw, 40px); margin: 0 0 16px; }
.aa-about-vision .aa-about__text { font-size: clamp(14px, 1.6vw, 15px); line-height: 1.75; }
@media (min-width: 1024px) {
  .aa-about__row { grid-template-columns: 1fr 1fr; }
  .aa-about-mid__grid { grid-template-columns: 4fr 3fr 5fr; }
  .aa-about-vision__grid { grid-template-columns: 1fr 1fr; }
}

/* Breadcrumb */
.aa-bc {
  border-bottom: 1px solid #f3e6ea;
  background: #fff8fa;
}
.aa-bc__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 15px;
  font-size: 13px;
  color: #777;
}
.aa-bc__home {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.aa-bc__home:hover { color: var(--primary); }
.aa-bc__current { color: #333; }

/* Shop page (Next.js /shop) */
.aa-shop {
  padding: 40px 0 56px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.aa-shop-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.aa-shop-section__head h4 {
  margin: 0;
  font-size: clamp(24px, 3vw, 28px);
  font-weight: 600;
  color: #333;
}
.aa-shop-section__head a {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}
.aa-shop-section__head a:hover { text-decoration: underline; }
.aa-shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 768px) {
  .aa-shop-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .aa-shop-grid { grid-template-columns: repeat(4, 1fr); }
}
.aa-product-card__image {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.aa-product-card__image img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

/* Blog page (Next.js /bai-viet) */
.aa-blog-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}
.aa-blog-cats__item {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  line-height: 1.2;
}
.aa-blog-cats__item:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.aa-blog-cats__item.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
@media (max-width: 639px) {
  .aa-blog-cats { gap: 6px; }
  .aa-blog-cats__item { font-size: 12px; padding: 6px 12px; min-height: 34px; }
}

.aa-blog-hero {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: #fde6ec;
  line-height: 0;
}
.aa-blog-hero img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(52vw, 420px);
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .aa-blog-hero img {
    max-height: min(42vw, 520px);
  }
}
.aa-blog-section { padding: 48px 0 64px; }
.aa-blog-section__title {
  text-align: center;
  font-size: clamp(40px, 5vw, 48px);
  margin: 0 0 32px;
}
.aa-blog-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}
.aa-blog-section__head .aa-script {
  margin: 0;
  font-size: clamp(36px, 4vw, 44px);
}
.aa-blog-section__head a {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}
.aa-blog-section__head a:hover { text-decoration: underline; }

.aa-blog-tintuc {
  background: #fff8fa;
  padding: 48px 0 64px;
}

.aa-post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.aa-post-grid--2 { grid-template-columns: 1fr; }
.aa-post-grid--3 { grid-template-columns: 1fr; }
.aa-post-grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .aa-post-grid--2,
  .aa-post-grid--3,
  .aa-post-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .aa-post-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .aa-post-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .aa-post-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.aa-post-card { display: block; }
.aa-post-card__image {
  position: relative;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 12px;
  background: #fff0f4;
  aspect-ratio: 4 / 3;
}
.aa-post-card__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  transition: opacity .2s;
}
.aa-post-card:hover .aa-post-card__image img { opacity: .92; }
@media (max-width: 639px) {
  .aa-post-card__image {
    aspect-ratio: 16 / 10;
  }
}
.aa-post-card__title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: #333;
}
.aa-post-card:hover .aa-post-card__title { color: var(--primary); }
.aa-post-card__excerpt {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.aa-post-card__date {
  font-size: 12px;
  color: #aaa;
}

/* Latest posts list below */
.aa-blog-latest {
  padding: 48px 0 72px;
  background: #fff;
  border-top: 1px solid #f3e6ea;
}
.aa-blog-latest__note {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.aa-post-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.aa-post-list__item {
  display: grid;
  grid-template-columns: minmax(96px, 28vw) 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid #f0d6de;
  border-radius: 16px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  overflow: hidden;
}
.aa-post-list__item:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(240, 82, 119, .08);
}
.aa-post-list__thumb {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #fff0f4;
  aspect-ratio: 4 / 3;
  align-self: stretch;
}
.aa-post-list__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
}
.aa-post-list__body {
  min-width: 0;
}
.aa-post-list__body time {
  display: block;
  font-size: 12px;
  color: #aaa;
  margin-bottom: 4px;
}
.aa-post-list__body h5 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  line-height: 1.35;
}
.aa-post-list__item:hover .aa-post-list__body h5 { color: var(--primary); }
.aa-post-list__body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 768px) {
  .aa-post-list__item {
    grid-template-columns: 180px 1fr;
    gap: 20px;
    padding: 16px 20px;
  }
  .aa-post-list__thumb { aspect-ratio: 4 / 3; }
}

/* WooCommerce light styling */
.aa-woo { padding: 32px 0 64px; }
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 768px) {
  .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .woocommerce ul.products { grid-template-columns: repeat(4, 1fr); }
}
.woocommerce ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  text-align: center;
}
.woocommerce .price { color: var(--primary); font-weight: 700; }
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: 999px !important;
  border: 0 !important;
}

/* Brand story page */
.aa-brand-story {
  position: relative;
  overflow: hidden;
  background: #fde8ee;
  padding: 40px 0 56px;
}
.aa-brand-story__bg {
  position: absolute;
  inset: 0;
  opacity: .4;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}
.aa-brand-story__inner { position: relative; z-index: 1; }
.aa-brand-story__title {
  margin: 0 0 16px;
  max-width: 48rem;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
  line-height: 1.3;
  color: var(--primary);
}
.aa-brand-story__title span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
}
.aa-brand-story__card {
  max-width: 48rem;
  border-radius: 16px;
  background: rgba(255,255,255,.95);
  padding: 14px 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.aa-brand-story__card p {
  margin: 0 0 10px;
  font-size: 11px;
  line-height: 1.65;
  color: #333;
}
.aa-brand-story__card p:last-child { margin-bottom: 0; }
@media (min-width: 768px) {
  .aa-brand-story__title { font-size: 18px; }
  .aa-brand-story__title span { font-size: 15px; }
  .aa-brand-story__card p { font-size: 12px; }
}

/* Mobile nav */
.aa-nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
  flex-shrink: 0;
  order: 3;
}
.aa-nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.aa-nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.aa-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.aa-nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 900px) {
  .aa-nav-toggle { display: none; }
}
@media (max-width: 899px) {
  .aa-header__actions { order: 2; margin-left: auto; }
  .aa-header.is-nav-open { box-shadow: 0 12px 28px rgba(75, 77, 82, .08); }
  .aa-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 8px var(--aa-gutter) 16px;
    margin: 0;
    z-index: 60;
    max-height: min(70vh, 480px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .aa-nav.is-open { display: flex; }
  .aa-nav__link {
    padding: 14px 4px;
    border-bottom: 1px solid #fde8ee;
    white-space: normal;
    font-size: 15px;
  }
  .aa-header.is-nav-open .aa-search {
    display: flex;
    position: absolute;
    left: var(--aa-gutter);
    right: var(--aa-gutter);
    top: calc(100% + 8px);
    z-index: 61;
    max-width: none;
    margin: 0;
    order: 0;
  }
  .aa-header.is-nav-open .aa-nav {
    padding-top: 56px;
  }
  body.aa-nav-lock {
    overflow: hidden;
    touch-action: none;
  }
}

/* Product detail */
.aa-pdp { padding: 24px 0 48px; }
@media (min-width: 768px) {
  .aa-pdp { padding: 40px 0 56px; }
}
.aa-pdp__bc {
  margin-bottom: 16px;
  font-size: 12px;
  color: #777;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
@media (min-width: 768px) {
  .aa-pdp__bc { margin-bottom: 24px; font-size: 13px; }
}
.aa-pdp__bc a:hover { color: var(--primary); }
.aa-pdp__bc-current { color: #333; }
.aa-pdp__grid {
  display: grid;
  gap: 24px;
  align-items: start;
}
@media (min-width: 1024px) {
  .aa-pdp__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
.aa-pdp__media {
  overflow: hidden;
  border-radius: 16px;
  background: #fafafa;
}
.aa-pdp__media img {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  object-fit: contain;
}
.aa-pdp__title {
  margin: 0 0 12px;
  font-size: clamp(22px, 5vw, 34px);
  font-weight: 600;
  color: #333;
  line-height: 1.25;
}
.aa-pdp__price { margin: 0 0 20px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.aa-pdp__old { font-size: 16px !important; }
.aa-pdp__new { font-size: 22px !important; }
@media (min-width: 768px) {
  .aa-pdp__old { font-size: 18px !important; }
  .aa-pdp__new { font-size: 24px !important; }
}
.aa-pdp__desc { margin-bottom: 24px; font-size: 14px; line-height: 1.75; color: #555; }
@media (min-width: 768px) {
  .aa-pdp__desc { margin-bottom: 32px; font-size: 15px; line-height: 1.8; }
}
.aa-pdp__desc p { margin: 0 0 12px; }
.aa-qty-label { display: inline-block; margin-right: 12px; font-size: 14px; color: #555; vertical-align: middle; }
.aa-pdp__cart .quantity {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  min-height: 44px;
  background: #fff;
  position: relative;
}
.aa-pdp__cart .quantity .qty {
  width: 48px;
  height: 44px;
  border: 0;
  margin: 0;
  padding: 0;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  line-height: 44px;
  background: transparent;
  -moz-appearance: textfield;
  appearance: textfield;
}
.aa-pdp__cart .quantity .qty::-webkit-outer-spin-button,
.aa-pdp__cart .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.aa-pdp__cart .aa-qty-btn {
  width: 44px;
  height: 44px;
}
.aa-pdp__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 480px) {
  .aa-pdp__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
}
.aa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--primary);
  text-decoration: none;
  min-height: 48px;
  width: 100%;
}
@media (min-width: 480px) {
  .aa-btn {
    width: auto;
    padding: 12px 32px;
  }
}
.aa-btn--primary { background: var(--primary); color: #fff; }
.aa-btn--primary:hover { opacity: .9; color: #fff; }
.aa-btn--outline { background: #fff; color: var(--primary); }
.aa-btn--outline:hover { background: #fff0f4; }
.aa-pdp__related { margin-top: 40px; }
@media (min-width: 768px) {
  .aa-pdp__related { margin-top: 64px; }
}
.aa-pdp__related h3 {
  margin: 0 0 20px;
  font-size: clamp(20px, 4vw, 24px);
  font-weight: 600;
  color: #333;
}

/* Cart / Checkout / Account */
.woocommerce-cart .aa-woo,
.woocommerce-checkout .aa-woo,
.woocommerce-account .aa-woo { padding: 24px 0 48px; }
@media (min-width: 768px) {
  .woocommerce-cart .aa-woo,
  .woocommerce-checkout .aa-woo,
  .woocommerce-account .aa-woo { padding: 40px 0 64px; }
}

.aa-page-title {
  margin: 0 0 20px;
  font-size: clamp(24px, 5vw, 34px);
  font-weight: 600;
  color: #333;
}
@media (min-width: 768px) {
  .aa-page-title { margin-bottom: 32px; }
}

/* Cart layout = Next.js CartView */
.aa-cart-layout {
  display: grid;
  gap: 20px;
  align-items: start;
}
@media (min-width: 1024px) {
  .aa-cart-layout { grid-template-columns: 1fr 320px; gap: 32px; }
}

.aa-cart-main {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}
.aa-cart-table__head {
  display: none;
  grid-template-columns: 1fr 120px 140px 40px;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: #fff8fa;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #666;
}
.aa-cart-col-qty { text-align: center; }
.aa-cart-col-subtotal { text-align: right; font-size: 15px; font-weight: 600; color: #333; }
@media (min-width: 768px) {
  .aa-cart-table__head { display: grid; }
}
@media (max-width: 767px) {
  .aa-cart-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "product remove"
      "qty qty"
      "subtotal subtotal";
    gap: 12px;
    padding: 14px;
  }
  .aa-cart-col-product { grid-area: product; min-width: 0; }
  .aa-cart-col-remove { grid-area: remove; align-self: start; }
  .aa-cart-col-qty { grid-area: qty; }
  .aa-cart-col-subtotal { grid-area: subtotal; }
  .aa-cart-col-qty,
  .aa-cart-col-subtotal {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .aa-cart-col-qty::before,
  .aa-cart-col-subtotal::before {
    content: attr(data-title);
    font-size: 12px;
    font-weight: 600;
    color: #888;
    letter-spacing: .02em;
  }
  .aa-cart-col-subtotal { text-align: left; }
  .aa-cart-product { gap: 12px; align-items: flex-start; }
  .aa-cart-product__thumb,
  .aa-cart-product__thumb img,
  .aa-cart-product__thumb .aa-cart-thumb {
    width: 64px !important;
    height: 64px !important;
  }
  .aa-cart-product__name { font-size: 14px; }
  .aa-cart-actions { justify-content: stretch; }
  .aa-cart-update { width: 100% !important; min-height: 44px; }
}

.aa-cart-row {
  display: grid;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.aa-cart-row:last-of-type { border-bottom: 0; }
@media (min-width: 768px) {
  .aa-cart-row { grid-template-columns: 1fr 120px 140px 40px; }
}

.aa-cart-product { display: flex; align-items: center; gap: 16px; }
.aa-cart-product__thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 12px;
  background: #fafafa;
}
.aa-cart-product__thumb img,
.aa-cart-product__thumb .aa-cart-thumb {
  width: 72px !important;
  height: 72px !important;
  object-fit: contain;
  margin: 0;
}
.aa-cart-product__name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  line-height: 1.35;
}
.aa-cart-product__name:hover { color: var(--primary); }
.aa-cart-product__price {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}
.aa-cart-product__price del { display: none; }

.aa-cart-col-qty .quantity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin: 0;
  background: #fff;
  min-height: 36px;
  max-width: 100%;
  vertical-align: middle;
  position: relative;
}
.aa-cart-col-qty .quantity .screen-reader-text {
  /* đảm bảo label WC không phá layout số lượng */
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  white-space: nowrap !important;
}
.aa-cart-col-qty .quantity .qty {
  width: 44px;
  min-width: 44px;
  height: 36px;
  border: 0;
  margin: 0;
  padding: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 36px;
  color: #333;
  background: transparent;
  -moz-appearance: textfield;
  appearance: textfield;
  box-shadow: none;
  outline: none;
}
.aa-qty-btn {
  border: 0;
  background: transparent;
  color: var(--primary);
  padding: 0;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.aa-qty-btn:hover { background: #fff0f4; }
.aa-cart-col-qty .quantity .qty::-webkit-outer-spin-button,
.aa-cart-col-qty .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Ẩn nút +/- mặc định của Woo nếu có, tránh trùng với aa-qty-btn */
.aa-cart-col-qty .quantity .minus,
.aa-cart-col-qty .quantity .plus,
.aa-pdp__cart .quantity .minus,
.aa-pdp__cart .quantity .plus {
  display: none !important;
}

.aa-cart-remove {
  display: inline-flex;
  color: #999;
  line-height: 1;
}
.aa-cart-remove:hover { color: var(--primary); }
.aa-cart-col-remove { justify-self: start; }
@media (min-width: 768px) {
  .aa-cart-col-remove { justify-self: end; }
  .aa-cart-col-qty { justify-self: center; }
}

.aa-cart-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--border);
}
.aa-cart-update {
  border: 1px solid var(--border) !important;
  background: #fff !important;
  color: #555 !important;
  border-radius: 999px !important;
  padding: 8px 16px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

.aa-cart-aside,
.cart-collaterals.aa-cart-aside {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.aa-cart-totals {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff8fa;
  padding: 20px;
}
.aa-cart-totals h2 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}
.aa-cart-totals__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #555;
}
.aa-cart-totals__value { font-weight: 600; color: #333; }
.aa-cart-totals__total {
  margin: 12px 0 20px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 16px;
  font-weight: 600;
  color: #333;
}
.aa-cart-totals__grand,
.aa-cart-totals__grand .amount,
.aa-cart-totals__grand strong {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
}
.aa-cart-checkout,
.aa-cart-totals .checkout-button,
.aa-cart-totals a.aa-btn--primary {
  display: block !important;
  width: 100%;
  text-align: center;
  margin: 0 0 12px !important;
  border-radius: 999px !important;
  background: var(--primary) !important;
  color: #fff !important;
  border: 0 !important;
  padding: 12px 20px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}
.aa-cart-continue {
  display: block;
  margin-bottom: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}
.aa-cart-continue:hover { text-decoration: underline; }
.aa-cart-note {
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: #999;
  line-height: 1.5;
}

.aa-cart-empty {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff8fa;
  padding: 48px 24px;
  text-align: center;
}
.aa-cart-empty p {
  margin: 0 0 16px;
  font-size: 16px;
  color: #555;
}
.aa-cart-empty .aa-btn { display: inline-flex; }

.woocommerce-checkout,
.woocommerce-order {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

/* Checkout layout = Next.js / screenshot */
.aa-checkout { border: 0 !important; background: transparent !important; padding: 0 !important; }
.aa-checkout-layout {
  display: grid;
  gap: 32px;
  align-items: start;
}
@media (min-width: 1024px) {
  .aa-checkout-layout { grid-template-columns: 1.2fr 0.8fr; }
}

.aa-checkout-main {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 20px;
}
@media (min-width: 768px) {
  .aa-checkout-main { padding: 24px; }
}

.aa-checkout-billing h3,
.aa-checkout-payment-block > h3 {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 600;
  color: #333;
}
.aa-checkout-payment-block { margin-top: 28px; }
.aa-checkout-payment-block > h3 { margin-bottom: 12px; font-size: 16px; }

.aa-checkout .form-row {
  margin: 0 0 16px;
  padding: 0;
  width: 100%;
  float: none;
}
.aa-checkout .form-row-first,
.aa-checkout .form-row-last {
  width: 100%;
}
@media (min-width: 768px) {
  .aa-checkout .woocommerce-billing-fields__field-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
  }
  .aa-checkout .form-row-wide,
  .aa-checkout .form-row-wide.notes { grid-column: 1 / -1; }
  .aa-checkout .form-row-first,
  .aa-checkout .form-row-last { width: auto; }
}
.aa-checkout .form-row label {
  display: block;
  margin: 0 0 6px;
  font-size: 14px;
  color: #555;
  line-height: 1.4;
}
.aa-checkout .form-row .required { color: var(--primary); }
.aa-checkout .form-row input.input-text,
.aa-checkout .form-row textarea,
.aa-checkout .form-row select {
  width: 100%;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  color: #333 !important;
  background: #fff !important;
  box-shadow: none !important;
}
.aa-checkout .form-row input.input-text:focus,
.aa-checkout .form-row textarea:focus,
.aa-checkout .form-row select:focus {
  border-color: var(--primary) !important;
  outline: none;
}
.aa-checkout .form-row textarea { min-height: 110px; resize: vertical; }

.aa-checkout-payment-methods { background: transparent !important; border: 0 !important; padding: 0 !important; }
.aa-checkout-payment-methods ul.payment_methods {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 0;
}
.aa-checkout-payment-methods ul.payment_methods > li {
  margin: 0 0 12px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.aa-checkout-payment-methods ul.payment_methods > li:has(input:checked) {
  border-color: var(--primary);
}
.aa-checkout-payment-methods ul.payment_methods > li > label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
}
.aa-checkout-payment-methods ul.payment_methods > li > input.input-radio {
  margin: 3px 0 0 16px;
  accent-color: var(--primary);
}
.aa-checkout-payment-methods .payment_box {
  margin: 0;
  padding: 0 16px 14px 44px;
  background: #fff8fa !important;
  border: 0 !important;
  color: #555;
  font-size: 13px;
  line-height: 1.6;
}
.aa-checkout-payment-methods .payment_box::before { display: none; }

.aa-checkout-aside {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(240, 82, 119, 0.06);
}
@media (min-width: 768px) {
  .aa-checkout-aside { padding: 24px; }
}
.aa-checkout-aside #order_review_heading,
.aa-checkout-aside > h3 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.aa-checkout-items {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.aa-checkout-items li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
}
.aa-checkout-item__thumb {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff5f8;
}
.aa-checkout-item__thumb img {
  width: 56px !important;
  height: 56px !important;
  object-fit: contain;
  margin: 0;
}
.aa-checkout-item__meta { min-width: 0; flex: 1; }
.aa-checkout-item__name {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aa-checkout-item__qty {
  margin: 2px 0 0;
  font-size: 12px;
  color: #777;
}
.aa-checkout-item__total {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}

.aa-checkout-totals {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.aa-checkout-totals__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #555;
}
.aa-checkout-totals__row span:last-child { font-weight: 600; color: #333; }
.aa-checkout-totals__shipping table,
.aa-checkout-totals__shipping tr,
.aa-checkout-totals__shipping th,
.aa-checkout-totals__shipping td {
  display: block;
  width: 100%;
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}
.aa-checkout-totals__shipping tr {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #555;
}
.aa-checkout-totals__grand {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-weight: 600;
  color: #333;
}
.aa-checkout-grand,
.aa-checkout-grand .amount,
.aa-checkout-grand strong {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
}

.aa-checkout-place { margin-top: 20px; }
.aa-checkout-submit,
.aa-checkout #place_order {
  display: block !important;
  width: 100% !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--primary) !important;
  color: #fff !important;
  padding: 12px 20px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  text-align: center;
  cursor: pointer;
}
.aa-checkout-back {
  display: block;
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}
.aa-checkout-back:hover { text-decoration: underline; }

.woocommerce-checkout #place_order {
  background: var(--primary) !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  padding: 14px 28px !important;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  padding: 10px 14px !important;
}
.woocommerce-message,
.woocommerce-info {
  border-top-color: var(--primary) !important;
  background: #fff8fa !important;
}

/* Thank you / order received */
.aa-thankyou { max-width: 760px; margin: 0 auto; }
.aa-thankyou__hero { text-align: center; margin-bottom: 24px; }
.aa-thankyou__check {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: #fff0f4;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
}
.aa-thankyou__title {
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 600;
  color: #333;
}
.aa-thankyou__subtitle { margin: 0; font-size: 15px; color: #555; }
.aa-thankyou__card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 1px 8px rgba(0,0,0,.04);
}
@media (min-width: 768px) {
  .aa-thankyou__card { padding: 32px; }
}
.aa-thankyou__card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.aa-thankyou__logo { height: 48px; width: auto; margin-bottom: 12px; }
.aa-thankyou__card-head p { margin: 0 0 2px; font-size: 13px; color: #777; }
.aa-thankyou__meta { text-align: left; }
@media (min-width: 768px) {
  .aa-thankyou__meta { text-align: right; }
}
.aa-thankyou__meta-label {
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #999;
}
.aa-thankyou__order-id {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}
.aa-thankyou__date { margin: 8px 0 0; font-size: 13px; color: #555; }
.aa-thankyou__status {
  display: inline-flex;
  margin-top: 8px;
  border-radius: 999px;
  background: #fff0f4;
  color: var(--primary);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
}
.aa-thankyou__info-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}
@media (min-width: 768px) {
  .aa-thankyou__info-grid { grid-template-columns: 1fr 1fr; }
}
.aa-thankyou__info {
  border-radius: 12px;
  background: #fff8fa;
  padding: 16px;
}
.aa-thankyou__info h2 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}
.aa-thankyou__info dl { margin: 0; }
.aa-thankyou__info dl > div { margin-bottom: 10px; }
.aa-thankyou__info dt {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #999;
}
.aa-thankyou__info dd {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}
.aa-thankyou__grand {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
}
.aa-thankyou__bank {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: #555;
}
.aa-thankyou__bank p { margin: 0 0 2px; }
.aa-thankyou__bank-title { font-weight: 600; color: #333 !important; margin-bottom: 4px !important; }

.aa-thankyou__products h2 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}
.aa-thankyou__products-wrap {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.aa-thankyou__products-head {
  display: none;
  grid-template-columns: 1fr 90px 110px 120px;
  gap: 12px;
  background: #fff8fa;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #888;
}
.aa-thankyou__products-head span:nth-child(2) { text-align: center; }
.aa-thankyou__products-head span:nth-child(3),
.aa-thankyou__products-head span:nth-child(4) { text-align: right; }
@media (min-width: 768px) {
  .aa-thankyou__products-head { display: grid; }
}
.aa-thankyou__products-list { list-style: none; margin: 0; padding: 0; }
.aa-thankyou__products-list li {
  display: grid;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  align-items: center;
}
.aa-thankyou__products-list li:first-child { border-top: 0; }
@media (min-width: 768px) {
  .aa-thankyou__products-list li { grid-template-columns: 1fr 90px 110px 120px; }
}
.aa-thankyou__product-main { display: flex; align-items: center; gap: 12px; }
.aa-thankyou__product-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: #fafafa;
  flex-shrink: 0;
}
.aa-thankyou__product-thumb img {
  width: 56px !important;
  height: 56px !important;
  object-fit: contain;
  margin: 0;
}
.aa-thankyou__product-main p { margin: 0; font-size: 14px; font-weight: 600; color: #333; }
.aa-thankyou__qty { font-size: 14px; color: #555; }
.aa-thankyou__unit { font-size: 14px; color: #555; }
.aa-thankyou__line { font-size: 14px; font-weight: 600; color: #333; }
@media (min-width: 768px) {
  .aa-thankyou__qty { text-align: center; }
  .aa-thankyou__unit,
  .aa-thankyou__line { text-align: right; }
}
.aa-thankyou__sums {
  margin: 16px 0 0 auto;
  max-width: 280px;
  font-size: 14px;
}
.aa-thankyou__sums > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: #555;
}
.aa-thankyou__sums-total {
  margin-top: 12px !important;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 16px;
}
.aa-thankyou__sums-total strong {
  font-size: 22px;
  color: var(--primary);
}
.aa-thankyou__note {
  margin: 24px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #777;
}
.aa-thankyou__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.aa-btn--telegram {
  background: #229ed9 !important;
  color: #fff !important;
  border: 0 !important;
}
.aa-btn--telegram:hover { opacity: .9; color: #fff !important; }

@media print {
  .aa-header,
  .aa-footer,
  .aa-float,
  .aa-thankyou__actions,
  .aa-thankyou__check { display: none !important; }
}

/* Hide leftover default empty billing blocks if any */
.woocommerce-order .woocommerce-customer-details:not(.aa-thankyou__info-grid) address:empty,
.woocommerce-order .woocommerce-order-overview { display: none; }

/* ========== Responsive polish (PC + mobile) ========== */
@media (max-width: 1023px) {
  .aa-checkout-aside,
  .aa-cart-aside {
    position: static;
  }
  .aa-checkout-place .aa-checkout-submit,
  .aa-checkout-submit,
  #place_order {
    width: 100% !important;
    min-height: 48px;
  }
}

@media (max-width: 767px) {
  :root { --aa-gutter: 14px; }

  .aa-news { padding: 28px 0 40px; }
  .aa-news__title { margin-bottom: 20px; font-size: clamp(26px, 7vw, 36px); }
  .aa-news__grid { gap: 14px; }

  .aa-shop { padding: 24px 0 40px; }
  .aa-shop-grid,
  .aa-pdp__related .aa-shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px 10px;
  }

  .aa-footer { padding: 36px 0 100px; }
  .aa-footer__grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
  .aa-footer__company p { font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }

  .aa-float {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    gap: 8px;
  }
  .aa-float__phone {
    padding: 8px 12px;
    max-width: min(220px, calc(100vw - 80px));
  }
  .aa-float__phone-label { font-size: 10px; }
  .aa-float__phone-num { font-size: 12px; }

  .aa-checkout-main,
  .aa-checkout-aside {
    padding: 16px;
    border-radius: 14px;
  }
  .aa-checkout-layout { gap: 16px; }
  .aa-checkout-item {
    gap: 10px;
  }
  .aa-thankyou__actions .aa-btn {
    width: 100%;
  }

  .woocommerce-account .woocommerce,
  .woocommerce-account .woocommerce-MyAccount-navigation,
  .woocommerce-account .woocommerce-MyAccount-content {
    width: 100% !important;
    float: none !important;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation li {
    margin: 0;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation a {
    display: inline-flex;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    background: #fff;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
  }
  .woocommerce form .form-row input.input-text,
  .woocommerce form .form-row textarea,
  .woocommerce-form-login input,
  .woocommerce-form-register input {
    min-height: 44px;
    font-size: 16px !important; /* tránh zoom iOS */
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .aa-products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .aa-products-grid--promo { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .aa-cart-layout,
  .aa-checkout-layout {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1280px) {
  .aa-container { padding: 0 24px; }
  .aa-product-card__title { font-size: 13px; }
}

/* Woo notices: không làm vỡ layout mobile */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.woocommerce-message .button,
.woocommerce-info .button {
  display: inline-flex !important;
  margin-top: 8px;
  white-space: nowrap;
}
@media (max-width: 479px) {
  .woocommerce-message,
  .woocommerce-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .woocommerce-message .button,
  .woocommerce-info .button {
    margin: 0 !important;
  }
}

