html, body {
  width: 100%;
  min-height: 100%;
}

body {
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  color: #444;
}

legend {
  padding: 7px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #e5e5e5;
}

label {
  font-size: 12px;
  font-weight: normal;
}

/* Chrome border line */
button:focus {
  outline: none !important;
}

/* container */
#container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

/* content */
#content, #column-left, #column-right {
  padding-bottom: 2rem;
}
#alert {
  z-index: 9999;
  position: fixed;
  top: 30%;
  left: 50%;
  width: 320px;
  margin-left: -160px;
}

@media (min-width: 992px) {
  #alert {
    width: 600px;
    margin-left: -300px;
  }
}
@media (min-width: 1140px) {
  #alert {
    width: 600px;
    margin-left: -300px;
  }
}
@media (min-width: 1320px) {
  #alert {
    width: 600px;
    margin-left: -300px;
  }
}
#alert .alert {
  margin-bottom: 15px;
}

#alert .alert-primary {
  box-shadow: 0 0 0 5px rgb(var(--bs-primary-rgb), 0.1);
}

#alert .alert-secondary {
  box-shadow: 0 0 0 5px rgb(var(--bs-secondary-rgb), 0.1);
}

#alert .alert-success {
  box-shadow: 0 0 0 5px rgb(var(--bs-success-rgb), 0.1);
}

#alert .alert-warning {
  box-shadow: 0 0 0 5px rgb(var(--bs-warning-rgb), 0.1);
}

#alert .alert-danger {
  box-shadow: 0 0 0 5px rgb(var(--bs-danger-rgb), 0.1);
}

#alert .alert-info {
  box-shadow: 0 0 0 5px rgb(var(--bs-info-rgb), 0.1);
}

#alert .alert-light {
  box-shadow: 0 0 0 5px rgb(var(--bs-light-rgb), 0.1);
}

#alert .alert-dark {
  box-shadow: 0 0 0 5px rgb(var(--bs-dark-rgb), 0.1);
}

/* top */
#top {
  background-color: var(--bs-tertiary-bg);
  border-bottom: 1px solid var(--bs-border-color);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 5px;
}

#top ul.list-inline {
  margin-bottom: 0;
}

#top .list-inline-item > a, #top .list-inline-item .dropdown > a, #top .list-inline-item .dropdown > span {
  font-size: 1.1em;
  color: var(--bs-gray-600);
  line-height: 40px;
  vertical-align: middle;
  padding: 10px 0px 5px 0px;
}

/* logo */
#logo {
  text-align: center;
  margin: 7px 0 7px 0;
}

#logo img {
  max-width: 200px;
}

@media (min-width: 768px) {
  #logo {
    text-align: left;
  }
}
/* search */
#search {
  margin-bottom: 10px;
}

#search .form-control-lg {
  height: 40px;
  font-size: 12px;
  line-height: 20px;
  padding: 0 10px;
}

#search .btn-lg {
  font-size: 15px;
  line-height: 18px;
  padding: 0.57rem 35px;
  text-shadow: 0 1px 0 #FFF;
}

/* cart */
#cart {
  margin-bottom: 10px;
}

#cart .img-thumbnail {
  min-width: 100px;
}

#cart .btn-lg {
  font-size: 15px;
  line-height: 18px;
  padding: 14px 35px;
}

#cart .dropdown-menu {
  background: #eee;
}

#cart .dropdown-menu li {
  min-width: 300px;
}

@media (max-width: 768px) {
  #cart .dropdown-menu li {
    min-width: 100%;
  }
}
/* menu */
#menu {
  background-color: #229ac8;
  background-image: linear-gradient(to bottom, #23a1d1, #1f90bb);
  background-repeat: repeat-x;
  border: 1px solid #1f90bb;
  border-color: #1f90bb #1f90bb #145e7a;
  min-height: 40px;
  border-radius: 4px;
  padding: 0 1rem;
  margin-bottom: 20px;
}

#menu .navbar-nav > li > a {
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  padding: 10px 15px 10px 15px;
  background-color: transparent;
}

#menu .navbar-nav > li > a:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

#menu .dropdown-menu {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

#menu .dropdown-inner {
  display: flex;
  flex-direction: column;
}

#menu .dropdown-inner ul {
  width: 100%;
  min-width: 200px;
}

@media (min-width: 960px) {
  #menu .dropdown:hover .dropdown-menu {
    display: block;
  }
  #menu .dropdown-inner {
    flex-direction: row;
  }
  #menu .nav-item + .nav-item + .nav-item .dropdown-column-3 {
    left: -200px;
  }
  #menu .nav-item + .nav-item + .nav-item .dropdown-column-4 {
    left: -400px;
  }
  #menu .nav-item + .nav-item + .nav-item + .nav-item .dropdown-column-2 {
    left: -200px;
  }
  #menu .nav-item + .nav-item + .nav-item + .nav-item .dropdown-column-3 {
    left: -400px;
  }
  #menu .nav-item + .nav-item + .nav-item + .nav-item .dropdown-column-4 {
    left: -600px;
  }
}
#category {
  float: left;
  font-size: 16px;
  font-weight: 700;
  line-height: 40px;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

#menu .navbar-toggler i {
  color: #fff;
  border-color: #fff;
  font-size: 0.9em;
}

