/* AIAKart ABM Dark V2 */

:root {
  color-scheme: dark;
  --aia-bg: #060a13;
  --aia-panel: #0b1220;
  --aia-card: rgba(15, 23, 42, 0.78);
  --aia-text: #f8fafc;
  --aia-muted: #94a3b8;
  --aia-line: rgba(255,255,255,.10);
  --aia-blue: #2563eb;
  --aia-cyan: #22d3ee;
  --aia-green: #34d399;
  --aia-amber: #fbbf24;
  --aia-red: #fb7185;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--aia-bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(37,99,235,.24), transparent 32%),
    radial-gradient(circle at 88% 8%, rgba(14,165,233,.16), transparent 30%),
    radial-gradient(circle at 55% 100%, rgba(34,197,94,.08), transparent 36%),
    #060a13 !important;
  color: var(--aia-text);
  font-family: "Mirza", system-ui, -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 18px;
  line-height: 1.45;
}

body,
button,
input,
select,
textarea {
  font-family: "Mirza", system-ui, -apple-system, BlinkMacSystemFont, sans-serif !important;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .65; }

.aia-shell {
  width: min(1360px, calc(100% - 32px));
  margin-inline: auto;
}

.aia-header {
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid var(--aia-line);
  background: rgba(6, 10, 19, .90);
  backdrop-filter: blur(16px);
}

.aia-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 18px;
}

.aia-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 230px;
}

.aia-logo {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  overflow: hidden;
  border-radius: 17px;
  border: 1px solid rgba(148,163,184,.34);
  background: rgba(0,0,0,.50);
  color: white;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .02em;
}

.aia-logo .custom-logo-link,
.aia-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aia-brand-text strong {
  display: block;
  color: white;
  font-size: 28px;
  line-height: .9;
  font-weight: 700;
  letter-spacing: -.03em;
}

.aia-brand-text small {
  display: block;
  margin-top: 6px;
  color: var(--aia-muted);
  font-size: 17px;
  font-weight: 600;
}

.aia-menu-toggle {
  display: none;
  border: 1px solid var(--aia-line);
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  color: white;
  padding: 10px 12px;
  font-weight: 700;
}

.aia-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.aia-nav-pill,
.aia-footer-links a,
.aia-btn,
.button,
.added_to_cart,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 16px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap;
}

.aia-nav-pill,
.aia-footer-links a {
  border: 1px solid var(--aia-line);
  background: rgba(255,255,255,.045);
  color: #dbeafe;
  padding: 13px 16px;
  transition: 160ms ease;
}

.aia-nav-pill:hover,
.aia-footer-links a:hover {
  border-color: rgba(96,165,250,.36);
  color: white;
  transform: translateY(-1px);
}

.aia-nav-pill.active,
.aia-nav-pill.primary {
  border-color: rgba(59,130,246,.42);
  background: linear-gradient(135deg, rgba(37,99,235,.90), rgba(14,165,233,.74));
  color: white;
}

.aia-cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  color: white;
  font-size: 14px;
  font-weight: 700;
}

.aia-hero {
  display: grid;
  grid-template-columns: minmax(0,1fr) 390px;
  gap: 20px;
  align-items: stretch;
  padding: 34px 0 24px;
}

.aia-hero-card,
.aia-shop-hero,
.aia-product-card,
.aia-widget,
.woocommerce-cart-form,
.cart_totals,
.checkout.woocommerce-checkout,
.woocommerce-MyAccount-navigation,
.woocommerce-MyAccount-content,
.woocommerce-order,
.aia-detail-box,
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error {
  border: 1px solid var(--aia-line);
  background: linear-gradient(180deg, rgba(15,23,42,.84), rgba(15,23,42,.58));
  border-radius: 28px;
  box-shadow: 0 22px 70px rgba(0,0,0,.26);
}

.aia-hero-card {
  padding: 30px;
}

.aia-eyebrow {
  margin-bottom: 13px;
  color: var(--aia-cyan);
  font-size: 19px;
  font-weight: 700;
}

.aia-hero h1,
.aia-shop-hero h1,
.aia-single-title,
.aia-page-card h1 {
  margin: 0;
  color: white;
  font-size: clamp(44px, 5vw, 76px);
  line-height: .92;
  letter-spacing: -.055em;
  font-weight: 700;
}

.aia-hero p,
.aia-shop-hero p,
.aia-section-head p,
.aia-footer p,
.aia-entry,
.aia-page-card p {
  color: var(--aia-muted);
  line-height: 1.55;
}

.aia-hero p {
  max-width: 760px;
  font-size: 22px;
}

.aia-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.aia-btn,
.button,
.added_to_cart,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  border: 1px solid rgba(59,130,246,.42) !important;
  background: linear-gradient(135deg, rgba(37,99,235,.92), rgba(14,165,233,.76)) !important;
  padding: 14px 17px !important;
  color: white !important;
  cursor: pointer;
  transition: 160ms ease;
}

.aia-btn:hover,
.button:hover,
.added_to_cart:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.aia-btn.secondary {
  border-color: var(--aia-line) !important;
  background: rgba(255,255,255,.052) !important;
  color: #dbeafe !important;
}

.aia-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.aia-stat,
.aia-price-box,
.aia-detail-box {
  border: 1px solid var(--aia-line);
  border-radius: 20px;
  background: rgba(0,0,0,.17);
  padding: 15px;
}

.aia-stat span,
.aia-price-box span,
.aia-detail-box span {
  display: block;
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.aia-stat strong,
.aia-price-box strong,
.aia-detail-box strong {
  display: block;
  margin-top: 7px;
  color: white;
  font-size: 23px;
  font-weight: 700;
}

.aia-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0;
}

.aia-section-head.compact {
  margin-top: 28px;
}

.aia-section-head h2 {
  margin: 0;
  color: white;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -.04em;
}

.aia-section-head p {
  margin: 4px 0 0;
  font-size: 18px;
}

.aia-shop-page {
  padding: 28px 0 44px;
}

.aia-shop-hero {
  display: grid;
  grid-template-columns: minmax(0,1fr) 390px;
  gap: 18px;
  align-items: center;
  padding: 26px;
  margin-bottom: 18px;
}

.aia-product-search {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 10px;
}

.aia-product-search input,
.woocommerce input.input-text,
.woocommerce textarea,
.woocommerce select,
.input-text,
select,
textarea {
  width: 100%;
  border: 1px solid var(--aia-line) !important;
  border-radius: 18px !important;
  background: rgba(0,0,0,.26) !important;
  padding: 14px 16px !important;
  color: white !important;
  outline: none !important;
  font-size: 18px !important;
  font-weight: 600;
}

.aia-product-search button {
  border: 1px solid rgba(59,130,246,.42);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(37,99,235,.90), rgba(14,165,233,.72));
  color: white;
  padding: 0 20px;
  font-size: 18px;
  font-weight: 700;
}

.aia-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  color: white;
  font-weight: 600;
}

.aia-shop-toolbar .woocommerce-result-count {
  margin: 0 !important;
  color: #cbd5e1;
  font-size: 18px;
}

.aia-shop-toolbar .woocommerce-ordering {
  margin: 0 !important;
  float: none !important;
}

.aia-shop-toolbar .woocommerce-ordering select {
  width: auto !important;
  min-width: 250px !important;
  max-width: 100% !important;
}

.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(335px, 1fr)) !important;
  gap: 16px !important;
  margin: 0 0 28px !important;
  padding: 0 !important;
}

.woocommerce ul.products li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  list-style: none !important;
}

.aia-product-card {
  display: flex !important;
  min-height: 400px;
  flex-direction: column;
  gap: 14px;
  padding: 18px !important;
  border-radius: 22px !important;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.aia-product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(96,165,250,.42);
  background: rgba(15,23,42,.86);
}

.aia-product-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
}

.aia-product-top {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.aia-product-img {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  overflow: hidden;
  border-radius: 19px;
  border: 1px solid rgba(148,163,184,.38);
  background: rgba(0,0,0,.50);
  color: white;
  font-size: 18px;
  font-weight: 700;
}

.aia-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aia-product-title h2 {
  margin: 0;
  color: white;
  font-size: 25px;
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 700;
}

.aia-product-title p {
  margin: 6px 0 0;
  color: #60a5fa;
  font-size: 17px;
  font-weight: 600;
}

.aia-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.aia-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--aia-line);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.aia-badge.green {
  border-color: rgba(52,211,153,.28);
  background: rgba(52,211,153,.12);
  color: #86efac;
}

.aia-badge.blue {
  border-color: rgba(96,165,250,.28);
  background: rgba(96,165,250,.12);
  color: #93c5fd;
}

.aia-badge.amber {
  border-color: rgba(251,191,36,.28);
  background: rgba(251,191,36,.12);
  color: #fde68a;
}

.aia-badge.red {
  border-color: rgba(251,113,133,.28);
  background: rgba(251,113,133,.12);
  color: #fecdd3;
}

.aia-product-desc {
  min-height: 78px;
  margin: 0;
  color: var(--aia-muted);
  font-size: 20px;
  line-height: 1.28;
}

.aia-price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

.aia-price-box .price,
.aia-single-price .price {
  color: #86efac !important;
  font-weight: 700;
}

.aia-price-box del,
.aia-single-price del {
  color: #94a3b8 !important;
}

.aia-price-box ins,
.aia-single-price ins,
.aia-detail-box ins {
  color: #86efac !important;
  text-decoration: none;
}

.aia-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border-top: 1px solid var(--aia-line);
  padding-top: 12px;
}

.aia-card-actions .button,
.aia-card-actions .aia-btn {
  width: 100%;
}

.aia-single-product-page {
  padding: 28px 0 48px;
}

.aia-back-link {
  display: inline-flex;
  margin-bottom: 16px;
  color: #93c5fd;
  font-size: 18px;
  font-weight: 700;
}

.aia-single-grid {
  display: grid;
  grid-template-columns: 440px minmax(0,1fr);
  gap: 20px;
  align-items: start;
}

.aia-product-media-card,
.aia-product-detail-card {
  border-radius: 28px;
}

.aia-single-image {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--aia-line);
  border-radius: 28px;
  background: rgba(0,0,0,.36);
  color: white;
  font-size: 58px;
  font-weight: 700;
}

.aia-single-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aia-single-title {
  margin-top: 16px;
}

.aia-single-category {
  margin-top: 10px;
  color: #93c5fd;
  font-size: 19px;
  font-weight: 700;
}

.aia-single-summary {
  color: var(--aia-muted);
  font-size: 22px;
  line-height: 1.35;
  margin: 20px 0 0;
}

.aia-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin-top: 22px;
}

.aia-single-cart {
  margin-top: 24px;
}

