:root {
  --main-color: #304868;
  --secondary-color: #ffffff;
  --slit-items-color: #f5f5f5;
  --sadow-color: #000000;
}

.text-fluid {
  position: absolute;
  left: calc(50% - 30px);
  top: 500%;
  padding: 7px 10px;
  border-radius: 5px;
  background-color: var(--secondary-color);
  box-shadow: 0 0 15px var(--main-color);
}

.main-content {
  height: -webkit-max-content !important;
  height: -moz-max-content !important;
  height: max-content !important;
}

.footer {
  padding: 10px 0;
  bottom: 0;
  width: 100%;
  height: -webkit-max-content;
  height: -moz-max-content;
  height: max-content;
  margin-top: 50px;
}

a {
  text-decoration: none;
  font-size: 110%;
  color: var(--main-color) !important;
}

a.hover-small:hover {
  transition: 0.3s;
  font-size: 100%;
  color: rgba(0, 0, 0, 0.6);
}

a.hover-small:not(:hover) {
  transition: 0.5s;
}

.img-fluid {
  width: 100%;
}

.product-item-content img {
  width: 100%;
  height: 360px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background-color: var(--secondary-color);
}

.product-item-content {
  /* height: 300px; */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

video.img-fluid:hover {
  transform: none;
}

.img-fluid-hover:hover {
  transition: 0.5s;
  transform: scale(0.95);
  color: var(--main-color);
}

.img-fluid-hover:not(:hover) {
  transition: 0.5s;
}

.product-item-content-hover:hover {
  transition: 0.5s;
  transform: scale(0.95);
}

.product-item-content-hover:not(:hover) {
  transition: 0.5s;
}

.photos > .item {
  padding: 2px;
}

.photos > .item > a {
  position: relative;
}

.max-h-500 {
  max-height: 600px;
}

.carousel-caption {
  top: 25% !important;
  z-index: 2;
}
.carousel-inner video {
  position: relative;
  z-index: 1;
}

.margin-top-50 {
  margin-top: 50px;
}

.container {
  margin-top: 20px;
  margin-bottom: 50px;
}

hr {
  border: 0;
  height: 1px;
  opacity: 1;
  background-color: unset;
  background-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.75),
    rgba(0, 0, 0, 0)
  );
}

.language {
  border: none;
  font-size: 110%;
  padding: 8px 20px 8px 8px;
  margin-right: 10px;
}

.language:focus {
  outline: 0;
  box-shadow: none;
}

.language-option:hover {
  background: rgba(0, 0, 0, 0.3) !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}

.contact {
  padding: 20px;
}

.contact-info > p {
  margin-bottom: 4px;
}

.contact-forms > input {
  width: 100%;
  margin-bottom: 18px;
}

.product-item {
  padding: 10px !important;
}

.product-item-content {
  border-radius: 5px;
  padding: 10px !important;
  /* box-shadow: 0 0 20px rgba(0, 0, 0, 0.18); */
}

.products-filter-collapse {
  display: flex !important;
  flex-basis: auto;
}

.products-filter-collapse-menu {
  position: absolute !important;
  right: 0px;
}

.old-Photo {
  width: 100px;
  height: 100px;
  border: solid 1px var(--main-color);
}

/* Modal styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden; /* Prevent scrolling */
  background-color: rgba(0, 0, 0, 0.9); /* Black background with opacity */
}

.modal-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Center the image */
  width: 70%;
  max-width: 95%; /* Almost full width */
  max-height: 95%; /* Almost full height */
  animation: fadeIn 0.3s ease-in-out;
  object-fit: contain; /* Ensure the image maintains its aspect ratio */
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-success-color {
  background: linear-gradient(
    to left,
    green 0%,
    green 80px,
    var(--secondary-color) 80px
  );
}

.modal-error-color {
  background: linear-gradient(
    to left,
    red 0%,
    red 80px,
    var(--secondary-color) 80px
  );
}

.modal-icon {
  width: 40px;
  height: 40px;
}

.basket-content-img {
  object-fit: cover;
}

.objectfit {
  object-fit: cover;
  width: 117px;
  height: 88px;
}

.splitmain {
  --bs-gutter-x: 1.5rem !important;
}

.main-product-img {
  height: 342px;
  object-fit: contain;
  border: none;
}

textarea:hover,
select:active,
textarea:active,
textarea:focus,
button:focus,
button:active,
button:hover,
label:focus,
.btn:active,
.btn.active {
  outline: 0px !important;
  -webkit-appearance: none;
  box-shadow: none !important;
}