/* default boostrap changes */
div.required .col-form-label:before, div.required .form-label:before {
  content: "* ";
  color: #F00;
  font-weight: bold;
}

.form-switch-lg {
  font-size: 20px;
  min-height: 30px;
  line-height: 30px;
}

.nav-tabs {
  margin-bottom: 15px;
}

.form-check .form-check-input {
  margin-top: 0.25rem;
}

@media (min-width: 768px) {
  .col-form-label {
    text-align: right;
  }
}
/* footer */
footer {
  border: 1px solid #000000;
  position: static;
  margin-top: auto;
  width: 100%;
  padding-top: 30px;
  background-color: #303030;
  border-top: 1px solid #ddd;
  color: #e2e2e2;
}

footer hr {
  border-top: none;
  border-bottom: 1px solid #666;
}

footer a {
  color: #ccc;
  text-decoration: none;
}

footer a:hover {
  color: #fff;
}

footer h5 {
  font-family: "Open Sans", sans-serif;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* breadcrumb */
.breadcrumb {
  margin: 0 0 20px 0;
  padding: 8px 0;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  background-color: var(--bs-tertiary-bg);
}
.breadcrumb i {
  font-size: 15px;
}
.breadcrumb > li.breadcrumb-item {
  text-shadow: 0 1px 0 #FFF;
  padding: 0 20px;
  position: relative;
  white-space: nowrap;
}
.breadcrumb > li.breadcrumb-item > a {
  text-decoration: none;
}
.breadcrumb > li.breadcrumb-item:after {
  content: "";
  display: block;
  position: absolute;
  top: -3px;
  right: -5px;
  width: 29px;
  height: 29px;
  border-right: 1px solid var(--bs-border-color);
  border-bottom: 1px solid var(--bs-border-color);
  transform: rotate(-45deg);
}
.breadcrumb > li.breadcrumb-item + li:before {
  content: "";
  padding: 0;
}

.product-thumb {
  border: 1px solid #ddd;
  position: relative;
  height: 100%;
}

.product-thumb .image {
  text-align: center;
}

.product-thumb .image a:hover {
  opacity: 0.8;
}

.product-thumb .description {
  padding: 15px;
  margin-bottom: 45px;
}

.product-thumb .description h4 {
  font-weight: bold;
}

.product-thumb .button {
  display: flex;
  position: absolute;
  width: 100%;
  bottom: 0;
}

.product-thumb .button button {
  width: 33.33%;
  border: none;
  border-top: 1px solid var(--bs-border-color);
  background-color: var(--bs-tertiary-bg);
  color: var(--bs-gray-600);
  line-height: 38px;
  text-align: center;
}

.product-thumb .button button:hover {
  color: var(--bs-gray-600);
  background-color: #ddd;
  text-decoration: none;
  cursor: pointer;
}

.product-thumb .button button + button {
  border-left: 1px solid var(--bs-border-color);
}

@media (min-width: 960px) {
  .product-list .product-thumb {
    display: flex;
  }
  .product-list .product-thumb .image {
    flex-direction: column;
    margin-bottom: 0px;
  }
  .product-list .product-thumb .content {
    flex-direction: column;
    flex: 75%;
    position: relative;
  }
  .product-list .product-thumb .button {
    border-left: 1px solid #ddd;
    width: calc(100% - 15px);
    margin-left: 15px;
  }
}
.rating .fa-stack {
  width: 20px;
}

.rating .fa-star {
  color: #999;
  font-size: 15px;
}

.rating .fa-star {
  color: #FC0;
  font-size: 15px;
}

.rating .fa-star + .fa-star {
  color: #E69500;
}

/* product list */
.price {
  color: #444;
}

.price-new {
  font-weight: 600;
}

.price-old {
  color: #dc512c;
  text-decoration: line-through;
}

.price-tax {
  color: #999;
  font-size: 12px;
  display: block;
}

/* blog */
.blog-thumb {
  border: 1px solid #ddd;
  margin-bottom: 15px;
}

.blog-thumb h4 {
  font-weight: bold;
}

.blog-thumb .image {
  text-align: center;
  margin-bottom: 15px;
}

.blog-thumb .image a:hover {
  opacity: 0.8;
}

.blog-thumb .description {
  padding: 15px;
}

/* Theme Custom CSS */
#cookie {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  z-index: 9999;
  opacity: 0.95;
  color: #ecf0f1;
  background: #343a40;
}

#cookie div {
  font-size: 16px;
  color: #FFFFFF;
}

/* Responsive accessibility and legal tables */
#information-information #content > table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 767.98px) {
  .btn,
  #menu .nav-link,
  #menu .dropdown-item {
    min-height: 44px;
  }

  footer a,
  #information-sitemap #content a,
  #product-manufacturer #content a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 4px;
  }

  .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
  }

  .form-check-label {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-left: 0.25rem;
  }
}


/* Valter hybrid theme: legacy identity with responsive OpenCart 4 layout */
:root {
  --valter-header: #e7e7e7;
  --valter-black: #0a0a0a;
  --valter-text: #252525;
  --valter-border: #dddddd;
  --valter-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
}

body {
  color: var(--valter-text);
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
}

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

#top {
  margin-bottom: 0;
  padding: 0;
  border: 0;
  background: var(--valter-header);
}