.aia-single-cart form.cart {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.aia-single-cart .quantity input {
  max-width: 86px;
  text-align: center;
}

.aia-info-box {
  margin-top: 18px;
  border: 1px solid rgba(34,211,238,.20);
  border-radius: 18px;
  background: rgba(34,211,238,.10);
  padding: 14px;
  color: #cffafe;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}

.aia-product-full-details,
.aia-product-related {
  margin-top: 26px;
}

.aia-content {
  padding: 34px 0 48px;
}

.aia-page-card {
  max-width: 940px;
  margin-inline: auto;
}

.aia-entry {
  margin-top: 20px;
  color: #cbd5e1;
  font-size: 20px;
}

.aia-entry h1,
.aia-entry h2,
.aia-entry h3,
.aia-entry h4 {
  color: white;
  font-weight: 700;
}

.aia-entry ul,
.aia-entry ol {
  padding-left: 22px;
}

.aia-entry li {
  margin: 8px 0;
}

.aia-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
  gap: 15px;
}

.aia-footer {
  margin-top: 48px;
  border-top: 1px solid var(--aia-line);
  background: rgba(0,0,0,.20);
}

.aia-footer-inner {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 28px 0;
}

.aia-footer strong {
  color: white;
  font-size: 24px;
  font-weight: 700;
}

.aia-footer p {
  margin: 5px 0 0;
  font-size: 18px;
}

.aia-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Native WooCommerce pages */
.woocommerce-cart-form,
.cart_totals,
.checkout.woocommerce-checkout,
.woocommerce-MyAccount-navigation,
.woocommerce-MyAccount-content,
.woocommerce-order {
  padding: 22px !important;
  border-radius: 24px !important;
}

.woocommerce table.shop_table {
  border: 1px solid var(--aia-line) !important;
  border-radius: 18px !important;
  overflow: hidden;
  color: white;
  background: rgba(15,23,42,.58);
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  border-color: var(--aia-line) !important;
  color: white;
  font-size: 18px;
}

.woocommerce-cart .cart-collaterals .cart_totals {
  width: 100% !important;
  float: none !important;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top: 0 !important;
  padding: 15px 18px !important;
  color: white !important;
  list-style: none !important;
}

.woocommerce-error {
  border-color: rgba(251,113,133,.28) !important;
  background: rgba(251,113,133,.12) !important;
}

.woocommerce-message {
  border-color: rgba(52,211,153,.28) !important;
  background: rgba(52,211,153,.12) !important;
}

.woocommerce-info {
  border-color: rgba(96,165,250,.28) !important;
  background: rgba(96,165,250,.12) !important;
}

.woocommerce form .form-row label {
  color: #cbd5e1;
  font-size: 18px;
  font-weight: 700;
}

.woocommerce form .form-row {
  padding: 4px 0 !important;
}

.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
#order_review_heading,
.cart_totals h2,
.woocommerce-account h2,
.woocommerce-account h3 {
  color: white;
  font-weight: 700;
  letter-spacing: -.03em;
}

.select2-container--default .select2-selection--single {
  height: 54px !important;
  border: 1px solid var(--aia-line) !important;
  border-radius: 18px !important;
  background: rgba(0,0,0,.24) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: white !important;
  line-height: 54px !important;
}

.select2-dropdown {
  border-color: var(--aia-line) !important;
  background: #0b1220 !important;
  color: white !important;
}

.select2-results__option {
  color: white !important;
}

@media (max-width: 980px) {
  .aia-header-inner {
    align-items: flex-start;
  }

  .aia-menu-toggle {
    display: inline-flex;
  }

  .aia-nav {
    display: none;
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  body.aia-menu-open .aia-nav {
    display: flex;
  }

  .aia-nav-pill {
    width: 100%;
  }

  .aia-hero,
  .aia-shop-hero,
  .aia-single-grid {
    grid-template-columns: 1fr;
  }

  .aia-header-inner {
    flex-wrap: wrap;
  }

  .aia-footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 17px;
  }

  .aia-shell {
    width: min(100% - 22px, 1360px);
  }

  .aia-hero-card,
  .aia-shop-hero {
    padding: 20px;
  }

  .aia-hero h1,
  .aia-shop-hero h1,
  .aia-single-title,
  .aia-page-card h1 {
    font-size: 42px;
  }

  .woocommerce ul.products {
    grid-template-columns: 1fr !important;
  }

  .aia-product-card {
    min-height: 0;
  }

  .aia-stat-grid,
  .aia-price-grid,
  .aia-card-actions,
  .aia-detail-grid,
  .aia-product-search {
    grid-template-columns: 1fr;
  }

  .aia-shop-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .aia-shop-toolbar .woocommerce-ordering select {
    width: 100% !important;
  }
}


/* V3 compact ABM product layout */

body {
  font-size: 17px;
}

.aia-header-inner {
  padding-block: 14px;
}

.aia-logo {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
  border-radius: 15px;
  font-size: 16px;
}

.aia-brand-text strong {
  font-size: 23px;
}

.aia-brand-text small {
  font-size: 15px;
  margin-top: 4px;
}

.aia-nav-pill,
.aia-footer-links a {
  padding: 11px 14px;
  font-size: 16px !important;
}

.aia-hero {
  grid-template-columns: minmax(0,1fr) 350px;
  padding: 26px 0 18px;
}

.aia-hero-card {
  padding: 24px;
}

.aia-hero h1,
.aia-shop-hero h1,
.aia-page-card h1 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: .98;
}

.aia-hero p {
  font-size: 19px;
}

.aia-section-head h2 {
  font-size: 30px;
}

.aia-section-head p {
  font-size: 16px;
}

.aia-shop-hero {
  grid-template-columns: minmax(0,1fr) 330px;
  padding: 22px;
}

.woocommerce ul.products {
  grid-template-columns: repeat(auto-fill, minmax(292px, 1fr)) !important;
  gap: 16px !important;
}

.aia-product-card-v3 {
  min-height: 0 !important;
  padding: 16px !important;
  border-radius: 22px !important;
  gap: 12px !important;
}

.aia-product-card-v3 .aia-product-main {
  gap: 10px !important;
}

.aia-product-img-full {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,.30);
  background: rgba(0,0,0,.38);
  color: white;
  font-size: 28px;
  font-weight: 700;
}

.aia-product-img-full img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.aia-product-name-v3 {
  margin: 4px 0 0 !important;
  color: white;
  font-size: 22px !important;
  line-height: 1.04 !important;
  letter-spacing: -.025em;
  font-weight: 700;
}

.aia-product-meta-v3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #60a5fa;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.1;
}

.aia-rating {
  color: #facc15;
  white-space: nowrap;
}

.aia-main-price-v3 {
  color: #86efac;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
}

.aia-product-desc-v3 {
  min-height: 58px;
  margin: 0;
  color: #a8bdd6;
  font-size: 18px;
  line-height: 1.28;
}

.aia-card-bottom-v3 {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--aia-line);
  padding-top: 12px;
}

.aia-stock-v3 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  border-radius: 15px;
  border: 1px solid rgba(251,191,36,.25);
  background: rgba(251,191,36,.10);
  padding: 10px 12px;
  color: #fde68a;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.aia-stock-v3.out {
  border-color: rgba(251,113,133,.25);
  background: rgba(251,113,133,.10);
  color: #fecdd3;
}

.aia-card-bottom-v3 .button {
  width: 100%;
}

/* Hide v2 badge/price panels only inside old layouts if plugin prints them */
.aia-product-card-v3 .aia-badges,
.aia-product-card-v3 .aia-price-grid,
.aia-product-card-v3 .aia-product-top,
.aia-product-card-v3 .aia-product-desc {
  display: none !important;
}

/* V3 single product page */
.aia-single-v3 {
  padding-top: 24px;
}

.aia-single-top-v3 {
  padding: 30px;
}

.aia-single-title-v3 {
  margin: 0;
  color: white;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: .96;
  letter-spacing: -.045em;
  font-weight: 700;
  max-width: 980px;
}

.aia-single-rating-v3 {
  margin-top: 12px;
  color: #facc15;
  font-size: 18px;
  font-weight: 600;
}

.aia-single-layout-v3 {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 22px;
}

.aia-single-image-v3 {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--aia-line);
  background: rgba(0,0,0,.35);
  min-height: 420px;
}

.aia-single-image-v3 img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
  padding: 10px;
}

.aia-single-summary-v3 {
  margin: 0;
  color: #a8bdd6;
  font-size: 21px;
  line-height: 1.36;
}

.aia-detail-grid-v3 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin-top: 18px;
}

.aia-detail-grid-v3 .aia-detail-box {
  padding: 15px;
}

.aia-detail-grid-v3 .aia-detail-box strong {
  font-size: 22px;
}

.aia-single-cart-v3 {
  margin-top: 20px;
}

.aia-single-cart-v3 form.cart {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.aia-single-cart-v3 .quantity input {
  max-width: 86px;
  text-align: center;
}

.aia-product-full-details .aia-entry {
  font-size: 19px;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .aia-hero,
  .aia-shop-hero,
  .aia-single-layout-v3 {
    grid-template-columns: 1fr;
  }

  .aia-single-image-v3 {
    min-height: 320px;
  }
}

@media (max-width: 560px) {
  .aia-brand-text strong {
    font-size: 21px;
  }

  .aia-brand-text small {
    font-size: 13px;
  }

  .aia-hero h1,
  .aia-shop-hero h1,
  .aia-single-title-v3 {
    font-size: 34px;
  }

  .aia-product-name-v3 {
    font-size: 20px !important;
  }

  .aia-product-meta-v3,
  .aia-card-bottom-v3,
  .aia-detail-grid-v3 {
    grid-template-columns: 1fr;
  }

  .aia-product-meta-v3 {
    display: grid;
  }

  .aia-single-top-v3 {
    padding: 20px;
  }
}


/* V4 final product structure */

body {
  font-size: 16px;
}

.aia-header-inner {
  padding-block: 12px;
}

.aia-brand {
  min-width: 210px;
}

.aia-logo {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border-radius: 14px;
  font-size: 15px;
}

.aia-brand-text strong {
  font-size: 20px;
  line-height: .92;
}

.aia-brand-text small {
  font-size: 13px;
  margin-top: 3px;
}

.aia-nav-pill,
.aia-footer-links a {
  padding: 10px 13px;
  font-size: 15px !important;
}

.aia-cart-count {
  min-width: 20px;
  height: 20px;
  font-size: 12px;
}

.aia-hero {
  grid-template-columns: minmax(0,1fr) 330px;
  padding: 22px 0 16px;
}

.aia-hero-card {
  padding: 22px;
}

.aia-hero h1,
.aia-shop-hero h1,
.aia-page-card h1 {
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1;
}

.aia-hero p {
  font-size: 17px;
}

.aia-section-head h2 {
  font-size: 26px;
}

.aia-section-head p {
  font-size: 15px;
}

.aia-shop-hero {
  grid-template-columns: minmax(0,1fr) 310px;
  padding: 20px;
}

.aia-shop-toolbar,
.aia-result-count,
.aia-ordering,
.woocommerce-result-count,
.woocommerce-ordering {
  display: none !important;
}

/* Exact 3 cards on desktop */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
  margin: 0 0 28px !important;
  padding: 0 !important;
}

.woocommerce ul.products li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  list-style: none !important;
}

/* Clean card: image -> title -> meta/rating -> bottom price + add cart */
.aia-product-card-v4 {
  min-height: 0 !important;
  padding: 16px !important;
  border-radius: 22px !important;
  gap: 12px !important;
}

.aia-product-card-v4 .aia-product-main-v4 {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.aia-product-img-v4 {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,.30);
  background: rgba(0,0,0,.38);
  color: white;
  font-size: 24px;
  font-weight: 700;
}

.aia-product-img-v4 img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.aia-product-name-v4 {
  margin: 3px 0 0 !important;
  color: white;
  font-size: 20px !important;
  line-height: 1.05 !important;
  letter-spacing: -.022em;
  font-weight: 700;
  min-height: 42px;
}

.aia-product-meta-v4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #60a5fa;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.1;
}

.aia-product-meta-v4 .aia-rating {
  color: #facc15;
  white-space: nowrap;
}

.aia-card-bottom-v4 {
  display: grid;
  grid-template-columns: minmax(116px, auto) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--aia-line);
  padding-top: 12px;
  margin-top: auto;
}

.aia-price-pill-v4 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 15px;
  border: 1px solid rgba(52,211,153,.26);
  background: rgba(0,0,0,.35);
  padding: 10px 13px;
  color: #86efac !important;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.aia-price-pill-v4 .woocommerce-Price-amount,
.aia-price-pill-v4 .woocommerce-Price-currencySymbol {
  color: #86efac !important;
  display: inline !important;
}

.aia-card-bottom-v4 .button {
  width: 100%;
  min-height: 46px;
}

/* Force old v2/v3 elements hidden if Woo prints from cache */
.aia-product-card-v4 .aia-badges,
.aia-product-card-v4 .aia-price-grid,
.aia-product-card-v4 .aia-product-top,
.aia-product-card-v4 .aia-product-desc,
.aia-product-card-v4 .aia-product-desc-v3,
.aia-product-card-v4 .aia-stock-v3 {
  display: none !important;
}

/* V4 single product */
.aia-single-v4 {
  padding-top: 20px;
}

.aia-back-link {
  margin-bottom: 14px;
  font-size: 16px;
}

.aia-single-top-v4 {
  padding: 28px 30px;
}

.aia-single-title-v4 {
  margin: 0;
  color: white;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.02;
  letter-spacing: -.04em;
  font-weight: 700;
  max-width: 980px;
}

.aia-single-rating-v4 {
  margin-top: 10px;
  color: #facc15;
  font-size: 16px;
  font-weight: 600;
}

.aia-single-layout-v4 {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 20px;
}

.aia-single-image-v4 {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--aia-line);
  background: rgba(0,0,0,.35);
  min-height: 420px;
}

.aia-single-image-v4 img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
  padding: 10px;
}

.aia-detail-grid-v4 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}

.aia-detail-grid-v4 .aia-detail-box {
  padding: 15px;
}

.aia-detail-grid-v4 .aia-detail-box strong {
  font-size: 20px;
}

.aia-main-price-clear,
.aia-main-price-clear .woocommerce-Price-amount,
.aia-main-price-clear .woocommerce-Price-currencySymbol {
  color: #86efac !important;
  display: inline !important;
  font-size: 20px !important;
  line-height: 1 !important;
}

