@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;500;600;700;800;900&display=swap");

/* Alpine.js - hide elements before initialization */
[x-cloak] {
  display: none !important;
}

:root {
  --amsoil-blue: #093b66;
  --amsoil-blue-light: #1a5fa3;
  --amsoil-red: #e31b23;
  --amsoil-red-dark: #c01019;
  --amsoil-white: #ffffff;
  --amsoil-black: #101010;
  --amsoil-grey: #f4f4f4;
  --amsoil-grey-dark: #e8e8e8;
  --amsoil-text: #333333;
  --amsoil-text-muted: #777;
  --transition: all 0.3s ease;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.15);
}

/* ===================== BOOTSTRAP OVERRIDES ===================== */
:root,
[data-bs-theme=light],
[data-bs-theme=dark] {
  --bs-primary: var(--amsoil-blue);
  --bs-primary-rgb: 9, 59, 102;
  --bs-danger: var(--amsoil-red);
  --bs-danger-rgb: 227, 27, 35;

  --bs-link-color: var(--amsoil-blue);
  --bs-link-color-rgb: 9, 59, 102;
  --bs-link-hover-color: var(--amsoil-red);
  --bs-link-hover-color-rgb: 227, 27, 35;

  --bs-primary-text-emphasis: #051d33;
  --bs-primary-bg-subtle: #e6eff7;
  --bs-primary-border-subtle: #ccdff0;

  --bs-danger-text-emphasis: #710d11;
  --bs-danger-bg-subtle: #fce8e9;
  --bs-danger-border-subtle: #f9d1d3;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Cairo", sans-serif;
  direction: rtl;
  text-align: right;
  background-color: var(--amsoil-white);
  color: var(--amsoil-text);
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

/* ===================== UTILITIES ===================== */
.bg-amsoil-blue {
  background-color: var(--amsoil-blue) !important;
}

.bg-amsoil-red {
  background-color: var(--amsoil-red) !important;
}

.text-amsoil-blue {
  color: var(--amsoil-blue) !important;
}

.text-amsoil-red {
  color: var(--amsoil-red) !important;
}

.btn-amsoil-primary {
  background-color: var(--amsoil-blue);
  border-color: var(--amsoil-blue);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.btn-amsoil-primary:hover {
  background-color: var(--amsoil-blue-light);
  border-color: var(--amsoil-blue-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(9, 59, 102, 0.3);
}

.btn-amsoil-danger {
  background-color: var(--amsoil-red);
  border-color: var(--amsoil-red);
  color: #fff;
  font-weight: 700;
  transition: var(--transition);
}

.btn-amsoil-danger:hover {
  background-color: var(--amsoil-red-dark);
  border-color: var(--amsoil-red-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(227, 27, 35, 0.35);
}

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--amsoil-blue);
  position: relative;
}

.section-title .accent {
  color: var(--amsoil-red);
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--amsoil-red), var(--amsoil-blue));
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.bg-carbon {
  background: radial-gradient(black 15%, transparent 16%) 0 0,
    radial-gradient(black 15%, transparent 16%) 8px 8px;
  background-color: #111;
  background-size: 16px 16px;
  color: white;
}

/* ===================== NAVBAR ===================== */
.amsoil-navbar {
  background: radial-gradient(black 15%, transparent 16%) 0 0,
    radial-gradient(black 15%, transparent 16%) 8px 8px;
  background-color: #0d0d0d;
  background-size: 16px 16px;
  padding: 0;
  border-bottom: 3px solid var(--amsoil-red);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  z-index: 1040;
  overflow: visible;
}

.amsoil-navbar .container,
.amsoil-navbar .container-xl {
  padding-top: 8px;
  padding-bottom: 8px;
}

/* Logo overflow — appears bigger than the navbar height */
.amsoil-navbar .navbar-brand {
  padding: 0;
  position: relative;
  z-index: 2;
}

.amsoil-navbar .navbar-brand .primary-logo {
  height: 120px;
  /* Adjusted height instead of using scale */
  position: relative;
  /* Slight drop below navbar */
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}

.amsoil-navbar .navbar-brand .secondary-logo {
  height: auto;
  max-width: 130px;
  max-height: 80px;
  position: relative;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.amsoil-navbar .navbar-brand:hover img {
  transform: scale(1.04);
}

.amsoil-navbar .nav-link {
  color: rgba(255, 255, 255, 0.88) !important;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 4px;
  padding: 8px 14px !important;
  border-radius: 4px;
  transition: var(--transition);
  position: relative;
}

.amsoil-navbar .nav-link:hover,
.amsoil-navbar .nav-link.active {
  color: #fff !important;
  background-color: rgba(227, 27, 35, 0.2);
}

.amsoil-navbar .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--amsoil-red);
  border-radius: 2px 2px 0 0;
}

