@font-face {
  font-family: "Deuterium Variable";
  src: url("../font/Deuterium Variable.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Deuterium Variable";
  src: url("../font/Deuterium Variable.otf") format("opentype");
  font-weight: 560;
  font-style: bold;
  font-display: swap;
}

.notyf {
  z-index: 999999999;
}
:root {
  --primary: #f71c5b;
  --secondary: #55575b;
  --primary-lighter: #0072bb;
  --primary-rgba: rgba(65, 107, 169, 0.64);
  --primary-light: #ef6b90;
  --primary-lighter: rgb(243, 175, 194);
  --secondary-light: #d9d9d9;
  --white-hover: #f0f0f0;
  --primary-linear: linear-gradient(
    90deg,
    #416ba9 0%,
    rgba(0, 114, 187, 0) 100%
  );
  --primary-linear-reversed: linear-gradient(
    90deg,
    rgba(0, 114, 187, 0) 0%,
    #416ba9 100%
  );
  --white: #fff;
  --black: #000;
  --font: "Deuterium Variable";
  --youtube-red: #ff0000;
  --transition: all 0.2s ease-in-out;
  --hover-dark: #2f5183;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-moz-selection {
  background: var(--primary);
  color: var(--white);
}

::selection {
  background: var(--primary);
  color: var(--white);
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  line-height: 1.5;
  color: var(--black);
  background-color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
  font-size: inherit;
  --base-size: 1em; /* 18px */
  --small-size: 0.555555555em; /* 10px */
  --mid-size: calc(var(--base-size) * 1.272); /* (1.618 ^ 0.5)em = 23px  */
  --big-size: calc(var(--base-size) * 1.618); /*         1.618em = 29px  */
  --bigger-size: calc(var(--base-size) * 2.058); /* (1.618 ^ 1.5)em = 37px  */
  --biggest-size: calc(var(--base-size) * 2.618); /*   (1.618 ^ 2)em = 47px  */
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  will-change: color;
  transition: color 0.3s ease-out;
}
a:hover {
  color: var(--primary);
}
button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

ul,
ol,
li {
  list-style: none;
  padding: 0 !important;
  margin: 0 !important;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  padding: 0 !important;
  margin: 0 !important;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: 18px;
  outline: none;
  border: 1px solid transparent;
}

input:focus {
  outline: none;
  border: 1px solid transparent;
}

/* section title*/

/* Header */
header {
  background-color: var(--secondary);
  padding-top: 16px;
  padding-bottom: 16px;
  position: relative;
}

.left-absolute {
  position: absolute;
  left: 0;
  width: 100%;
  max-width: 1320px;
  height: 20px;
  background-color: var(--white);
  bottom: -1px;
}
.left-absolute.second {
  bottom: 20px;
  transform: scaleX(0.99);
  height: calc(78px);
  background-color: var(--secondary);
  filter: drop-shadow(8px 10px 4px rgba(0, 0, 0, 0.6));
}

header .top {
  justify-self: end;
  padding-bottom: 12px;
}

header .top .socials {
  font-size: 18px;
  color: var(--white);
  gap: 8px;
  display: flex;
}

header .bottom-wrapper {
  display: flex;
}

header .bottom-wrapper nav {
  align-self: flex-end;
  display: flex;
  justify-content: space-between;
}

.basket-btn {
  padding: 4px 8px;
  border-radius: 3.6px;
  background-color: var(--primary);
  color: var(--white);
}

header .bottom-wrapper ul {
  display: flex;
  padding-left: 8px !important;
}

header .bottom-wrapper ul li {
  width: max-content;
}

header .bottom-wrapper ul a {
  padding: 5px 12px;
  transition: var(--transition);
  color: var(--white);
  font-style: normal;
  font-weight: 300;
  line-height: normal;
  margin-bottom: -71px;
}

header .bottom {
  display: flex;
  width: fit-content;
  flex: 0 1 auto;
}

header .bottom .logo {
  display: flex;
  width: fit-content;
  margin-bottom: -71px;
}

header .bottom .logo img {
  border-width: 10px;
  border-style: solid;
  border-color: var(--white);
  width: auto;
  max-height: 120px;
}

header .middle {
  float: right;
  display: flex;
  /* justify-self: end; */
  align-items: center;
  padding: 8px 0 8px 8px;
  position: relative;
  z-index: 2;
  background-color: var(--primary);
}

header .middle::after {
  content: "";
  position: absolute;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--primary);
}

