:root {
  --accent-collor: #d12248;
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;

  --swiper-pagination-bottom: -25px;
  --swiper-navigation-size: 32px;
  --swiper-navigation-color: rgb(123, 123, 123, 0.75);
  --swiper-theme-color: #000;
  --swiper-pagination-bullet-size: 10px;

  color-scheme: light;
  accent-color: d12248;
  scrollbar-color: var(--accent-collor) #31aee411;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  margin: 0;
}

.d-none {
  display: none;
}

body {
  padding: 0;
  margin: 0;
  font-family: Montserrat, serif;
  line-height: 1;
}

p,
h1,
h2,
h3,
a {
  margin: 0;
  padding: 0;
}

h3 {
  font-family: Montserrat, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}

p {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 5px;
}

a {
  text-decoration: none;
  color: inherit;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease 0s;
}

ul {
  list-style: none;
  padding: 0;

  li {
    line-height: 1.5;
  }
}

.container {
  width: 100%;
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  margin-right: auto;
  margin-left: auto;
  max-width: 1320px; /* largest is default */
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

header {
  padding-top: 20px;
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }
  .header-search {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
  }
  .header-search input {
    width: 50%;
    padding: 0 0 0 10px;
    border: 1px solid transparent;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    background: #f5f5f5;
    height: 32px;

    &:focus {
      background: hsla(0, 0%, 100%, 0.99);
      box-shadow: 0 0 12px 2px rgba(0, 0, 0, 0.09);
      outline: none;
    }
  }
  #search-results {
    display: none; /* hidden by default */
    position: absolute;
    top: 100%;
    left: 25%;
    background: hsla(0, 0%, 100%, 0.99);
    border-radius: 10px;
    box-shadow: 0 0 12px 2px rgba(0, 0, 0, 0.09);
    width: 50%;
    z-index: 10;
    max-height: 400px;
    overflow-y: auto;
    padding: 5px 10px;
    margin-top: 10px;

    h4 {
      font-size: 14px;
      font-weight: 500;
      margin: 10px 0;
      padding: 6px 0 2 0;
      border-bottom: 1px solid #ddd;
      text-transform: uppercase;
    }

    ul {
      li {
        padding: 5px 2px 5px 7px;
      }
    }
  }

  /* #cart-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;

    .icon {
      height: 25px;
      width: 25px;
    }

    .cart-count {
      position: absolute;
      background-color: #d12248;
      border: 2px solid #fff;
      border-radius: 50%;
      right: 0;
      bottom: 0;
      top: unset;
      height: 24px;
      width: 24px;
      font-size: 9px;
      z-index: 530;
      display: flex;
      justify-content: center;
      align-items: center;
      color: #fff;
      font-size: 0.75em;
      font-weight: 700;
    }
  }

  .header-cart,
  .header-wishlist {
    position: relative;
  }
  .header-cart .mini-cart-dropdown {
    position: absolute;
    top: 60px;
    height: auto;
    width: 380px;
    padding: 22px;
    font-size: 12px;
    white-space: normal;
    border-radius: 10px;
    background: hsla(0, 0%, 100%, 0.99);
    box-shadow: 0 0 12px 2px rgba(0, 0, 0, 0.09);
    text-align: left;
    overflow: initial;
    transition: all 0.3s ease 0s;
    visibility: none;
    opacity: 0;
    transform: translate(-50%, 10px);

    h4 {
      font-size: 18px;
      font-weight: 400;
    }

    hr {
      border: 0;
      border-top: 1px solid #eee;
      transform: translateX(-10px);
      margin: 20px 0;
    }

    li {
      display: flex;
      justify-content: space-between;
      gap: 10px;

      .cart-info {
        display: flex;
        flex-direction: row;

        .brand {
          font-size: 12px;
          font-weight: 600px;
          padding-bottom: 5px;
        }
      }
    }
  }
  .header-cart:hover {
    .mini-cart-dropdown {
      visibility: visible;
      opacity: 1;
      transform: translate(-50%, 0);
      z-index: 10;
    }
  }
  .mini-cart-dropdown:hover {
    visibility: visible;
    opacity: 1;
  }
  .mini-cart-dropdown img {
    width: 50px;
    height: auto;
  }
  .btn-order {
    display: block;
    text-align: center;
    background: #d21f3c;
    color: #fff;
    padding: 10px;
    border-radius: 20px;
    margin-top: 10px;
  } */

  @media (max-width: 768px) {
    .header-inner {
      flex-wrap: wrap;
    }

    .header-logo img {
      width: 80%;
    }

    .header-lang {
      display: none;
    }

    .header-account {
      display: none;
    }

    .header-search {
      order: 10;
      flex-basis: 100%;
      border-top: 1px solid #f5f5f5;
      padding: 10px 0;

      input {
        width: 100%;
      }

      .search-results {
        left: 0;
        width: 100%;
      }
    }

    .header-cart .mini-cart-dropdown {
      display: none;
    }
  }
}

