/* ==========================================================================
   ACG - Alfa Chemical Group Master Stylesheet
   Fluid Animations & ACG Blue & Red Palette (from logo)
   ========================================================================== */

:root {
  /* ------------------------------------------------------------------
     ACG Design Tokens — single source of truth for every color.
     Distribution: 60% white/neutral · 30% blue/navy · 10% red accent.
     ------------------------------------------------------------------ */
  --acg-blue:         #0878B9;  /* primary brand blue  (4.8:1 on white) */
  --acg-blue-rgb:     8, 120, 185;
  --acg-navy:         #123B5A;  /* deep navy — hover, footer, headings */
  --acg-navy-rgb:     18, 59, 90;
  --acg-navy-dark:    #0D2D45;  /* pressed / active state */
  --acg-red:          #E54850;  /* brand red — accents, dots, bars */
  --acg-red-rgb:      229, 72, 80;
  --acg-red-strong:   #C9363E;  /* red behind small white text (5.1:1, AA) */
  --acg-blue-light:   #EAF4FA;  /* tints, selected backgrounds */
  --acg-blue-tint:    #D6E9F5;  /* slightly deeper tint */
  --acg-bg:           #F7FAFC;  /* page background */
  --acg-white:        #FFFFFF;
  --text-primary:     #243746;
  --text-muted:       #64748B;  /* 4.7:1 on white */
  --text-subtle:      #8494A7;  /* placeholders, struck-through prices */
  --border-light:     #DCE6ED;
  --focus-ring:       0 0 0 3px rgba(8, 120, 185, 0.28);

  /* Bootstrap / legacy aliases mapped onto the tokens */
  --bs-primary:         var(--acg-blue);
  --bs-primary-rgb:     var(--acg-blue-rgb);
  --bs-primary-hover:   var(--acg-navy);
  --bs-primary-active:  var(--acg-navy-dark);
  --bs-primary-light:   var(--acg-blue-light);
  --bs-primary-subtle:  var(--acg-blue-light);
  --bs-secondary:       var(--acg-red);
  --bs-secondary-rgb:   var(--acg-red-rgb);
  --bs-secondary-hover: var(--acg-red-strong);
  --color-acg-blue:     var(--acg-blue);
  --color-acg-red:      var(--acg-red);
  --color-acg-navy:     var(--acg-navy);
  --color-acg-purple:   var(--acg-blue);

  --bs-info: #64748B;
  --bs-warning: #F5A524;
  --bs-success: #1A8F5C;
  --bs-danger: var(--acg-red-strong);

  --body-bg: var(--acg-bg);

  /* Smooth Animation Tokens */
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Smooth Motion & Keyframe Animations
   ========================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatBreathing {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes whatsappPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6), 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0), 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 4px 12px rgba(0, 0, 0, 0.15);
  }
}

@keyframes badgeBump {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

@keyframes softShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.reveal-fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-fade-up.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

body {
  font-family: 'Cairo', 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  background-color: var(--body-bg);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* ==========================================================================
   Top App / Contact Bar
   ========================================================================== */
.theHeader {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.top-bar-section {
  padding: 7px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border-light);
}

/* Phone outline box matching live site */
.phone-outline-box {
  border: 1.5px solid var(--text-primary);
  border-radius: 6px;
  padding: 3px 10px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary) !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s;
}

.phone-outline-box:hover {
  background: var(--acg-bg);
  border-color: var(--bs-primary);
  color: var(--bs-primary) !important;
}

/* Nav links with pipe divider */
.theHeader-nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 12px;
}

.theHeader-nav > li {
  display: flex;
  align-items: center;
  position: relative;
}

.theHeader-nav > li:not(:last-child)::after {
  content: "|";
  color: var(--border-light);
  margin-left: 12px;
  font-weight: 300;
}

.theHeader-nav a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.theHeader-nav a:hover {
  color: var(--bs-primary);
}

