﻿/* Electrical storefront layout; shared palette tokens live in design-tokens.css. */
body {
  background: var(--luxury-paper);
}

/* Compact storefront hero with category stories and a wide rotating banner. */
.home-page .hero {
  height: auto !important;
  min-height: 0 !important;
  padding: 154px 0 34px;
  overflow: visible;
  background: #f7f9fa;
}

.home-page .hero::before {
  display: none;
}

.home-header-top {
  display: none;
}

@media (min-width: 992px) {
  .home-page #mainNav,
  .home-page #mainNav.scrolled {
    height: 146px;
    padding: 0;
    border-bottom: 1px solid #e7e9eb;
    background: #fff;
    box-shadow: 0 7px 24px rgba(25, 36, 43, 0.08);
  }

  .home-page #mainNav > .container {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    width: min(var(--container-wide-max), calc(100% - 56px));
    max-width: none;
    height: 60px;
    padding: 0 18px;
    border-top: 1px solid #edf0f2;
  }

  .home-page #mainNav .navbar-brand {
    position: absolute;
    top: -70px;
    right: 18px;
    margin: 0;
    text-shadow: none;
  }

  .home-page #mainNav .navbar-brand > span {
    width: 44px;
    height: 44px;
    background: #e8bd24;
    color: #202a33;
    box-shadow: none;
  }

  .home-page #mainNav .collapse {
    margin-right: 0;
  }

  .home-page #mainNav .nav-link {
    padding-top: 20px;
    padding-bottom: 20px;
    font-size: 13px;
    text-shadow: none;
  }

  .home-page #mainNav .nav-link::after {
    bottom: 10px;
    background: #e8bd24;
  }

  .home-page #mainNav .nav-tools {
    color: #202a33;
  }

  .home-header-top {
    position: absolute;
    top: 0;
    right: 50%;
    display: grid;
    width: min(var(--container-wide-max), calc(100% - 56px));
    height: 85px;
    padding: 13px 220px 13px 190px;
    grid-template-columns: minmax(260px, 480px) 180px;
    gap: 20px;
    align-items: center;
    color: #202a33;
    transform: translateX(50%);
  }

  .home-header-support {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .home-header-support {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    direction: rtl;
    text-align: right;
  }

  .home-header-support strong[dir="ltr"] {
    align-self: flex-start;
    unicode-bidi: isolate;
  }

  .home-header-support > span:last-child {
    display: flex;
    flex-direction: column;
  }

  .home-header-support small {
    color: #8c979d;
    font-size: 10px;
  }

  .home-header-support strong {
    margin-top: 2px;
    color: #202a33;
    font-size: 12px;
  }

  .home-header-support-icon {
    display: grid;
    width: 39px;
    height: 39px;
    flex: none;
    place-items: center;
    border: 1px solid #dfe4e7;
    border-radius: 50%;
    color: #344047;
    font-size: 17px;
  }

  .home-header-support-link {
    color: inherit;
    text-decoration: none;
  }

  .home-header-support-link:hover,
  .home-header-support-link:focus-visible {
    color: inherit;
  }

  .home-header-search {
    display: grid;
    width: 100%;
    max-width: 480px;
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    height: 50px;
    grid-template-columns: 48px minmax(0, 1fr);
    direction: ltr;
    border: 1px solid #dfe4e7;
    background: #f8f9fa;
  }

  .home-header-search button {
    border: 0;
    background: #e8bd24;
    color: #202a33;
    font-size: 16px;
  }

  .home-header-search input {
    min-width: 0;
    padding: 0 18px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #202a33;
    direction: rtl;
    font: inherit;
    font-size: 12px;
    text-align: right;
  }

  .home-header-search input::placeholder {
    color: #a1a9ae;
  }
}

@media (max-width: 991px) {
  .home-header-top {
    display: none;
  }
}

.electrical-showcase {
  width: min(var(--container-wide-max), calc(100% - 56px));
  margin: 0 auto;
}

.electrical-home-row {
  --electrical-showcase-height: clamp(320px, 29vw, 440px);
  position: relative;
  display: grid;
  height: var(--electrical-showcase-height);
  grid-template-columns: 250px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  direction: rtl;
}

