/*
Theme Name: Auto Motoriz
Template: astra
Author: Auto Motoriz
Author URI: https://automotoriz.com
Description: Custom Child Theme for Auto Motoriz - Quality-tested, low-mileage engines and transmissions for Ford, Toyota, Lexus, Honda, Infiniti and Acura.
Version: 1.4.0
Text Domain: auto-motoriz
*/

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&family=Poppins:wght@400;500;600;700;800;900&display=swap');

:root,
body {
  --am-bg: #ffffff;
  --am-bg-2: #f8fafc;
  --am-surface: #ffffff;
  --am-surface-2: #f1f5f9;
  --am-border: #e2e8f0;
  --am-gold: #d4af37;
  --am-gold-dark: #b45309;
  --am-gold-light: #f6d97a;
  --am-red: #e31c23;
  --am-red-light: #ff4d54;
  --am-cyan: #0284c7;
  --am-green: #16a34a;
  --am-text: #0f172a;
  --am-muted: #475569;
  --am-radius: 14px;
  --ast-global-color-0: #d4af37 !important;
  --ast-global-color-1: #b45309 !important;
  --ast-global-color-2: #0f172a !important;
  --ast-global-color-3: #334155 !important;
  --ast-global-color-4: #f8fafc !important;
  --ast-global-color-5: #ffffff !important;
  --ast-global-color-6: #0f172a !important;
  --ast-global-color-7: #08090c !important;
  --ast-global-color-8: #000000 !important;
  --ast-border-color: #e2e8f0 !important;
}

html, body {
  margin: 0 !important;
  padding: 0 !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  overflow-x: hidden;
  line-height: 1.65;
}

/* Hide default Astra header and footer so custom Auto Motoriz header/footer own the chrome cleanly */
#masthead,
.site-header,
.ast-mobile-popup-drawer,
footer.site-footer,
#colophon {
  display: none !important;
}

#page,
.site-content,
#primary,
#main {
  background: #ffffff !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post,