header .middle a {
  display: flex;
  gap: 8px;
  color: var(--white);
  transition: var(--transition);
  padding: 5px 12px;
}

.logout-dropdown {
  position: relative;
  cursor: pointer;
  background-color: var(--primary);
}

.logout-dropdown span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--white);
  padding: 5px 0 5px 12px;
  font-weight: 600;
}

.logout-dropdown ul {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--white);
  max-width: 100px;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 100;
  height: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 0;
  margin: 0;
}

.logout-dropdown.active ul {
  opacity: 1;
  visibility: visible;
  transition: height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.logout-dropdown ul li {
  display: block;
}

.logout-dropdown ul li a {
  background-color: var(--white);
  color: var(--primary) !important;
  display: flex;
  align-items: center;
  padding: 6px 8px;
  transition: var(--transition);
  white-space: nowrap;
  height: 100%;
  transition: all 0.3s ease-out;
}

.logout-dropdown ul li a:hover,
.logout-dropdown ul li a.selected {
  background-color: var(--primary);
  color: var(--white) !important;
}

.right-absolute {
  position: absolute;
  width: 100%;
  max-width: 1320px;
  background-color: var(--primary);
  z-index: 1;
}

/* Header */

/* Footer */
footer {
  background-color: var(--primary);
  color: var(--white);
  background-image: url(../images/footer-bg.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

footer .footer-top-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  border-width: 0 35px 25px 35px;
  border-style: solid;
  border-color: var(--white);
  padding: 12px 0;
  width: 100%;
}

footer .footer-top {
  background-color: var(--primary);
  color: var(--white);
  text-transform: uppercase;
}

footer .footer-inner {
  padding-top: 50px;
  padding-bottom: 50px;
  display: flex;
  justify-content: space-between;
  width: 100%;
}

footer .footer-inner .item-wrapper {
  width: 33.33%;
}

footer .footer-inner .item-wrapper:first-child {
  padding-right: 20px;
}

footer .footer-inner .item-wrapper:last-child {
  padding-left: 20px;
}

footer .footer-inner .item-wrapper.centered {
  justify-content: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

footer .footer-inner .item-wrapper .title {
  margin-bottom: 10px;
}

footer .footer-inner .item-wrapper .title {
  color: var(--white);
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

footer .footer-inner .item-wrapper .item {
  display: flex;
  gap: 4px;
  color: var(--white);
  font-weight: 400;
  margin-bottom: 16px;
}
footer .footer-inner .item-wrapper .item .item-inner-flex {
  display: flex;
  margin-right: 5px;
  gap: 2px;
}

footer .footer-inner .item-wrapper a {
  transition: var(--transition);
}

footer .footer-inner .item-wrapper a:hover {
  color: color-mix(in srgb, white 85%, black 15%);
}

footer .footer-inner .item-wrapper .item span {
  font-weight: 600;
}

footer .socials {
  gap: 12px;
  display: flex;
}
footer .footer-inner .item-wrapper .socials a {
  font-size: 18px;
}

.mobile-cart {
  display: none;
  visibility: hidden;
  font-size: 18px;
  right: 3em;
  transform: translate(50%, calc(-50% - 0.06em));
  top: 50%;
  position: absolute;
  color: white;
}

/* Footer */

/* Mobile Drawer */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 40px;
  height: 30px;
  position: absolute;
  right: 15px;
  top: 50%;
  z-index: 10;
  transform: translateY(-50%);
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--white);
  border-radius: 3px;
  transition: var(--transition);
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 60vw;
  height: 100vh;
  background-color: #55575b;
  z-index: 9999999;
  transition: right 0.3s ease-in-out;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
}
.mobile-drawer .drawer-item a,
.mobile-drawer .drawer-item span,
.mobile-drawer .drawer-nav > a {
  font-size: 20px;
}

.mobile-drawer.open {
  right: 0;
}

.drawer-overlay,
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.drawer-overlay.active,
.overlay.active {
  opacity: 1;
  visibility: visible;
}

.drawer-overlay{
  z-index: 10 !important;
}

.drawer-content {
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.drawer-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.drawer-close {
  font-size: 40px;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
}

.drawer-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.drawer-nav {
  margin-bottom: 20px;
}

.drawer-nav ul {
  display: flex;
  flex-direction: column;
  margin-bottom: 30px !important;
}

.drawer-nav ul li {
  margin-bottom: 15px !important;
}

.drawer-nav a {
  color: var(--white);
  display: block;
  padding: 5px 0;
}

.drawer-dropdown {
  position: relative;
}

.drawer-dropdown span {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--white);
}

.drawer-dropdown ul {
  margin-top: 10px !important;
  margin-left: 15px !important;
  display: none;
}

.drawer-dropdown.active ul {
  display: block;
}

.drawer-dropdown ul li {
  margin-bottom: 10px !important;
}

.drawer-dropdown ul li a {
  padding: 3px 0;
}

.drawer-socials {
  margin-top: auto !important;
  padding-top: 30px !important;
  padding-bottom: 20px !important;
  display: flex;
  justify-content: center;
}

.drawer-socials .socials {
  display: flex !important;
  gap: 15px;
  padding-top: 10px !important;
  justify-content: center;
}

.drawer-socials .socials a {
  color: var(--white);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  margin-bottom: 0 !important;
}

.drawer-socials .socials i {
  color: var(--white);
}

.drawer-item {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  transition-delay: 0.1s;
}

.drawer-item:nth-child(2) {
  transition-delay: 0.2s;
}

.drawer-item:nth-child(3) {
  transition-delay: 0.3s;
}

.drawer-item:nth-child(4) {
  transition-delay: 0.4s;
}

.drawer-item:nth-child(5) {
  transition-delay: 0.5s;
}

.drawer-item:nth-child(6) {
  transition-delay: 0.6s;
}

.drawer-middle {
  display: flex;
  flex-direction: column;
}

.drawer-middle a,
.drawer-dropdown span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  padding: 10px 0;
  margin-bottom: 10px !important;
}

.drawer-middle .drawer-dropdown ul {
  margin-left: 20px !important;
}

.drawer-item.visible {
  opacity: 1;
  transform: translateX(0);
}
.mobile-login {
  display: none;
}

/* 
.left-bar {
    position: absolute;
    left: 0;
    width: 30%;
    height: 50px;
    background-color: var(--primary);
    z-index: 2;
}

.left-bar.top {
    bottom: 0;
}

.left-bar.bottom {
    top: 0;
}

.bar span {
    position: relative;
    z-index: 3;
    color: var(--white);
    font-size: 35px;
    text-transform: uppercase;
}
 */

@keyframes menu-in {
  0% {
    transform: translateX(-50%) translateY(-250%);
  }
  100% {
    transform: translateX(-50%);
  }
}
@keyframes menu-out {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(-50%) translateY(-250%);
  }
}

