/* ============================================================
   AUTOSHOP — css/product.css
   Styles cho trang chi tiết sản phẩm xe
   ============================================================ */

/* ── Biến màu dùng chung ────────────────────────────────── */
.au-promo-red {
  color: var(--color-red, #eb0a1e);
  font-weight: 700;
}


/* ============================================================
   HERO — mirrors home.css (same markup + JS logic)
   ============================================================ */
.au-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #111;
}

.au-hero__track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.au-hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  will-change: opacity, transform;
  z-index: 0;
}

.au-hero__slide.is-active {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
}

.au-hero__slide.is-prev {
  opacity: 0;
  transform: translateX(-100%);
  z-index: 1;
}

.au-hero[data-dir="prev"] .au-hero__slide:not(.is-active):not(.is-prev) {
  transform: translateX(-100%);
}

.au-hero[data-dir="prev"] .au-hero__slide.is-prev {
  transform: translateX(100%);
}

.au-hero__slide.no-transition {
  transition: none !important;
}

.au-hero__slide--fallback {
  background: var(--color-dark, #1a1a1a);
}

.au-hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.au-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.3) 50%, rgba(0,0,0,.05) 100%),
    linear-gradient(to top, rgba(0,0,0,.4) 0%, transparent 60%);
  z-index: 1;
}

.au-hero__content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 64px;
}

.au-hero__content-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 680px;
  padding: 10px 20px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 0.84, 0.44, 1),
    transform 0.55s cubic-bezier(0.22, 0.84, 0.44, 1),
    background 0.38s ease,
    padding 0.38s ease;
}

.au-hero__slide.is-active .au-hero__content-box {
  opacity: 1;
  transform: translateY(0);
}

.au-hero__content-box:hover,
.au-hero__content-box:focus-within {
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 20px 40px 24px;
}

.au-hero__title {
  font-family: var(--font-heading, sans-serif);
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
  max-height: 0;
  opacity: 0;
  margin: 0;
  transition:
    max-height 0.38s ease,
    opacity 0.32s ease,
    margin 0.38s ease;
}

.au-hero__subtitle {
  font-family: var(--font-sub, sans-serif);
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin: 0;
  transition:
    max-height 0.38s ease 0.05s,
    opacity 0.32s ease 0.05s,
    margin 0.38s ease 0.05s;
}

.au-hero__cta {
  opacity: 0;
  text-decoration: none;
  transition:
    opacity 0.4s ease 0.4s,
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    color 0.3s ease;
}

.au-hero__cta:hover { text-decoration: none; }