.ast-page-builder-template .site-content > .ast-container,
.ast-plain-container .site-content > .ast-container {
  background: #ffffff !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

.entry-header.ast-no-title,
.page .entry-header {
  display: none !important;
}

h1, h2, h3, h4, h5, h6,
.entry-content :where(h1, h2, h3, h4, h5, h6) {
  color: #0f172a;
  font-family: 'Poppins', 'Inter', sans-serif;
  line-height: 1.22;
}

a {
  color: #b45309;
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  color: #92400e;
}

/* ============================================================
   CUSTOM AUTO MOTORIZ HEADER (WHITE BACKGROUND)
   ============================================================ */
#am-header {
  background: #ffffff !important;
  border-bottom: 2px solid var(--am-gold);
  font-family: 'Poppins', 'Inter', sans-serif;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.am-topbar {
  background: #08090c !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  font-size: 12.5px;
  color: #f1f5f9 !important;
}

.am-topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

.am-topbar a {
  color: #d4af37 !important;
  font-weight: 700;
  text-decoration: none;
}

.am-topbar-contact {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.am-mainbar {
  background: #ffffff !important;
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.am-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.am-logo-img {
  height: 60px !important;
  width: auto !important;
  max-width: 195px !important;
  object-fit: contain !important;
  display: block !important;
}

.am-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.am-nav > a,
.am-drop > a {
  color: #0f172a !important;
  text-decoration: none !important;
  font-size: 13.5px;
  font-weight: 600;
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.am-nav > a:hover,
.am-drop:hover > a {
  color: #b45309 !important;
}

.am-drop {
  position: static;
}

.am-mainbar {
  position: relative;
}

.am-drop-menu.am-mega-menu {
  position: absolute;
  top: 100%;
  left: 20px;
  right: 20px;
  max-width: 1240px;
  margin: 0 auto;
  background: #ffffff !important;
  border: 1px solid #cbd5e1;
  border-top: 3px solid var(--am-gold);
  border-radius: 0 0 12px 12px;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
  z-index: 1000;
}

.am-drop:hover .am-drop-menu.am-mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.am-mega-grid {
  display: grid;
  grid-template-columns: 2.1fr 1fr 0.95fr;
  gap: 24px;
  align-items: start;
}

.am-mega-heading {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #b45309;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.am-mega-brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.am-mega-brand-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  transition: border-color 0.2s ease;
}

.am-mega-brand-card:hover {
  border-color: #d4af37;
  background: #ffffff;
}

.am-mega-brand-title {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  font-size: 14.5px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  text-decoration: none !important;
  padding: 0 0 8px 0 !important;
  margin-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.am-mega-brand-title:hover {
  color: #b45309 !important;
}

.am-mega-count {
  font-size: 11px;
  font-weight: 800;
  background: #d4af37;
  color: #000000;
  padding: 2px 7px;
  border-radius: 4px;
}

.am-mega-sublinks {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.am-mega-sublinks a {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  text-decoration: none !important;
  padding: 4px 6px !important;
  border-radius: 5px;
}

.am-mega-sublinks a:hover {
  background: #f1f5f9;
  color: #b45309 !important;
}

.am-mega-type-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.am-mega-type-list a {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px !important;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #0f172a !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.am-mega-type-list a:hover {
  background: #ffffff;
  border-color: #d4af37;
  color: #b45309 !important;
}

.am-mega-promo {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.am-mega-promo-badge {
  display: inline-block;
  align-self: flex-start;
  background: #d4af37;
  color: #000000;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border-radius: 4px;
}

.am-mega-promo h4 {
  margin: 0 !important;
  font-size: 15.5px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.35 !important;
}

.am-mega-promo p {
  margin: 0 !important;
  font-size: 12.5px !important;
  color: #334155 !important;
  line-height: 1.5 !important;
}

.am-mega-cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #d4af37 !important;
  background-image: none !important;
  color: #000000 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  padding: 10px 14px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  box-shadow: none !important;
  margin-top: 4px;
}

.am-mega-cta:hover {
  background: #c59f2d !important;
  color: #000000 !important;
}

.am-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.am-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  text-decoration: none !important;
  box-shadow: none !important;
}

.am-icon-btn:hover {
  border-color: var(--am-gold) !important;
  color: #b45309 !important;
}

.am-cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--am-red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  min-width: 19px;
  height: 19px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.am-call-btn {
  background: #d4af37 !important;
  background-image: none !important;
  color: #000000 !important;
  text-decoration: none !important;
  font-weight: 800;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 8px;
  box-shadow: none !important;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.am-call-btn:hover {
  background: #c59f2d !important;
  background-image: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.am-burger {
  display: none;
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 9px;
  box-shadow: none !important;
}

.am-burger span {
  width: 22px;
  height: 2.5px;
  background: #0f172a;
  border-radius: 2px;
  display: block;
}

#am-mobile-menu {
  display: none;
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0;
  padding: 14px 20px 22px;
}

#am-mobile-menu a {
  display: block;
  padding: 11px 0;
  color: #0f172a !important;
  border-bottom: 1px solid #e2e8f0;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
}

.am-mobile-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
}

.am-mobile-pills a {
  padding: 6px 12px !important;
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  border-radius: 8px;
  font-size: 13px !important;
}

@media (max-width: 1080px) {
  .am-nav {
    display: none !important;
  }
  .am-burger,
  button#am-burger-btn {
    display: inline-flex !important;
    width: 42px !important;
    height: 40px !important;
    padding: 8px !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
  }
}

@media (max-width: 768px) {
  .am-topbar-desktop-only {
    display: none !important;
  }
  .am-topbar-inner {
    justify-content: center;
    padding: 7px 14px;
  }
  .am-topbar-contact {
    width: 100%;
    justify-content: space-between;
    font-size: 12px;
    gap: 10px;
  }
  /* Hide User Account icon and Call button in mobile header */
  .am-header-actions a[aria-label="My Account"],
  .am-header-actions .am-call-btn {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .am-logo {
    font-size: 19px;
  }
  .am-logo-img {
    height: 46px !important;
    max-width: 150px !important;
  }
}

/* ============================================================
   PAGE SECTIONS & WHITE BACKGROUND VISUAL LAYOUT SYSTEM
   ============================================================ */
.am-page-wrap {
  width: 100%;
  background: #ffffff !important;
  color: #0f172a !important;
  overflow-x: hidden;
}

.am-container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
}

.am-section {
  padding: 76px 0;
  position: relative;
  background: #ffffff;
  color: #0f172a;
}

.am-section-alt {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

/* Force all non-hero Elementor sections to clean white / light off-white backgrounds with dark readable text */
.elementor-section:not(.am-hero-section-bg) {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-bottom: 1px solid #e2e8f0;
}

.elementor-section:not(.am-hero-section-bg):nth-of-type(even) {
  background-color: #f8fafc !important;
}

.elementor-section:not(.am-hero-section-bg) h1,
.elementor-section:not(.am-hero-section-bg) h2,
.elementor-section:not(.am-hero-section-bg) h3,
.elementor-section:not(.am-hero-section-bg) .elementor-heading-title:not(h4) {
  color: #0f172a !important;
}

.elementor-section:not(.am-hero-section-bg) h4.elementor-heading-title {
  color: #b45309 !important;
}

.elementor-section:not(.am-hero-section-bg) .elementor-widget-text-editor,
.elementor-section:not(.am-hero-section-bg) p,
.elementor-section:not(.am-hero-section-bg) li {
  color: #334155 !important;
}

.elementor-section:not(.am-hero-section-bg) strong {
  color: #0f172a;
}

.am-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b45309;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-size: 12.5px;
  margin-bottom: 12px;
}

.am-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--am-red);
  box-shadow: 0 0 10px var(--am-red);
}

.am-row-5050 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.am-media-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  background: #f8fafc;
}