header {
  padding: 18px 0 16px;
  background: var(--valter-header);
}

header .row {
  align-items: center;
}

#logo {
  margin: 0;
}

#logo img {
  width: 220px;
  max-width: 100%;
}

#search {
  margin: 0;
}

#search .form-control-lg {
  height: 46px;
  border: 1px solid #d6d6d6;
  border-right: 0;
  border-radius: 24px 0 0 24px;
  background: #fff;
  font-size: 15px;
  padding-left: 22px;
}

#search .btn-lg {
  min-width: 56px;
  border: 1px solid #d6d6d6;
  border-left: 0;
  border-radius: 0 24px 24px 0;
  background: #fff;
  color: #111;
  padding: 0 18px;
}

#cart {
  margin-bottom: 0 !important;
}

#cart .btn-lg {
  min-height: 46px;
  border-radius: 23px;
  background: #222;
  padding: 10px 20px;
}

#menu {
  width: 100vw;
  min-height: 50px;
  margin: 0 0 18px calc(50% - 50vw);
  padding-right: max(1rem, calc((100vw - 1280px) / 2));
  padding-left: max(1rem, calc((100vw - 1280px) / 2));
  border: 0;
  border-radius: 0;
  background: var(--valter-black);
  background-image: none;
}

#menu .navbar-nav {
  width: 100%;
  justify-content: center;
}

#menu .navbar-nav > li > a,
#menu .nav-item > .dropdown-item {
  min-height: 50px;
  display: flex;
  align-items: center;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 14px;
}

#menu .navbar-nav > li > a:hover,
#menu .nav-item > .dropdown-item:hover {
  color: #fff;
  background: #272727;
}

#menu .dropdown-menu {
  border: 1px solid #d8d8d8;
  border-radius: 0 0 6px 6px;
  box-shadow: var(--valter-shadow);
}

.valter-home > nav {
  justify-content: center;
  margin: 0 0 18px !important;
  gap: 0 !important;
  border-bottom: 1px solid #e2e2e2;
}

.valter-home > nav .btn {
  border: 0;
  border-radius: 0;
  color: #333;
  background: transparent;
  padding: 10px 17px;
}

.valter-home > nav .btn:hover {
  color: #000;
  background: #f1f1f1;
}

.valter-home > .row.g-3.mb-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 !important;
  overflow: hidden;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  box-shadow: var(--valter-shadow);
}

.valter-home > .row.g-3.mb-4 > div {
  grid-area: 1 / 1;
  width: 100%;
  max-width: 100%;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  animation: valter-hero 12s infinite;
}

.valter-home > .row.g-3.mb-4 > div:nth-child(2) {
  animation-delay: 6s;
}

.valter-home > .row.g-3.mb-4 img {
  display: block;
  width: 100% !important;
  height: auto !important;
  border-radius: 0 !important;
}

@keyframes valter-hero {
  0%, 45% { opacity: 1; visibility: visible; }
  50%, 100% { opacity: 0; visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .valter-home > .row.g-3.mb-4 > div {
    animation: none;
  }
  .valter-home > .row.g-3.mb-4 > div:first-child {
    opacity: 1;
    visibility: visible;
  }
}

.valter-home h2 {
  margin: 28px 0 18px;
  color: #2d2d2d;
  font-size: 28px;
  font-weight: 500;
}

.valter-home .card {
  overflow: hidden;
  border: 1px solid var(--valter-border);
  border-radius: 3px;
  background: #fff;
  color: #222;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.valter-home .card:hover {
  color: #000;
  transform: translateY(-2px);
  box-shadow: none;
}

.valter-home .card img {
  height: 230px !important;
  object-fit: contain !important;
  padding: 8px;
}

.valter-home .card span {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.product-thumb {
  overflow: hidden;
  border-color: var(--valter-border);
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.product-thumb .image {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.product-thumb .image img {
  width: 100%;
  height: 280px;
  object-fit: contain;
}

.product-thumb .description h4 {
  min-height: 44px;
  line-height: 1.35;
}

@media (max-width: 991.98px) {
  header {
    padding-top: 12px;
  }
  #menu {
    padding-right: 16px;
    padding-left: 16px;
  }
  #menu .navbar-nav {
    align-items: stretch;
  }
  .valter-home .card img {
    height: 200px !important;
  }
}

@media (max-width: 767.98px) {
  #top .container {
    padding-right: 12px;
    padding-left: 12px;
  }
  header .row > div {
    width: 100%;
  }
  #logo {
    margin-bottom: 14px;
    text-align: center;
  }
  #logo img {
    width: 190px;
  }
  #search {
    margin-bottom: 12px;
  }
  #cart {
    margin-bottom: 4px !important;
  }
  #menu {
    margin-bottom: 12px;
  }
  .valter-home > nav {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    justify-content: flex-start;
    scrollbar-width: thin;
  }
  .valter-home > nav .btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .valter-home > .row.g-3.mb-4 {
    margin-bottom: 20px !important;
  }
  .valter-home h2 {
    margin-top: 20px;
    font-size: 24px;
  }
  .valter-home .card {
    padding: 10px !important;
  }
  .valter-home .card img {
    height: 170px !important;
    padding: 2px;
  }
  .valter-home .card span {
    min-height: 48px;
    margin-top: 8px !important;
    font-size: 14px;
  }
  .product-thumb .image {
    min-height: 230px;
  }
  .product-thumb .image img {
    height: 210px;
  }
}