.aia-single-cart-v4 {
  margin-top: 20px;
}

.aia-single-cart-v4 form.cart {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.aia-single-cart-v4 .quantity input {
  max-width: 86px;
  text-align: center;
}

.aia-product-full-details .aia-section-head h2 {
  font-size: 26px;
}

.aia-product-full-details .aia-entry {
  font-size: 18px;
  line-height: 1.45;
}

/* Remove original price/discount display in card price */
.aia-price-pill-v4 del,
.aia-price-pill-v4 ins {
  text-decoration: none !important;
}

.aia-price-pill-v4 del {
  display: none !important;
}

@media (max-width: 1100px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 980px) {
  .aia-hero,
  .aia-shop-hero,
  .aia-single-layout-v4 {
    grid-template-columns: 1fr;
  }

  .aia-single-image-v4 {
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  .woocommerce ul.products {
    grid-template-columns: 1fr !important;
  }

  .aia-single-top-v4 {
    padding: 20px;
  }

  .aia-single-title-v4 {
    font-size: 30px;
  }

  .aia-detail-grid-v4,
  .aia-card-bottom-v4 {
    grid-template-columns: 1fr;
  }

  .aia-product-name-v4 {
    min-height: auto;
    font-size: 19px !important;
  }

  .aia-product-meta-v4 {
    display: grid;
  }
}


/* V5 direct image, no search, Source Code / PineScript filters */

.aia-shop-hero-v5 {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.aia-filter-tabs {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.aia-filter-tabs a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--aia-line);
  border-radius: 16px;
  background: rgba(255,255,255,.045);
  padding: 10px 16px;
  color: #dbeafe;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.aia-filter-tabs a.active {
  border-color: rgba(59,130,246,.42);
  background: linear-gradient(135deg, rgba(37,99,235,.90), rgba(14,165,233,.74));
  color: white;
}

.aia-product-search {
  display: none !important;
}

.woocommerce ul.products {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

.aia-product-card-v5 {
  min-height: 0 !important;
  padding: 16px !important;
  gap: 12px !important;
  border-radius: 22px !important;
}

.aia-product-main-v5 {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.aia-product-img-v5 {
  width: 100%;
  display: block;
  overflow: hidden;
  border: 0 !important;
  border-radius: 16px;
  background: transparent !important;
  color: white;
  font-size: 24px;
  font-weight: 700;
  line-height: 0;
}

.aia-product-img-v5 img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: initial !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 16px;
}

.aia-product-name-v5 {
  margin: 4px 0 0 !important;
  color: white;
  font-size: 20px !important;
  line-height: 1.05 !important;
  letter-spacing: -.022em;
  font-weight: 700;
  min-height: 42px;
}

.aia-product-meta-v5 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #60a5fa;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.1;
  border-bottom: 1px solid var(--aia-line);
  padding-bottom: 10px;
}

.aia-product-meta-v5 .aia-rating {
  color: #facc15;
  white-space: nowrap;
}

.aia-card-bottom-v5 {
  display: grid;
  grid-template-columns: minmax(116px, auto) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: auto;
}

.aia-price-pill-v5 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 15px;
  border: 1px solid rgba(52,211,153,.26);
  background: rgba(0,0,0,.35);
  padding: 10px 13px;
  color: #86efac !important;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.aia-price-pill-v5 .woocommerce-Price-amount,
.aia-price-pill-v5 .woocommerce-Price-currencySymbol {
  color: #86efac !important;
  display: inline !important;
}

.aia-price-pill-v5 del {
  display: none !important;
}

.aia-price-pill-v5 ins {
  text-decoration: none !important;
}

.aia-card-bottom-v5 .button {
  width: 100%;
  min-height: 46px;
}

/* Force older card pieces off */
.aia-product-card-v5 .aia-badges,
.aia-product-card-v5 .aia-price-grid,
.aia-product-card-v5 .aia-product-top,
.aia-product-card-v5 .aia-product-desc,
.aia-product-card-v5 .aia-product-desc-v3,
.aia-product-card-v5 .aia-stock-v3,
.aia-product-card-v5 .aia-product-img-v4,
.aia-product-card-v5 .aia-product-name-v4,
.aia-product-card-v5 .aia-product-meta-v4,
.aia-product-card-v5 .aia-card-bottom-v4 {
  display: none !important;
}

/* V5 single product image direct */
.aia-single-top-v5 {
  padding: 28px 30px;
}

.aia-single-title-v5 {
  margin: 0;
  color: white;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.02;
  letter-spacing: -.04em;
  font-weight: 700;
  max-width: 980px;
}

.aia-single-rating-v5 {
  margin-top: 10px;
  color: #facc15;
  font-size: 16px;
  font-weight: 600;
}

.aia-single-layout-v5 {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 20px;
}

.aia-single-image-v5 {
  display: block;
  overflow: hidden;
  border: 0 !important;
  border-radius: 20px;
  background: transparent !important;
  line-height: 0;
}

.aia-single-image-v5 img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: initial !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 20px;
}

.aia-detail-grid-v5 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}

.aia-detail-grid-v5 .aia-detail-box {
  padding: 15px;
}

.aia-detail-grid-v5 .aia-detail-box strong {
  font-size: 20px;
}

.aia-single-cart-v5 {
  margin-top: 20px;
}

.aia-single-cart-v5 form.cart {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.aia-single-cart-v5 .quantity input {
  max-width: 86px;
  text-align: center;
}

@media (max-width: 1100px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 980px) {
  .aia-shop-hero-v5,
  .aia-single-layout-v5 {
    grid-template-columns: 1fr;
  }

  .aia-filter-tabs {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .woocommerce ul.products {
    grid-template-columns: 1fr !important;
  }

  .aia-single-top-v5 {
    padding: 20px;
  }

  .aia-single-title-v5 {
    font-size: 30px;
  }

  .aia-detail-grid-v5,
  .aia-card-bottom-v5 {
    grid-template-columns: 1fr;
  }

  .aia-product-name-v5 {
    min-height: auto;
    font-size: 19px !important;
  }

  .aia-product-meta-v5 {
    display: grid;
  }
}


/* V6 professional customizer + footer menu polish */

.aia-footer-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.aia-footer-menu li {
  margin: 0;
  padding: 0;
}

.aia-footer-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid var(--aia-line);
  background: rgba(255,255,255,.04);
  padding: 10px 13px;
  color: #cbd5e1;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

.aia-footer-menu a:hover {
  border-color: rgba(96,165,250,.36);
  color: white;
}

.aia-nav .aia-nav-pill[href*="/shop"] {
  display: none !important;
}

.customize-partial-edit-shortcut,
.customize-partial-edit-shortcut-button {
  z-index: 10000;
}

.aia-filter-tabs a {
  user-select: none;
}


/* V7 production polish, product page, footer active, My Account UX */

.aia-shop-page .aia-hero-card h2 {
  margin: 0;
  color: white;
  font-size: 24px;
  line-height: 1.1;
}

.aia-shop-page .aia-hero-card p {
  display: none;
}

.aia-single-top-v7 {
  padding: 26px 30px;
}

.aia-single-title-v7 {
  margin: 0;
  color: white;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -.035em;
  font-weight: 700;
  max-width: 980px;
}

.aia-single-rating-v7 {
  margin-top: 8px;
  color: #facc15;
  font-size: 15px;
  font-weight: 600;
}

.aia-single-layout-v7 {
  display: grid;
  grid-template-columns: 410px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 18px;
}

.aia-single-image-v7 {
  display: block;
  overflow: hidden;
  border: 0 !important;
  border-radius: 20px;
  background: transparent !important;
  line-height: 0;
}

.aia-single-image-v7 img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: initial !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 20px;
}

.aia-detail-grid-v7 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}

.aia-detail-grid-v7 .aia-detail-box {
  padding: 15px;
}

.aia-single-cart-v7 {
  margin-top: 20px;
}

.aia-single-cart-v7 form.cart {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.aia-single-cart-v7 .quantity input {
  max-width: 86px;
  text-align: center;
}

.aia-product-related,
.related.products {
  display: none !important;
}

.aia-theme-credit {
  margin-top: 8px;
  color: #60a5fa;
  font-weight: 700;
}

/* Footer active tab */
.aia-footer-links a.active,
.aia-footer-menu .current-menu-item > a,
.aia-footer-menu .current_page_item > a,
.aia-footer-links a[aria-current="page"] {
  border-color: rgba(59,130,246,.42) !important;
  background: linear-gradient(135deg, rgba(37,99,235,.90), rgba(14,165,233,.74)) !important;
  color: #fff !important;
}

/* My Account: digital product UX */
.woocommerce-account .woocommerce {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.woocommerce-MyAccount-navigation.aia-account-nav {
  padding: 18px !important;
  border-radius: 24px !important;
  border: 1px solid var(--aia-line);
  background: linear-gradient(180deg, rgba(15,23,42,.84), rgba(15,23,42,.58));
  box-shadow: 0 22px 70px rgba(0,0,0,.18);
}

.aia-account-nav-grid {
  display: grid;
  gap: 9px;
}

.aia-account-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--aia-line);
  border-radius: 16px;
  background: rgba(255,255,255,.045);
  padding: 13px 14px;
  color: #dbeafe;
  font-size: 16px;
  font-weight: 700;
}

.aia-account-tab.is-active,
.aia-account-tab:hover {
  border-color: rgba(59,130,246,.42);
  background: linear-gradient(135deg, rgba(37,99,235,.90), rgba(14,165,233,.74));
  color: white;
}

.woocommerce-MyAccount-content {
  padding: 22px !important;
  border-radius: 24px !important;
  border: 1px solid var(--aia-line);
  background: linear-gradient(180deg, rgba(15,23,42,.84), rgba(15,23,42,.58));
}

.aia-account-dashboard {
  display: grid;
  gap: 18px;
}

.aia-account-hero {
  border: 1px solid rgba(96,165,250,.24);
  border-radius: 24px;
  background: rgba(96,165,250,.10);
  padding: 22px;
}

.aia-account-hero h2 {
  margin: 0;
  color: white;
  font-size: 30px;
  line-height: 1.05;
}

.aia-account-hero p {
  margin: 10px 0 0;
  color: #bfdbfe;
  font-size: 18px;
  line-height: 1.4;
}

.aia-account-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}

.aia-account-card {
  border: 1px solid var(--aia-line);
  border-radius: 20px;
  background: rgba(0,0,0,.18);
  padding: 18px;
  transition: 160ms ease;
}

.aia-account-card:hover {
  transform: translateY(-2px);
  border-color: rgba(96,165,250,.35);
}

.aia-account-card span {
  display: block;
  color: #60a5fa;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.aia-account-card strong {
  display: block;
  margin-top: 8px;
  color: white;
  font-size: 22px;
  line-height: 1;
}

.aia-account-card small {
  display: block;
  margin-top: 8px;
  color: #94a3b8;
  font-size: 15px;
  line-height: 1.35;
}

.aia-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.woocommerce-MyAccount-content > p:first-child,
.woocommerce-MyAccount-content .woocommerce-info {
  font-size: 17px;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .aia-single-layout-v7,
  .woocommerce-account .woocommerce {
    grid-template-columns: 1fr;
  }

  .aia-account-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .aia-single-top-v7 {
    padding: 20px;
  }

  .aia-single-title-v7 {
    font-size: 28px;
  }

  .aia-detail-grid-v7 {
    grid-template-columns: 1fr;
  }
}


/* V8 digital product flow: no cart menu, no ratings, no quantity, direct checkout */

.aia-menu-toggle {
  width: 48px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  padding: 0;
}

.aia-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: #fff;
}

@media (max-width: 980px) {
  .aia-menu-toggle {
    display: inline-flex;
  }
}

.aia-shop-filter-box {
  border: 1px solid var(--aia-line);
  background: linear-gradient(180deg, rgba(15,23,42,.84), rgba(15,23,42,.58));
  border-radius: 28px;
  box-shadow: 0 22px 70px rgba(0,0,0,.26);
  padding: 18px;
  margin: 22px 0 18px;
}