/* Search in Navbar */
.navbar-search-form {
  position: relative;
}

.navbar-search-form .form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 25px;
  padding: 6px 18px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.85rem;
  min-width: 220px;
  transition: var(--transition);
}

.navbar-search-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.navbar-search-form .form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--amsoil-red);
  box-shadow: none;
  color: #fff;
  min-width: 260px;
}

.navbar-search-btn {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

/* Cart badge */
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--amsoil-red);
  color: #fff;
  font-size: 0.6rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border: 2px solid #0d0d0d;
}

/* ===================== HERO ===================== */
.hero-section {
  background: #fff;
  position: relative;
  overflow: hidden;
  min-height: 560px;
}

.hero-text-col {
  background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
  padding: 80px 60px;
  display: flex;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--amsoil-blue);
  margin-bottom: 1.2rem;
}

.hero-title .accent {
  color: var(--amsoil-red);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--amsoil-text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.hero-stat-item {
  text-align: center;
}

.hero-stat-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--amsoil-blue);
  display: block;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--amsoil-text-muted);
  font-weight: 600;
}

/* ===================== VEHICLE BAR ===================== */
.vehicle-selector-bar {
  background: linear-gradient(90deg, var(--amsoil-blue) 0%, #1a5fa3 100%);
  padding: 18px 0;
  color: white;
}

/* ===================== SECTION HEADERS ===================== */
.store-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--amsoil-grey-dark);
}

.view-all-link {
  color: var(--amsoil-blue);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.view-all-link:hover {
  color: var(--amsoil-red);
}

/* ===================== CATEGORY CARDS ===================== */
.category-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  height: 100%;
  text-decoration: none;
  color: var(--amsoil-text);
  display: block;
  overflow: hidden;
  position: relative;
}

.category-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amsoil-blue), var(--amsoil-red));
  transform: scaleX(0);
  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  color: var(--amsoil-text);
  border-color: var(--amsoil-blue);
}

.category-card:hover::before {
  transform: scaleX(1);
}

.category-card img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 12px;
  transition: transform 0.3s;
}

.category-card:hover img {
  transform: scale(1.1);
}