@media (max-width: 420px) {
  .valter-home .row.g-3 > .col-6 {
    width: 100%;
  }
  .valter-home .card img {
    height: 240px !important;
  }
}


/* Hybrid theme corrections */
#menu.bg-primary {
  width: 100%;
  margin-right: 0;
  margin-left: 0;
  background-color: var(--valter-black) !important;
  background-image: none !important;
}

@media (min-width: 768px) {
  header .row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(420px, 560px) minmax(220px, 1fr);
    grid-template-rows: auto auto;
    gap: 12px 24px;
  }

  header .row > .col-md-3 {
    grid-column: 2;
    grid-row: 1;
    width: auto;
  }

  header .row > .col-md-5 {
    grid-column: 2;
    grid-row: 2;
    width: auto;
  }

  header #cart {
    grid-column: 3;
    grid-row: 2;
    width: auto;
  }

  #logo {
    text-align: center;
  }
}


/* Header search compatibility */
header form.input-group {
  margin-bottom: 0 !important;
}

header form.input-group .form-control-lg {
  height: 46px;
  border: 1px solid #d6d6d6;
  border-right: 0;
  border-radius: 24px 0 0 24px;
  background: #fff;
  font-size: 15px;
  padding-left: 22px;
}

header form.input-group .btn-lg {
  min-width: 56px;
  border: 1px solid #d6d6d6;
  border-left: 0;
  border-radius: 0 24px 24px 0;
  background: #fff;
  color: #111;
  padding: 0 18px;
}

@media (max-width: 767.98px) {
  header form.input-group {
    margin-bottom: 12px !important;
  }
}


/* Category and subcategory card layout */
.valter-subcategories {
  margin: 28px 0 32px;
}

.valter-subcategories h3 {
  margin-bottom: 16px;
}

.valter-subcategory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.valter-subcategory-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--valter-text);
  text-decoration: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.valter-subcategory-card:hover,
.valter-subcategory-card:focus-visible {
  color: #000;
  transform: translateY(-3px);
  box-shadow: var(--valter-shadow);
}

.valter-subcategory-thumb {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: #fff;
}

.valter-subcategory-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.valter-subcategory-name {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  text-align: center;
  font-size: 15px;
  line-height: 1.35;
  border-top: 0;
  background: transparent;
}

.product-thumb .image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  max-height: 280px;
  object-fit: contain;
}

@media (max-width: 991.98px) {
  .valter-subcategory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .valter-subcategories {
    margin-top: 22px;
  }

  .valter-subcategory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .valter-subcategory-thumb {
    padding: 8px;
  }

  .valter-subcategory-name {
    min-height: 64px;
    padding: 10px 8px;
    font-size: 14px;
  }

  .product-thumb .image img {
    height: auto;
    max-height: 210px;
  }
}

@media (max-width: 360px) {
  .valter-subcategory-grid {
    grid-template-columns: 1fr;
  }
}


#product-category #content > .row .img-thumbnail {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}


/* Valter typography system: Inter */
html,
body {
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
}

p,
.product-thumb .description p,
#product-description,
.table,
.form-control,
.form-select {
  font-weight: 400;
}

#menu .navbar-nav > li > a,
#menu .nav-item > .dropdown-item,
.valter-subcategory-name,
aside a,
.breadcrumb,
.nav-link {
  font-weight: 500;
}

.product-thumb .description h4,
.product-thumb .description h4 a,
.product-thumb .price,
.btn,
button,
.pagination {
  font-weight: 600;
}

h1,
.h1 {
  font-weight: 700;
}

h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
}

@media (max-width: 767.98px) {
  html,
  body {
    font-size: 15px;
  }
}


/* Compact Valter header utilities */
#top {
  display: none;
}

.valter-site-header {
  padding: 18px 0 16px;
}

.valter-header-grid {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(420px, 560px) minmax(260px, 1fr);
  grid-template-areas:
    ". logo ."
    "social search tools";
  gap: 12px 24px;
  align-items: center;
}

.valter-header-grid #logo {
  grid-area: logo;
  text-align: center;
}

.valter-header-grid #logo img {
  width: 220px;
}

.valter-socials {
  grid-area: social;
  display: flex;
  align-items: center;
  gap: 10px;
}