/* Basic nav */
nav {
  position: relative;

  .menu {
    display: flex;
    justify-content: space-between;
    align-content: center;
    height: 50px;
    align-items: center;

    .menu-item {
      position: relative;
      font-family: Montserrat, sans-serif;
      font-size: 14px;
      padding: 16px 5px;
      font-weight: 500;
      text-transform: uppercase;
    }
  }

  /* Mega menu desktop */
  .mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    overflow: hidden;
    max-height: 0; /* start hidden */
    opacity: 0;
    transition: max-height 0.8s ease, opacity 0.3s ease;
    box-shadow: 0 5px 7px rgba(0, 0, 0, 0.15);
    padding: 0 20px; /* padding only left/right */
    z-index: 999;

    .mega-container {
      display: flex;
      flex-direction: row;
      padding: 20px 15px;

      .nav-block {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 20%;

        a {
          font-size: 15px;
        }
      }

      .grid-3x {
        display: flex;
        gap: 1rem;

        .nav-card {
          h3 {
            margin-bottom: 15px;
          }

          p {
            margin-bottom: 20px;
          }

          a {
            text-decoration: underline;
            word-wrap: break-word;
          }
        }
      }

      .nav-column {
        display: flex;
        flex-grow: 1;
        flex-direction: column;
        gap: 30px;

        &.right {
          border-left: 1px solid #f5f5f5;
          padding: 0 12px;
        }

        .nav-category {
          display: flex;
          flex-direction: column;

          a {
            font-size: 13px;
            font-weight: 400;
            padding: 3px 10px 3px 0;
            margin: 0 5px;
          }

          .title {
            font-size: 14px;
            font-weight: 500;
            text-transform: uppercase;
            margin: 0 0 10px 0;
          }
        }
      }
    }
  }
}

/* Hide mobile menu on desktop */
.mobile-menu-swiper {
  &.swiper {
    display: none;

    .swiper-slide {
      padding: 13px 0;
      width: auto;

      a {
        font-size: 13px;
        text-transform: uppercase;
        padding: 0 10px;
        border-left: 1px solid rgba(0, 0, 0, 0.1);
      }
    }
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  } /* hide desktop */
  .mobile-menu-swiper {
    &.swiper {
      display: block;
    }
  } /* show swiper */
}

/* Base menu */
.menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    font-size: 32px;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100%;
  background: #fff;
  transition: left 0.3s ease;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mobile-menu.active {
  left: 0;
}

/* Header */
.menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}
.menu-title {
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
}
.menu-logo {
  height: 28px;
}
.menu-back,
.menu-close {
  border: none;
  background: none;
  font-size: 22px;
  cursor: pointer;
}
.menu-back.hidden {
  visibility: hidden;
}

/* Language switcher */
.menu-lang {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}
.menu-lang button {
  border: 1px solid #ddd;
  background: #fff;
  padding: 6px 10px;
  cursor: pointer;
}
.menu-lang .active {
  background: black;
  color: #fff;
}