header {
  z-index: 9999998;
}

.mega-menu {
  /* background-color: var(--white); */
  max-width: 80vw;
  width: 100%;
  display: none !important;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  /* padding: 16px; */
  z-index: 99;
  height: 100%;
  animation-name: menu-in;
  animation-duration: 1s;
  animation-delay: 0s;
  animation-timing-function: ease-out;
  animation-iteration-count: 1;
  animation-direction: normal;
  animation-fill-mode: both;
}

.mega-menu.active {
  display: block !important;
}
.mega-menu.animate-in {
  animation-name: menu-in;
  animation-timing-function: ease-out;
}
.mega-menu.animate-out {
  animation-name: menu-out;
  animation-timing-function: ease-in;
}

.mega-inner {
  padding: 24px;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  background-color: var(--white);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  align-items: start;
  max-height: 600px;
  box-shadow: rgba(0, 0, 0, 0.25) 0 0 20px;
  overflow-y: scroll;
}

.mega-inner::-webkit-scrollbar {
  width: 8px;
  margin-right: 2px;
  background-color: #f1f1f1;
}

.mega-inner::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 4px;
}
.mega-inner .item h3 {
  font-size: 18px;
}
.mega-menu .item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: stretch;
  min-height: 200px;
}

.mega-menu .item h3 {
  color: #55575b;
  font-weight: 560;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e0e0;
  line-height: 1.3;
  word-break: break-word;
  hyphens: auto;
}

.mega-menu .item .inner {
  display: flex;
  flex-direction: column;
}

.mega-menu .item a {
  color: var(--black);
  transition: var(--transition);
  font-size: 16px;
  padding: 4px 0;
}

.mega-menu .item a:hover {
  color: var(--primary);
}

footer .footer-inner .item-wrapper .item,
footer .footer-inner .item-wrapper li,
footer .footer-inner .item-wrapper a {
  font-size: 16px;
}
footer .footer-inner .item-wrapper li + li {
  margin-top: 8px !important;
}