.valter-socials a,
.valter-tool-link,
.valter-language > .dropdown > [role="button"],
.valter-header-cart .btn-lg {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1.5px solid #111;
  border-radius: 50%;
  background: transparent;
  color: #111;
  line-height: 1;
  text-decoration: none;
  box-shadow: none;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.valter-socials a:hover,
.valter-tool-link:hover,
.valter-language > .dropdown > [role="button"]:hover,
.valter-header-cart .btn-lg:hover {
  color: #fff;
  background: #111;
  transform: translateY(-1px);
}

.valter-socials i,
.valter-tool-link i,
.valter-header-cart .btn-lg i {
  font-size: 20px;
}

.valter-header-search {
  grid-area: search;
}

.valter-header-tools {
  grid-area: tools;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.valter-language {
  margin: 0;
}

.valter-language img,
.valter-language .d-none,
.valter-language .fa-caret-down {
  display: none !important;
}

.valter-language > .dropdown > [role="button"]::before {
  content: "LV";
  font-size: 13px;
  font-weight: 600;
}

html[lang^="en"] .valter-language > .dropdown > [role="button"]::before {
  content: "EN";
}

.valter-language .dropdown-menu {
  min-width: 150px;
  margin-top: 8px;
}

.valter-language .dropdown-menu img {
  display: inline-block !important;
}

.valter-tool-link span {
  position: absolute;
  top: -5px;
  right: -6px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.valter-header-cart {
  width: auto !important;
  margin: 0 !important;
}

.valter-header-cart .dropdown {
  display: block !important;
}

.valter-header-cart .btn-lg {
  font-size: 0;
}

.valter-header-cart .btn-lg i {
  font-size: 20px;
}

.valter-header-cart .dropdown-toggle::after {
  display: none;
}

.valter-header-cart .dropdown-menu {
  min-width: 360px;
}

@media (max-width: 991.98px) {
  .valter-header-grid {
    grid-template-columns: 1fr minmax(330px, 1.5fr) 1fr;
    gap: 12px 16px;
  }

  .valter-socials,
  .valter-header-tools {
    gap: 8px;
  }

  .valter-socials a,
  .valter-tool-link,
  .valter-language > .dropdown > [role="button"],
  .valter-header-cart .btn-lg {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
  }
}

@media (max-width: 767.98px) {
  .valter-site-header {
    padding-top: 12px;
  }

  .valter-header-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "logo logo"
      "search search"
      "social tools";
    gap: 12px;
  }

  .valter-header-grid #logo img {
    width: 190px;
  }

  .valter-socials {
    justify-content: flex-start;
  }

  .valter-header-tools {
    justify-content: flex-end;
  }

  .valter-socials a,
  .valter-tool-link,
  .valter-language > .dropdown > [role="button"],
  .valter-header-cart .btn-lg {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  .valter-header-cart .dropdown-menu {
    position: fixed !important;
    right: 12px !important;
    left: 12px !important;
    width: auto;
    min-width: 0;
  }
}


/* Header icon rendering and overflow corrections */
.valter-socials a {
  overflow: hidden;
}

.valter-facebook-mark {
  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(2px);
}

.valter-instagram-mark {
  width: 20px;
  height: 20px;
  position: relative;
  display: block;
  border: 2px solid currentColor;
  border-radius: 6px;
}

.valter-instagram-mark::before {
  content: "";
  width: 7px;
  height: 7px;
  position: absolute;
  top: 50%;
  left: 50%;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.valter-instagram-mark::after {
  content: "";
  width: 3px;
  height: 3px;
  position: absolute;
  top: 3px;
  right: 3px;
  border-radius: 50%;
  background: currentColor;
}

.valter-tiktok-mark {
  font-family: Arial, sans-serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
}

.valter-language form > .dropdown > [role="button"] {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #111;
  border-radius: 50%;
  background: transparent;
  color: #111;
  line-height: 1;
}

.valter-language form > .dropdown > [role="button"]::before {
  content: "LV";
  font-size: 13px;
  font-weight: 600;
}

html[lang^="en"] .valter-language form > .dropdown > [role="button"]::before {
  content: "EN";
}

#cart.valter-header-cart .btn-lg {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  overflow: visible;
  position: relative;
  padding: 0 !important;
  font-size: 0 !important;
  white-space: nowrap;
}

#cart.valter-header-cart .btn-lg i {
  font-size: 20px !important;
}

#cart.valter-header-cart .dropdown-toggle::after {
  content: attr(data-count);
  width: 19px;
  height: 19px;
  min-width: 19px;
  margin: 0;
  position: absolute;
  top: -6px;
  right: -7px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .valter-language form > .dropdown > [role="button"],
  #cart.valter-header-cart .btn-lg {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
  }
}

@media (max-width: 767.98px) {
  .valter-language form > .dropdown > [role="button"],
  #cart.valter-header-cart .btn-lg {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
}


/* Wishlist label and neutral cart state */
.valter-wishlist-link > span {
  display: none !important;
}

.valter-wishlist-link::after {
  content: attr(data-count);
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  position: absolute;
  top: -6px;
  right: -7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

#cart.valter-header-cart .btn-lg,
#cart.valter-header-cart .btn-dark {
  border: 1.5px solid #111 !important;
  background: transparent !important;
  color: #111 !important;
  box-shadow: none !important;
}

#cart.valter-header-cart .btn-lg:hover,
#cart.valter-header-cart .btn-lg:focus,
#cart.valter-header-cart .btn-lg.show {
  background: #111 !important;
  color: #fff !important;
}


/* Consistent language flag presentation */
.valter-language .dropdown-menu .dropdown-item {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.valter-language .dropdown-menu .dropdown-item img {
  width: 24px !important;
  height: 16px !important;
  min-width: 24px;
  margin: 0 !important;
  display: block !important;
  object-fit: cover;
  border: 1px solid #d7d7d7;
  border-radius: 1px;
}


/* Focused product purchase panel */
#product-info #content > .row > .col-sm:last-child {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

#product-info #content > .row > .col-sm:last-child > h1 {
  order: 1;
  margin-bottom: 18px;
}

#product-info #content > .row > .col-sm:last-child > ul.list-unstyled:first-of-type {
  display: none;
}