.theHeader-nav a i {
  color: var(--bs-primary);
  font-size: 13px;
}

/* ==========================================================================
   Middle Header Bar (ACG Blue Gradient var(--acg-blue))
   ========================================================================== */
.middle-bar-teal {
  background: linear-gradient(135deg, var(--acg-blue) 0%, #0A6AA4 100%);
  height: 74px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(var(--acg-navy-rgb), 0.12);
  position: relative;
  z-index: 10;
}

.middle-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
}

.brand-logo-acg {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-logo-acg:hover {
  transform: scale(1.04);
}

.acg-main-logo {
  height: 58px;
  width: auto;
  object-fit: contain;
  /* No filter — logo shows in its original ACG colors (blue + red) */
  /* White pill background makes it legible on any header/footer shade */
  background: #ffffff;
  border-radius: 8px;
  padding: 3px 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.brand-logo-acg:hover .acg-main-logo {
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

/* Search Box (Rounded 6px, clean white with ACG red search button) */
.header-search-container {
  flex: 1;
  max-width: 640px;
  margin: 0 20px;
}

.search-pill-box {
  background: #ffffff;
  border-radius: 6px;
  height: 42px;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(var(--acg-navy-rgb), 0.15);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.search-pill-box:focus-within {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35), 0 6px 18px rgba(var(--acg-navy-rgb), 0.25);
  transform: translateY(-1px);
}

.search-pill-box i.search-icon {
  color: var(--text-muted);
  font-size: 15px;
  padding-left: 14px;
  transition: color 0.3s ease;
}

.search-pill-box:focus-within i.search-icon {
  color: var(--bs-primary);
}

.search-pill-box input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text-primary);
}

.search-pill-box input::placeholder {
  color: var(--text-subtle);
}

.search-pill-box button.btn-search-orange {
  background: var(--acg-blue);
  color: #ffffff;
  border: none;
  height: calc(100% - 8px);
  margin: 4px;
  border-radius: 4px;
  padding: 0 24px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.search-pill-box button.btn-search-orange:hover {
  background: var(--acg-navy);
}

/* Upload & Cart */
.btn-upload-outline {
  border: 1.5px solid #ffffff !important;
  color: #ffffff !important;
  background: transparent !important;
  border-radius: 6px !important;
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-upload-outline:hover {
  background: #ffffff !important;
  color: var(--acg-navy) !important;
}

.cart-circle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--bs-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  position: relative;
  transition: transform 0.2s;
}

.cart-circle-btn:hover {
  transform: scale(1.05);
}

.cart-badge-pill {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--acg-red-strong);
  box-shadow: 0 0 0 2px #ffffff;
  color: #ffffff;
  font-size: 10px;
  font-weight: bold;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Sub Navigation Links Bar (Home, Products, To Sell, etc.)
   ========================================================================== */
.sub-nav-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.sub-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sub-nav-link {
  color: var(--acg-navy);
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.2s;
}

.sub-nav-link:hover {
  color: var(--bs-primary);
}

/* Exact Home active tab style matching screenshot */
.sub-nav-link.active-tab {
  background-color: var(--acg-blue-light) !important;
  box-shadow: inset 0 -2px 0 var(--acg-blue);
  color: var(--bs-primary) !important;
  font-weight: 600;
  border-radius: 4px;
}

/* ==========================================================================
   Ticker Marquee Bar (ACG Red var(--acg-red))
   ========================================================================== */
.ticker-orange-bar {
  background: linear-gradient(90deg,
    var(--acg-navy) 0%,
    var(--acg-blue) 38%,
    var(--acg-blue) 55%,
    var(--acg-navy) 80%,
    var(--acg-red-strong) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #ffffff;
  height: 38px;
  display: flex;
  align-items: center;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
}

.ticker-marquee-track {
  display: flex;
  white-space: nowrap;
  animation: tickerScroll 24s linear infinite;
}

.ticker-orange-bar:hover .ticker-marquee-track {
  animation-play-state: paused;
}

.ticker-text-item {
  margin-right: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

@keyframes tickerScroll {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ==========================================================================
   Hero Banner
   ========================================================================== */
.hero-swiper-container {
  width: 100%;
  aspect-ratio: 3 / 1;
  max-height: 420px;
  overflow: hidden;
}

.hero-swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-swiper-container .swiper-button-next,
.hero-swiper-container .swiper-button-prev {
  color: #ffffff;
  width: 42px;
  height: 42px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 50%;
  transition: all 0.2s ease;
}

.hero-swiper-container .swiper-button-next:hover,
.hero-swiper-container .swiper-button-prev:hover {
  background: rgba(0, 0, 0, 0.55);
}

.hero-swiper-container .swiper-button-next::after,
.hero-swiper-container .swiper-button-prev::after {
  font-size: 16px;
  font-weight: bold;
}

.hero-swiper-container .swiper-pagination-bullet {
  background: #ffffff;
  opacity: 0.7;
}

.hero-swiper-container .swiper-pagination-bullet-active {
  background: var(--bs-secondary);
  opacity: 1;
  width: 24px;
  border-radius: 12px;
}

/* ==========================================================================
   5 Waranties / Value Props Cards
   ========================================================================== */
.waranties-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  padding: 24px 0 32px;
}

.waranty-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow;
}

.waranty-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px -4px rgba(var(--acg-blue-rgb), 0.16);
  border-color: rgba(var(--acg-blue-rgb), 0.3);
}

.waranty-circle-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bs-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.waranty-card:hover .waranty-circle-icon {
  transform: scale(1.12) rotate(8deg);
}

.waranty-text-box h6 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--bs-primary);
  margin-bottom: 2px;
}