/* Panels */
.menu-panels {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.menu-panel {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  transition: transform 0.3s ease;
  overflow-y: auto;
  transform: translateX(100%); /* off-screen right by default */
}

.menu-panel li {
  position: relative;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.submenu-arrow {
  font-size: 16px;
  color: #999;
  margin-left: 8px;
}
.menu-panel a {
  display: block;
  text-decoration: none;
  color: #333;
}
.menu-panel.active {
  transform: translateX(0); /* visible */
}
.menu-panel.to-left {
  transform: translateX(-100%); /* slide out left */
}

/* #navbar {
  .nav {
    display: flex;
    justify-content: space-between;
    align-content: center;
    position: relative;
    height: 48px;
    align-items: center;

    .nav-item {
      font-family: Montserrat, sans-serif;
      font-size: 14px;
      padding: 16px 5px;
      font-weight: 500;
      text-transform: uppercase;
    }
  }

  .dropdown-menu {
    display: none;
    background-color: #ffff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    position: absolute;
    left: 0;
    width: 100%;
    box-shadow: 0 5px 7px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    will-change: max-height;

    a {
      font-size: 15px;
      line-height: 1.3;
      font-weight: 500;

      &:hover {
        color: red;
        text-decoration: underline;
      }
    }

    .inner {
      display: flex;
      flex-direction: row;
      padding: 20px 15px;

      .nav-block {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 20%;

        a {
          font-size: 15px;
        }
      }

      .grid-3x {
        display: flex;
        gap: 1rem;

        .nav-card {
          h3 {
            margin-bottom: 15px;
          }

          p {
            margin-bottom: 20px;
          }

          a {
            text-decoration: underline;
            word-wrap: break-word;
          }
        }
      }

      .nav-column {
        display: flex;
        flex-grow: 1;
        flex-direction: column;
        gap: 30px;

        &.right {
          border-left: 1px solid #f5f5f5;
          padding: 0 12px;
        }

        .nav-category {
          display: flex;
          flex-direction: column;

          a {
            font-size: 13px;
            font-weight: 400;
            padding: 3px 10px 3px 0;
            margin: 0 5px;
          }

          .title {
            font-size: 14px;
            font-weight: 500;
            text-transform: uppercase;
            margin: 0 0 10px 0;
          }
        }
      }
    }
  }
} */

#hero .swiper {
  width: 100%;
  height: 100%;
}

/* Desktop slide (default) */
#hero .slide-desktop {
  position: relative;
  display: block;
}

#hero .slide-desktop img {
  width: 100%;
  height: auto;
  object-fit: cover;
  cursor: pointer;
}

#hero .slide-text {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  color: #000;
  max-width: 400px;
  text-align: center;
}

#hero .slide-text h3 {
  font-weight: bold;
  margin-bottom: 10px;
}

#hero .slide-text p {
  margin-bottom: 15px;
  font-size: 15px;
}

#hero .slide-text {
  a {
    display: inline-block;
    padding: 10px 20px;
    margin: 12px;
    min-width: 140px;
    border: none;
    border-radius: 47px;
    line-height: 17px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: background-color 0.3s;
  }

  &.black {
    color: black;

    a {
      background-color: black;
      color: white;

      &:hover {
        background-color: #4c4c4c;
      }
    }
  }

  &.white {
    color: white;

    a {
      background-color: white;
      color: #000;

      &:hover {
        background-color: #ccc;
      }
    }
  }
}

/* Mobile slide (hidden by default) */
#hero .slide-mobile {
  display: none;
  text-align: center;
}

#hero .slide-mobile img {
  width: 100%;
  height: auto;
  cursor: pointer;
}

#hero .slide-mobile .slide-text {
  position: static;
  transform: none;
  margin: auto;
  padding: 15px 0;
}