.category-card h5 {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.category-card small {
  color: var(--amsoil-text-muted);
  font-size: 0.8rem;
}

/* ===================== PRODUCT CARDS ===================== */
.product-card-custom {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  height: 100%;
  transition: var(--transition);
  overflow: hidden;
  position: relative;
}

.product-card-custom:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #ddd;
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

.product-image {
  height: 220px;
  overflow: hidden;
  background: var(--amsoil-grey);
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Changed from cover to contain to avoid cropping the bottles */
  transition: transform 0.4s ease;
  background-color: #fff;
}

.product-card-custom:hover .product-image img {
  transform: scale(1.08);
}

.product-info {
  padding: 16px;
}

.product-category-label {
  font-size: 0.72rem;
  color: var(--amsoil-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 6px;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 46px;
  color: var(--amsoil-black);
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.product-price {
  color: var(--amsoil-blue);
  font-weight: 900;
  font-size: 1.15rem;
}

.product-price-label {
  font-size: 0.7rem;
  color: var(--amsoil-text-muted);
  font-weight: 600;
}

.btn-add-cart-outline {
  border: 2px solid var(--amsoil-red);
  color: var(--amsoil-red);
  font-weight: 700;
  width: 100%;
  border-radius: 6px;
  transition: var(--transition);
  font-size: 0.9rem;
}

.btn-add-cart-outline:hover {
  background-color: var(--amsoil-red);
  color: white;
  transform: none;
}

.btn-view-product {
  background-color: var(--amsoil-blue);
  color: #fff;
  font-weight: 700;
  width: 100%;
  border-radius: 6px;
  border: 2px solid var(--amsoil-blue);
  transition: var(--transition);
  font-size: 0.9rem;
}

.btn-view-product:hover {
  background-color: var(--amsoil-blue-light);
  border-color: var(--amsoil-blue-light);
  color: #fff;
}

/* ===================== WHY AMSOIL SECTION ===================== */
.why-section {
  background: linear-gradient(135deg, #0a2540 0%, var(--amsoil-blue) 100%);
}

.why-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}

.why-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.why-icon {
  width: 68px;
  height: 68px;
  background: rgba(227, 27, 35, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.6rem;
  color: var(--amsoil-red);
  border: 2px solid rgba(227, 27, 35, 0.3);
}

/* ===================== STATS BANNER ===================== */
.stats-banner {
  background: var(--amsoil-grey);
  padding: 60px 0;
}

.stat-box {
  text-align: center;
  padding: 20px;
}

.stat-box .num {
  font-size: 3rem;
  font-weight: 900;
  color: var(--amsoil-blue);
  display: block;
  line-height: 1;
}

.stat-box .label {
  font-size: 0.9rem;
  color: var(--amsoil-text-muted);
  font-weight: 600;
  margin-top: 6px;
}

/* ===================== FOOTER ===================== */
.amsoil-footer {
  background: radial-gradient(black 15%, transparent 16%) 0 0,
    radial-gradient(black 15%, transparent 16%) 8px 8px;
  background-color: #0d0d0d;
  background-size: 16px 16px;
  padding: 70px 0 0;
  border-top: 4px solid var(--amsoil-red);
  color: rgba(255, 255, 255, 0.8);
}

.footer-brand-text {
  color: #fff;
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 1px;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.9;
  font-size: 0.9rem;
}

.footer-heading {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 800;
  margin-bottom: 20px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 35px;
  height: 2px;
  background: var(--amsoil-red);
}

.footer-link {
  color: rgba(255, 255, 255, 0.55);
  transition: var(--transition);
  display: inline-block;
  font-size: 0.9rem;
}

.footer-link:hover {
  color: var(--amsoil-red);
  transform: translateX(-5px);
}

.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  font-size: 1rem;
}

.footer-social a:hover {
  background: var(--amsoil-red);
  color: #fff;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  margin-top: 50px;
}

.footer-newsletter .form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-family: 'Cairo', sans-serif;
  border-radius: 6px 0 0 6px;
}

.footer-newsletter .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.footer-newsletter .form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--amsoil-red);
  box-shadow: none;
  color: #fff;
}

/* ===================== PRODUCT SHOW PAGE ===================== */
.product-gallery-thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid #eee;
  cursor: pointer;
  transition: var(--transition);
}

.product-gallery-thumb:hover,
.product-gallery-thumb.active {
  border-color: var(--amsoil-blue);
}

.product-main-image {
  width: 100%;
  height: 420px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--amsoil-grey);
  padding: 20px;
}

.price-retail {
  font-size: 2rem;
  font-weight: 900;
  color: var(--amsoil-blue);
}

.price-wholesale {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--amsoil-red);
}

.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
}

.stock-badge.in-stock {
  background: #e8f5e9;
  color: #2e7d32;
}

.stock-badge.low-stock {
  background: #fff3e0;
  color: #e65100;
}

.stock-badge.out-stock {
  background: #ffebee;
  color: #c62828;
}

/* ===================== FILTER SIDEBAR (products page) ===================== */
.filter-sidebar {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 24px;
  position: sticky;
  top: 80px;
}

.filter-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--amsoil-blue);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--amsoil-grey-dark);
}

.filter-check .form-check-label {
  font-size: 0.9rem;
  cursor: pointer;
}

.filter-check .form-check-input:checked {
  background-color: var(--amsoil-blue);
  border-color: var(--amsoil-blue);
}

/* ===================== AI WIDGET ===================== */
#ai-advisor-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--amsoil-red), #ff4444);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 20px rgba(227, 27, 35, 0.45);
  cursor: pointer;
  z-index: 1060;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#ai-advisor-widget:hover {
  transform: scale(1.12);
}

.notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: var(--amsoil-blue);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  font-weight: bold;
}

.ai-chat-box {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 340px;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  z-index: 1061;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  animation: fadeInUp 0.3s ease forwards;
  display: flex;
  flex-direction: column;
}