.waranty-text-box p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ==========================================================================
   Section Headings (Red Bar + Title + Outline Arrow Buttons)
   ========================================================================== */
.section-header-acg {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 36px;
  margin-bottom: 20px;
}

.section-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.orange-accent-bar {
  width: 4px;
  height: 22px;
  background: var(--bs-secondary);
  border-radius: 2px;
}

.section-title-acg {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--acg-navy);
  margin: 0;
}

.section-arrow-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.arrow-circle-outline {
  border: 1.5px solid var(--bs-primary);
  color: var(--bs-primary);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  background: transparent;
  transition: all 0.2s ease;
}

.arrow-circle-outline:hover {
  background: var(--bs-primary);
  color: #ffffff;
}

/* ==========================================================================
   Circular Category Items (Shop By Category, Setup your Lab, Sell & Buy)
   ========================================================================== */
.circular-items-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

.circular-items-track::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.category-circle-item {
  min-width: 160px;
  max-width: 175px;
  text-align: center;
  flex-shrink: 0;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-circle-item:hover {
  transform: translateY(-6px);
}

/* Radial light-blue gradient circle (tint of logo blue) */
.category-img-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--acg-blue-light) 0%, #E2EFF8 70%, transparent 71%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(var(--acg-blue-rgb), 0.08);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.category-circle-item:hover .category-img-circle {
  transform: scale(1.06);
  box-shadow: 0 12px 24px rgba(var(--acg-blue-rgb), 0.18);
}

.category-img-circle img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-circle-item:hover .category-img-circle img {
  transform: scale(1.08) rotate(-2deg);
}

/* Radial deeper-blue tint circle for "Setup your Lab" & "Sell & Buy" */
.category-img-circle.blue-gradient {
  background: radial-gradient(circle, var(--acg-blue-tint) 0%, #C9E1F1 70%, transparent 71%);
}

.category-title-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 12px;
  line-height: 1.3;
}

/* ==========================================================================
   Product Card (.cardMain - Exact Millimeter Match to Live Site)
   ========================================================================== */
.products-scroll-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 2px 16px;
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