.am-media-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.am-media-badge {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--am-gold);
  border-radius: 12px;
  padding: 12px 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
}

.am-media-badge strong {
  color: #b45309;
  font-size: 1.5rem;
  display: block;
  line-height: 1.1;
}

.am-media-badge span {
  color: #1e293b;
  font-size: 12.5px;
  font-weight: 600;
}

.am-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.am-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 8px;
  background: #d4af37 !important;
  background-image: none !important;
  color: #000000 !important;
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.am-btn-primary:hover {
  background: #c59f2d !important;
  background-image: none !important;
  box-shadow: none !important;
  transform: none !important;
  color: #000000 !important;
}

.am-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 8px;
  background: #ffffff !important;
  background-image: none !important;
  border: 2px solid #0f172a !important;
  box-shadow: none !important;
  color: #0f172a !important;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.am-btn-secondary:hover {
  background: #0f172a !important;
  background-image: none !important;
  box-shadow: none !important;
  transform: none !important;
  color: #ffffff !important;
}

.am-card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.am-card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.am-card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.am-info-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px;
  padding: 30px 26px;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.05);
  transition: all 0.3s ease;
  color: #334155 !important;
  display: flex;
  flex-direction: column;
}

.am-info-card:hover {
  transform: translateY(-5px);
  border-color: var(--am-gold) !important;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.10);
}

.am-info-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #0f172a !important;
}

.am-info-card p,
.am-info-card span {
  color: #475569 !important;
  font-size: 0.95rem;
  margin: 0;
}

.am-info-card strong {
  color: #0f172a !important;
}

/* Stand-Out Brand Showcase Grid (.efs-brand-grid) */
.efs-brand-grid {
  gap: 24px !important;
}

.efs-brand-grid .am-info-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  border: 2px solid #cbd5e1 !important;
  border-top: 5px solid var(--am-gold) !important;
  border-radius: 18px !important;
  padding: 32px 24px !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.09) !important;
  align-items: center !important;
  text-align: center !important;
  gap: 14px !important;
  transition: all 0.28s ease !important;
}

.efs-brand-grid .am-info-card:hover {
  transform: translateY(-6px) !important;
  border-color: var(--am-gold) !important;
  box-shadow: 0 20px 42px rgba(212, 175, 55, 0.24) !important;
  background: #ffffff !important;
}

.efs-brand-grid .am-info-card > div:first-child {
  width: 118px !important;
  height: 118px !important;
  padding: 16px !important;
  border-radius: 22px !important;
  background: #ffffff !important;
  border: 2px solid #e2e8f0 !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 4px !important;
}

.efs-brand-grid .am-info-card:hover > div:first-child {
  border-color: var(--am-gold) !important;
  transform: scale(1.05);
  transition: all 0.25s ease;
}

.efs-brand-grid .am-info-card > div:first-child img {
  width: 100% !important;
  height: 100% !important;
  max-width: 86px !important;
  max-height: 86px !important;
  object-fit: contain !important;
  filter: contrast(1.15) drop-shadow(0 2px 3px rgba(15, 23, 42, 0.14));
}

.efs-brand-grid .am-info-card strong {
  font-size: 1.55rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.4px !important;
  text-transform: uppercase !important;
  color: #0f172a !important;
  line-height: 1.2 !important;
}

.efs-brand-grid .am-info-card span {
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  color: #334155 !important;
  line-height: 1.45 !important;
}

.efs-brand-grid .am-brand-cta-pill {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin-top: 6px !important;
  padding: 7px 18px !important;
  border-radius: 50px !important;
  background: #0f172a !important;
  color: var(--am-gold-light) !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  border: 1px solid var(--am-gold) !important;
}

.efs-brand-grid .am-info-card:hover .am-brand-cta-pill {
  background: var(--am-gold) !important;
  color: #000000 !important;
}

.am-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
  box-sizing: border-box;
}

.am-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  color: #1e293b;
  font-size: 14.5px;
}

.am-table th {
  background: #0f172a;
  color: var(--am-gold) !important;
  font-weight: 700;
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid #cbd5e1;
}

.am-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155 !important;
  vertical-align: top;
}

.am-table tr:nth-child(even) td {
  background: #f8fafc;
}