.au-hero__slide.is-active .au-hero__cta {
  opacity: 1;
  background: var(--color-red, #eb0a1e);
  border-color: var(--color-red, #eb0a1e);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(235,10,30,.5);
  padding: 10px 24px;
  border-radius: 4px;
}

.au-hero__slide.is-active .au-hero__cta:hover {
  background: var(--color-red-dark, #c50819);
  border-color: var(--color-red-dark, #c50819);
  box-shadow: 0 6px 22px rgba(235,10,30,.65);
}

.au-hero__content-box:hover .au-hero__cta,
.au-hero__content-box:focus-within .au-hero__cta {
  background: transparent;
  border-color: rgba(255,255,255,.75);
  box-shadow: none;
}

.au-hero__content-box:hover .au-hero__cta:hover,
.au-hero__content-box:focus-within .au-hero__cta:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--color-red, #cc0000);
}

.au-hero__content-box:hover .au-hero__title,
.au-hero__content-box:focus-within .au-hero__title {
  max-height: 50px;
  opacity: 1;
  margin-bottom: 10px;
}

.au-hero__content-box:hover .au-hero__subtitle,
.au-hero__content-box:focus-within .au-hero__subtitle {
  max-height: 80px;
  opacity: 1;
  margin-bottom: 16px;
}

.au-hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.au-hero__arrow--prev { left: 28px; }
.au-hero__arrow--next { right: 28px; }

.au-hero__arrow:hover {
  background: var(--color-red, #eb0a1e);
  border-color: var(--color-red, #eb0a1e);
  transform: translateY(-50%) scale(1.08);
}

.au-hero__dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
}

.au-hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition:
    background 0.3s ease,
    width 0.3s ease,
    transform 0.3s ease;
}

.au-hero__dot.is-active {
  background: #ffffff;
  width: 28px;
  border-radius: 4px;
}

.au-hero__scroll-hint {
  position: absolute;
  bottom: 28px;
  right: 36px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.au-hero__scroll-line {
  display: block;
  width: 1.5px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,.6), transparent);
  position: relative;
  overflow: hidden;
}

.au-hero__scroll-line::after {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: #ffffff;
  animation: au-scroll-drop 1.8s ease infinite;
}

@keyframes au-scroll-drop {
  0%   { top: -8px; opacity: 1; }
  80%  { top: 48px; opacity: 0; }
  100% { top: -8px; opacity: 0; }
}

/* ── Product page sizing ─────────────────────────────────── */
.au-hero--product {
  height: calc(100vh - var(--au-chrome-height, 116px));
  min-height: 480px;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .au-hero__arrow { width: 44px; height: 44px; }
  .au-hero__arrow--prev { left: 16px; }
  .au-hero__arrow--next { right: 16px; }
}

@media (max-width: 768px) {
  .au-hero--product { height: calc(100svh - var(--au-chrome-height, 116px)); min-height: 400px; }
  .au-hero__arrow { width: 38px; height: 38px; }
  .au-hero__arrow--prev { left: 10px; }
  .au-hero__arrow--next { right: 10px; }
  .au-hero__dots { bottom: 18px; }
  .au-hero__scroll-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .au-hero__slide {
    transform: none !important;
    transition: opacity 0.15s ease;
  }
  .au-hero__content-box {
    transform: none !important;
    transition: opacity 0.15s ease;
  }
  .au-hero__title,
  .au-hero__subtitle { transition: none !important; }
  .au-hero__scroll-line::after { animation: none; }
}

/* ============================================================
   PRODUCT SECTION — Layout chính
   ============================================================ */
.au-product-section {
  background: #fff;
  padding: 36px 0 48px;
}

.au-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

@media (max-width: 1024px) {
  .au-product-grid {
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .au-product-section {
    padding: 24px 0 36px;
  }
  .au-product-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ============================================================
   PATCH: product.css — Gallery thumbs + Main image slide
   Thay thế block GALLERY trong product.css bằng block này
   ============================================================ */

/* Main image container — overflow:hidden để clip slide animation */
.au-gallery-main {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--color-border, #e4e4e4);
  border-radius: var(--radius-sm, 4px);
  overflow: hidden; /* QUAN TRỌNG: clip ảnh khi đang slide */
  aspect-ratio: 16 / 10; /* landscape ratio cho ảnh xe */
  display: flex;
  align-items: center;
  justify-content: center;
}

.au-gallery-main__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  /* KHÔNG set transition ở đây — JS sẽ control inline */
}

.au-gallery-main__img.is-loading {
  opacity: 0.4;
}

.au-gallery-main__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ddd;
  font-size: 72px;
}

/* Zoom button */
.au-gallery-zoom-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition:
    background 0.15s,
    transform 0.15s;
  z-index: 2;
}

.au-gallery-zoom-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

/* ── Thumbnails ───────────────────────────────────────────── */
.au-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 cột đều nhau */
  gap: 8px;
  margin-top: 10px;
}