.products-scroll-track::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Universally hide scrollbar from all sliders and horizontal tracks */
.circular-items-track,
.products-scroll-track,
.categories-scroll-grid,
#reviewsGrid,
.overflow-x-auto,
[class*="scroll"],
[class*="track"] {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

.circular-items-track::-webkit-scrollbar,
.products-scroll-track::-webkit-scrollbar,
.categories-scroll-grid::-webkit-scrollbar,
#reviewsGrid::-webkit-scrollbar,
.overflow-x-auto::-webkit-scrollbar,
[class*="scroll"]::-webkit-scrollbar,
[class*="track"]::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.offers-promo-banner {
  max-width: 480px;
  margin-bottom: 22px;
}

.offers-promo-banner img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.cardMain {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  padding: 10px;
  min-width: 210px;
  max-width: 215px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow;
}

.cardMain:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px -6px rgba(var(--acg-blue-rgb), 0.18), 0 4px 10px rgba(0, 0, 0, 0.04);
  border-color: rgba(var(--acg-blue-rgb), 0.3);
}

.cardMain-header {
  position: relative;
  width: 100%;
  height: 155px;
  background: #ffffff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cardMain-header img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.cardMain:hover .cardMain-header img {
  transform: scale(1.08);
}

/* Discount Badge - ACG Red, small rounded box */
.discount-badge-orange {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--acg-red-strong);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  z-index: 5;
  transition: transform 0.25s ease;
}

.cardMain:hover .discount-badge-orange {
  transform: scale(1.05);
}

/* Action Icons inside Product Header - light blue-tint circle with thin border */
.card-icon-action {
  position: absolute;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--acg-blue-light);
  border: 1px solid var(--border-light);
  color: var(--bs-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  z-index: 6;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-icon-action.fav { top: 6px; }
.card-icon-action.compare { top: 36px; }
.card-icon-action.quote { top: 66px; }

.card-icon-action:hover {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #ffffff;
  transform: scale(1.18);
  box-shadow: 0 4px 10px rgba(var(--acg-blue-rgb), 0.3);
}

.stars-rating-line {
  color: var(--border-light);
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 6px;
}

.stars-rating-line span {
  color: var(--text-subtle);
  font-size: 11px;
  margin-left: 4px;
}

.product-cat-name {
  font-size: 11px;
  color: var(--text-subtle);
  margin-top: 4px;
  margin-bottom: 2px;
}

.product-item-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  height: 35px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.35;
  margin-bottom: 6px;
}

.price-container {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}

.current-price {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--bs-primary);
}

.old-price {
  font-size: 11px;
  color: var(--text-subtle);
  text-decoration: line-through;
}

/* Specs info rotator */
.specs-rotator {
  height: 22px;
  overflow: hidden;
  position: relative;
  border-top: 1px dashed var(--border-light);
  border-bottom: 1px dashed var(--border-light);
  margin-bottom: 10px;
}

.specs-rotator-inner {
  animation: slideSpecs 7s infinite linear;
}

.specs-line {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 22px;
  display: block;
  white-space: nowrap;
}

@keyframes slideSpecs {
  0% { transform: translateY(0); }
  50% { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

.btn-card-buy {
  width: 100%;
  border-radius: 8px;
  border: none;
  font-size: 13px;
  font-weight: 700;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-card-buy.in-stock {
  background: var(--bs-primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(var(--acg-blue-rgb), 0.2);
}

.btn-card-buy.in-stock:hover {
  background: var(--acg-navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(var(--acg-blue-rgb), 0.3);
}

.btn-card-buy.in-stock:active {
  transform: translateY(0) scale(0.97);
}

.btn-card-buy.out-of-stock {
  background: var(--border-light);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* ==========================================================================
   Trusted Brands & Partners Carousel Cards
   ========================================================================== */
.brand-box-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 14px 20px;
  min-width: 150px;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-box-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--acg-blue-rgb), 0.25);
  box-shadow: 0 10px 20px rgba(var(--acg-blue-rgb), 0.12);
}

/* Reviews Box */
.review-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 26px 20px 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  min-width: 320px;
  flex: 1;
  position: relative;
}

.review-quote-bubble {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--acg-blue);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  position: absolute;
  top: -19px;
  left: 20px;
}

.review-box-text {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.6;
  margin-top: 10px;
  margin-bottom: 12px;
  font-style: italic;
}

.review-box-author {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--bs-primary);
  margin-bottom: 0;
}