.am-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 960px) {
  .am-row-5050,
  .am-card-grid-2,
  .am-card-grid-3,
  .am-card-grid-4 {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  .am-section {
    padding: 48px 0;
  }
  .am-media-card img {
    height: 280px;
  }
}

/* ============================================================
   WOOCOMMERCE SHOP, SINGLE PRODUCT, CART & CHECKOUT (WHITE THEME)
   ============================================================ */
.woocommerce-page .site-content .ast-container {
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 28px 24px 40px !important;
  display: block !important;
  background: #ffffff !important;
}

/* Minimal-Height Page Title Bar for Shop, Catalog, and Product Pages */
.am-page-title-bar {
  width: 100%;
  background: linear-gradient(90deg, #0b0f19 0%, #161f33 100%) !important;
  border-bottom: 2px solid var(--am-gold);
  padding: 16px 20px;
  font-family: 'Poppins', 'Inter', sans-serif;
}

.am-page-title-inner {
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.am-page-title-heading,
h1.am-page-title-heading {
  margin: 0 !important;
  padding: 0 !important;
  font-size: clamp(1.15rem, 2vw, 1.5rem) !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  color: #ffffff !important;
  letter-spacing: -0.2px;
}

.am-page-title-crumbs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 12.5px;
  line-height: 1.4;
  color: #cbd5e1;
}

.am-page-title-crumbs a {
  color: var(--am-gold-light) !important;
  font-weight: 600;
  text-decoration: none !important;
}

.am-page-title-crumbs a:hover {
  color: #ffffff !important;
}

.am-page-title-crumbs .am-crumb-sep {
  color: #64748b;
}

.am-page-title-crumbs .am-crumb-current {
  color: #ffffff;
  font-weight: 600;
}

@media (max-width: 768px) {
  .am-page-title-bar {
    padding: 13px 16px;
  }
  .am-page-title-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* Hide duplicate inner WooCommerce archive header (title, breadcrumb, top description) since #am-page-title-bar is at top and descriptions render after products */
.woocommerce .woocommerce-breadcrumb,
.woocommerce-products-header,
.woocommerce-products-header__title.page-title {
  display: none !important;
}

.am-catalog-bottom-description p:last-child {
  margin-bottom: 0 !important;
}

.woocommerce .woocommerce-result-count,
.woocommerce-page .woocommerce-result-count {
  color: #475569 !important;
}

.woocommerce .woocommerce-ordering select {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px;
  height: 42px;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.efs-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 0 0 18px 0 !important;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.06);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
}

.efs-card {
  padding: 0 !important;
}

.woocommerce ul.products li.product:hover,
.efs-card:hover {
  transform: translateY(-6px);
  border-color: var(--am-gold) !important;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img,
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap img {
  height: auto !important;
  max-height: none !important;
  width: 100% !important;
  object-fit: contain !important;
  margin-bottom: 14px !important;
  background: #f8fafc;
  display: block;
}

.woocommerce ul.products li.product .astra-shop-summary-wrap,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .button {
  padding-left: 16px;
  padding-right: 16px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.efs-card h3 a {
  color: #0f172a !important;
  font-size: 0.96rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin-bottom: 10px !important;
}

.woocommerce ul.products li.product .price {
  color: #b45309 !important;
  font-size: 1.2rem !important;
  font-weight: 800 !important;
  margin-bottom: 12px !important;
}

.woocommerce ul.products li.product .price del {
  color: #64748b !important;
  font-size: 0.85rem !important;
  margin-right: 6px;
}

.woocommerce ul.products li.product .button,
.am-ajax-cart-btn {
  margin: auto 16px 0 16px !important;
  background: #d4af37 !important;
  background-image: none !important;
  color: #000000 !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  border-radius: 8px !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  text-align: center;
  padding: 12px 16px !important;
}

.woocommerce ul.products li.product .button:focus,
.am-ajax-cart-btn:focus {
  outline: none !important;
  border: none !important;
}

.efs-card .am-ajax-cart-btn {
  margin: 0 !important;
}

.woocommerce ul.products li.product .button:hover,
.am-ajax-cart-btn:hover {
  background: #c59f2d !important;
  background-image: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.woocommerce a.added_to_cart,
.woocommerce-page a.added_to_cart,
a.added_to_cart.wc-forward,
.am-view-cart-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 8px 16px 0 16px !important;
  padding: 10px 16px !important;
  background: #0f172a !important;
  background-image: none !important;
  color: #d4af37 !important;
  border: 2px solid #d4af37 !important;
  border-radius: 8px !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  text-align: center !important;
  box-shadow: none !important;
}

.efs-card a.added_to_cart,
.efs-card .am-view-cart-btn {
  margin: 8px 0 0 0 !important;
  width: 100%;
}

.woocommerce a.added_to_cart:hover,
a.added_to_cart.wc-forward:hover,
.am-view-cart-btn:hover {
  background: #1e293b !important;
  color: #ffffff !important;
}

.woocommerce span.onsale {
  background: #e31c23 !important;
  background-image: none !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 11px !important;
  border-radius: 50px !important;
  padding: 4px 12px !important;
  min-height: auto !important;
  min-width: auto !important;
  line-height: 1.4 !important;
  top: 12px !important;
  left: 12px !important;
  box-shadow: none !important;
}

/* Single Product Page */
.single-product div.product {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 32px;
  color: #0f172a;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.single-product div.product .product_title {
  color: #0f172a !important;
  font-size: 1.85rem !important;
  font-weight: 800 !important;
  margin-bottom: 14px !important;
}

.single-product div.product p.price,
.single-product div.product span.price {
  color: #b45309 !important;
  font-size: 1.8rem !important;
  font-weight: 900 !important;
}

.single-product div.product .woocommerce-product-details__short-description {
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--am-gold);
  padding: 16px 20px;
  border-radius: 10px;
  margin: 18px 0;
}

.single-product div.product form.cart .button.single_add_to_cart_button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce #reviews #respond input#submit,
#respond input#submit,
.comment-form .submit,
button.ast-button,
.ast-button,
input[type="submit"],
input[type="button"] {
  background: #d4af37 !important;
  background-color: #d4af37 !important;
  background-image: none !important;
  color: #000000 !important;
  font-weight: 800 !important;
  font-size: 14.5px !important;
  text-transform: uppercase !important;
  padding: 13px 28px !important;
  border-radius: 8px !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  transform: none !important;
  cursor: pointer !important;
}

.single-product div.product form.cart .button.single_add_to_cart_button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce #reviews #respond input#submit:hover,
#respond input#submit:hover,
.comment-form .submit:hover,
button.ast-button:hover,
.ast-button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  background: #c59f2d !important;
  background-color: #c59f2d !important;
  background-image: none !important;
  color: #000000 !important;
  box-shadow: none !important;
  outline: none !important;
  transform: none !important;
}

.single-product .woocommerce-tabs ul.tabs {
  border-bottom: 2px solid #e2e8f0 !important;
  margin-bottom: 20px !important;
}

.single-product .woocommerce-tabs ul.tabs::before {
  border-bottom: 2px solid #e2e8f0 !important;
}

.single-product .woocommerce-tabs ul.tabs li {
  border: none !important;
  background: transparent !important;
  margin: 0 24px 0 0 !important;
  padding: 0 !important;
}

.single-product .woocommerce-tabs ul.tabs li::before,
.single-product .woocommerce-tabs ul.tabs li::after {
  display: none !important;
  border: none !important;
}

.single-product .woocommerce-tabs ul.tabs li a {
  color: #475569 !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  padding: 12px 4px !important;
  border-top: 3px solid transparent !important;
  border-bottom: 3px solid transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

.single-product .woocommerce-tabs ul.tabs li a:hover {
  color: #0f172a !important;
}

.single-product .woocommerce-tabs ul.tabs li.active {
  border-top: none !important;
  border-bottom: none !important;
  background: transparent !important;
}

.single-product .woocommerce-tabs ul.tabs li.active::before {
  display: none !important;
  background: #d4af37 !important;
  border-color: #d4af37 !important;
}

.single-product .woocommerce-tabs ul.tabs li.active a {
  color: #b45309 !important;
  border-top: 3px solid #d4af37 !important;
  border-bottom: 3px solid #d4af37 !important;
  outline: none !important;
}

.single-product .woocommerce-tabs ul.tabs li a:focus,
.woocommerce a:focus,
.woocommerce button:focus,
.woocommerce input:focus,
.woocommerce textarea:focus,
.woocommerce select:focus,
a:focus,
button:focus {
  outline: none !important;
}

.single-product .woocommerce-Tabs-panel {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px;
  padding: 28px !important;
  color: #334155 !important;
}

.single-product .woocommerce-Tabs-panel h2,
.single-product #reviews #comments h2,
.single-product #review_form #respond .comment-reply-title {
  color: #0f172a !important;
  font-weight: 800 !important;
  font-size: 1.25rem !important;
}

/* Star Ratings & Review Form */
.woocommerce .star-rating span::before,
.woocommerce p.stars a,
.woocommerce p.stars a::before,
.woocommerce p.stars.selected a.active::before,
.woocommerce p.stars:hover a::before {
  color: #d4af37 !important;
}

.woocommerce #review_form #respond textarea,
.woocommerce #review_form #respond input[type="text"],
.woocommerce #review_form #respond input[type="email"] {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  color: #0f172a !important;
  padding: 12px 14px !important;
}

.woocommerce #review_form #respond textarea:focus,
.woocommerce #review_form #respond input[type="text"]:focus,
.woocommerce #review_form #respond input[type="email"]:focus {
  border-color: #d4af37 !important;
  box-shadow: none !important;
  outline: none !important;
}