#product-info #content > .row > .col-sm:last-child > .rating {
  order: 3;
  margin-bottom: 8px;
}

#product-info #content > .row > .col-sm:last-child > .rating p {
  margin-bottom: 0;
}

#product-info #content > .row > .col-sm:last-child > ul.list-unstyled:not(:first-of-type) {
  order: 2;
  margin: 0 0 16px;
}

#product-info #content > .row > .col-sm:last-child > ul.list-unstyled:not(:first-of-type) > li:not(:first-child) {
  display: none;
}

#product-info #content > .row > .col-sm:last-child > ul.list-unstyled h2 {
  margin: 0;
  font-size: 46px;
  line-height: 1.08;
  font-weight: 700;
}

#product-info #content > .row > .col-sm:last-child > form[data-oc-toggle="ajax"] {
  order: 5;
  margin-top: 10px;
}

#product-info #content > .row > .col-sm:last-child > form[data-oc-toggle="ajax"] + br {
  display: none;
}

#product-info #content > .row > .col-sm:last-child > form[data-oc-toggle="ajax"] .btn-group {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 28px;
}

#product-info #content > .row > .col-sm:last-child > form[data-oc-toggle="ajax"] .btn {
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #333;
  box-shadow: none;
  font-size: 14px;
}

#product-info #content > .row > .col-sm:last-child > form[data-oc-toggle="ajax"] .btn:first-child::after {
  content: "Vēlmēm";
}

#product-info #content > .row > .col-sm:last-child > form[data-oc-toggle="ajax"] .btn:nth-child(2)::after {
  content: "Salīdzināt";
}

html[lang^="en"] #product-info #content > .row > .col-sm:last-child > form[data-oc-toggle="ajax"] .btn:first-child::after {
  content: "List";
}

html[lang^="en"] #product-info #content > .row > .col-sm:last-child > form[data-oc-toggle="ajax"] .btn:nth-child(2)::after {
  content: "Compare";
}

#product-info #content > .row > .col-sm:last-child > form[data-oc-toggle="ajax"] .btn:hover {
  color: #000;
  background: #f2f2f2;
}

#product-info #product {
  order: 4;
  margin-top: 8px;
}

#product-info #form-product .mb-3 {
  margin-bottom: 0 !important;
}

#product-info #form-product .input-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
}

#product-info #form-product .input-group-text {
  display: none;
}

#product-info #input-quantity {
  width: 64px;
  min-width: 64px;
  max-width: 64px;
  height: 50px;
  flex: 0 0 64px;
  border: 0;
  border-radius: 25px;
  background: #efefef;
  text-align: center;
  font-weight: 600;
}

#product-info #button-cart {
  min-height: 50px;
  flex: 1 1 auto;
  border: 1px solid #111;
  border-radius: 25px;
  background: #111;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-transform: none;
}

#product-info #button-cart:hover,
#product-info #button-cart:focus {
  background: #333;
  border-color: #333;
  color: #fff;
}

@media (max-width: 767.98px) {
  #product-info #content > .row > .col-sm:last-child > h1 {
    margin-top: 20px;
    font-size: 28px;
  }

  #product-info #content > .row > .col-sm:last-child > ul.list-unstyled h2 {
    font-size: 40px;
  }

  #product-info #form-product .input-group {
    gap: 8px;
  }

  #product-info #input-quantity {
    width: 56px;
    min-width: 56px;
    max-width: 56px;
    flex-basis: 56px;
  }

  #product-info #content > .row > .col-sm:last-child > form[data-oc-toggle="ajax"] .btn-group {
    gap: 12px;
  }
}


#product-info #content > .row.mb-3 > .col-sm > .rating {
  display: none;
}


/* Manufacturer logo and VAT note on product page */
#product-info .valter-manufacturer-logo {
  order: 0;
  width: fit-content;
  max-width: 220px;
  min-height: 48px;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
}

#product-info .valter-manufacturer-logo img {
  width: auto;
  height: auto;
  max-width: 220px;
  max-height: 72px;
  display: block;
  object-fit: contain;
}

#product-info .valter-vat-note {
  order: 3;
  margin: -10px 0 14px;
  color: #666;
  font-size: 12px;
  line-height: 1.4;
}

#product-info #content > .row > .col-sm:last-child > ul.list-unstyled h2 {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

@media (max-width: 767.98px) {
  #product-info .valter-manufacturer-logo {
    max-width: 180px;
    min-height: 40px;
    margin-top: 18px;
  }

  #product-info .valter-manufacturer-logo img {
    max-width: 180px;
    max-height: 60px;
  }

  #product-info #content > .row > .col-sm:last-child > h1 {
    margin-top: 0;
  }

  #product-info #content > .row > .col-sm:last-child > ul.list-unstyled h2 {
    font-size: 46px;
  }
}


/* Main top-category cards: frameless with stronger desktop hover */
.valter-home .card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.valter-home .card img {
  transition: transform 0.28s ease;
  transform-origin: center center;
}

@media (hover: hover) and (pointer: fine) {
  .valter-home .card {
    transition: transform 0.28s ease, color 0.18s ease;
  }

  .valter-home .card:hover,
  .valter-home .card:focus-visible {
    transform: translateY(-7px);
    box-shadow: none;
  }

  .valter-home .card:hover img,
  .valter-home .card:focus-visible img {
    transform: scale(1.07);
  }
}