/* ==========================================================================
   Footer Component
   ========================================================================== */
.theFooter {
  background: linear-gradient(180deg, var(--acg-navy) 0%, #0F3350 100%);
  color: #ffffff !important;
  margin-top: 60px;
  overflow: hidden;
}

.theFooter-start {
  padding-block: 3.5rem 2rem;
}

.theFooter p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.6;
}

.theFooter-col-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.theFooter-col-title .orange-accent-bar {
  height: 16px;
  width: 3px;
}

.theFooter-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.theFooter-nav-list li {
  margin-bottom: 10px;
  font-size: 13px;
  display: flex;
  align-items: center;
}

.theFooter-nav-list a {
  color: rgba(255, 255, 255, 0.82) !important;
  text-decoration: none;
  transition: all 0.2s;
}

.theFooter-nav-list a:hover {
  color: #ffffff !important;
  transform: translateX(4px);
}

.theFooter-socials-row {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin-top: 16px;
}

.theFooter-socials-row a {
  width: 32px;
  height: 32px;
  background: #ffffff;
  color: var(--bs-primary) !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.2s;
}

.theFooter-socials-row a:hover {
  background: var(--acg-blue);
  color: #ffffff !important;
  transform: translateY(-2px);
}

.theFooter-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 0;
  background: rgba(0, 0, 0, 0.1);
}

.payment-tag-item {
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
}

.theFooter {
  background: linear-gradient(180deg, var(--acg-navy) 0%, #0F3350 100%);
  color: #ffffff !important;
  margin-top: 60px;
  overflow: hidden;
}

/* Floating Actions with Fluid Animations */
.whatsapp-float-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
  z-index: 1020;
  animation: floatBreathing 3.2s ease-in-out infinite, whatsappPulse 2.4s infinite;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.whatsapp-float-btn:hover {
  transform: scale(1.15) rotate(8deg);
  color: #ffffff;
}

.back-to-top-btn {
  position: fixed;
  bottom: 85px;
  right: 25px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bs-primary);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(var(--acg-blue-rgb), 0.35);
  z-index: 1020;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.8);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.back-to-top-btn.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-to-top-btn:hover {
  background: var(--bs-primary-hover);
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 20px rgba(var(--acg-blue-rgb), 0.45);
}

/* ==========================================================================
   ACG Blue — Full Bootstrap 5 Color Override
   Forces var(--acg-blue) on every Bootstrap class that uses --bs-primary
   ========================================================================== */

/* Bootstrap :root overrides — must match exactly what Bootstrap 5.3 reads */
:root,
[data-bs-theme="light"] {
  --bs-primary:                var(--acg-blue);
  --bs-primary-rgb:            var(--acg-blue-rgb);
  --bs-link-color:             var(--acg-blue);
  --bs-link-color-rgb:         var(--acg-blue-rgb);
  --bs-link-hover-color:       var(--acg-navy);
  --bs-link-hover-color-rgb:   var(--acg-navy-rgb);

  --bs-secondary:              var(--acg-red);
  --bs-secondary-rgb:          var(--acg-red-rgb);
}