#header-logo.mobile {
  display: none;
  visibility: hidden;
}

@media (max-width: 1400px) {
  header .middle {
    float: unset;
    justify-self: end;
  }
}

/* Responsive for Mobile */
@media (max-width: 1200px) {
  body {
    --base-size: 1.8em;
    --iframe-scale-up: 1;
  }

  header .middle {
    float: unset;
    justify-self: end;
  }
  .top-padding {
    padding: 50px 0 !important;
  }
}

/* Responsive Footer */
@media screen and (max-width: 992px) {
  body {
    --base-size: 1.666em;
    --iframe-scale-up: 1;
  }
  div:has(> iframe) {
    width: var(--parent-width);
    height: var(--parent-height);
  }
  div > iframe {
    width: calc(var(--parent-width) / var(--iframe-scale-up));
    height: calc(var(--parent-height) / var(--iframe-scale-up));
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
    -webkit-transform: scale(var(--iframe-scale-up)) translateX(-50%);
    transform: scale(var(--iframe-scale-up)) translateX(-50%);
    position: absolute;
    top: 0;
    left: 50%;
  }

  .captcha-wrapper {
    --parent-width: 90vw;
    --parent-height: 10vh;
    position: relative;
    margin-right: auto;
    overflow: hidden;
  }
  .g-recaptcha,
  .g-recaptcha > div,
  .g-recaptcha > div > div {
    width: var(--parent-width);
    height: var(--parent-height);
  }
  .g-recaptcha iframe {
    width: unset;
    height: unset;
  }
  .carousels .item .box .text {
    text-wrap: wrap !important;
  }
  footer .footer-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
  }

  footer .footer-inner .item-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center !important;
    text-align: center;
  }

  footer .footer-inner .item-wrapper .item {
    display: flex;
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
  }
  footer .footer-inner .item-wrapper .item .item-inner-flex {
    display: flex;
    margin-right: 8px;
    gap: 16px;
  }

  footer .footer-inner .item-wrapper:first-child {
    width: 100%;
    padding-right: 0;
  }

  footer .socials {
    justify-content: center;
  }
}

@media screen and (max-width: 992px) {
  body {
    --base-size: 1.433em;
    --iframe-scale-up: 1;
  }
  .top-padding {
    padding: 50px 0;
  }
  #header-logo {
    visibility: hidden;
    display: none;
  }
  #header-logo.mobile {
    visibility: visible;
    display: flex;
  }

  footer .footer-top-wrapper {
    border-width: 0 20px 15px 20px;
  }

  footer .footer-inner {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  footer .footer-inner .item-wrapper {
    width: 100%;
    padding-right: 0;
    padding-left: 0;
  }

  footer .footer-inner .item-wrapper:last-child {
    padding-left: 0;
  }

  footer .footer-inner .item-wrapper.centered {
    align-items: center;
    margin-top: 20px;
  }

  footer .footer-inner .item-wrapper .title {
    font-size: 18px;
  }

  footer .socials {
    font-size: 16px;
  }

  .mega-inner {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    padding: 16px;
  }

  body.drawer-open,
  html.drawer-open {
    overflow: hidden;
  }
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    overflow: hidden;
  }
  .mobile-menu-toggle {
    display: flex;
  }

  header .bottom-wrapper nav {
    display: none;
  }

  header .middle {
    display: none;
  }

  header .top {
    display: none;
  }

  .left-absolute,
  .right-absolute {
    display: none;
  }

  .mobile-login {
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: var(--white) !important;
    gap: 8px;
    height: max-content;
    background-color: var(--primary);
    padding: 4px !important;
  }

  .mobile-login:hover {
    color: var(--white);
  }

  header .bottom-wrapper {
    display: flex;
    width: 100%;
    justify-content: space-between;
  }

  header .bottom-wrapper .logo img {
    width: 70%;
  }

  header .bottom {
    margin-bottom: 0;
  }

  header .bottom .logo {
    margin-bottom: 0;
  }

  header .bottom .logo img {
    border: none;
  }
}