.aia-shop-hero-v8 {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.aia-shop-hero-v8 .aia-filter-tabs {
  justify-content: flex-end;
}

/* Remove all rating visuals/sitewide */
.star-rating,
.woocommerce-product-rating,
.woocommerce-review-link,
.woocommerce .star-rating,
.comment-form-rating,
#reviews,
.woocommerce-tabs .reviews_tab,
.aia-rating,
.aia-single-rating-v4,
.aia-single-rating-v5,
.aia-single-rating-v7,
.aia-single-rating-v8 {
  display: none !important;
}

/* Remove cart page/top cart traces */
.aia-nav .aia-nav-pill[href*="cart"],
.aia-footer-links a[href*="cart"],
.aia-footer-menu a[href*="cart"] {
  display: none !important;
}

/* Hide quantity everywhere for digital products */
.quantity,
.woocommerce .quantity,
input.qty,
.woocommerce div.quantity {
  display: none !important;
}

/* V8 product cards */
.aia-product-card-v8 {
  min-height: 0 !important;
  padding: 16px !important;
  gap: 12px !important;
  border-radius: 22px !important;
}

.aia-product-main-v8 {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.aia-product-img-v8 {
  width: 100%;
  display: block;
  overflow: hidden;
  border: 0 !important;
  border-radius: 16px;
  background: transparent !important;
  color: white;
  font-size: 24px;
  font-weight: 700;
  line-height: 0;
}

.aia-product-img-v8 img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: initial !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 16px;
}

.aia-product-name-v8 {
  margin: 4px 0 0 !important;
  color: white;
  font-size: 20px !important;
  line-height: 1.05 !important;
  letter-spacing: -.022em;
  font-weight: 700;
  min-height: 42px;
}

.aia-product-meta-v8 {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  color: #60a5fa;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.1;
  border-bottom: 1px solid var(--aia-line);
  padding-bottom: 10px;
}

.aia-card-bottom-v8 {
  display: grid;
  grid-template-columns: minmax(116px, auto) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: auto;
}

.aia-price-pill-v8 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 15px;
  border: 1px solid rgba(52,211,153,.26);
  background: rgba(0,0,0,.35);
  padding: 10px 13px;
  color: #86efac !important;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.aia-price-pill-v8 .woocommerce-Price-amount,
.aia-price-pill-v8 .woocommerce-Price-currencySymbol {
  color: #86efac !important;
  display: inline !important;
}

.aia-price-pill-v8 del {
  display: none !important;
}

.aia-price-pill-v8 ins {
  text-decoration: none !important;
}

.aia-buy-now-v8 {
  width: 100%;
  min-height: 46px;
}

/* Force old product card parts off */
.aia-product-card-v8 .aia-badges,
.aia-product-card-v8 .aia-price-grid,
.aia-product-card-v8 .aia-product-top,
.aia-product-card-v8 .aia-product-desc,
.aia-product-card-v8 .aia-product-desc-v3,
.aia-product-card-v8 .aia-stock-v3,
.aia-product-card-v8 .aia-product-img-v4,
.aia-product-card-v8 .aia-product-name-v4,
.aia-product-card-v8 .aia-product-meta-v4,
.aia-product-card-v8 .aia-card-bottom-v4,
.aia-product-card-v8 .aia-product-img-v5,
.aia-product-card-v8 .aia-product-name-v5,
.aia-product-card-v8 .aia-product-meta-v5,
.aia-product-card-v8 .aia-card-bottom-v5 {
  display: none !important;
}

/* V8 single */
.aia-single-top-v8 {
  padding: 26px 30px;
}

.aia-single-title-v8 {
  margin: 0;
  color: white;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -.035em;
  font-weight: 700;
  max-width: 980px;
}

.aia-single-layout-v8 {
  display: grid;
  grid-template-columns: 410px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 18px;
}

.aia-single-image-v8 {
  display: block;
  overflow: hidden;
  border: 0 !important;
  border-radius: 20px;
  background: transparent !important;
  line-height: 0;
}

.aia-single-image-v8 img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: initial !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 20px;
}

.aia-detail-grid-v8 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}

.aia-detail-grid-v8 .aia-detail-box {
  padding: 15px;
}

.aia-detail-grid-v8 .aia-detail-box strong {
  font-size: 19px;
}

.aia-single-cart-v8 {
  margin-top: 20px;
}

.aia-buy-now-large-v8 {
  min-width: 180px;
  min-height: 50px;
}

/* Customizer size support for v8 elements */
.aia-product-name-v8 {
  font-size: var(--aia-card-title-size, 20px) !important;
}

@media (max-width: 980px) {
  .aia-shop-hero-v8,
  .aia-single-layout-v8 {
    grid-template-columns: 1fr;
  }

  .aia-shop-hero-v8 {
    justify-content: flex-start;
  }

  .aia-shop-hero-v8 .aia-filter-tabs {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .aia-shop-filter-box {
    margin-top: 18px;
    padding: 18px;
  }

  .aia-single-top-v8 {
    padding: 20px;
  }

  .aia-single-title-v8 {
    font-size: 26px;
  }

  .aia-detail-grid-v8,
  .aia-card-bottom-v8 {
    grid-template-columns: 1fr;
  }

  .aia-product-name-v8 {
    min-height: auto;
    font-size: 19px !important;
  }
}


/* V9 filter right row + small buttons + logo customizer polish */

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

.aia-filter-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 16px 0 18px;
}

.aia-filter-row .aia-filter-tabs {
  justify-content: flex-end;
}

.aia-shop-filter-box,
.aia-shop-hero-v8 {
  display: none !important;
}

.aia-product-card-v8 {
  padding: 14px !important;
}

.aia-card-bottom-v8 {
  grid-template-columns: 104px minmax(0, 1fr) !important;
  gap: 8px !important;
}

.aia-price-pill-v8,
.aia-buy-now-v8 {
  min-height: 40px !important;
  border-radius: 14px !important;
  padding: 8px 10px !important;
}

.aia-price-pill-v8 {
  font-size: 18px !important;
}

.aia-buy-now-v8 {
  font-size: 15px !important;
}

.aia-product-name-v8 {
  font-size: 20px !important;
}

.aia-product-meta-v8 {
  font-size: 14px !important;
}

.aia-filter-tabs a {
  min-height: 42px;
  padding: 9px 15px;
}

@media (max-width: 980px) {
  .aia-filter-row,
  .aia-filter-row .aia-filter-tabs {
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  .aia-filter-row {
    padding: 14px 0 16px;
  }

  .aia-card-bottom-v8 {
    grid-template-columns: 104px minmax(0, 1fr) !important;
  }

  .aia-price-pill-v8,
  .aia-buy-now-v8 {
    min-height: 40px !important;
  }
}

@media (max-width: 360px) {
  .aia-card-bottom-v8 {
    grid-template-columns: 1fr !important;
  }
}


/* V10 responsive repair: filter card right, compact buttons, checkout/account/order polish */

.aia-filter-card {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border: 1px solid var(--aia-line);
  background: linear-gradient(180deg, rgba(15,23,42,.84), rgba(15,23,42,.58));
  border-radius: 24px;
  box-shadow: 0 18px 55px rgba(0,0,0,.22);
  padding: 16px;
  margin: 18px 0;
}

.aia-filter-card .aia-filter-tabs {
  justify-content: flex-end;
}

/* v10 card */
.aia-product-card-v10 {
  min-height: 0 !important;
  padding: 14px !important;
  gap: 10px !important;
  border-radius: 22px !important;
}

.aia-product-main-v10 {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aia-product-img-v10 {
  width: 100%;
  display: block;
  overflow: hidden;
  border: 0 !important;
  border-radius: 16px;
  background: transparent !important;
  line-height: 0;
}

.aia-product-img-v10 img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: initial !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 16px;
}

.aia-product-name-v10 {
  margin: 3px 0 0 !important;
  color: white;
  font-size: 20px !important;
  line-height: 1.05 !important;
  letter-spacing: -.022em;
  font-weight: 700;
  min-height: 42px;
}

.aia-product-meta-v10 {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #60a5fa;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--aia-line);
  padding-bottom: 10px;
}

.aia-card-bottom-v10 {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-top: auto;
}

.aia-price-pill-v10 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(52,211,153,.26);
  background: rgba(0,0,0,.35);
  padding: 8px 10px;
  color: #86efac !important;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.aia-price-pill-v10 .woocommerce-Price-amount,
.aia-price-pill-v10 .woocommerce-Price-currencySymbol {
  color: #86efac !important;
  display: inline !important;
}

.aia-price-pill-v10 del {
  display: none !important;
}

.aia-price-pill-v10 ins {
  text-decoration: none !important;
}

.aia-buy-now-v10 {
  width: 100%;
  min-height: 42px;
  border-radius: 14px !important;
  font-size: 15px !important;
  padding: 8px 10px !important;
}

/* hide older card versions */
.aia-product-card-v10 .aia-badges,
.aia-product-card-v10 .aia-price-grid,
.aia-product-card-v10 .aia-product-top,
.aia-product-card-v10 .aia-product-desc,
.aia-product-card-v10 .aia-product-desc-v3,
.aia-product-card-v10 .aia-stock-v3,
.aia-product-card-v10 .aia-product-img-v4,
.aia-product-card-v10 .aia-product-name-v4,
.aia-product-card-v10 .aia-product-meta-v4,
.aia-product-card-v10 .aia-card-bottom-v4,
.aia-product-card-v10 .aia-product-img-v5,
.aia-product-card-v10 .aia-product-name-v5,
.aia-product-card-v10 .aia-product-meta-v5,
.aia-product-card-v10 .aia-card-bottom-v5,
.aia-product-card-v10 .aia-product-img-v8,
.aia-product-card-v10 .aia-product-name-v8,
.aia-product-card-v10 .aia-product-meta-v8,
.aia-product-card-v10 .aia-card-bottom-v8 {
  display: none !important;
}

/* v10 single */
.aia-single-top-v10 {
  padding: 26px 30px;
}

.aia-single-title-v10 {
  margin: 0;
  color: white;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -.035em;
  font-weight: 700;
  max-width: 980px;
}

.aia-single-layout-v10 {
  display: grid;
  grid-template-columns: 410px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 18px;
}

.aia-single-image-v10 {
  display: block;
  overflow: hidden;
  border: 0 !important;
  border-radius: 20px;
  background: transparent !important;
  line-height: 0;
}

.aia-single-image-v10 img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: initial !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 20px;
}

.aia-detail-grid-v10 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}

.aia-detail-grid-v10 .aia-detail-box {
  padding: 15px;
}

.aia-single-cart-v10 {
  margin-top: 20px;
}

.aia-buy-now-large-v10 {
  min-width: 180px;
  min-height: 46px;
}

.aia-manual-note {
  margin-top: 14px;
  border: 1px solid rgba(34,211,238,.22);
  border-radius: 18px;
  background: rgba(34,211,238,.10);
  color: #bfdbfe;
  padding: 14px;
  font-weight: 700;
  line-height: 1.45;
}

/* remove track order fully */
form.track_order,
form.woocommerce-form-track-order,
.woocommerce-form-track-order,
.woocommerce p:has(+ form.track_order),
.woocommerce p:has(+ form.woocommerce-form-track-order) {
  display: none !important;
}

/* Account/orders */
.aia-account-cards-v10 {
  grid-template-columns: repeat(2, minmax(0,1fr));
}

.aia-orders-grid {
  display: grid;
  gap: 14px;
}

.aia-order-card,
.aia-view-order,
.aia-empty-orders {
  border: 1px solid var(--aia-line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(15,23,42,.84), rgba(15,23,42,.58));
  padding: 18px;
}

.aia-order-main {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.2fr;
  gap: 12px;
  align-items: start;
}

.aia-order-label {
  display: block;
  color: #60a5fa;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
}

.aia-order-main strong,
.aia-order-item-row strong {
  color: white;
  font-size: 18px;
  line-height: 1.1;
}

.aia-order-main small,
.aia-order-item-row small {
  display: block;
  margin-top: 5px;
  color: #94a3b8;
  font-size: 14px;
}

.aia-order-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  border-top: 1px solid var(--aia-line);
  padding-top: 14px;
}

.aia-order-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(96,165,250,.24);
  border-radius: 20px;
  background: rgba(96,165,250,.10);
  padding: 18px;
  margin-bottom: 16px;
}

.aia-order-hero h2 {
  margin: 0;
  color: white;
  font-size: 28px;
}

.aia-order-hero p {
  margin: 6px 0 0;
  color: #bfdbfe;
}

.aia-order-total-big {
  color: #86efac;
  font-size: 24px;
  font-weight: 700;
  white-space: nowrap;
}

.aia-order-items {
  display: grid;
  gap: 10px;
}

.aia-order-item-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--aia-line);
  border-radius: 18px;
  background: rgba(0,0,0,.18);
  padding: 14px;
  color: #86efac;
  font-weight: 700;
}