/* btn-primary */
.btn-primary {
  --bs-btn-bg:              var(--acg-blue);
  --bs-btn-border-color:    var(--acg-blue);
  --bs-btn-hover-bg:        var(--acg-navy);
  --bs-btn-hover-border-color: var(--acg-navy);
  --bs-btn-active-bg:       var(--acg-navy-dark);
  --bs-btn-active-border-color: var(--acg-navy-dark);
  --bs-btn-color:           #fff;
  --bs-btn-hover-color:     #fff;
  --bs-btn-active-color:    #fff;
  --bs-btn-focus-shadow-rgb: var(--acg-blue-rgb);
  background-color: var(--acg-blue) !important;
  border-color:     var(--acg-blue) !important;
  color:            #ffffff !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
  background-color: var(--acg-navy) !important;
  border-color:     var(--acg-navy) !important;
  color:            #ffffff !important;
}

/* btn-outline-primary */
.btn-outline-primary {
  --bs-btn-color:              var(--acg-blue);
  --bs-btn-border-color:       var(--acg-blue);
  --bs-btn-hover-bg:           var(--acg-blue);
  --bs-btn-hover-border-color: var(--acg-blue);
  --bs-btn-hover-color:        #fff;
  --bs-btn-active-bg:          var(--acg-navy);
  --bs-btn-active-border-color:var(--acg-navy);
  --bs-btn-active-color:       #fff;
  color:        var(--acg-blue) !important;
  border-color: var(--acg-blue) !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  background-color: var(--acg-blue) !important;
  color:            #ffffff !important;
  border-color:     var(--acg-blue) !important;
}

/* text-primary */
.text-primary   { color: var(--acg-blue) !important; }

/* bg-primary */
.bg-primary     { background-color: var(--acg-blue) !important; }

/* border-primary */
.border-primary { border-color: var(--acg-blue) !important; }

/* badge bg-primary */
.badge.bg-primary,
.badge.text-bg-primary {
  background-color: var(--acg-blue) !important;
  color: #ffffff !important;
}

/* Links */
a.text-primary { color: var(--acg-blue) !important; }
a.text-primary:hover { color: var(--acg-navy) !important; }

/* Pagination active */
.page-item.active .page-link {
  background-color: var(--acg-blue) !important;
  border-color:     var(--acg-blue) !important;
  color:            #ffffff !important;
}
.page-link {
  color: var(--acg-blue) !important;
}
.page-link:hover {
  color: var(--acg-navy) !important;
}

/* Form controls focus ring */
.form-control:focus,
.form-select:focus {
  border-color:  var(--acg-blue) !important;
  box-shadow:    0 0 0 0.25rem rgba(var(--acg-blue-rgb), 0.25) !important;
}

/* Checkboxes & Radios */
.form-check-input:checked {
  background-color: var(--acg-blue) !important;
  border-color:     var(--acg-blue) !important;
}
.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(var(--acg-blue-rgb), 0.25) !important;
}

/* Progress bars */
.progress-bar { background-color: var(--acg-blue) !important; }

/* Alerts */
.alert-primary {
  background-color: var(--acg-blue-light) !important;
  border-color:     rgba(var(--acg-blue-rgb), 0.3) !important;
  color:            var(--acg-navy) !important;
}

/* Dropdown active */
.dropdown-item.active,
.dropdown-item:active {
  background-color: var(--acg-blue) !important;
  color: #ffffff !important;
}

/* Nav pills active */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: var(--acg-blue) !important;
  color: #ffffff !important;
}

/* Tabs active border */
.nav-tabs .nav-link.active {
  color:        var(--acg-blue) !important;
  border-color: var(--acg-blue) var(--acg-blue) #ffffff !important;
}