/* Swiper pagination always below image */
#hero .swiper-pagination {
  position: relative;
  margin-top: 15px;
  bottom: auto !important;
}

/* Responsive - show mobile instead of desktop */
@media (max-width: 767px) {
  #hero {
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
  }

  #hero .slide-desktop {
    display: none;
  }
  #hero .slide-mobile {
    display: block;
  }
  #hero .slide-text {
    position: static;
    transform: none;
    text-align: center;
    margin: 15px auto;
  }

  #hero .swiper-button-next,
  #hero .swiper-button-prev {
    display: none !important;
  }
}

/* Product Slider */
#new_products {
  margin-top: 70px;

  h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
    margin: 10px 0 20px;
    font-family: Montserrat, sans-serif;
    text-align: center;
  }
}

#last_visited {
  margin-top: 70px;

  h3 {
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: -0.02em;
    margin-bottom: 45px;
  }
}

.product-slider-wrapper {
  position: relative;
}

.product-slider .swiper-slide {
  height: auto;
}

.product-slider-wrapper .swiper-button-prev {
  left: -50px; /* float outside container */
}

.product-slider-wrapper .swiper-button-next {
  right: -50px; /* float outside container */
}

.product-slider-wrapper .swiper-pagination {
  display: none; /* hide dots on desktop */
}

@media (max-width: 768px) {
  .product-slider-wrapper .swiper-button-prev,
  .product-slider-wrapper .swiper-button-next {
    display: none;
  }
  .product-slider-wrapper .swiper-pagination {
    display: flex;
    justify-content: center;
  }
}

#brand_of_the_month {
  background: url("https://cdn.alexandar-cosmetics.com/media/cache/mdl_12/images/page_editor_element_image/68a32a5a761da_orjena brend meseca.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  height: 500px;
  margin-top: 70px;

  &:hover {
    .overlay {
      opacity: 1;
    }
  }

  .overlay {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    gap: 50px;
    color: white;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s;

    p {
      font-size: 22px;
    }

    h2 {
      font-size: 32px;
      letter-spacing: 10px;
    }

    button {
      font-weight: 500;
      line-height: 1;
      padding: 9.5px 25px;
      border-radius: 30px;
      border: 1px solid #000;
      background-color: #fff;
      color: #000;
    }
  }
}

#bestsellers {
  margin-top: 80px;
  text-align: center;

  h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
    margin: 10px 0 20px;
    font-family: Montserrat, sans-serif;
    text-align: center;
  }

  .tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;

    h3 {
      min-width: 200px;
      border-bottom: 1px solid #ddd;
      font-size: 15px;
      font-weight: 400;
      padding: 8px 16px;
      text-transform: uppercase;
      cursor: pointer;

      &.active {
        font-weight: 500;
        border-bottom: 1px solid #000;
      }
    }
  }

  .swip {
    display: none;

    &.active {
      display: block;
    }
  }
}

footer {
  background-color: #000;
  color: #fff;
  padding: 30px 0 50px 0;

  hr {
    margin: 30px 0 40px 0;
    height: 1px;
    color: #fff;
  }

  .logo {
    margin: 30px 0 35px 0;

    hr {
      margin: 30px 0 -30px 0;
    }

    img {
      display: block;
      width: 23%;
      margin: auto;
      background: #000;
      padding: 2px 30px;
    }
  }

  .pages-nav {
    display: flex;
    justify-content: space-between;

    h2 {
      margin-bottom: 15px;
      font-size: 17px;
      font-weight: 500;
      line-height: 1;
    }

    li {
      margin-bottom: 5px;
      font-size: 15px;

      &:hover {
        a {
          color: var(--accent-collor);
        }
      }

      a {
        font-size: 14px;
      }
    }
  }

  .company-info {
    display: flex;
    justify-content: space-around;
    font-size: 14px;

    .address {
      display: flex;
      align-items: center;
    }

    .home {
      padding: 5px;
      border-radius: 3px;
      margin-right: 10px;
      font-size: 15px;
      background: var(--accent-collor);
    }
  }
}