@media (prefers-reduced-motion: reduce) {
  .valter-home .card,
  .valter-home .card img {
    transition: none;
  }

  .valter-home .card:hover,
  .valter-home .card:focus-visible,
  .valter-home .card:hover img,
  .valter-home .card:focus-visible img {
    transform: none;
  }
}


/* One full top-category image rotation on desktop hover */
@keyframes valter-category-spin-once {
  0% {
    transform: scale(1) rotateY(0deg);
  }
  50% {
    transform: scale(1.1) rotateY(180deg);
  }
  100% {
    transform: scale(1.07) rotateY(360deg);
  }
}

@media (hover: hover) and (pointer: fine) {
  .valter-home .card {
    perspective: 900px;
  }

  .valter-home .card:hover img,
  .valter-home .card:focus-visible img {
    animation: valter-category-spin-once 0.8s ease-in-out 1 forwards;
    backface-visibility: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  .valter-home .card:hover img,
  .valter-home .card:focus-visible img {
    animation: none;
  }
}


/* Manufacturer logos inside category pages */
#product-category .valter-category-intro {
  margin-bottom: 18px;
}

#product-category .valter-category-main-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

#product-category .valter-category-main-image img {
  width: 100%;
  max-width: 260px;
  height: 210px;
  object-fit: contain;
}

#product-category .valter-category-manufacturers {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  align-items: center;
  gap: 20px 24px;
  padding: 18px 8px;
}

#product-category .valter-category-manufacturer {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  text-decoration: none;
}

#product-category .valter-category-manufacturer img {
  width: auto;
  height: auto;
  max-width: 170px;
  max-height: 68px;
  object-fit: contain;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

@media (hover: hover) and (pointer: fine) {
  #product-category .valter-category-manufacturer:hover img,
  #product-category .valter-category-manufacturer:focus-visible img {
    transform: scale(1.09);
  }
}

@media (max-width: 767.98px) {
  #product-category .valter-category-main-image img {
    max-width: 220px;
    height: 180px;
  }

  #product-category .valter-category-manufacturers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 20px 0 8px;
  }

  #product-category .valter-category-manufacturer img {
    max-width: 135px;
    max-height: 58px;
  }
}


/* Full manufacturer carousel shown when a category has more than ten brands */
#product-category .valter-manufacturer-carousel-section {
  margin: 42px 0 12px;
  padding-top: 26px;
  border-top: 1px solid #dedede;
}

#product-category .valter-manufacturer-carousel-mobile-only {
  display: none;
}

#product-category .valter-manufacturer-carousel-section h2 {
  margin: 0 0 20px;
  font-size: 25px;
  font-weight: 600;
}

#product-category .valter-manufacturer-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 10px 0 18px;
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}

#product-category .valter-manufacturer-carousel-track {
  width: max-content;
  display: flex;
  animation: valter-manufacturer-scroll var(--valter-carousel-duration, 42s) linear infinite;
  will-change: transform;
}

#product-category .valter-manufacturer-carousel-group {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
}

#product-category .valter-manufacturer-carousel-item {
  width: 190px;
  height: 82px;
  flex: 0 0 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#product-category .valter-manufacturer-carousel-item img {
  width: auto;
  height: auto;
  max-width: 155px;
  max-height: 66px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

#product-category .valter-manufacturer-carousel:hover .valter-manufacturer-carousel-track,
#product-category .valter-manufacturer-carousel:focus-within .valter-manufacturer-carousel-track {
  animation-play-state: paused;
}

#product-category .valter-manufacturer-carousel-item:hover img,
#product-category .valter-manufacturer-carousel-item:focus-visible img {
  transform: scale(1.08);
}

@keyframes valter-manufacturer-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-25%, 0, 0);
  }
}

@media (max-width: 767.98px) {
  #product-category .valter-category-manufacturers {
    display: none;
  }

  #product-category .valter-manufacturer-carousel-mobile-only {
    display: block;
  }

  #product-category .valter-manufacturer-carousel-section {
    margin-top: 30px;
  }

  #product-category .valter-manufacturer-carousel-section h2 {
    font-size: 21px;
  }

  #product-category .valter-manufacturer-carousel-group {
    gap: 0;
    padding: 0;
  }

  #product-category .valter-manufacturer-carousel-item {
    width: 140px;
    height: 68px;
    flex-basis: 140px;
  }

  #product-category .valter-manufacturer-carousel-item img {
    max-width: 118px;
    max-height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #product-category .valter-manufacturer-carousel {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }

  #product-category .valter-manufacturer-carousel-track {
    animation: none;
  }

  #product-category .valter-manufacturer-carousel-group[aria-hidden="true"] {
    display: none;
  }
}


/* Hide the top-category heading on the home page */
.valter-home > h2 {
  display: none;
}


/* Visual manufacturer directory */
#product-manufacturer .valter-brand-directory-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 34px;
}

#product-manufacturer .valter-brand-directory-card {
  min-width: 0;
  min-height: 132px;
  padding: 14px 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #e7e7e7;
  border-radius: 4px;
  background: #fff;
  color: #222;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#product-manufacturer .valter-brand-directory-logo {
  width: 100%;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#product-manufacturer .valter-brand-directory-logo img {
  width: auto;
  height: auto;
  max-width: 165px;
  max-height: 70px;
  object-fit: contain;
}

