/* =========================================================
   HEADER BACKGROUND
   ========================================================= */

#header {
  background: url('/themes/at_movic/assets/img/patterns/snakeskin_hell.jpg')
              no-repeat center center / cover;
  margin: 0;
  padding: 0;
}


/* =========================================================
   HEADER MAIN LAYOUT (BOOTSTRAP-CORRECT)
   ========================================================= */

#header .header-main {
  min-height: 200px;
  box-sizing: border-box;
}

#header .header-main > .row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
}


/* =========================================================
   LEFT — LOGO
   ========================================================= */

.header-left {
  flex: 0 0 auto;
}

.header-logo-link {
  display: block;
}

.header-logo-img {
  display: block;
  max-height: 180px;
  margin: 10px;
  width: auto;
}


/* =========================================================
   CENTER — MENU (Leo Bootstrap Menu) — ::after CARET
   ========================================================= */

.header-center {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* menu wrapper */
.header-center .leo-megamenu {
  display: flex;
  align-items: center;
}

/* first level list */
.header-center .leo-megamenu .navbar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  float: none !important;
}

/* first level items */
.header-center .navbar-nav > li {
  display: flex;
  align-items: center;
  padding: 0 8px;
  position: relative;
}

/* menu link */
.header-center .navbar-nav > li > a {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  padding: 0;
  position: relative;
}

/* ONLY items with dropdown */
.header-center .navbar-nav > li.dropdown > a::after {
  content: "▾";
  font-size: 10px;
  line-height: 1;
  margin-left: 16px;
  position: relative;      
}

/* hide original Leo caret 
.header-center .navbar-nav > li > b.caret {
  display: none !important;
}
*/

/* =========================================================
   RIGHT — ICONS (search, login, cart)
   ========================================================= */

.header-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-right > * {
  flex: 0 0 auto;
}

.header-right .search-widget,
.header-right .leo-quicklogin {
  display: flex;
  align-items: center;
}


/* =========================================================
   SEARCH FIX
   ========================================================= */

#search_widget {
  margin: 0;
}

#search_widget input {
  height: 40px;
}


/* =========================================================
   FIX LEO / BOOTSTRAP LEGACY FLOATS
   ========================================================= */

.header-center .navbar-nav,
.header-right .float-xs-right {
  float: none !important;
}


/* =========================================================
   DISABLE LEO LEGACY BLOCKS (SAFETY)
   ========================================================= */

.header-banner,
.header-nav,
.header-top,
.topnav,
.bottomnav {
  display: none !important;
}

/* hide text labels in header icons */
.header-right .leo-quicklogin span {
  display: none !important;
}



/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991px) {

  #header .header-main > .row {
    flex-wrap: wrap;
    gap: 15px;
  }

  .header-left {
    width: 100%;
    text-align: center;
  }

  .header-center {
    width: 100%;
    justify-content: flex-start;
  }

  .header-right {
    width: 100%;
    justify-content: flex-end;
  }
}

/* === INFO BAR (TOP GREEN STRIP) === */
.bss-info-bar {
  background: #e9f0c1;
  padding: 38px 0;
}

.bss-info-bar .block.bss-raw-html {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.bss-info-bar .block.bss-raw-html > i {
  flex: 0 0 auto;
  font-size: 30px;
  line-height: 1;
  margin-top: 4px;
  color: #000;
  opacity: 0.9;
}

/* TEXT CONTAINER */
.bss-info-bar .block .info-content {
  flex: 1 1 auto;
  width: 100%;
}

/* TITLE */
.bss-info-bar .info-content h4 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #000;
}

/* TEXT */
.bss-info-bar .info-content p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #6f6f6f;
}

@media (max-width: 767px) {
  .bss-info-bar {
    padding: 24px 0;
  }

  .bss-info-bar .row.box-shipping > div {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  .bss-info-bar .row.box-shipping > div + div {
    margin-top: 22px;
  }

  .bss-info-bar .block.bss-raw-html > i {
    font-size: 28px;
    margin-top: 2px;
  }

  .bss-info-bar .info-content h4 {
    font-size: 13px;
    margin-bottom: 4px;
  }

  .bss-info-bar .info-content p {
    font-size: 11px;
    line-height: 1.45;
  }
}

/* === FOOTER CENTER (WHITE AREA) === */
.footer-center {
  margin: 0;
  padding: 44px 0 52px;
  background: #fff;
}

.footer-center .row.footer-links {
  margin-left: 0;
  margin-right: 0;
}

.footer-center .footer-col {
  padding-left: 15px;
  padding-right: 15px;
}

.footer-center .footer-block {
  font-size: 13px;
  line-height: 1.6;
  color: #6f6f6f;
}

.footer-center .footer-block p {
  margin: 0 0 16px;
}

.footer-center .footer-block p:last-child {
  margin-bottom: 0;
}

.footer-center .footer-block strong {
  font-weight: 700;
  color: #000;
}

.footer-center .footer-links-group {
  margin-bottom: 18px;
}

.footer-center .footer-links-group:last-child {
  margin-bottom: 0;
}

.footer-center .footer-links-group > p {
  margin: 0 0 10px;
}

.footer-center .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-center .footer-links li {
  margin: 0 0 6px;
}

.footer-center .footer-links li:last-child {
  margin-bottom: 0;
}

.footer-center .footer-links a {
  color: #6f6f6f;
  text-decoration: none;
}

.footer-center .footer-links a:hover,
.footer-center .footer-links a:focus {
  text-decoration: none;
  color: #000;
}

/* === FOOTER BANNER (RIGHT COLUMN) === */
.footer-center .footer-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* === FOOTER BOTTOM (GREEN STRIP) === */
.footer-bottom {
  background: #e9f0c1;
  padding: 18px 0;
}

.footer-bottom,
.footer-bottom a {
  color: #6f6f6f;
}

.footer-bottom a {
  text-decoration: none;
}

.footer-bottom a:hover,
.footer-bottom a:focus {
  color: #000;
  text-decoration: none;
}

@media (max-width: 991px) {
  .footer-center {
    padding: 34px 0 40px;
  }

  .footer-center .footer-col {
    margin-bottom: 26px;
  }

  .footer-center .footer-col:last-child {
    margin-bottom: 0;
  }
}



/* === HOME: PRODUCT GRID FIX === */

/* Desktop: 4 items per row */
@media (min-width: 1200px) {
  .page-index .products .product {
    width: 25%;
    max-width: 25%;
    flex: 0 0 25%;
  }
}

/* Tablet: 2 items per row */
@media (min-width: 768px) and (max-width: 1199px) {
  .page-index .products .product {
    width: 50%;
    max-width: 50%;
    flex: 0 0 50%;
  }
}

/* Mobile: 2 items per row */
@media (max-width: 767px) {
  .page-index .products .product {
    width: 50%;
    max-width: 50%;
    flex: 0 0 50%;
  }
}

/* Small mobile: 1 item per row */
@media (max-width: 480px) {
  .page-index .products .product {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }
}