.electrical-home-row > .electrical-category-menu,
.electrical-home-row > .electrical-swiper {
  height: 100%;
  min-height: 0;
}

.electrical-category-menu {
  position: relative;
  z-index: 4;
  display: flex;
  height: 100%;
  padding: 10px;
  flex-direction: column;
  border: 1px solid #e5e7e9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 10px 14px 35px rgba(28, 44, 52, 0.08);
}

.electrical-category-heading {
  display: flex;
  min-height: 48px;
  padding: 0 10px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #eceff1;
  color: #202a33;
  font-size: 15px;
  font-weight: 800;
}

.electrical-category-heading > span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid #e8bd24;
  border-radius: 5px;
  background: #e8bd24;
  color: #202a33;
}

.electrical-category-menu > button {
  display: grid;
  min-height: 41px;
  padding: 0 10px;
  grid-template-columns: 23px minmax(0, 1fr) 12px;
  gap: 8px;
  align-items: center;
  border: 0;
  border-top: 1px solid #edf0f2;
  background: transparent;
  color: #3f4a51;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 650;
  text-align: right;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.electrical-category-menu > button > i:first-child {
  color: #f3d34b;
  font-size: 15px;
  text-align: center;
}

.electrical-category-menu > button > i:last-child {
  color: #9aa4aa;
  font-size: 10px;
}

.electrical-category-menu > button:hover,
.electrical-category-menu > button.active,
.electrical-category-menu > button[aria-expanded="true"] {
  border-radius: 4px;
  background: #fff7d6;
  color: #202a33;
  box-shadow: inset -3px 0 #e8bd24;
}

.electrical-submenu {
  position: absolute;
  z-index: 5;
  top: 0;
  right: calc(100% + 6px);
  display: grid;
  width: min(760px, calc(100vw - 350px));
  height: 100%;
  padding: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  overflow: auto;
  border: 1px solid #e1e7e9;
  border-top: 3px solid #edc52b;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 38px rgba(23, 41, 51, 0.2);
  color: #34434a;
}

.electrical-submenu[hidden] {
  display: none !important;
}

.electrical-submenu-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
}

.electrical-swiper {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: #e8edf0;
  box-shadow: 0 16px 42px rgba(21, 43, 58, 0.12);
  direction: ltr;
}

.electrical-swiper .swiper-slide {
  display: block;
  padding: 0;
  background: #f4e7a9;
  direction: rtl;
}