.aia-empty-orders h2 {
  margin: 0 0 8px;
  color: white;
}

.aia-empty-orders p {
  color: #bfdbfe;
}

/* Checkout cleanup and QR polish */
.woocommerce-checkout .aia-content,
.woocommerce-checkout .aia-shell,
.woocommerce-checkout main {
  max-width: 1180px;
}

.checkout.woocommerce-checkout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 22px;
  align-items: start;
  border: 1px solid var(--aia-line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(15,23,42,.84), rgba(15,23,42,.58));
}

.checkout.woocommerce-checkout #customer_details,
.checkout.woocommerce-checkout #order_review,
.checkout.woocommerce-checkout #payment {
  border: 1px solid var(--aia-line);
  border-radius: 22px;
  background: rgba(0,0,0,.14);
  padding: 20px;
}

.checkout.woocommerce-checkout #customer_details {
  grid-column: 1;
}

.checkout.woocommerce-checkout #order_review_heading,
.checkout.woocommerce-checkout #order_review {
  grid-column: 2;
}

.checkout.woocommerce-checkout #order_review_heading {
  margin: 0;
  color: white;
  font-size: 24px;
}

.woocommerce-checkout-review-order-table {
  width: 100%;
  border: 0 !important;
  background: transparent !important;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
  padding: 10px 0 !important;
  border-color: var(--aia-line) !important;
}

#payment {
  margin-top: 16px;
}

#payment ul.payment_methods {
  padding: 0 !important;
  border-bottom: 0 !important;
}

#payment ul.payment_methods li {
  border: 1px solid var(--aia-line);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
  padding: 14px !important;
  margin-bottom: 12px !important;
}

#payment .payment_box {
  border-radius: 20px !important;
  background: rgba(0,0,0,.35) !important;
  padding: 20px !important;
  margin: 14px 0 0 !important;
  text-align: center;
}

#payment .payment_box:before {
  display: none !important;
}

#payment img,
.woocommerce-checkout-payment img,
.payment_box img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  margin: 14px auto !important;
  border-radius: 16px !important;
  background: #fff !important;
  padding: 8px !important;
}

#payment .place-order {
  padding: 0 !important;
  margin-top: 16px;
}

#payment #place_order {
  width: 100%;
  min-height: 48px;
}

/* Hide shipping words/rows where gateways/plugins still show them */
.woocommerce-shipping-fields,
.woocommerce-additional-fields,
.woocommerce-checkout-review-order-table .shipping,
.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals {
  display: none !important;
}

@media (max-width: 1100px) {
  .checkout.woocommerce-checkout {
    grid-template-columns: 1fr;
  }

  .checkout.woocommerce-checkout #customer_details,
  .checkout.woocommerce-checkout #order_review_heading,
  .checkout.woocommerce-checkout #order_review {
    grid-column: 1;
  }
}

@media (max-width: 980px) {
  .aia-single-layout-v10,
  .woocommerce-account .woocommerce {
    grid-template-columns: 1fr;
  }

  .aia-order-main {
    grid-template-columns: 1fr 1fr;
  }

  .aia-account-cards-v10 {
    grid-template-columns: 1fr;
  }

  .aia-filter-card,
  .aia-filter-card .aia-filter-tabs {
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  .aia-filter-card {
    padding: 14px;
  }

  .aia-filter-tabs {
    width: 100%;
    justify-content: flex-end;
  }

  .aia-filter-tabs a {
    min-height: 40px;
    padding: 8px 12px;
  }

  .aia-card-bottom-v10 {
    grid-template-columns: 104px minmax(0, 1fr) !important;
  }

  .aia-price-pill-v10,
  .aia-buy-now-v10 {
    min-height: 42px !important;
  }

  .aia-single-top-v10,
  .checkout.woocommerce-checkout,
  .woocommerce-MyAccount-content,
  .woocommerce-MyAccount-navigation.aia-account-nav {
    padding: 18px !important;
  }

  .aia-single-title-v10 {
    font-size: 26px;
  }

  .aia-detail-grid-v10,
  .aia-order-main,
  .aia-order-hero,
  .aia-order-item-row {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  #payment .payment_box {
    padding: 14px !important;
  }
}

@media (max-width: 360px) {
  .aia-card-bottom-v10 {
    grid-template-columns: 1fr !important;
  }
}


/* V11 final checkout + left filter + stable buttons */

.aia-filter-card,
.aia-filter-card .aia-filter-tabs,
.aia-filter-row,
.aia-filter-row .aia-filter-tabs {
  justify-content: flex-start !important;
}

.aia-filter-card {
  display: flex;
  align-items: center;
  border: 1px solid var(--aia-line);
  background: linear-gradient(180deg, rgba(15,23,42,.84), rgba(15,23,42,.58));
  border-radius: 24px;
  box-shadow: 0 18px 55px rgba(0,0,0,.22);
  padding: 14px;
  margin: 14px 0 18px;
}

/* Stable card button area */
.aia-product-card-v11 {
  min-height: 0 !important;
  padding: 14px !important;
  gap: 10px !important;
  border-radius: 22px !important;
}

.aia-product-main-v11 {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aia-product-img-v11 {
  width: 100%;
  display: block;
  overflow: hidden;
  border: 0 !important;
  border-radius: 16px;
  background: transparent !important;
  line-height: 0;
}

.aia-product-img-v11 img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: initial !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 16px;
}

.aia-product-name-v11 {
  margin: 3px 0 0 !important;
  color: white;
  font-size: 20px !important;
  line-height: 1.05 !important;
  letter-spacing: -.022em;
  font-weight: 700;
  min-height: 42px;
}

.aia-product-meta-v11 {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #60a5fa;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--aia-line);
  padding-bottom: 10px;
}

.aia-card-bottom-v11 {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
  margin-top: auto;
}

.aia-price-pill-v11,
.aia-buy-now-v11 {
  min-height: 40px !important;
  height: 40px !important;
  border-radius: 14px !important;
  padding: 8px 10px !important;
  line-height: 1 !important;
}

.aia-price-pill-v11 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(52,211,153,.26);
  background: rgba(0,0,0,.35);
  color: #86efac !important;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.aia-price-pill-v11 .woocommerce-Price-amount,
.aia-price-pill-v11 .woocommerce-Price-currencySymbol {
  color: #86efac !important;
  display: inline !important;
}

.aia-price-pill-v11 del {
  display: none !important;
}

.aia-price-pill-v11 ins {
  text-decoration: none !important;
}

.aia-buy-now-v11 {
  width: 100%;
  font-size: 15px !important;
}

/* Hide old card versions */
.aia-product-card-v11 .aia-badges,
.aia-product-card-v11 .aia-price-grid,
.aia-product-card-v11 .aia-product-top,
.aia-product-card-v11 .aia-product-desc,
.aia-product-card-v11 .aia-product-desc-v3,
.aia-product-card-v11 .aia-stock-v3,
.aia-product-card-v11 .aia-product-img-v4,
.aia-product-card-v11 .aia-product-name-v4,
.aia-product-card-v11 .aia-product-meta-v4,
.aia-product-card-v11 .aia-card-bottom-v4,
.aia-product-card-v11 .aia-product-img-v5,
.aia-product-card-v11 .aia-product-name-v5,
.aia-product-card-v11 .aia-product-meta-v5,
.aia-product-card-v11 .aia-card-bottom-v5,
.aia-product-card-v11 .aia-product-img-v8,
.aia-product-card-v11 .aia-product-name-v8,
.aia-product-card-v11 .aia-product-meta-v8,
.aia-product-card-v11 .aia-card-bottom-v8,
.aia-product-card-v11 .aia-product-img-v10,
.aia-product-card-v11 .aia-product-name-v10,
.aia-product-card-v11 .aia-product-meta-v10,
.aia-product-card-v11 .aia-card-bottom-v10 {
  display: none !important;
}

/* Single product */
.aia-single-top-v11 {
  padding: 26px 30px;
}

.aia-single-title-v11 {
  margin: 0;
  color: white;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -.035em;
  font-weight: 700;
  max-width: 980px;
}

.aia-single-layout-v11 {
  display: grid;
  grid-template-columns: 410px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 18px;
}

.aia-single-image-v11 {
  display: block;
  overflow: hidden;
  border: 0 !important;
  border-radius: 20px;
  background: transparent !important;
  line-height: 0;
}

.aia-single-image-v11 img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: initial !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 20px;
}

.aia-detail-grid-v11 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}

.aia-detail-grid-v11 .aia-detail-box {
  padding: 15px;
}

.aia-single-cart-v11 {
  margin-top: 20px;
}

.aia-buy-now-large-v11 {
  min-width: 180px;
  min-height: 46px;
}

/* Remove checkout coupon + cart/view-cart add notice */
.woocommerce-form-coupon-toggle,
.woocommerce-form-coupon,
.woocommerce-message .wc-forward,
.woocommerce-message a[href*="cart"],
.woocommerce-message:has(.wc-forward),
.woocommerce-message:has(a[href*="cart"]) {
  display: none !important;
}

/* Remove privacy text paragraph */
.woocommerce-privacy-policy-text {
  display: none !important;
}

/* Compact checkout structure */
.checkout.woocommerce-checkout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 18px;
  align-items: start;
  border: 1px solid var(--aia-line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(15,23,42,.84), rgba(15,23,42,.58));
  padding: 22px !important;
}

.checkout.woocommerce-checkout #customer_details,
.checkout.woocommerce-checkout #order_review {
  border: 1px solid var(--aia-line);
  border-radius: 22px;
  background: rgba(0,0,0,.14);
  padding: 18px;
  min-height: 0 !important;
}

.checkout.woocommerce-checkout #customer_details {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.checkout.woocommerce-checkout #order_review_heading {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  margin: 0 0 10px !important;
  color: white;
  font-size: 24px;
  line-height: 1.1;
}

.checkout.woocommerce-checkout #order_review {
  grid-column: 2;
  grid-row: 2;
  margin: 0 !important;
  align-self: start;
  display: block !important;
}

.woocommerce-checkout-review-order-table {
  width: 100%;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
  padding: 10px 0 !important;
  border-color: var(--aia-line) !important;
  vertical-align: top;
}

#payment {
  margin: 12px 0 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

#payment ul.payment_methods {
  padding: 0 !important;
  border-bottom: 0 !important;
}

#payment ul.payment_methods li {
  border: 1px solid var(--aia-line);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
  padding: 14px !important;
  margin-bottom: 12px !important;
  overflow: hidden;
}

#payment .payment_box {
  border-radius: 20px !important;
  background: rgba(0,0,0,.45) !important;
  padding: 18px !important;
  margin: 12px 0 0 !important;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
}

#payment .payment_box:before {
  display: none !important;
}

#payment .payment_box,
#payment .payment_box * {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#payment img,
.woocommerce-checkout-payment img,
.payment_box img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: min(260px, 90%) !important;
  margin: 12px auto !important;
  border-radius: 16px !important;
  background: #fff !important;
  padding: 8px !important;
}

#payment .place-order {
  padding: 0 !important;
  margin-top: 14px;
}

#payment #place_order {
  width: 100%;
  min-height: 46px;
}

.woocommerce-shipping-fields,
.woocommerce-additional-fields,
.woocommerce-checkout-review-order-table .shipping,
.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals {
  display: none !important;
}

/* Stable native buttons */
.aia-btn,
.button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  min-height: 40px;
  border-radius: 14px !important;
}

/* Remove track order fully */
form.track_order,
form.woocommerce-form-track-order,
.woocommerce-form-track-order,
.woocommerce p:has(+ form.track_order),
.woocommerce p:has(+ form.woocommerce-form-track-order) {
  display: none !important;
}

@media (max-width: 1100px) {
  .checkout.woocommerce-checkout {
    grid-template-columns: 1fr !important;
  }

  .checkout.woocommerce-checkout #customer_details,
  .checkout.woocommerce-checkout #order_review_heading,
  .checkout.woocommerce-checkout #order_review {
    grid-column: 1;
    grid-row: auto;
  }

  .checkout.woocommerce-checkout #order_review_heading {
    margin-top: 8px !important;
  }
}

@media (max-width: 980px) {
  .aia-single-layout-v11 {
    grid-template-columns: 1fr;
  }

  .aia-filter-card,
  .aia-filter-card .aia-filter-tabs {
    justify-content: flex-start !important;
  }
}