.btn-outline-dark.active:hover {
  color: #fff;
  background-color: #212529;
  border-color: #212529;
}

.btn-outline-dark.active {
  background-color: var(--main-color);
  color: var(--secondary-color);
}

.product-description {
  max-width: 300px;
  max-height: 80px;
  min-height: 50px;
}

.table-add-btn {
  color: var(--secondary-color);
  background-color: green;
}

.table-remove-btn {
  color: var(--secondary-color);
  background-color: red;
}

/* Updated Header Banner Styles */
.header-banner-container {
  width: 100%;
  background-color: white;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1000;
}

.header-banner-container {
  width: 100%;
  background-color: white;
  color: #333;
  text-align: center;
  padding: 5px 0;
  margin: 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1000;
  transition:
    opacity 1s ease,
    transform 1s ease,
    visibility 1s ease;
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.header-banner-container.hidden {
  opacity: 0;
  transform: translateY(-100%);
  visibility: hidden;
}

.site-menu {
  position: relative;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition:
    box-shadow 1s ease-in-out,
    top 1s ease-in-out;
}

.site-menu.fixed {
  position: fixed;
  top: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.header-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  background-color: white;
}

.header-promotion {
  padding: 0;
  background-color: #ffffff;
  border-radius: 0;
  box-shadow: none;
}

.header-promotion a {
  text-decoration: none;
  font-weight: bold;
}

/* Center the active slide */
.rlc-ticker {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.rlc-ticker .swiper-wrapper {
  display: flex;
  justify-content: flex-start;
  transition: transform 1s ease-in-out;
}

.rlc-ticker .rlc-slide {
  flex: 0 0 auto;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
  text-align: center;
  align-items: center;
}

.underline {
  text-decoration: underline;
}

.pagination {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.text-left {
  text-align: left;
}

.btn-dark,
.btn-dark:focus {
  background-color: var(--main-color);
  border-color: var(--main-color);
  color: var(--secondary-color) !important;
}

.box-shadow {
  box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 5px;
}

.configuration-btn {
  border: 2px solid transparent;
  padding: 2px;
  margin: 5px;
  background-color: transparent;
  display: inline-block;
  width: 60px;
  height: 60px;
  overflow: hidden;
  position: relative;
}

.configuration-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.configuration-btn.btn-dark {
  border-color: var(--main-color);
}

button[disabled],
.btn[disabled] {
  position: relative;
  opacity: 0.6;
  pointer-events: none;
  background: #f8f9fa !important;
  color: #aaa !important;
  border-color: #ddd !important;
  overflow: hidden;
}

button[disabled]::after,
.btn[disabled]::after {
  content: "";
  position: absolute;
  left: -30%;
  top: 50%;
  width: 160%;
  height: 3px;
  background: var(--main-color);
  transform: rotate(-20deg) translateY(-50%);
  pointer-events: none;
  opacity: 0.7;
}

.swatch {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  margin-right: 2px;
  vertical-align: middle;
  border: 2px solid #eee;
}

.swatch-count {
  display: inline-block;
  min-width: 32px;
  height: 24px;
  line-height: 24px;
  border-radius: 12px;
  background: #f5f5f5;
  color: #333;
  font-size: 0.95em;
  text-align: center;
  margin-left: 2px;
  vertical-align: middle;
}

.quickshop-btn {
  font-size: 0.9em;
  padding: 2px 16px;
  border-radius: 20px;
  margin-left: 12px;
}

.fields-info .field-item {
  margin-bottom: 2px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .header-banner {
    font-size: 12px;
    padding: 0;
  }

  .header-promotion {
    padding: 0;
  }

  .modal-image {
    width: 80%;
  }
}

@media (max-width: 480px) {
  .header-banner {
    font-size: 10px;
  }

  .header-promotion {
    padding: 0;
  }

  .modal-image {
    width: 100%;
  }
}

@media (min-width: 540px) {
  .text-fluid {
    top: 300%;
  }

  .modal-icon {
    width: 30px;
    height: 30px;
  }

  .modal-success-color {
    background: linear-gradient(to left, green 0%, green 70px, white 70px);
  }

  .modal-error-color {
    background: linear-gradient(to left, red 0%, red 70px, white 70px);
  }

  .modal-content {
    width: 50%;
  }
}

@media (min-width: 768px) {
  /* .navbar-brand.abs {
    position: absolute;
    left: calc(50% - 50px);
    text-align: center;
  } */

  .modal-icon {
    width: 40px;
    height: 40px;
  }

  .modal-success-color {
    background: linear-gradient(to left, green 0%, green 80px, white 80px);
  }

  .modal-error-color {
    background: linear-gradient(to left, red 0%, red 80px, white 80px);
  }

  .modal-content {
    width: 40%;
  }

  .alert-sizing {
    margin: 0;
    font-size: 22px;
  }
}

@media (min-width: 1140px) {
  .text-fluid {
    top: 300%;
  }

  .modal-content {
    width: 28%;
  }
}

@media (min-width: 1400px) {
  .text-fluid {
    top: 500%;
  }

  .modal-content {
    width: 26%;
  }
}

@media (min-width: 1650px) {
  .product-info-container {
    max-width: 1600px;
  }

  .product-info-gallery {
    width: 500px;
  }

  .modal-content {
    width: 20%;
  }
}

.tag-selector {
  height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
}

.tag-search-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  padding: 4px;
  min-height: 38px;
}

.tag-search-box input {
  border: none;
  flex: 1 0 120px;
  min-width: 120px;
}

.tag-search-box .selected-tag {
  background-color: #e9ecef;
  border-radius: 4px;
  padding: 2px 6px;
  display: inline-flex;
  align-items: center;
}

.tag-search-box .remove-tag {
  cursor: pointer;
  margin-left: 4px;
}

.filter-box {
  background: #fff;
  border-radius: 4px;
  box-shadow: rgba(0, 0, 0, 0.1) 0 2px 5px;
  padding: 10px;
}

/* Cookie banner */
#cookieBanner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  color: #333;
  padding: 10px;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 1000;
}

#cookieBanner.show {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

#cookieBanner button {
  margin-left: 5px;
}