/* Secondary actions: white with blue border (enterprise convention) */
.btn-secondary,
.btn-outline-secondary {
  --bs-btn-bg:           #ffffff;
  --bs-btn-border-color: var(--acg-blue);
  --bs-btn-color:        var(--acg-blue);
  background-color: #ffffff !important;
  border-color:     var(--acg-blue) !important;
  color:            var(--acg-blue) !important;
}
.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
  background-color: var(--acg-blue-light) !important;
  border-color:     var(--acg-navy) !important;
  color:            var(--acg-navy) !important;
}
/* Promotional / destructive actions — the only buttons that use red */
.btn-danger,
.btn-promo {
  background-color: var(--acg-red-strong) !important;
  border-color:     var(--acg-red-strong) !important;
  color:            #ffffff !important;
}
.btn-danger:hover,
.btn-promo:hover {
  background-color: #B02F36 !important;
  border-color:     #B02F36 !important;
}
.text-secondary  { color: var(--text-muted) !important; }
.text-danger     { color: var(--acg-red-strong) !important; }
.bg-secondary    { background-color: var(--acg-navy) !important; }
.border-secondary{ border-color:     var(--border-light) !important; }
.badge.bg-secondary,
.badge.text-bg-secondary {
  background-color: var(--acg-navy) !important;
  color:            #ffffff !important;
}
.badge.bg-danger,
.badge.text-bg-danger {
  background-color: var(--acg-red-strong) !important;
  color:            #ffffff !important;
}

/* Forms & inputs — consistent borders, clear focus, accessible text */
.form-control,
.form-select {
  border-color: var(--border-light);
  color: var(--text-primary);
}
.form-control::placeholder { color: var(--text-subtle); }
.form-control:disabled,
.form-select:disabled {
  background-color: var(--acg-bg);
  color: var(--text-muted);
}
.btn:disabled,
.btn.disabled {
  opacity: 0.55;
}

/* Keyboard focus — one consistent ring across links, buttons, inputs */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--acg-blue);
  outline-offset: 2px;
  box-shadow: none;
}

/* Announcement ticker: small red promo dot before each message */
.ticker-text-item::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(var(--acg-red-rgb), 0.55);
  flex-shrink: 0;
}

/* Mobile drawer: navy surface so the blue logo stays visible */
.mobile-drawer-content {
  background: var(--acg-navy) !important;
}
.mobile-drawer-content img[alt="Logo"] {
  background: #ffffff;
  border-radius: 8px;
  padding: 4px 8px;
}
.mobile-drawer-content .text-warning {
  color: #8CC4E6 !important;
}


/* App Router Overrides & Enhancements */
/* Card Publisher (used in To Sell / To Buy) */
.cardPublisher {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.cardPublisher:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.cardPublisher-header-thumb {
  position: relative;
  background: var(--acg-bg);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
}

.cardPublisher-header-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.cardPublisher:hover .cardPublisher-header-thumb img {
  transform: scale(1.05);
}

.cardPublisher-body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cardPublisher-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bs-primary);
}

.cardPublisher-price-symbol {
  font-size: 0.8rem;
  margin-left: 4px;
}

.badge-private-price {
  background-color: var(--acg-bg);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  font-weight: 500;
}

/* Products and To-Sell Filter Accordion */
.filter-container {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
  padding: 16px;
  position: sticky;
  top: 90px;
}

.filter-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--bs-primary);
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.filter-group-header {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 10px 0;
  cursor: pointer;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-group-content {
  padding-bottom: 12px;
  max-height: 200px;
  overflow-y: auto;
}

.filter-group-content .form-check {
  margin-bottom: 6px;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.btn-filter-apply {
  background: var(--bs-primary);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 6px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: opacity 0.2s;
}

.btn-filter-apply:hover {
  opacity: 0.9;
  color: #fff;
}

.btn-filter-reset {
  background: transparent;
  color: var(--bs-primary);
  border: 1.5px solid var(--bs-primary);
  border-radius: 20px;
  padding: 6px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-filter-reset:hover {
  background: var(--bs-primary);
  color: #fff;
}


/* Footer contact icons: light tint of the logo blue (reads cleanly on navy) */
.theFooter .text-warning { color: #8CC4E6 !important; }

/* RTL: mirror the ticker gradient so red stays at the reading end */
[dir="rtl"] .ticker-orange-bar {
  background: linear-gradient(270deg,
    var(--acg-navy) 0%,
    var(--acg-blue) 38%,
    var(--acg-blue) 55%,
    var(--acg-navy) 80%,
    var(--acg-red-strong) 100%);
}