@media (max-width: 640px) {
  .aia-filter-card {
    padding: 14px;
  }

  .aia-filter-tabs {
    width: 100%;
    justify-content: flex-start !important;
  }

  .aia-filter-tabs a {
    min-height: 40px;
    padding: 8px 12px;
  }

  .aia-card-bottom-v11 {
    grid-template-columns: 96px minmax(0, 1fr) !important;
  }

  .aia-price-pill-v11,
  .aia-buy-now-v11 {
    min-height: 40px !important;
    height: 40px !important;
  }

  .aia-single-top-v11,
  .checkout.woocommerce-checkout,
  .woocommerce-MyAccount-content,
  .woocommerce-MyAccount-navigation.aia-account-nav {
    padding: 18px !important;
  }

  .aia-single-title-v11 {
    font-size: 26px;
  }

  .aia-detail-grid-v11 {
    grid-template-columns: 1fr;
  }

  #payment .payment_box {
    padding: 14px !important;
  }
}

@media (max-width: 360px) {
  .aia-card-bottom-v11 {
    grid-template-columns: 1fr !important;
  }
}


/* V12 final visual cleanup */

/* All buttons: exact center from top/bottom and left/right */
.aia-btn,
.button,
.added_to_cart,
.aia-nav-pill,
.aia-filter-tabs a,
.aia-price-pill-v11,
.aia-buy-now-v11,
.aia-buy-now-large-v11,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
#payment #place_order {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  box-sizing: border-box !important;
}

/* Price/Buy row stable and centered */
.aia-card-bottom-v11 {
  display: grid !important;
  grid-template-columns: 96px minmax(0, 1fr) !important;
  gap: 8px !important;
  align-items: center !important;
}

.aia-price-pill-v11,
.aia-buy-now-v11 {
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  padding: 0 10px !important;
}

.aia-price-pill-v11 .amount,
.aia-price-pill-v11 .woocommerce-Price-amount,
.aia-price-pill-v11 .woocommerce-Price-currencySymbol {
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
}

/* Footer: remove duplicate look and middle line feel */
.aia-footer-inner-v12 {
  grid-template-columns: minmax(0, 1fr) auto;
}

.aia-footer-inner-v12 p {
  display: none !important;
}

.aia-theme-credit {
  margin-top: 8px !important;
  color: #60a5fa !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

.aia-footer .aia-theme-credit + .aia-theme-credit {
  display: none !important;
}

/* Keep customizer panel simpler visually */
.customize-control-title {
  line-height: 1.25;
}

/* Mobile button center */
@media (max-width: 640px) {
  .aia-card-bottom-v11 {
    grid-template-columns: 96px minmax(0, 1fr) !important;
  }

  .aia-price-pill-v11,
  .aia-buy-now-v11 {
    height: 40px !important;
    min-height: 40px !important;
  }
}

@media (max-width: 360px) {
  .aia-card-bottom-v11 {
    grid-template-columns: 1fr !important;
  }
}


/* V13 account dot cleanup + footer mobile fix + small-content page fix */

/* Remove grey dots/bars from WooCommerce password fields */
.woocommerce-password-strength,
.woocommerce-password-hint,
.woocommerce-password-strength.short,
.woocommerce-password-strength.bad,
.woocommerce-password-strength.good,
.woocommerce-password-strength.strong,
.show-password-input,
.woocommerce form .show-password-input,
.woocommerce-page form .show-password-input,
.password-input .show-password-input,
span.show-password-input {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce form .password-input,
.woocommerce-page form .password-input {
  display: block !important;
  width: 100% !important;
}

.woocommerce form .password-input input,
.woocommerce-page form .password-input input {
  width: 100% !important;
}

/* Account password box cleaner */
.woocommerce-EditAccountForm fieldset {
  border: 1px solid var(--aia-line) !important;
  border-radius: 20px !important;
  padding: 20px !important;
  margin-top: 18px !important;
}

.woocommerce-EditAccountForm legend {
  padding: 0 10px !important;
  color: #dbeafe !important;
  font-weight: 700 !important;
}

/* Fix small-content pages and footer spacing */
html,
body {
  min-height: 100% !important;
}

body {
  display: flex !important;
  flex-direction: column !important;
}

.aia-header {
  flex: 0 0 auto !important;
}

main,
.aia-shop-page,
.aia-content,
.aia-single-product-page {
  flex: 1 0 auto !important;
}

.aia-footer-v13 {
  flex: 0 0 auto !important;
  margin-top: 28px !important;
  padding: 0 !important;
  border-top: 1px solid var(--aia-line) !important;
  background: rgba(0,0,0,.20) !important;
}

.aia-footer-inner-v13 {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  padding: 22px 0 !important;
}

.aia-footer-brand {
  min-width: 0 !important;
}

.aia-footer-brand strong {
  display: block !important;
  white-space: nowrap !important;
  color: #ffffff !important;
  line-height: 1.1 !important;
}

.aia-footer-brand .aia-theme-credit {
  display: block !important;
  margin-top: 7px !important;
  color: #60a5fa !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
}

/* kill duplicate credit if plugin/cache prints twice */
.aia-footer-brand .aia-theme-credit + .aia-theme-credit,
.aia-footer .aia-theme-credit + .aia-theme-credit {
  display: none !important;
}

.aia-footer-links-v13,
.aia-footer-menu {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.aia-footer-menu li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.aia-footer-links-v13 a,
.aia-footer-menu a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 36px !important;
  border-radius: 14px !important;
  padding: 9px 12px !important;
  text-align: center !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

/* Empty filter pages should look compact */
.aia-shop-page .aia-hero-card {
  padding: 22px !important;
}

.aia-shop-page .aia-hero-card h2 {
  margin: 0 !important;
  font-size: 22px !important;
}

/* keep button text center everywhere */
.aia-btn,
.button,
.added_to_cart,
.aia-nav-pill,
.aia-filter-tabs a,
.aia-price-pill-v11,
.aia-buy-now-v11,
.aia-buy-now-large-v11,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
#payment #place_order {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1 !important;
}

/* Mobile footer */
@media (max-width: 720px) {
  .aia-footer-v13 {
    margin-top: 22px !important;
  }

  .aia-footer-inner-v13 {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    flex-direction: column !important;
    gap: 14px !important;
    padding: 20px 0 !important;
  }

  .aia-footer-brand,
  .aia-footer-links-v13 {
    width: 100% !important;
  }

  .aia-footer-brand strong,
  .aia-footer-brand .aia-theme-credit {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .aia-footer-links-v13,
  .aia-footer-menu {
    justify-content: flex-start !important;
    width: 100% !important;
    gap: 7px !important;
  }

  .aia-footer-links-v13 a,
  .aia-footer-menu a {
    min-height: 34px !important;
    padding: 8px 10px !important;
    font-size: 12px !important;
    border-radius: 12px !important;
  }
}

@media (max-width: 430px) {
  .aia-footer-brand strong {
    font-size: 18px !important;
  }

  .aia-footer-brand .aia-theme-credit {
    font-size: 13px !important;
  }

  .aia-shop-page .aia-hero-card {
    padding: 20px !important;
  }
}


/* V14 footer empty-space fix + password label cleanup */

/* Real sticky footer: no ugly blank area under footer on small pages */
html {
  min-height: 100vh !important;
  height: auto !important;
}

body {
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
}

.aia-header {
  flex: 0 0 auto !important;
}

main,
.aia-shop-page,
.aia-content,
.aia-single-product-page {
  flex: 0 0 auto !important;
}

.aia-footer-v13,
.aia-footer {
  margin-top: auto !important;
  flex: 0 0 auto !important;
}

/* Compact no-products page so it doesn't create fake height */
.aia-shop-page {
  padding-bottom: 24px !important;
}

.aia-shop-page .aia-hero-card {
  min-height: 0 !important;
  padding: 22px !important;
}

.aia-shop-page .aia-hero-card h2 {
  margin: 0 !important;
  line-height: 1.15 !important;
}

/* Password label cleanup visual */
.woocommerce-EditAccountForm fieldset label {
  line-height: 1.25 !important;
}

.woocommerce-EditAccountForm fieldset label[for="password_current"],
.woocommerce-EditAccountForm fieldset label[for="password_1"],
.woocommerce-EditAccountForm fieldset label[for="password_2"] {
  font-size: 16px !important;
}

/* Force any leftover grey password strength bars/dots hidden */
.woocommerce-password-strength,
.woocommerce-password-hint,
.password-input .show-password-input,
.show-password-input {
  display: none !important;
}

/* Footer mobile final compact */
@media (max-width: 720px) {
  .aia-footer-v13,
  .aia-footer {
    margin-top: auto !important;
  }

  .aia-shop-page {
    padding-bottom: 18px !important;
  }

  .aia-footer-inner-v13 {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
  }
}


/* V15 image quality + anti-blur */
.aia-product-image-hq,
.aia-single-image-hq,
.aia-product-img-v11 img,
.aia-single-image-v11 img,
.woocommerce ul.products li.product img {
  image-rendering: auto !important;
  filter: none !important;
  -webkit-filter: none !important;
  opacity: 1 !important;
}

.aia-product-img-v11 {
  background: rgba(255,255,255,.02) !important;
}

.aia-product-img-v11 img {
  width: 100% !important;
  height: auto !important;
}

/* If lazyload plugin adds blur classes, force clean */
.lazyload,
.lazyloading,
.lazyloaded,
.litespeed-loaded,
img[data-lazyloaded] {
  filter: none !important;
  -webkit-filter: none !important;
  opacity: 1 !important;
}


/* V17 Blog image card layout */

.aia-blog-page {
  padding-top: 26px;
}

.aia-blog-head {
  border: 1px solid var(--aia-line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(15,23,42,.84), rgba(15,23,42,.58));
  box-shadow: 0 22px 70px rgba(0,0,0,.22);
  padding: 24px;
  margin-bottom: 18px;
}

.aia-blog-head h1 {
  margin: 8px 0 0;
  color: white;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.aia-blog-head p {
  margin: 12px 0 0;
  color: #bfdbfe;
  font-size: 17px;
  line-height: 1.45;
  max-width: 780px;
}

.aia-blog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.aia-blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--aia-line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(15,23,42,.86), rgba(15,23,42,.60));
  box-shadow: 0 24px 70px rgba(0,0,0,.20);
  overflow: hidden;
  min-height: 100%;
  transition: transform .16s ease, border-color .16s ease;
}

.aia-blog-card:hover {
  transform: translateY(-2px);
  border-color: rgba(96,165,250,.36);
}

.aia-blog-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(255,255,255,.025);
}

.aia-blog-img,
.aia-blog-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none !important;
  opacity: 1 !important;
}

.aia-blog-img-logo {
  object-fit: contain;
  padding: 32px;
}

.aia-blog-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: white;
  font-size: 30px;
  font-weight: 700;
  background: radial-gradient(circle at 30% 20%, rgba(37,99,235,.35), transparent 40%), rgba(0,0,0,.18);
}

.aia-blog-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  flex: 1;
}

.aia-blog-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #60a5fa;
  font-size: 13px;
  font-weight: 700;
}

.aia-blog-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(96,165,250,.20);
  border-radius: 999px;
  background: rgba(96,165,250,.08);
  padding: 6px 9px;
  line-height: 1;
}

.aia-blog-title {
  margin: 0;
  color: white;
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -.018em;
}

.aia-blog-title a {
  color: inherit;
}

.aia-blog-excerpt {
  margin: 0;
  color: #bfdbfe;
  font-size: 15px;
  line-height: 1.55;
  flex: 1;
}

.aia-blog-read {
  width: fit-content;
  min-height: 42px;
  padding-inline: 18px;
}

/* Card-style pagination */
.aia-blog-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 22px 0 8px;
}

.aia-blog-page-card,
.aia-blog-page-current {
  border: 1px solid var(--aia-line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15,23,42,.82), rgba(15,23,42,.55));
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bfdbfe;
  font-weight: 700;
}

.aia-blog-page-card a,
.aia-blog-page-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  color: white;
  padding: 12px 16px;
  text-align: center;
}

.aia-blog-page-card:not(.disabled):hover {
  border-color: rgba(96,165,250,.36);
}

.aia-blog-page-card.disabled {
  opacity: .42;
}

.aia-blog-page-current {
  padding: 12px 18px;
  white-space: nowrap;
}

/* Single blog */
.aia-single-blog-page {
  padding-top: 26px;
}

.aia-single-blog-card {
  padding: 26px;
}

.aia-single-blog-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: #60a5fa;
  font-size: 14px;
  font-weight: 700;
  margin-top: 18px;
}