@media screen and (max-width: 576px) {
  body {
    --base-size: 1.15em;
    --iframe-scale-up: 1;
  }

  footer .footer-top-wrapper {
    border-width: 0 15px 10px 15px;
  }

  footer .footer-top img {
    max-width: 120px;
  }

  footer .socials {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  body {
    --base-size: 1em;
    --iframe-scale-up: 1;
  }

  .mega-inner {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

.recommended .swiper .swiper-slide img {
  width: 300px;
  height: 300px;
  object-fit: contain;
}

/* Search Overlay Styles */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-container {
  position: relative;
  width: 90%;
  max-width: 480px;
  height: 80vh;
  max-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-box {
  background-color: var(--white);
  border-radius: 12px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.search-overlay.active .search-box {
  transform: scale(1);
}

.search-header {
  background-color: var(--primary);
  color: var(--white);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-header h2 {
  font-size: var(--mid-size);
  font-weight: 600;
  margin: 0;
}

.search-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.search-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.search-input-wrapper {
  padding: 24px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-input-wrapper input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: var(--base-size);
  font-family: var(--font);
  transition: var(--transition);
}

.search-input-wrapper input:focus {
  color: gray;
  box-shadow: 0 0 0 3px rgba(247, 28, 91, 0.1);
}

.search-input-wrapper button {
  background-color: var(--primary);
  color: var(--white);
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: var(--base-size);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 100px;
  justify-content: center;
}

.search-input-wrapper button:hover {
  background-color: var(--hover-dark);
  transform: translateY(-1px);
}

.search-results {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.search-results::-webkit-scrollbar {
  width: 8px;
}

.search-results::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.search-placeholder,
.search-loading,
.search-error,
.search-no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  color: var(--secondary);
}

.search-placeholder i,
.search-loading i,
.search-error i,
.search-no-results i {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.search-loading i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.search-placeholder p,
.search-loading p,
.search-error p,
.search-no-results p {
  font-size: var(--base-size);
  margin: 0;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  background-color: var(--white);
}

.search-result-item:hover {
  color: gray;
  box-shadow: 0 4px 12px rgba(247, 28, 91, 0.1);
  transform: translateY(-2px);
}

.search-item-image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.search-item-content {
  flex: 1;
  min-width: 0;
}

.search-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 12px;
}

.search-item-content h4 {
  font-size: var(--base-size);
  font-weight: 500;
  margin-bottom: 0;
  color: var(--black);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.search-item-type {
  font-size: var(--small-size);
  background-color: var(--primary);
  color: var(--white);
  padding: 4px 8px;
  border-radius: 12px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  flex-shrink: 0;
}

.search-item-category {
  font-size: var(--small-size);
  color: gray;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-item-description {
  font-size: 0.9em;
  color: var(--secondary);
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.search-item-arrow {
  flex-shrink: 0;
  color: var(--secondary);
  font-size: 18px;
  opacity: 0.5;
  transition: var(--transition);
}

.search-result-item:hover .search-item-arrow {
  color: gray;
  opacity: 1;
  transform: translateX(4px);
}

/* Responsive Search Styles */
@media screen and (max-width: 768px) {
  .search-container {
    width: 95%;
    height: 90vh;
    max-height: none;
  }

  .search-header {
    padding: 16px 20px;
  }

  .search-header h2 {
    font-size: var(--base-size);
  }

  .search-input-wrapper {
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
  }

  .search-input-wrapper button {
    min-width: auto;
    width: 100%;
  }

  .search-results {
    padding: 20px;
  }

  .search-result-item {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .search-item-image {
    width: 100px;
    height: 100px;
    align-self: center;
  }

  .search-item-header {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .search-item-content h4 {
    white-space: normal;
    text-align: center;
  }

  .search-item-type {
    align-self: center;
  }

  .search-item-arrow {
    transform: rotate(90deg);
  }

  .search-result-item:hover .search-item-arrow {
    transform: rotate(90deg) translateX(4px);
  }
}

@media screen and (max-width: 576px) {
  .search-container {
    width: 98%;
    height: 95vh;
  }

  .search-header {
    padding: 12px 16px;
  }

  .search-input-wrapper {
    padding: 16px;
  }

  .search-results {
    padding: 16px;
  }

  .search-result-item {
    padding: 12px;
  }

  .search-item-image {
    width: 80px;
    height: 80px;
  }
}

.codes {
  display: flex;
  flex-wrap: wrap;
  /* justify-content: center; */
  align-items: center;
  gap: 8px;
}

.code-button {
  color: var(--primary) !important;
  border: 1px solid var(--primary);
  padding: 2px 6px;
  transition: var(--transition);
  font-size: 16px;
}

.code-button:hover,
.code-button.active {
  color: var(--white) !important;
  background-color: var(--primary);
}

a.pagination-button.active {
  background-color: white;
  color: var(--primary);
  border: 1px solid var(--primary);
}