.password-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #777;
}

.toggle-password-settings {
  transform: translateY(10%);
}

.toggle-password.visible::before {
  content: "\f070";
}

.toggle-password::before {
  font-family: FontAwesome;
  content: "\f06e";
}

.password-req {
  list-style: none;
  padding-left: 0;
  font-size: 0.9em;
  margin-top: 10px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    opacity 0.3s ease;
}

.password-req li {
  display: flex;
  align-items: center;
}

.password-req.hidden {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

.password-req.visible {
  max-height: 200px;
  opacity: 1;
}

.password-req li.valid {
  color: green;
}

.password-req li.invalid {
  color: red;
}

.quantity-control {
  display: flex;
  align-items: center;
  border: 1px solid #ced4da;
  border-radius: 4px;
  overflow: hidden;
  width: max-content;
}

.quantity-control input[type="number"] {
  width: 50px;
  text-align: center;
  border: none;
  padding: 4px 0;
  -moz-appearance: textfield;
}

.quantity-control input[type="number"]::-webkit-inner-spin-button,
.quantity-control input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-btn {
  width: 32px;
  border: none;
  background: var(--slit-items-color);
  color: var(--main-color);
}

/* Filter & Sort panel */
.fs-panel {
  background: #fff;
  border-radius: 6px;
  box-shadow: rgba(0, 0, 0, 0.08) 0 2px 8px;
  padding: 14px;
}

.fs-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.fs-section + .fs-section {
  border-top: 1px solid #eee;
  margin-top: 12px;
  padding-top: 12px;
}

.fs-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fs-chip {
  border: 1px solid #e2e2e2;
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  line-height: 1;
  font-size: 0.95rem;
}

.fs-chip:hover {
  border-color: var(--main-color);
}
.fs-chip.active {
  background: var(--slit-items-color);
  border-color: var(--main-color);
  color: var(--main-color);
}

.fs-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 14px;
}

/* iOS-like switch */
.fs-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
}
.fs-switch input {
  display: none;
}
.fs-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ddd;
  transition: 0.2s;
  border-radius: 26px;
}
.fs-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  top: 3px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: rgba(0, 0, 0, 0.15) 0 1px 2px;
}
.fs-switch input:checked + .fs-slider {
  background-color: var(--main-color);
}
.fs-switch input:checked + .fs-slider:before {
  transform: translateX(20px);
}

/* re-use your tag-search-box pills */
.tag-search-box .selected-tag {
  background: #f1f3f5;
  border-radius: 12px;
  padding: 2px 8px;
}
.tag-search-box .remove-tag {
  margin-left: 6px;
}

/* mobile spacing */
@media (max-width: 768px) {
  .fs-chip {
    padding: 6px 10px;
    font-size: 0.9rem;
  }
}