.aia-single-blog-meta span {
  border: 1px solid rgba(96,165,250,.20);
  border-radius: 999px;
  background: rgba(96,165,250,.08);
  padding: 7px 10px;
}

.aia-single-blog-card h1 {
  margin: 18px 0;
  color: white;
  font-size: clamp(34px, 4.5vw, 64px);
  line-height: 1.02;
  letter-spacing: -.045em;
  max-width: 1050px;
}

.aia-single-blog-image {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--aia-line);
  background: rgba(0,0,0,.20);
  margin: 18px 0 24px;
}

.aia-single-blog-image .aia-blog-img,
.aia-single-blog-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.aia-blog-entry {
  font-size: 18px;
  line-height: 1.75;
}

@media (max-width: 1200px) {
  .aia-blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .aia-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aia-blog-pagination {
    grid-template-columns: 1fr;
  }

  .aia-blog-page-current {
    order: -1;
  }
}

@media (max-width: 640px) {
  .aia-blog-page,
  .aia-single-blog-page {
    padding-top: 18px;
  }

  .aia-blog-head,
  .aia-single-blog-card {
    padding: 20px;
  }

  .aia-blog-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .aia-blog-body {
    padding: 16px;
  }

  .aia-blog-title {
    font-size: 20px;
  }

  .aia-single-blog-card h1 {
    font-size: 32px;
  }
}


/* V18 Blog UX: whole card click + compact single post image */

.aia-blog-card-clickable {
  cursor: pointer;
}

.aia-blog-card-clickable:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 4px;
}

/* Blog listing title smaller and product-card-like */
.aia-blog-title {
  font-size: 20px !important;
  line-height: 1.12 !important;
}

.aia-blog-card .aia-blog-image {
  border-radius: 18px;
  margin: 14px 14px 0;
  width: auto;
}

.aia-blog-card .aia-blog-img,
.aia-blog-card .aia-blog-image img {
  border-radius: 18px;
}

.aia-blog-card:hover .aia-blog-title a {
  color: #dbeafe;
}

/* Single blog page title same family/size as product detail title */
.aia-single-blog-card-v18 {
  padding: 26px !important;
}

.aia-single-blog-title-v18 {
  margin: 16px 0 18px !important;
  color: white !important;
  font-size: 34px !important;
  line-height: 1.06 !important;
  letter-spacing: -.035em !important;
  max-width: 980px !important;
}

/* Product-details-style top view: small image card + info card */
.aia-single-blog-top-v18 {
  display: grid;
  grid-template-columns: 430px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin: 18px 0 24px;
}

.aia-single-blog-image-v18 {
  border: 1px solid var(--aia-line);
  border-radius: 22px;
  background: rgba(0,0,0,.20);
  overflow: hidden;
  line-height: 0;
  width: 100%;
}

.aia-single-blog-image-v18 img,
.aia-single-blog-image-v18 .aia-blog-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  border-radius: 22px;
  background: rgba(255,255,255,.02);
}

.aia-single-blog-summary-v18 {
  border: 1px solid var(--aia-line);
  border-radius: 22px;
  background: rgba(0,0,0,.16);
  padding: 18px;
  min-height: 140px;
}

.aia-single-blog-summary-v18 p {
  margin: 10px 0 0;
  color: #bfdbfe;
  font-size: 17px;
  line-height: 1.55;
}

/* All images inside blog post content: same clean card line, not huge */
.aia-blog-entry-v18 img,
.aia-blog-entry img {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  border: 1px solid var(--aia-line);
  border-radius: 22px;
  background: rgba(0,0,0,.20);
  padding: 0;
  margin: 18px 0;
  filter: none !important;
  opacity: 1 !important;
}

.aia-blog-entry-v18 figure,
.aia-blog-entry figure {
  max-width: 760px;
  margin: 20px 0;
}

.aia-blog-entry-v18 figure img,
.aia-blog-entry figure img {
  margin: 0;
}

.aia-blog-entry-v18 figcaption,
.aia-blog-entry figcaption {
  color: #94a3b8;
  font-size: 14px;
  margin-top: 8px;
}

@media (max-width: 980px) {
  .aia-single-blog-top-v18 {
    grid-template-columns: 1fr;
  }

  .aia-single-blog-image-v18 {
    max-width: 520px;
  }
}

@media (max-width: 640px) {
  .aia-single-blog-card-v18 {
    padding: 20px !important;
  }

  .aia-single-blog-title-v18 {
    font-size: 27px !important;
  }

  .aia-single-blog-top-v18 {
    gap: 14px;
  }

  .aia-single-blog-image-v18 img,
  .aia-single-blog-image-v18 .aia-blog-img {
    max-height: 300px;
  }

  .aia-blog-entry-v18 img,
  .aia-blog-entry img {
    max-height: 360px;
    border-radius: 18px;
  }
}


/* V19 Blog single cleanup: no side Blog Details, centered images, clean headings */

.aia-single-blog-page-v19 {
  padding-top: 26px;
}

.aia-single-blog-card-v19 {
  padding: 26px !important;
}

.aia-single-blog-title-v19 {
  margin: 16px 0 18px !important;
  color: white !important;
  font-size: 34px !important;
  line-height: 1.08 !important;
  letter-spacing: -.025em !important;
  max-width: 980px !important;
  word-spacing: normal !important;
  white-space: normal !important;
}

/* Featured image: centered card, not huge full-width */
.aia-single-blog-image-v19 {
  width: min(760px, 100%);
  margin: 18px auto 26px !important;
  border: 1px solid var(--aia-line);
  border-radius: 22px;
  background: rgba(0,0,0,.20);
  overflow: hidden;
  line-height: 0;
}

.aia-single-blog-image-v19 img,
.aia-single-blog-image-v19 .aia-blog-img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: 420px !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  border-radius: 22px;
  background: rgba(255,255,255,.02);
}

/* Remove old v18 side detail grid behavior if cached CSS remains */
.aia-single-blog-top-v18,
.aia-single-blog-summary-v18 {
  display: none !important;
}

/* Blog content text: normal spacing, readable, no cramped title text */
.aia-blog-entry-v19 {
  max-width: 100% !important;
  color: #dbeafe;
  font-size: 17px;
  line-height: 1.75;
  word-spacing: normal !important;
  letter-spacing: normal;
  white-space: normal;
}

.aia-blog-entry-v19 h1,
.aia-blog-entry-v19 h2,
.aia-blog-entry-v19 h3,
.aia-blog-entry-v19 h4,
.aia-blog-entry h1,
.aia-blog-entry h2,
.aia-blog-entry h3,
.aia-blog-entry h4 {
  display: block !important;
  clear: both !important;
  color: white !important;
  margin: 24px 0 12px !important;
  line-height: 1.22 !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
  white-space: normal !important;
}

.aia-blog-entry-v19 h2,
.aia-blog-entry h2 {
  font-size: 22px !important;
}

.aia-blog-entry-v19 h3,
.aia-blog-entry h3 {
  font-size: 20px !important;
}

.aia-blog-entry-v19 p,
.aia-blog-entry-v19 li,
.aia-blog-entry p,
.aia-blog-entry li {
  color: #dbeafe !important;
  word-spacing: normal !important;
  letter-spacing: normal !important;
  white-space: normal !important;
}

/* All images inside blog post content should be centered and same card-style size */
.aia-blog-entry-v19 img,
.aia-blog-entry img,
.aia-blog-entry-v19 .wp-block-image img,
.aia-blog-entry .wp-block-image img {
  display: block !important;
  width: auto !important;
  max-width: min(760px, 100%) !important;
  height: auto !important;
  max-height: 520px !important;
  object-fit: contain !important;
  border: 1px solid var(--aia-line) !important;
  border-radius: 22px !important;
  background: rgba(0,0,0,.20) !important;
  padding: 0 !important;
  margin: 20px auto !important;
  filter: none !important;
  opacity: 1 !important;
}

.aia-blog-entry-v19 figure,
.aia-blog-entry figure,
.aia-blog-entry-v19 .wp-block-image,
.aia-blog-entry .wp-block-image {
  width: 100% !important;
  max-width: 100% !important;
  margin: 22px auto !important;
  text-align: center !important;
}

.aia-blog-entry-v19 figure img,
.aia-blog-entry figure img,
.aia-blog-entry-v19 .wp-block-image img,
.aia-blog-entry .wp-block-image img {
  margin-left: auto !important;
  margin-right: auto !important;
}

.aia-blog-entry-v19 figcaption,
.aia-blog-entry figcaption {
  color: #94a3b8 !important;
  font-size: 14px !important;
  margin-top: 8px !important;
  text-align: center !important;
}

@media (max-width: 640px) {
  .aia-single-blog-card-v19 {
    padding: 20px !important;
  }

  .aia-single-blog-title-v19 {
    font-size: 27px !important;
  }

  .aia-single-blog-image-v19 img,
  .aia-single-blog-image-v19 .aia-blog-img {
    max-height: 300px !important;
  }

  .aia-blog-entry-v19 img,
  .aia-blog-entry img {
    max-height: 360px !important;
    border-radius: 18px !important;
  }

  .aia-blog-entry-v19 {
    font-size: 16px !important;
  }
}


/* V20 HARD MOBILE RESPONSIVE FIX
   This block must stay at bottom. It overrides old WooCommerce desktop/floats/grid rules on small screens. */

/* Global width safety */
html,
body {
  overflow-x: hidden !important;
}

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

img,
video,
iframe,
table {
  max-width: 100% !important;
}