/* WooCommerce Notices, Pagination & Account Navigation */
.woocommerce-info,
.woocommerce-message {
  border-top-color: #d4af37 !important;
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

.woocommerce-info::before,
.woocommerce-message::before {
  color: #b45309 !important;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
}

.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a:hover {
  background: #d4af37 !important;
  color: #000000 !important;
  border-color: #d4af37 !important;
}

.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
  background: #d4af37 !important;
  color: #000000 !important;
  font-weight: 800 !important;
}

/* Cart & Checkout */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px;
  color: #0f172a;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05);
}

.woocommerce-shipping-destination,
.woocommerce-shipping-calculator,
a.shipping-calculator-button {
  display: none !important;
}

.woocommerce table.shop_table {
  border-color: #e2e8f0 !important;
  background: #ffffff !important;
  color: #0f172a !important;
  border-radius: 12px !important;
}

.woocommerce table.shop_table th {
  color: #0f172a !important;
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

.woocommerce table.shop_table td {
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container input[type="tel"],
.wpforms-container select,
.wpforms-container textarea {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  border-radius: 10px !important;
  padding: 12px 15px !important;
}

.wpforms-container .wpforms-field-label,
.wpforms-container .wpforms-field-sublabel,
.woocommerce form .form-row label {
  color: #0f172a !important;
  font-weight: 600 !important;
}

.wpforms-container button[type="submit"],
.wpforms-container .wpforms-submit {
  background: #d4af37 !important;
  background-image: none !important;
  color: #000000 !important;
  font-weight: 800 !important;
  border: none !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  transform: none !important;
  padding: 14px 32px !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
}

.wpforms-container button[type="submit"]:hover,
.wpforms-container .wpforms-submit:hover {
  background: #c59f2d !important;
  background-image: none !important;
  box-shadow: none !important;
  transform: none !important;
}

/* ============================================================
   HERO BACKGROUND IMAGE & SEARCH BAR SELECT STYLING
   ============================================================ */
.am-hero-section-bg,
body.page:not(.home) .elementor-section.am-hero-section-bg {
  background-image: linear-gradient(180deg, rgba(6, 8, 12, 0.14) 0%, rgba(6, 8, 12, 0.26) 100%), url('../../uploads/2026/10/s1.jpg') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  border-bottom: 3px solid var(--am-gold) !important;
  padding: 115px 24px 115px !important;
  position: relative;
}

body.home .elementor-section.elementor-top-section:first-of-type {
  background-image: linear-gradient(180deg, rgba(6, 8, 12, 0.12) 0%, rgba(6, 8, 12, 0.24) 100%), url('../../uploads/2026/10/s1.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-bottom: 3px solid var(--am-gold) !important;
  padding: 115px 24px 115px !important;
  position: relative;
  overflow: hidden;
}

body.home .elementor-section.elementor-top-section:first-of-type > .elementor-background-overlay,
.am-hero-section-bg > .elementor-background-overlay {
  display: none !important;
  opacity: 0 !important;
}

body.home .elementor-section.elementor-top-section:first-of-type > .elementor-container {
  position: relative;
  z-index: 2;
}

.am-hero-slider-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.am-hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: brightness(1.18) contrast(1.06) saturate(1.08);
  opacity: 0;
  transition: opacity 0.9s ease-in-out;
}

.am-hero-slide.is-active {
  opacity: 1;
}

.am-hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.am-hero-dot {
  width: 12px !important;
  height: 12px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.45) !important;
  border: 2px solid #ffffff !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
}

.am-hero-dot.is-active {
  background: #d4af37 !important;
  border-color: #d4af37 !important;
  transform: scale(1.2) !important;
}

.am-hero-section-bg h1,
.am-hero-section-bg .elementor-heading-title,
body.home .elementor-section.elementor-top-section:first-of-type h1,
body.home .elementor-section.elementor-top-section:first-of-type .elementor-heading-title {
  color: #ffffff !important;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.95), 0 1px 4px rgba(0, 0, 0, 0.9);
}

.am-hero-section-bg h4.elementor-heading-title,
body.home .elementor-section.elementor-top-section:first-of-type h4.elementor-heading-title {
  color: var(--am-gold-light) !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

.am-hero-section-bg p,
.am-hero-section-bg .elementor-widget-text-editor,
body.home .elementor-section.elementor-top-section:first-of-type p,
body.home .elementor-section.elementor-top-section:first-of-type .elementor-widget-text-editor {
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.elementor-widget-button .elementor-button,
button[type="button"] {
  background: #d4af37 !important;
  background-image: none !important;
  background-color: #d4af37 !important;
  color: #000000 !important;
  font-weight: 800 !important;
  font-size: 14.5px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 14px 30px !important;
  border-radius: 8px !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
  transition: background-color 0.2s ease !important;
}

.elementor-widget-button .elementor-button:hover,
button[type="button"]:hover {
  background: #c59f2d !important;
  background-image: none !important;
  background-color: #c59f2d !important;
  box-shadow: none !important;
  transform: none !important;
  color: #000000 !important;
}

#amMakeSelect {
  flex: 1;
  min-width: 200px;
  height: 54px !important;
  line-height: 1.35 !important;
  padding: 10px 16px !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 2px solid #d4af37 !important;
  border-radius: 8px !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  appearance: auto !important;
  -webkit-appearance: menulist !important;
}

#amMakeSelect option {
  background-color: #ffffff !important;
  color: #0f172a !important;
  padding: 8px;
}

#amKwInput {
  flex: 1.5;
  min-width: 240px;
  height: 54px !important;
  padding: 12px 18px !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 2px solid #cbd5e1 !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

#amKwInput:focus {
  border-color: #d4af37 !important;
}

