/* ==========================================================================
   Aries Jaya Motor (AJM) - Custom Dark Header & Brand Styles
   ========================================================================== */

:root {
  --ajm-primary: #FF2D37;
  --ajm-primary-dark: #d61c25;
  --ajm-black: #111111;
  --ajm-black-dark: #0a0a0a;
  --ajm-dark-surface: #181818;
  --ajm-dark-card: #202020;
  --ajm-border-dark: #2a2a2a;
  --ajm-text-light: #f5f5f5;
  --ajm-text-muted: #999999;
}

.bg-dark {
  background: #152331;
  /* fallback for old browsers */
  background: -webkit-linear-gradient(to right, #000000, #152331);
  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to right, #000000, #152331);
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  ;
}

/* --- Brand Logo Sizing --- */
.main__logo--img {
  max-height: 46px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
}

.footer__logo--img {
  max-height: 52px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
  margin-bottom: 15px;
}

/* --- Dark Header Section --- */
.header__section.ajm-dark-header {
  background-color: var(--ajm-black-dark);
}

.header__section.ajm-dark-header .header__topbar {
  background-color: #0b0b0b !important;
  border-bottom: 1px solid var(--ajm-border-dark) !important;
  padding: 8px 0;
}

.header__section.ajm-dark-header .header__info--link,
.header__section.ajm-dark-header .header__link--menu__text,
.header__section.ajm-dark-header .social__share--icon {
  color: #cccccc !important;
  font-size: 1.3rem;
  transition: color 0.25s ease;
}

.header__section.ajm-dark-header .header__info--link:hover,
.header__section.ajm-dark-header .header__link--menu__text:hover,
.header__section.ajm-dark-header .social__share--icon:hover {
  color: var(--ajm-primary) !important;
}

.header__section.ajm-dark-header .main__header {
  background-color: var(--ajm-black) !important;
  padding: 16px 0;
  border-bottom: 1px solid #1f1f1f;
}

/* Sticky header styling */
.header__section.ajm-dark-header .main__header.sticky {
  background: #152331;
  /* fallback for old browsers */
  background: -webkit-linear-gradient(to right, #000000, #152331);
  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to right, #000000, #152331);
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Search widget on dark background */
.header__section.ajm-dark-header .header__search--form {
  border: 1px solid #333333 !important;
  background-color: #000 !important;
  overflow: hidden;
}

.header__section.ajm-dark-header .header__select--categories {
  background-color: #242424 !important;
  border-right: 1px solid #333333 !important;
}

.header__section.ajm-dark-header .header__select--inner {
  color: #ffffff !important;
  background-color: #242424 !important;
  font-weight: 500;
}

.header__section.ajm-dark-header .header__select--inner option {
  background-color: #242424;
  color: #ffffff;
}

.header__section.ajm-dark-header .header__search--input {
  background-color: #1c1c1c !important;
  color: #ffffff !important;
}

.header__section.ajm-dark-header .header__search--input::placeholder {
  color: #888888 !important;
}

.header__section.ajm-dark-header .header__search--button {
  background-color: var(--ajm-primary) !important;
  color: #ffffff !important;
  transition: background-color 0.25s ease;
}

.header__section.ajm-dark-header .header__search--button:hover {
  background-color: var(--ajm-primary-dark) !important;
}

/* Header Account & Cart Icons */
.header__section.ajm-dark-header .header__account--btn {
  color: #ffffff !important;
}

.header__section.ajm-dark-header .header__account--btn:hover {
  color: var(--ajm-primary) !important;
}

.header__section.ajm-dark-header .minicart__btn--text {
  color: #e0e0e0 !important;
}

.header__section.ajm-dark-header .minicart__btn--text__price {
  color: var(--ajm-primary) !important;
  font-weight: 700;
}

.header__section.ajm-dark-header .items__count {
  background-color: var(--ajm-primary) !important;
  color: #ffffff !important;
}

/* Header Bottom & Nav bar */
.header__section.ajm-dark-header .header__bottom {
  background-color: #0d0d0d !important;
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
}

.header__section.ajm-dark-header .categories__menu--header {
  background-color: var(--ajm-primary) !important;
  color: #ffffff !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.text-red {
  color: #ba0202 !important;
}

.header__section.ajm-dark-header .categories__menu--header:hover {
  background-color: var(--ajm-primary-dark) !important;
}

.header__section.ajm-dark-header .header__menu--link {
  color: #ffffff !important;
  font-weight: 600;
  font-size: 1.5rem;
  padding: 0px 22px;
  display: inline-block;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.header__section.ajm-dark-header .header__menu--link:hover,
.header__section.ajm-dark-header .header__menu--link.active {
  color: var(--ajm-primary) !important;
}

/* Offcanvas mobile menu button */
.header__section.ajm-dark-header .offcanvas__header--menu__open--svg {
  color: #ffffff !important;
}

/* Currency and language dropdown on dark */
.header__section.ajm-dark-header .account__currency--link,
.header__section.ajm-dark-header .language__switcher {
  color: #cccccc !important;
}

.header__section.ajm-dark-header .account__currency--link:hover,
.header__section.ajm-dark-header .language__switcher:hover {
  color: var(--ajm-primary) !important;
}

/* Quick View & Submenu Polish */
.header__sub--menu,
.dropdown__categories--menu {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* =====================================================
   Categories Dropdown Positioning & Styling
   Slightly shifted down to align perfectly with hero banner
   ===================================================== */
.header__section.ajm-dark-header .dropdown__categories--menu {
  margin-top: 24px !important;
  border: 2px solid var(--ajm-primary) !important;
  border-radius: 6px;
}


/* =====================================================
   Offcanvas Mobile Sticky Bottom Toolbar Styling
   Matches design: Clean white bar, outline icons, no icon bg, red count badge
   ===================================================== */
.offcanvas__stikcy--toolbar {
  background: #ffffff !important;
  border-top: 1px solid #eeeeee !important;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08) !important;
  padding: 8px 16px !important;
  z-index: 999 !important;
}

.offcanvas__stikcy--toolbar__btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  color: #1a1a1a !important;
  position: relative !important;
  padding: 2px 4px !important;
}

.offcanvas__stikcy--toolbar__icon {
  width: auto !important;
  height: 26px !important;
  line-height: normal !important;
  background: transparent !important;
  border-radius: 0 !important;
  color: #1a1a1a !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto !important;
  position: relative !important;
  transition: color 0.2s ease;
}

.offcanvas__stikcy--toolbar__icon svg {
  width: 22px !important;
  height: 22px !important;
  stroke: #1a1a1a !important;
  color: #1a1a1a !important;
  transition: stroke 0.2s ease, color 0.2s ease;
}

.offcanvas__stikcy--toolbar__btn:hover .offcanvas__stikcy--toolbar__icon svg,
.offcanvas__stikcy--toolbar__btn:hover .offcanvas__stikcy--toolbar__label {
  color: var(--ajm-primary) !important;
  stroke: var(--ajm-primary) !important;
}

.offcanvas__stikcy--toolbar__label {
  display: block !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  margin-top: 4px !important;
  line-height: 1.2 !important;
  transition: color 0.2s ease;
}

.offcanvas__stikcy--toolbar .items__count {
  position: absolute !important;
  top: -6px !important;
  right: -10px !important;
  left: auto !important;
  background: #E52E2E !important;
  color: #ffffff !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  width: 17px !important;
  height: 17px !important;
  line-height: 17px !important;
  text-align: center !important;
  border-radius: 50% !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
}


/* Badge and Callouts */
.ajm-badge-original {
  background: linear-gradient(135deg, #FF2D37 0%, #b3000b 100%);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ajm-info-box {
  background: #fdfdfd;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  padding: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ajm-info-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}