.ai-chat-header {
  padding: 16px 20px;
  border-bottom: 1px solid #f5f5f5;
  background: linear-gradient(135deg, var(--amsoil-blue), #1a5fa3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-chat-header h6,
.ai-chat-header small {
  color: #fff !important;
}

.header-icon-bg {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-chat-body {
  padding: 20px;
  background-color: #f8f9fa;
  height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.chat-message.incoming {
  align-self: flex-start;
  background-color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  border-top-right-radius: 2px;
  box-shadow: var(--shadow-sm);
  color: #333;
  max-width: 85%;
  font-size: 0.88rem;
}

.btn-chip {
  background-color: var(--amsoil-red);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-family: 'Cairo', sans-serif;
  margin-bottom: 6px;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-chip:hover {
  background-color: var(--amsoil-red-dark);
  color: white;
  transform: translateY(-1px);
}

.ai-chat-footer {
  padding: 14px 20px;
  border-top: 1px solid #f0f0f0;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-send-icon {
  background: var(--amsoil-red);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.btn-send-icon:hover {
  transform: scale(1.1);
  color: white;
}

/* ===================== BREADCRUMB ===================== */
.amsoil-breadcrumb {
  background: var(--amsoil-grey);
  padding: 14px 0;
  border-bottom: 1px solid var(--amsoil-grey-dark);
}

.amsoil-breadcrumb .breadcrumb-item a {
  color: var(--amsoil-blue);
  font-weight: 600;
}

.amsoil-breadcrumb .breadcrumb-item.active {
  color: var(--amsoil-text-muted);
}

/* ===================== PAGINATION ===================== */
.page-link {
  font-family: 'Cairo', sans-serif;
  color: var(--amsoil-blue);
}

.page-item.active .page-link {
  background-color: var(--amsoil-blue);
  border-color: var(--amsoil-blue);
}

.page-link:hover {
  color: var(--amsoil-red);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 991.98px) {
  .amsoil-navbar .container-xl {
    position: relative;
    min-height: 130px;
  }

  .amsoil-navbar .navbar-brand {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    z-index: 10;
  }

  .amsoil-navbar .navbar-brand .primary-logo {
    height: 120px;
    width: 100px;
    /* Responsive mobile height */
    bottom: 0;
    margin-bottom: 25px;
  }

  .amsoil-navbar .navbar-brand .secondary-logo {
    max-width: 90px;
    max-height: 55px;
    bottom: 0;
    margin-bottom: 25px;
  }

  .amsoil-navbar .navbar-brand {
    margin-inline: auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  /* Prevent overlapping by pushing the menu down */
  .amsoil-navbar .navbar-collapse {
    margin-top: 50px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-text-col {
    padding: 50px 24px;
  }

  .hero-stats {
    gap: 16px;
  }

  .hero-stat-num {
    font-size: 1.4rem;
  }

  .ai-chat-box {
    width: calc(100vw - 40px);
    right: 20px;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-red {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(227, 27, 35, 0.4);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(227, 27, 35, 0);
  }
}

#ai-advisor-widget {
  animation: pulse-red 2.5s infinite;
}

#ai-advisor-widget:hover {
  animation: none;
  transform: scale(1.12);
}

.amsoil-footer a.text-white-50,
.amsoil-footer a.text-white-50:visited {
  color: rgba(255, 255, 255, 0.5) !important;
}

.amsoil-footer a.text-white-50:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Responsive Hero Slider */
.hero-slider-wrapper {
  max-height: 520px;
}

.hero-slider-img {
  height: 520px;
}

@media (max-width: 991.98px) {
  .hero-slider-wrapper {
    max-height: 350px;
  }

  .hero-slider-img {
    height: 350px;
  }
}

@media (max-width: 767.98px) {
  .hero-slider-wrapper {
    max-height: 250px;
  }

  .hero-slider-img {
    height: 250px;
  }

  .carousel-caption {
    padding-bottom: 0;
    bottom: 15% !important;
  }

  .carousel-caption h2 {
    font-size: 1.5rem !important;
  }

  .carousel-caption p.lead {
    font-size: 1rem !important;
    margin-bottom: 5px;
  }

  .carousel-caption .btn {
    padding: 0.4rem 1rem !important;
    font-size: 0.9rem !important;
  }
}