/* ============================================================
   STANDOUT VEHICLE SEARCH & KPI STATS SECTION BELOW SLIDER
   ============================================================ */
.am-standout-search-section {
  background: #ffffff !important;
  padding: 46px 24px 56px !important;
  border-bottom: 2px solid #e2e8f0 !important;
  position: relative;
  z-index: 10;
}

.am-standout-wrap {
  max-width: 1120px;
  margin: 0 auto 24px;
  background: #0f172a;
  border: 3px solid #d4af37;
  border-radius: 18px;
  padding: 36px 32px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
  text-align: center;
}

.am-standout-header {
  margin-bottom: 22px;
}

.am-standout-badge {
  display: inline-block;
  background: #d4af37;
  color: #000000;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.am-standout-wrap h2.am-standout-title,
.elementor-section:not(.am-hero-section-bg) .am-standout-wrap h2.am-standout-title {
  color: #ffffff !important;
  font-size: clamp(1.45rem, 2.5vw, 2rem) !important;
  font-weight: 900 !important;
  margin: 0 !important;
}

.am-standout-searchbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
  background: #1e293b;
  border: 2px solid rgba(212, 175, 55, 0.65);
  border-radius: 12px;
  padding: 18px;
  max-width: 880px;
  margin: 0 auto 28px;
}