.au-gallery-thumb {
  /* FIX: landscape ratio ~137:70 ≈ 2:1 để hiển thị full xe */
  aspect-ratio: 2 / 1;
  border: 2px solid var(--color-border, #e4e4e4);
  border-radius: var(--radius-sm, 4px);
  background: #f8f8f8;
  cursor: pointer;
  padding: 3px; /* padding nhỏ để ảnh có nhiều không gian */
  box-sizing: border-box;
  overflow: hidden;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.au-gallery-thumb img {
  width: 100%;
  height: 100%; /* FIX: fill toàn bộ button */
  object-fit: contain; /* contain: hiển thị full xe, không crop */
  display: block;
  pointer-events: none;
  background: #fff;
}

.au-gallery-thumb.is-active {
  border-color: var(--color-red, #eb0a1e);
  box-shadow: 0 0 0 1px var(--color-red, #eb0a1e); /* viền dày hơn */
}

.au-gallery-thumb:hover:not(.is-active) {
  border-color: #aaa;
}

/* Mobile: vẫn 4 cột nhưng gap nhỏ hơn */
@media (max-width: 480px) {
  .au-gallery-thumbs {
    gap: 6px;
  }
}
/* ============================================================
   PRODUCT INFO — Cột phải
   ============================================================ */
.au-product-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.au-product-info__name {
  font-family: var(--font-heading, sans-serif);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 900;
  color: var(--color-dark, #1a1a1a);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
}

.au-product-promo-box {
  border: 1px solid var(--color-border, #e4e4e4);
  border-radius: var(--radius-sm, 4px);
  overflow: hidden;
}

.au-product-promo-box__head {
  font-family: var(--font-body, sans-serif);
  font-size: 13px;
  color: #333;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border, #e4e4e4);
  background: #fafafa;
  line-height: 1.55;
}

.au-product-promo-list {
  list-style: none;
  padding: 12px 16px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.au-product-promo-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-family: var(--font-body, sans-serif);
  font-size: 13px;
  color: #333;
  line-height: 1.55;
}

.au-promo-check {
  width: 18px;
  height: 18px;
  min-width: 18px;
  background: #16a34a;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 9px;
  margin-top: 1px;
}

.au-product-promo-cta {
  display: block;
  text-align: center;
  font-family: var(--font-sub, sans-serif);
  font-size: 13px;
  font-weight: 700;
  font-style: italic;
  color: var(--color-red, #eb0a1e);
  text-decoration: none;
  padding: 12px 16px;
  border-top: 1px solid var(--color-border, #e4e4e4);
  background: #f8faff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition:
    color 0.15s,
    background 0.15s;
}

.au-product-promo-cta:hover {
  color: var(--color-red, #eb0a1e);
  background: #fff5f5;
}

.au-product-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.au-product-price-label {
  font-family: var(--font-sub, sans-serif);
  font-size: 14px;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
}

.au-product-price-label::before {
  content: "›";
  color: var(--color-red, #eb0a1e);
  margin-right: 4px;
  font-weight: 900;
}

.au-product-price {
  font-family: var(--font-sub, sans-serif);
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 800;
  color: var(--color-red, #eb0a1e);
}

.au-product-price .woocommerce-Price-amount {
  color: var(--color-red, #eb0a1e);
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
}

/* Form báo giá */
.au-product-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.au-product-form-title {
  font-family: var(--font-sub, sans-serif);
  font-size: 15px;
  font-weight: 800;
  color: var(--color-red, #eb0a1e);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 12px 0 10px;
  border-bottom: 1px solid var(--color-red, #eb0a1e);
  margin-bottom: 14px;
}

.au-product-input {
  display: block;
  width: 100%;
  padding: 11px 15px;
  margin-bottom: 10px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: var(--radius-sm, 4px);
  font-family: var(--font-body, sans-serif);
  font-size: 14px;
  color: #1a1a1a;
  outline: none;
  box-sizing: border-box;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.au-product-input::placeholder {
  color: #aaa;
}

.au-product-input:focus {
  border-color: var(--color-red, #eb0a1e);
  box-shadow: 0 0 0 3px rgba(235, 10, 30, 0.1);
}

.au-product-select {
  display: block;
  width: 100%;
  padding: 11px 38px 11px 15px;
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: var(--radius-sm, 4px);
  font-family: var(--font-body, sans-serif);
  font-size: 14px;
  color: #1a1a1a;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-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 13px center;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.au-product-select:focus {
  border-color: var(--color-red, #eb0a1e);
  box-shadow: 0 0 0 3px rgba(235, 10, 30, 0.1);
}

.au-product-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 120px;
  margin: 0 auto;
  padding: 12px 20px;
  background: var(--color-red, #eb0a1e);
  color: #fff;
  font-family: var(--font-sub, sans-serif);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  border-radius: var(--radius-sm, 4px);
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.15s;
}

.au-product-submit:hover:not(:disabled) {
  background: var(--color-red-dark, #b80015);
  transform: translateY(-1px);
}

.au-product-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.au-product-submit__loading {
  display: none;
}
.au-product-submit.is-loading .au-product-submit__text {
  display: none;
}
.au-product-submit.is-loading .au-product-submit__loading {
  display: flex;
}

.au-product-quote-msg {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm, 4px);
  font-family: var(--font-body, sans-serif);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  display: none;
}

.au-product-quote-msg.is-success {
  display: block;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.au-product-quote-msg.is-error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ============================================================
   COMMON PRODUCT DETAIL
   ============================================================ */
.au-common-detail {
  background: #fff;
  padding: 0 0 32px;
}

.au-common-detail__box {
  border: 1px solid var(--color-border, #e4e4e4);
  border-radius: var(--radius-sm, 4px);
  padding: 22px 24px;
  text-align: center;
  background: #fdfdfd;
}

.au-common-detail__cta {
  margin: 0 0 8px;
}

.au-common-detail__cta a {
  font-family: var(--font-sub, sans-serif);
  font-size: 15px;
  font-weight: 800;
  font-style: italic;
  color: var(--color-red, #eb0a1e);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: color 0.15s;
}

.au-common-detail__cta a:hover {
  color: var(--color-red, #eb0a1e);
}

.au-common-detail__note {
  font-family: var(--font-body, sans-serif);
  font-size: 14px;
  color: #444;
  margin: 0 0 6px;
  line-height: 1.6;
}

.au-common-detail__phone {
  font-family: var(--font-body, sans-serif);
  font-size: 14px;
  color: #444;
  margin: 0;
}

.au-common-detail__phone a {
  color: #333;
  font-weight: 600;
  text-decoration: none;
}

.au-common-detail__phone a:hover {
  color: var(--color-red, #eb0a1e);
}

/* ============================================================
   PRODUCT DETAIL TABS
   ============================================================ */
.au-product-detail-tabs {
  background: #fff;
  padding: 0 0 64px;
}

.au-tabs-nav {
  display: flex;
  border-bottom: 2px solid var(--color-border, #e4e4e4);
  margin-bottom: 0;
}

.au-tab-btn {
  font-family: var(--font-sub, sans-serif);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
  padding: 12px 22px;
  background: #f5f5f5;
  border: 1px solid var(--color-border, #e4e4e4);
  border-bottom: none;
  cursor: pointer;
  margin-right: 2px;
  margin-bottom: -2px;
  border-radius: var(--radius-sm, 4px) var(--radius-sm, 4px) 0 0;
  transition:
    color 0.15s,
    background 0.15s;
}

.au-tab-btn.is-active {
  color: var(--color-dark, #1a1a1a);
  background: #fff;
  border-bottom-color: #fff;
  border-color: var(--color-border, #e4e4e4);
}

.au-tab-panel {
  display: none;
  padding: 28px 0;
}

.au-tab-panel.is-active {
  display: block;
}

.au-product-content {
  font-family: var(--font-body, sans-serif);
  font-size: 14px;
  color: #333;
  line-height: 1.75;
}

.au-product-content h1,
.au-product-content h2,
.au-product-content h3 {
  font-family: var(--font-sub, sans-serif);
  color: var(--color-dark, #1a1a1a);
  margin-top: 28px;
  margin-bottom: 12px;
  line-height: 1.3;
}

.au-product-content h1 {
  font-size: clamp(18px, 2vw, 24px);
}
.au-product-content h2 {
  font-size: clamp(16px, 1.8vw, 20px);
}
.au-product-content h3 {
  font-size: clamp(14px, 1.4vw, 17px);
}
.au-product-content p {
  margin-bottom: 14px;
}

.au-product-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 18px auto;
  border-radius: var(--radius-sm, 4px);
}

.au-product-content table {
  width: auto;
  max-width: 100%;
  border-collapse: collapse;
  margin: 20px auto;
  font-size: 13px;
}

.au-product-content table td,
.au-product-content table th {
  border: 1px solid #ddd;
  padding: 8px 14px;
  line-height: 1.5;
  vertical-align: middle;
  text-align: left;
}

.au-product-content table tr:first-child td,
.au-product-content table tr:first-child th {
  background: #f5f5f5;
  font-weight: 700;
  text-align: center;
}

.au-product-content table tr:nth-child(even) td {
  background: #fafafa;
}

.au-product-content ul,
.au-product-content ol {
  padding-left: 24px;
  margin-bottom: 14px;
}

.au-product-content ul li,
.au-product-content ol li {
  margin-bottom: 6px;
}

.au-product-content a {
  color: var(--color-red, #eb0a1e);
  text-decoration: none;
}

.au-product-content a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .au-product-detail-tabs {
    padding-bottom: 40px;
  }
  .au-tab-btn {
    font-size: 12px;
    padding: 10px 14px;
  }
  .au-tab-panel {
    padding: 20px 0;
  }
  .au-product-content table {
    font-size: 12px;
    overflow-x: auto;
    display: block;
  }
  .au-product-content table td,
  .au-product-content table th {
    padding: 6px 10px;
  }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.au-lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal, 9000);
  display: flex;
  align-items: center;
  justify-content: center;
}

.au-lightbox[hidden] {
  display: none;
}

.au-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: zoom-out;
}

.au-lightbox__img-wrap {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.au-lightbox__img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-sm, 4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transition: opacity 0.2s ease;
}

.au-lightbox__close {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 2;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.15s;
}

.au-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.au-lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.15s,
    transform 0.15s;
}

.au-lightbox__arrow:hover {
  background: rgba(255, 255, 255, 0.2);
}
.au-lightbox__arrow--prev {
  left: 16px;
}
.au-lightbox__arrow--next {
  right: 16px;
}

.au-lightbox__counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-body, sans-serif);
  font-size: 13px;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .au-lightbox__arrow {
    width: 38px;
    height: 38px;
  }
  .au-lightbox__arrow--prev {
    left: 8px;
  }
  .au-lightbox__arrow--next {
    right: 8px;
  }
}