/* Better base shell on small devices */
@media (max-width: 768px) {
  .aia-shell {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .aia-header-inner {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .aia-brand {
    min-width: 0 !important;
  }

  .aia-brand-text {
    min-width: 0 !important;
  }

  .aia-brand-text strong,
  .aia-brand-text small {
    max-width: 210px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .aia-nav {
    left: 12px !important;
    right: 12px !important;
    top: 78px !important;
    width: auto !important;
  }
}

/* Product grid responsive */
@media (max-width: 768px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product,
  .aia-product-card,
  .aia-product-card-v11 {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    float: none !important;
  }

  .aia-card-bottom-v11 {
    grid-template-columns: minmax(92px, 112px) minmax(0, 1fr) !important;
    width: 100% !important;
  }

  .aia-price-pill-v11,
  .aia-buy-now-v11 {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* Checkout: kill WooCommerce old columns/floats and make one clean mobile column */
@media (max-width: 900px) {
  body.woocommerce-checkout .aia-shell,
  body.woocommerce-checkout main,
  body.woocommerce-checkout .aia-content {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.woocommerce-checkout .entry-content,
  body.woocommerce-checkout .page-content,
  body.woocommerce-checkout article,
  body.woocommerce-checkout .woocommerce {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  body.woocommerce-checkout .checkout.woocommerce-checkout,
  body.woocommerce-checkout form.checkout {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 16px !important;
    margin: 0 !important;
    border-radius: 22px !important;
    overflow: visible !important;
  }

  body.woocommerce-checkout .checkout.woocommerce-checkout #customer_details,
  body.woocommerce-checkout .checkout.woocommerce-checkout #order_review,
  body.woocommerce-checkout .checkout.woocommerce-checkout #payment,
  body.woocommerce-checkout .checkout.woocommerce-checkout #order_review_heading {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    grid-column: auto !important;
    grid-row: auto !important;
    float: none !important;
    clear: both !important;
    margin: 0 0 16px !important;
    padding: 16px !important;
    border-radius: 20px !important;
    overflow: visible !important;
  }

  body.woocommerce-checkout .checkout.woocommerce-checkout #order_review_heading {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    font-size: 24px !important;
  }

  body.woocommerce-checkout .col2-set,
  body.woocommerce-checkout .col2-set .col-1,
  body.woocommerce-checkout .col2-set .col-2,
  body.woocommerce-checkout .woocommerce-billing-fields,
  body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
  body.woocommerce-checkout .woocommerce-account-fields,
  body.woocommerce-checkout .woocommerce-checkout-review-order,
  body.woocommerce-checkout .woocommerce-checkout-payment {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    float: none !important;
    clear: both !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.woocommerce-checkout .form-row,
  body.woocommerce-checkout .form-row-first,
  body.woocommerce-checkout .form-row-last,
  body.woocommerce-checkout .form-row-wide,
  body.woocommerce-checkout p.form-row {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    float: none !important;
    clear: both !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
  }

  body.woocommerce-checkout label,
  body.woocommerce-checkout .woocommerce form .form-row label {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 7px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    word-break: normal !important;
  }

  body.woocommerce-checkout input.input-text,
  body.woocommerce-checkout input[type="text"],
  body.woocommerce-checkout input[type="email"],
  body.woocommerce-checkout input[type="tel"],
  body.woocommerce-checkout input[type="password"],
  body.woocommerce-checkout textarea,
  body.woocommerce-checkout select,
  body.woocommerce-checkout .select2-container {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 52px !important;
    line-height: 1.2 !important;
  }

  body.woocommerce-checkout textarea {
    min-height: 110px !important;
    height: auto !important;
  }

  body.woocommerce-checkout .woocommerce-checkout-review-order-table {
    display: table !important;
    width: 100% !important;
    table-layout: auto !important;
    margin: 0 !important;
  }

  body.woocommerce-checkout .woocommerce-checkout-review-order-table th,
  body.woocommerce-checkout .woocommerce-checkout-review-order-table td {
    display: table-cell !important;
    width: auto !important;
    padding: 10px 6px !important;
    white-space: normal !important;
    word-break: break-word !important;
    vertical-align: top !important;
    font-size: 14px !important;
  }

  body.woocommerce-checkout .woocommerce-checkout-review-order-table .product-name {
    width: 62% !important;
  }

  body.woocommerce-checkout .woocommerce-checkout-review-order-table .product-total {
    width: 38% !important;
    text-align: right !important;
  }

  body.woocommerce-checkout #payment ul.payment_methods,
  body.woocommerce-checkout #payment ul.payment_methods li {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    list-style: none !important;
  }

  body.woocommerce-checkout #payment ul.payment_methods li {
    padding: 14px !important;
  }

  body.woocommerce-checkout #payment .payment_box {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px !important;
    margin: 12px 0 0 !important;
    overflow: hidden !important;
  }

  body.woocommerce-checkout #payment .payment_box,
  body.woocommerce-checkout #payment .payment_box * {
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    max-width: 100% !important;
  }

  body.woocommerce-checkout #payment img,
  body.woocommerce-checkout .woocommerce-checkout-payment img,
  body.woocommerce-checkout .payment_box img {
    width: auto !important;
    max-width: min(240px, 90%) !important;
    height: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.woocommerce-checkout #payment #place_order,
  body.woocommerce-checkout .place-order .button {
    display: flex !important;
    width: 100% !important;
    min-height: 48px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper,
  body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper p,
  body.woocommerce-checkout .form-row.woocommerce-validated,
  body.woocommerce-checkout .form-row.woocommerce-invalid {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-break: normal !important;
  }
}

@media (max-width: 430px) {
  body.woocommerce-checkout .checkout.woocommerce-checkout,
  body.woocommerce-checkout form.checkout {
    padding: 14px !important;
  }

  body.woocommerce-checkout .checkout.woocommerce-checkout #customer_details,
  body.woocommerce-checkout .checkout.woocommerce-checkout #order_review,
  body.woocommerce-checkout .checkout.woocommerce-checkout #payment {
    padding: 14px !important;
  }

  body.woocommerce-checkout .woocommerce-checkout-review-order-table th,
  body.woocommerce-checkout .woocommerce-checkout-review-order-table td {
    font-size: 13px !important;
    padding: 9px 4px !important;
  }
}

/* My Account / Orders mobile */
@media (max-width: 768px) {
  .woocommerce-account .woocommerce {
    display: block !important;
    width: 100% !important;
  }

  .woocommerce-MyAccount-navigation.aia-account-nav,
  .woocommerce-MyAccount-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 16px !important;
    padding: 16px !important;
  }

  .aia-account-nav-grid,
  .aia-account-cards,
  .aia-account-cards-v10,
  .aia-orders-grid,
  .aia-order-main {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .aia-order-card,
  .aia-view-order,
  .aia-empty-orders,
  .aia-account-hero,
  .aia-account-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px !important;
  }

  .aia-order-hero,
  .aia-order-item-row {
    display: block !important;
  }

  .woocommerce-EditAccountForm fieldset {
    padding: 16px !important;
  }
}

/* Blog mobile safety */
@media (max-width: 768px) {
  .aia-blog-grid {
    grid-template-columns: 1fr !important;
  }

  .aia-single-blog-card-v19,
  .aia-single-blog-card,
  .aia-blog-head {
    padding: 18px !important;
  }

  .aia-single-blog-image-v19,
  .aia-blog-entry-v19 img,
  .aia-blog-entry img {
    max-width: 100% !important;
  }
}

/* Footer mobile safety */
@media (max-width: 768px) {
  .aia-footer-inner-v13,
  .aia-footer-inner-v12,
  .aia-footer-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
    width: 100% !important;
  }

  .aia-footer-links,
  .aia-footer-links-v13,
  .aia-footer-menu {
    width: 100% !important;
    justify-content: flex-start !important;
  }
}


/* V21 CHECKOUT CLEAN SINGLE CARD + RESTORED RESPONSIVE RULES
   This must stay at the very bottom. */

/* General overflow safety */
body.woocommerce-checkout,
body.woocommerce-checkout * {
  box-sizing: border-box !important;
}

body.woocommerce-checkout {
  overflow-x: hidden !important;
}

/* Checkout page should have ONE main card only */
body.woocommerce-checkout main,
body.woocommerce-checkout .aia-content,
body.woocommerce-checkout .aia-shell {
  width: min(var(--aia-v21-checkout-max-width, 980px), calc(100% - 24px)) !important;
  max-width: min(var(--aia-v21-checkout-max-width, 980px), calc(100% - 24px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.woocommerce-checkout form.checkout.woocommerce-checkout,
body.woocommerce-checkout .checkout.woocommerce-checkout {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  padding: var(--aia-v21-checkout-desktop-padding, 26px) !important;
  margin: 0 auto !important;
  border: 1px solid var(--aia-line) !important;
  border-radius: 28px !important;
  background: linear-gradient(180deg, rgba(15,23,42,.86), rgba(15,23,42,.60)) !important;
  box-shadow: 0 22px 70px rgba(0,0,0,.22) !important;
  overflow: hidden !important;
}

/* Remove inner cardview from checkout sections */
body.woocommerce-checkout #customer_details,
body.woocommerce-checkout #order_review,
body.woocommerce-checkout #payment,
body.woocommerce-checkout .col2-set,
body.woocommerce-checkout .woocommerce-billing-fields,
body.woocommerce-checkout .woocommerce-checkout-review-order {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  float: none !important;
  clear: both !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 0 var(--aia-v21-checkout-gap, 18px) !important;
  min-height: 0 !important;
  overflow: visible !important;
}

/* Order heading */
body.woocommerce-checkout #order_review_heading {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  clear: both !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  margin: 0 0 12px !important;
  font-size: 24px !important;
  line-height: 1.15 !important;
}

/* Billing form clean full width */
body.woocommerce-checkout .woocommerce-billing-fields h3 {
  margin: 0 0 16px !important;
  font-size: 24px !important;
  line-height: 1.15 !important;
}

body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
body.woocommerce-checkout .form-row,
body.woocommerce-checkout p.form-row,
body.woocommerce-checkout .form-row-first,
body.woocommerce-checkout .form-row-last,
body.woocommerce-checkout .form-row-wide {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  float: none !important;
  clear: both !important;
  padding: 0 !important;
  margin: 0 0 14px !important;
}

body.woocommerce-checkout label {
  display: block !important;
  width: 100% !important;
  margin: 0 0 8px !important;
  white-space: normal !important;
  line-height: 1.25 !important;
}

/* Inputs */
body.woocommerce-checkout input.input-text,
body.woocommerce-checkout input[type="text"],
body.woocommerce-checkout input[type="email"],
body.woocommerce-checkout input[type="tel"],
body.woocommerce-checkout input[type="password"],
body.woocommerce-checkout textarea,
body.woocommerce-checkout select,
body.woocommerce-checkout .select2-container {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

/* Order summary table clean, no nested mini card */
body.woocommerce-checkout .woocommerce-checkout-review-order-table {
  width: 100% !important;
  max-width: 100% !important;
  border: 1px solid var(--aia-line) !important;
  border-radius: 18px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden !important;
  background: rgba(0,0,0,.14) !important;
  margin: 0 0 16px !important;
  table-layout: auto !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table td {
  padding: 12px 14px !important;
  border-color: var(--aia-line) !important;
  vertical-align: top !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table .product-name {
  width: 64% !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table .product-total {
  width: 36% !important;
  text-align: right !important;
}

/* Payment block no nested cramped card */
body.woocommerce-checkout #payment {
  margin: 0 !important;
  padding: 0 !important;
}

body.woocommerce-checkout #payment ul.payment_methods {
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

body.woocommerce-checkout #payment ul.payment_methods li {
  width: 100% !important;
  max-width: 100% !important;
  list-style: none !important;
  margin: 0 0 14px !important;
  padding: 16px !important;
  border: 1px solid var(--aia-line) !important;
  border-radius: 18px !important;
  background: rgba(0,0,0,.16) !important;
}

body.woocommerce-checkout #payment .payment_box {
  width: 100% !important;
  max-width: 100% !important;
  margin: 12px 0 0 !important;
  padding: 16px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: rgba(0,0,0,.34) !important;
  text-align: center !important;
  overflow: hidden !important;
}

body.woocommerce-checkout #payment .payment_box,
body.woocommerce-checkout #payment .payment_box * {
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

body.woocommerce-checkout #payment img,
body.woocommerce-checkout .payment_box img {
  display: block !important;
  width: auto !important;
  max-width: min(260px, 88%) !important;
  height: auto !important;
  margin: 14px auto !important;
}

/* Terms and place order clean */
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper,
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper p,
body.woocommerce-checkout .woocommerce-terms-and-conditions-checkbox-text {
  width: 100% !important;
  max-width: 100% !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  line-height: 1.5 !important;
}

body.woocommerce-checkout #payment .place-order {
  padding: 0 !important;
  margin: 16px 0 0 !important;
}

body.woocommerce-checkout #place_order {
  width: 100% !important;
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Mobile checkout: same one-card design but smaller */
@media (max-width: 768px) {
  body.woocommerce-checkout main,
  body.woocommerce-checkout .aia-content,
  body.woocommerce-checkout .aia-shell {
    width: calc(100% - (var(--aia-v21-mobile-gap, 12px) * 2)) !important;
    max-width: calc(100% - (var(--aia-v21-mobile-gap, 12px) * 2)) !important;
  }

  body.woocommerce-checkout form.checkout.woocommerce-checkout,
  body.woocommerce-checkout .checkout.woocommerce-checkout {
    padding: var(--aia-v21-checkout-mobile-padding, 16px) !important;
    border-radius: 22px !important;
  }

  body.woocommerce-checkout .woocommerce-billing-fields h3,
  body.woocommerce-checkout #order_review_heading {
    font-size: 22px !important;
  }

  body.woocommerce-checkout input.input-text,
  body.woocommerce-checkout input[type="text"],
  body.woocommerce-checkout input[type="email"],
  body.woocommerce-checkout input[type="tel"],
  body.woocommerce-checkout input[type="password"],
  body.woocommerce-checkout select,
  body.woocommerce-checkout .select2-container,
  body.woocommerce-checkout #place_order {
    min-height: var(--aia-v21-mobile-button-height, 48px) !important;
  }

  body.woocommerce-checkout .woocommerce-checkout-review-order-table th,
  body.woocommerce-checkout .woocommerce-checkout-review-order-table td {
    padding: 10px 8px !important;
    font-size: 13px !important;
  }

  body.woocommerce-checkout #payment ul.payment_methods li {
    padding: 14px !important;
  }

  body.woocommerce-checkout #payment .payment_box {
    padding: 14px !important;
  }

  body.woocommerce-checkout #payment img,
  body.woocommerce-checkout .payment_box img {
    max-width: min(230px, 86%) !important;
  }
}

/* Very small phones */
@media (max-width: 390px) {
  body.woocommerce-checkout main,
  body.woocommerce-checkout .aia-content,
  body.woocommerce-checkout .aia-shell {
    width: calc(100% - 18px) !important;
    max-width: calc(100% - 18px) !important;
  }

  body.woocommerce-checkout form.checkout.woocommerce-checkout,
  body.woocommerce-checkout .checkout.woocommerce-checkout {
    padding: 14px !important;
  }
}

/* Restore Customizer-visible product rows behavior in CSS output fallback */
@media (min-width: 1101px) {
  .woocommerce ul.products.columns-2,
  .woocommerce-page ul.products.columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .woocommerce ul.products.columns-3,
  .woocommerce-page ul.products.columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .woocommerce ul.products.columns-4,
  .woocommerce-page ul.products.columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}