/* Woocommerce */

.woocommerce-breadcrumb {
  padding: 10px 0 20px;
}

/* ---------- Minimal styles (scoped) ---------- */
:root {
  --grid-gap: 24px;
  --sidebar-w: 270px;
}

.shop-archive-wrap {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: var(--grid-gap);
}

@media (max-width: 980px) {
  .shop-archive-wrap {
    grid-template-columns: 1fr;
  }
}

.shop-sidebar {
  /* position: sticky;
  top: 20px;
  align-self: start;
  border: 1px solid #eee;
  padding: 16px;
  border-radius: 12px;
  background: #fff; */
}

.shop-sidebar h3 {
  margin: 18px 0 8px;
  font-size: 14px;
  font-weight: 500;
}

.shop-sidebar {
  .subcats {
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
    padding-top: 20px;
    padding-bottom: 15px;

    a {
      display: block;
      text-decoration: none;
      line-height: 1.4;
      min-height: 34px;
      font-weight: 500;
    }
  }
}

.shop-sidebar label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  margin: 10px 0;

  &:last-child {
    margin-bottom: 0;
  }
}

.shop-sidebar .brands {
  max-height: 220px;
  overflow: auto;
  border: 1px solid #eee;
  padding: 5px 0 0 5px;
  border-radius: 4px;
}

.range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: center;
}

.range input[type="number"] {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.range-sliders {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 6px 0 2px;
}

.range-sliders input[type="range"] {
  width: 100%;
}

.archive-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.archive-count {
  color: #666;
  font-size: 14px;
}

.archive-sorting {
  margin-left: auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
}

@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* CART */
.wc-block-components-sidebar-layout .wc-block-components-main {
  width: 75%;
}

.wc-block-cart__sidebar {
  width: 25%;
  padding-left: 0;
  border: 1px solid #ddd;
  height: fit-content;
  padding: 15px;
}

.wc-block-cart__submit-button {
  color: #fff;
  font-weight: 500;
  transition: all 0.3s ease 0s;
  background-color: #d12248;
  padding: 8px 0;
  text-transform: none;
  font-size: 16px;
  border-radius: 30px;
}

/* Modal */
#ql-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  display: none;
  z-index: 9998;
}

#ql-modal {
  position: fixed;
  inset: auto 0 0 0;
  margin: auto;
  top: 5vh;
  max-width: 900px;
  width: 92vw;
  height: fit-content;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  padding: 16px;
  display: none;
  z-index: 9999;
}

#ql-modal .ql-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#ql-modal .ql-close {
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}

#ql-modal .ql-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

#ql-modal img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 800px) {
  #ql-modal .ql-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1400px) {
  .container {
    max-width: 1140px;
  }
}

@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }
}

@media (max-width: 768px) {
  :root {
    --swiper-navigation-color: #fff;
    --swiper-navigation-sides-offset: 0;
  }

  .swiper-button-next,
  .swiper-button-prev {
    background-color: #a19fa0;
  }

  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 15px;
    font-weight: 700;
  }

  .container {
    max-width: 540px;
  }

  #brand_of_the_month {
    background-size: contain;
    height: initial;
  }

  #bestsellers {
    .tabs {
      h3 {
        min-width: auto;
      }
    }
  }

  /* Single product */
  .product-top {
    flex-direction: column;

    .info {
      width: 100%;
      text-align: center;

      .brand-image {
        display: block;
      }
    }
  }

  .custom-gallery {
    width: 100%;

    .thumbs {
      display: none;
    }
  }

  footer {
    .logo {
      img {
        width: auto;
      }
    }

    .pages-nav {
      flex-direction: column;
      padding: 0 20px;
    }

    .company-info {
      flex-direction: column;
      gap: 20px;
      padding: 10px 20px;
    }
  }
}

@media (max-width: 576px) {
  .container {
    max-width: 100%;
  }
}