#product-manufacturer .valter-brand-directory-fallback {
  max-width: 100%;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

#product-manufacturer .valter-brand-directory-name {
  width: 100%;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

@media (hover: hover) and (pointer: fine) {
  #product-manufacturer .valter-brand-directory-card:hover,
  #product-manufacturer .valter-brand-directory-card:focus-visible {
    border-color: #b9b9b9;
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  }
}

@media (max-width: 991.98px) {
  #product-manufacturer .valter-brand-directory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  #product-manufacturer .valter-brand-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  #product-manufacturer .valter-brand-directory-card {
    min-height: 116px;
    padding: 10px 8px;
  }

  #product-manufacturer .valter-brand-directory-logo {
    height: 62px;
  }

  #product-manufacturer .valter-brand-directory-logo img {
    max-width: 125px;
    max-height: 58px;
  }
}


/* Modern live product search */
.valter-live-search {
  position: relative;
  width: 100%;
  z-index: 1060;
}

.valter-live-search .input-group {
  flex-wrap: nowrap;
}

.valter-live-search input[type="search"] {
  min-width: 0;
}

.valter-live-search input[type="search"]::-webkit-search-cancel-button {
  cursor: pointer;
}

.valter-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: min(70vh, 620px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #dedede;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  text-align: left;
  z-index: 1065;
}

.valter-search-results[hidden] {
  display: none;
}

.valter-search-list {
  padding: 6px;
}

.valter-search-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding: 6px 10px;
  border-radius: 10px;
  color: #181818;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.valter-search-item:hover,
.valter-search-item:focus,
.valter-search-item.is-active {
  color: #000;
  background: #f3f3f3;
  outline: none;
}

.valter-search-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 7px;
  background: #fff;
}

.valter-search-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.valter-search-name {
  display: -webkit-box;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.valter-search-meta {
  overflow: hidden;
  color: #707070;
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.valter-search-price {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 2px;
  padding-left: 8px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.valter-search-price strong {
  color: #d82525;
}

.valter-search-price del {
  color: #888;
  font-size: 12px;
  font-weight: 400;
}

.valter-search-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 12px 18px;
  border-top: 1px solid #e8e8e8;
  border-radius: 0 0 14px 14px;
  background: #fafafa;
  color: #111;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.valter-search-all::after {
  content: "\2192";
  font-size: 21px;
  line-height: 1;
}

.valter-search-all small {
  margin-left: auto;
  color: #777;
  font-size: 12px;
  font-weight: 500;
}

.valter-search-all:hover,
.valter-search-all:focus {
  color: #000;
  background: #efefef;
}

.valter-search-empty,
.valter-search-loading {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  color: #666;
  font-size: 14px;
}

.valter-search-loading span {
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-top-color: #111;
  border-radius: 50%;
  animation: valter-search-spin 0.7s linear infinite;
}

@keyframes valter-search-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 575.98px) {
  .valter-search-results {
    left: -4px;
    right: -4px;
    max-height: min(68vh, 520px);
    border-radius: 12px;
  }

  .valter-search-item {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 10px;
    min-height: 74px;
    padding: 7px;
  }

  .valter-search-item img {
    width: 60px;
    height: 60px;
  }

  .valter-search-price {
    grid-column: 2;
    align-items: flex-start;
    padding: 0;
    font-size: 14px;
  }

  .valter-search-all {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    padding: 11px 14px;
  }

  .valter-search-all::after {
    position: absolute;
    right: 14px;
  }

  .valter-search-all small {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .valter-search-loading span {
    animation-duration: 1.4s;
  }
}

.valter-search-all { position: relative; }


/* Mobile product pages: prevent horizontal overflow in Android and iOS Safari */
@media (max-width: 767.98px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  main,
  main > .container,
  #product-info,
  #product-info #content,
  #product-info #content > .row,
  #product-info #content > .row > [class*="col"],
  #product-info .image,
  #product-info .magnific-popup {
    min-width: 0;
    max-width: 100%;
  }

  .breadcrumb {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 9px;
    padding: 10px 12px;
    overflow: hidden;
  }

  .breadcrumb > li.breadcrumb-item {
    min-width: 0;
    max-width: 100%;
    padding: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .breadcrumb > li.breadcrumb-item::after {
    display: none;
  }

  .breadcrumb > li.breadcrumb-item + li::before {
    content: "/";
    display: inline-block;
    padding: 0 7px 0 0;
    color: #a6a6a6;
  }

  .breadcrumb > li.breadcrumb-item:last-child {
    width: 100%;
    flex: 1 1 100%;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .breadcrumb > li.breadcrumb-item:last-child::before {
    display: none;
  }

  .breadcrumb > li.breadcrumb-item > a {
    max-width: 100%;
  }

  #product-info .image > a,
  #product-info .image > a > img,
  #product-info .img-thumbnail.mb-3 {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  #product-info .image > div {
    min-width: 0;
    max-width: 100%;
  }

  #product-info .image > div .img-thumbnail {
    width: auto;
    max-width: 100%;
    height: auto;
  }

  #product-info h1,
  #product-info .nav-tabs,
  #product-info .tab-content,
  #product-info #product-description,
  #product-info table {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  #product-info .table-responsive {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