.am-standout-search-btn {
  height: 54px !important;
  padding: 0 30px !important;
  background: #d4af37 !important;
  background-image: none !important;
  color: #000000 !important;
  font-weight: 900 !important;
  font-size: 15px !important;
  text-transform: uppercase !important;
  border-radius: 8px !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
  white-space: nowrap;
}

.am-standout-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1040px;
  margin: 0 auto;
}

.am-standout-stat-card {
  background: #1e293b;
  border: 2px solid #d4af37;
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
}

.am-standout-stat-card .am-stat-num {
  font-size: 2.35rem;
  font-weight: 900;
  color: #d4af37 !important;
  line-height: 1.1;
  margin-bottom: 8px;
}

.am-standout-stat-card .am-stat-label {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff !important;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .am-standout-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .am-standout-wrap {
    padding: 24px 18px;
  }
}

@media (max-width: 560px) {
  .am-standout-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   PRODUCT SHOWCASE GRID & PAGE CONTENT CENTERING
   ============================================================ */
.elementor-section.elementor-section-boxed > .elementor-container,
.am-container {
  max-width: 1260px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

.efs-prod-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 1080px) {
  .efs-prod-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .efs-prod-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   CENTER ALL PAGES CONTENT WITHIN PAGE CONTENT WIDTH
   ============================================================ */
.elementor-col-100 > .elementor-widget-wrap {
  max-width: 1212px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.elementor-col-100 > .elementor-widget-wrap > .elementor-widget-heading,
.elementor-col-100 > .elementor-widget-wrap > .elementor-widget-heading .elementor-heading-title,
.elementor-col-100 > .elementor-widget-wrap > .elementor-widget-button,
.elementor-col-100 > .elementor-widget-wrap > .elementor-widget-text-editor,
.elementor-col-100 > .elementor-widget-wrap > .elementor-widget-text-editor > .elementor-widget-container > p,
.elementor-col-100 > .elementor-widget-wrap > .elementor-widget-text-editor > p,
.am-section > .am-container > h1,
.am-section > .am-container > h2,
.am-section > .am-container > .am-eyebrow,
.am-section > .am-container > div > p {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.elementor-col-100 > .elementor-widget-wrap > .elementor-widget-text-editor > .elementor-widget-container > p,
.elementor-col-100 > .elementor-widget-wrap > .elementor-widget-text-editor > p {
  max-width: 980px;
}

.am-cta-group {
  justify-content: center !important;
}

.am-info-card {
  text-align: center !important;
}

.efs-card,
.am-table,
.wpforms-container,
.woocommerce {
  text-align: left !important;
}

/* ============================================================
   COMPREHENSIVE MOBILE & TABLET RESPONSIVENESS ACROSS ALL PAGES
   ============================================================ */
@media (max-width: 960px) {
  div[style*="grid-template-columns"],
  .efs-brand-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }

  .elementor-section > .elementor-container {
    flex-wrap: wrap !important;
  }

  .elementor-column.elementor-col-50,
  .elementor-column.elementor-col-33,
  .elementor-column.elementor-col-25,
  .elementor-column[data-col="50"],
  .elementor-column[data-col="33"],
  .elementor-column[data-col="25"] {
    width: 100% !important;
  }
}

@media (max-width: 768px) {
  /* Force ALL grid containers (including inline style="grid-template-columns:...") to 1 full-width column on mobile */
  div[style*="grid-template-columns"],
  .efs-brand-grid,
  .efs-prod-grid,
  .am-card-grid-2,
  .am-card-grid-3,
  .am-card-grid-4,
  .am-row-5050 {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* 1. Responsive Stacked Policy & Comparison Tables (Fixes clipped/cramped mobile columns) */
  .am-table-wrap {
    overflow-x: visible !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  .am-table,
  .am-table tbody {
    display: block !important;
    width: 100% !important;
  }

  .am-table thead {
    display: none !important;
  }

  .am-table tr {
    display: block !important;
    width: 100% !important;
    margin-bottom: 16px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
    box-sizing: border-box !important;
  }

  .am-table td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 16px !important;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    border-bottom: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
  }

  .am-table td:first-child {
    background: #0f172a !important;
    color: #d4af37 !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    border-bottom: 2px solid #d4af37 !important;
  }

  .am-table td:first-child strong {
    color: #d4af37 !important;
  }

  .am-table td:nth-child(2) {
    font-weight: 700 !important;
    color: #0f172a !important;
    background: #f8fafc !important;
  }

  .am-table td:last-child {
    border-bottom: none !important;
  }

  /* 2. Hero Sections, Containers, Cards & Typography on Mobile (Tight top/left/right padding) */
  .am-hero-section-bg,
  body.home .elementor-section.elementor-top-section:first-of-type,
  body.page .elementor-section.am-hero-section-bg {
    padding: 40px 12px !important;
  }

  .elementor-section:not(.am-hero-section-bg) {
    padding: 20px 8px 24px !important;
  }

  body.woocommerce-cart .elementor-section:not(.am-hero-section-bg),
  body.woocommerce-checkout .elementor-section:not(.am-hero-section-bg) {
    padding: 10px 4px 20px !important;
  }

  .elementor-section.elementor-section-boxed > .elementor-container {
    padding-left: 4px !important;
    padding-right: 4px !important;
    box-sizing: border-box !important;
  }

  .elementor-column > .elementor-element-populated,
  .elementor-column > .elementor-widget-wrap {
    padding: 0 !important;
  }

  .am-container {
    padding-left: 10px !important;
    padding-right: 10px !important;
    box-sizing: border-box !important;
  }

  .woocommerce-page .site-content .ast-container {
    padding: 10px 8px 24px !important;
    box-sizing: border-box !important;
  }

  .am-section {
    padding: 22px 0 !important;
  }

  h1,
  .am-hero-section-bg h1,
  .elementor-widget-heading h1.elementor-heading-title,
  .woocommerce-products-header__title.page-title {
    font-size: clamp(1.55rem, 6vw, 2.15rem) !important;
    line-height: 1.25 !important;
    overflow-wrap: break-word !important;
  }

  h2,
  .elementor-widget-heading h2.elementor-heading-title {
    font-size: clamp(1.3rem, 5vw, 1.8rem) !important;
    line-height: 1.28 !important;
    overflow-wrap: break-word !important;
  }

  .am-info-card {
    padding: 18px 14px !important;
    box-sizing: border-box !important;
  }

  .am-cta-group {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .am-cta-group a,
  .am-btn-primary,
  .am-btn-secondary,
  .elementor-widget-button .elementor-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 13px 16px !important;
    white-space: normal !important;
    text-align: center !important;
    justify-content: center !important;
  }

  /* 3. WooCommerce Shop, Single Product, Cart & Checkout Mobile Layout */
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
  }

  .single-product div.product,
  .woocommerce-cart .woocommerce,
  .woocommerce-checkout .woocommerce {
    padding: 10px 8px !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
  }

  .single-product .woocommerce-Tabs-panel {
    padding: 14px 10px !important;
  }

  .single-product .woocommerce-tabs ul.tabs li {
    display: block !important;
    width: 100% !important;
    margin: 0 0 6px 0 !important;
  }

  .woocommerce-checkout #customer_details .col-1,
  .woocommerce-checkout #customer_details .col-2 {
    float: none !important;
    width: 100% !important;
    padding: 0 !important;
  }
}

@media (max-width: 540px) {
  .am-mainbar {
    padding: 10px 14px !important;
    gap: 10px !important;
  }
}