.electrical-banner-image {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.electrical-slide::before,
.electrical-slide::after {
  display: none;
}

.electrical-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 50%;
  background: linear-gradient(145deg, #183d63, var(--color-navy));
  color: var(--color-gold);
  box-shadow:
    0 5px 14px rgba(16, 42, 67, .2),
    inset 0 1px rgba(255, 255, 255, .12);
  font-size: 15px;
  transform: translateY(-50%);
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.electrical-arrow:is(:hover, :focus-visible) {
  border-color: var(--color-gold);
  outline: none;
  background: var(--color-gold);
  color: var(--color-navy);
  box-shadow: 0 7px 16px rgba(16, 42, 67, .2);
  transform: translateY(-50%) scale(1.05);
}

.electrical-arrow:focus-visible {
  outline: 3px solid rgba(246, 197, 21, .62);
  outline-offset: 3px;
}

.electrical-arrow:active {
  transform: translateY(-50%) scale(0.96);
}
.electrical-prev {
  right: 12px;
}
.electrical-next {
  left: 12px;
}

.electrical-swiper .swiper-pagination {
  z-index: 4;
  right: 50%;
  bottom: 16px;
  left: auto;
  display: flex;
  width: auto;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(16, 42, 67, 0.78);
  box-shadow: 0 5px 14px rgba(16, 42, 67, 0.17);
  backdrop-filter: blur(10px);
  transform: translateX(50%);
}

.electrical-swiper .swiper-pagination-bullet {
  width: 7px;
  height: 7px;
  margin: 0 !important;
  background: rgba(255, 255, 255, 0.68);
  opacity: 1;
  transition:
    width 0.22s ease,
    background-color 0.22s ease,
    transform 0.22s ease;
}

.electrical-swiper .swiper-pagination-bullet-active {
  width: 23px;
  border-radius: 999px;
  background: #ffda4b;
  opacity: 1;
}

.electrical-swiper .swiper-pagination-bullet:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 991px) {
  .home-page .hero {
    padding: 78px 0 18px;
  }
  .electrical-showcase {
    width: 100%;
  }
  .electrical-home-row {
    display: block;
    height: auto;
  }
  .electrical-category-menu {
    display: none !important;
  }
  .electrical-swiper {
    height: clamp(220px, 64vw, 300px) !important;
    min-height: 0 !important;
    border-radius: 0;
    box-shadow: none;
  }
  .electrical-swiper .swiper-wrapper,
  .electrical-swiper .swiper-slide {
    height: 100% !important;
    min-height: 0 !important;
  }
  .electrical-swiper .swiper-slide {
    padding: 0;
  }
  .electrical-banner-image {
    object-position: center center;
  }
  .electrical-arrow {
    top: auto;
    bottom: 10px;
    width: 34px;
    height: 34px;
    border-color: rgba(255, 255, 255, .34);
    background: linear-gradient(145deg, #183d63, var(--color-navy));
    box-shadow: 0 4px 10px rgba(16, 42, 67, .2), inset 0 1px rgba(255, 255, 255, .12);
    font-size: 12px;
    transform: none;
  }
  .electrical-arrow:is(:hover, :focus-visible) {
    border-color: var(--color-gold);
    background: var(--color-gold);
    color: var(--color-navy);
    transform: scale(1.05);
  }
  .electrical-arrow:active {
    transform: scale(0.95);
  }
  .electrical-prev {
    right: 12px;
  }
  .electrical-next {
    right: 54px;
    left: auto;
  }
  .electrical-swiper .swiper-pagination {
    right: 50%;
    bottom: 17px;
    left: auto;
    gap: 6px;
    padding: 6px 9px;
    transform: translateX(50%);
  }
  .electrical-swiper .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
  }
  .electrical-swiper .swiper-pagination-bullet-active {
    width: 17px;
  }
}

::selection {
  background: #ffd19c;
  color: #152b3a;
}

.navbar,
.navbar.scrolled {
  border-bottom-color: rgba(32, 42, 51, 0.12);
  background: #f0c929;
  box-shadow: 0 8px 22px rgba(42, 39, 21, 0.12);
}

.hero .navbar:not(.scrolled) {
  border-bottom-color: rgba(32, 42, 51, 0.12);
  background: #f0c929;
  box-shadow: 0 8px 22px rgba(42, 39, 21, 0.12);
}

.navbar .brand,
.navbar .nav-link {
  color: #202a33 !important;
}

.navbar .nav-link:hover {
  color: #fff !important;
}

.hero .navbar:not(.scrolled)::before {
  background: rgba(15, 34, 47, 0.12);
}

.brand > span,
.login-brand > span {
  border-color: rgba(32, 42, 51, 0.24);
  background: linear-gradient(145deg, #31434d, #152b3a);
  color: #ffdf54;
}

.eyebrow,
.page-kicker,
.section-title > span {
  color: #856800;
}

.hero em,
.page-hero em,
.search-intro em,
.hero .eyebrow {
  color: #ffdf54;
}

.hero .eyebrow {
  border-color: rgba(255, 223, 84, 0.48);
}

#mainNav .mega-dropdown > .mega-menu {
  direction: rtl;
  border-color: #d5dfe4 !important;
  border-top-color: #e8bd24 !important;
  background: #fff !important;
}

/* Bootstrap RTL places the first grid column on the right; keep that contract explicit. */
#mainNav .mega-menu > .row {
  direction: rtl;
}

.header-cart {
  color: #23495d !important;
}

@media (max-width: 991px) {
  .mobile-menu .mobile-category-toggle > span > i,
  .mobile-menu .mobile-category > button > span > i {
    border-color: rgba(255, 223, 84, 0.25) !important;
    color: #ffdf54 !important;
  }
}
