.product-img {
  height: 220px;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.3s ease;
}

.product-img:hover {
  transform: scale(1.05);
}

.card {
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.card:hover {
  background-color: var(--sm-gray-100);
  border-color: var(--sm-gray-500);
  cursor: pointer;
}

.product-list-item-wrapper {
  transition: background-color 0.2s ease;
  border-radius: 8px;
  padding: 5px 0;
}

.product-list-item-wrapper:hover {
  background-color: var(--sm-gray-100);
  cursor: pointer;
}

.product-name {
  height: 3em;
  line-height: 1.5em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

.card-title:hover {
  text-decoration: underline;
  cursor: pointer;
}

.sort-dropdown .btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 8px;
  border-color: var(--sm-gray-300);
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  background-color: var(--sm-white);
}

.sort-dropdown .btn::before {
  font-family: "bootstrap-icons";
  content: "\f5d3";
  font-size: 1rem;
  color: var(--sm-text-muted);
}

.sort-dropdown .btn:hover,
.sort-dropdown .btn:focus {
  color: var(--sm-gray-900);
  background-color: var(--sm-gray-100);
  border-color: var(--sm-gray-500);
  box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--sm-gray-500) 50%, transparent);
}

.sort-dropdown .dropdown-menu {
  border-radius: 8px;
  border: 1px solid var(--sm-gray-200);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  margin-top: 0.5rem !important;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  pointer-events: none;
}

.sort-dropdown .dropdown-menu.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sort-dropdown .dropdown-item {
  padding: 0.6rem 1.2rem;
  font-weight: 500;
  color: var(--sm-gray-700);
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.sort-dropdown .dropdown-item:hover,
.sort-dropdown .dropdown-item:focus {
  background-color: var(--sm-gray-150);
  color: var(--sm-gray-900);
}

.sort-dropdown .dropdown-item:active {
  background-color: var(--sm-accent);
  color: var(--sm-white);
}

.sidebar-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  background-color: var(--sm-gray-100);
  border-right: 1px solid var(--sm-gray-300);
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.sidebar-wrapper > hr {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

#sidebar-content {
  flex-grow: 1;
  overflow-y: auto;
  margin-top: 1rem;
}

.sidebar-tabs {
  display: flex;
  background-color: var(--sm-gray-200);
  border-radius: 8px;
  padding: 4px;
  border: 1px solid var(--sm-gray-300);
}

@media (max-width: 1300.98px) {
  .sidebar-tabs {
    flex-direction: column;
  }

  .sidebar-tabs .btn-tab {
    width: 100%;
  }
}

.sidebar-tabs .btn-tab {
  flex: 1;
  border: none;
  background-color: transparent;
  color: var(--sm-gray-700);
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  padding: 0.5rem 0;
}

.sidebar-tabs .btn-tab:not(.active):hover {
  background-color: var(--sm-gray-150);
  color: var(--sm-gray-900);
}

.sidebar-tabs .btn-tab.active {
  background-color: var(--sm-primary);
  color: var(--sm-white);
  border-radius: 6px;
  box-shadow: 0 3px 6px rgba(78, 78, 78, 0.2);
  font-weight: 600;
}

.category-list {
  list-style: none;
  padding: 0;
}

.category-list li {
  margin-bottom: 2px;
}

.category-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.5rem;
  text-decoration: none;
  color: var(--sm-gray-800);
  border-radius: 6px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
  font-weight: 500;
}

.category-list li a.active,
.category-list li a:hover {
  color: var(--sm-gray-900);
  background-color: var(--sm-gray-200);
}

.category-list li a:focus {
  outline: none;
  box-shadow: none;
}

.category-list li a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--sm-gray-600) 25%, transparent);
}

.category-list ul {
  list-style: none;
  padding-left: 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.category-list li.expanded > ul {
  max-height: 999999px;
  transition: max-height 0.5s ease-in;
}

.category-chevron {
  transition: transform 0.3s ease;
}

.category-list li.expanded > a > .category-chevron {
  transform: rotate(90deg);
}

.category-list li.loading > a > .category-chevron::before {
  content: "\F5D2";
  font-family: "bootstrap-icons";
  display: inline-block;
  animation: spin 1s linear infinite;
}

.category-list li.loading > a > .category-chevron {
  opacity: 0;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.products-main-content {
  padding: 2rem;
}

#view-toggle-icons .view-toggle-btn {
  color: var(--sm-text-muted);
  cursor: pointer;
  padding: 0 1px;
  border-radius: 0.1rem;
  transition: all 0.2s ease-in-out;
}

#view-toggle-icons .view-toggle-btn:hover {
  color: var(--sm-gray-800);
  background-color: var(--sm-gray-200);
  border-radius: 6px;
}

#pagination-container {
  margin-top: 1rem;
}

#pagination-container .pagination {
  margin: 0;
}

#pagination-container .page-item {
  margin: 0 2px;
}

#pagination-container .page-link {
  color: var(--sm-primary);
  background-color: var(--sm-white);
  border: 1px solid var(--sm-primary);
  border-radius: 0.25rem;
  transition: all 0.2s;
}

#pagination-container .page-link:hover {
  color: var(--sm-white);
  background-color: var(--sm-primary);
  text-decoration: none;
}

#pagination-container .page-item.active .page-link {
  z-index: 1;
  color: var(--sm-white);
  background-color: var(--sm-primary);
  border-color: var(--sm-primary);
}

#pagination-container .page-item.disabled .page-link {
  color: var(--sm-gray-500);
  pointer-events: none;
  background-color: var(--sm-white);
  border-color: var(--sm-gray-300);
}

#pagination-container .page-item.disabled span.page-link {
  background-color: var(--sm-white);
  border-color: var(--sm-white);
  color: var(--sm-text-muted);
  cursor: default;
}

.fixed-filter-wrapper {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1050;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background-color: var(--sm-primary);
  color: var(--sm-white);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.fixed-filter-wrapper:hover {
  transform: scale(1.08);
  background-color: var(--sm-primary-hover);
}

.fixed-filter-wrapper i {
  font-size: 1.8rem;
  line-height: 1;
}

.fixed-filter-wrapper span {
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
}

body.mobile-sidebar-open {
  overflow: hidden;
}

.mobile-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1060;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.mobile-sidebar-overlay.show {
  opacity: 1;
  visibility: visible;
}

.mobile-sidebar-content {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--sm-white);
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
}

.mobile-sidebar-overlay.show .mobile-sidebar-content {
  transform: translateX(0);
}

.mobile-sidebar-header {
  display: flex;
  justify-content: flex-end;
  padding: 1rem;
  border-bottom: 1px solid var(--sm-gray-300);
}

.mobile-sidebar-body {
  flex-grow: 1;
  overflow-y: auto;
}

.mobile-sidebar-body .sidebar-wrapper {
  height: auto;
  position: static;
  border-right: none;
  padding: 0;
}

.filter-list {
  list-style: none;
  padding: 0;
}

.filter-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.5rem;
  text-decoration: none;
  color: var(--sm-gray-800);
  border-radius: 6px;
  transition: background-color 0.2s ease;
  font-weight: 500;
}

.filter-group-header:has(.filter-chevron):hover {
  background-color: var(--sm-gray-200);
}

.filter-chevron {
  transition: transform 0.3s ease;
}

.filter-group.expanded > .filter-group-header > .filter-chevron {
  transform: rotate(90deg);
}

.subfilter-container {
  padding-left: 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.filter-group.expanded > .subfilter-container {
  max-height: 9999px;
  transition: max-height 0.5s ease-in;
}

.subfilter-list {
  list-style: none;
  padding: 0.5rem 0 0.5rem 0.5rem;
}

.subfilter-item .form-check {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.subfilter-item .form-check-label {
  font-weight: normal;
  color: var(--sm-black);
  cursor: pointer;
}

#view-toggle-icons .view-toggle-btn {
  cursor: pointer;
  transition: color 0.2s ease-in-out;
}

#view-toggle-icons .view-toggle-btn.active {
  color: var(--sm-black);
  cursor: default;
}

.product-img-list {
  width: 100%;
  height: 200px;
  object-fit: contain;
  padding: 1rem;
}

#product-list-container
  .product-list-item-wrapper:not(:first-child)
  .product-list-header {
  display: none !important;
}

#product-list-container .product-list-item-wrapper:last-child hr {
  display: none;
}

@media (min-width: 768px) {
  .product-img-list {
    height: 100%;
  }
}
.product-name:hover {
  text-decoration: underline;
}
.form-check-input {
  cursor: pointer;
}
.active-filter-badge {
  padding: 0.5rem 0.5rem;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
}
.active-filter-badge i {
  margin-left: 0.3rem;
  cursor: pointer;
}
.form-check-input {
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid var(--sm-gray-500);
  border-radius: 4px;
  background-color: var(--sm-gray-100);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.form-check-input:checked {
  background-color: var(--sm-primary);
  border-color: var(--sm-primary);
  box-shadow: 0 0 4px color-mix(in srgb, var(--sm-primary) 50%, transparent);
}

.form-check-input:hover {
  border-color: var(--sm-gray-700);
}

#breadcrumb .breadcrumb {
  margin-bottom: 0;
  font-size: 1rem;
  background-color: transparent;
  padding: 0;
}

#breadcrumb .breadcrumb-item a {
  color: var(--sm-text-muted);
  text-decoration: none;
  transition: text-decoration 0.2s ease-in-out;
}

#breadcrumb .breadcrumb-item a:hover {
  text-decoration: underline;
}

#breadcrumb .breadcrumb-item.active {
  color: var(--sm-gray-900);
  font-weight: 500;
}

@media (max-width: 767.98px) {
  #view-toggle-icons {
    display: none !important;
  }
}
#active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 0.5rem;
}

.mobile-sidebar-footer {
  padding: 1rem;
  border-top: 1px solid var(--sm-gray-300);
  background-color: var(--sm-gray-100);
  flex-shrink: 0;
  display: flex;
}

.mobile-sidebar-footer button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

@media (min-width: 992px) {
  .col-lg-2:has(> .sidebar-wrapper) {
    flex-basis: 20%;
    max-width: 20%;
  }

  .col-lg-10:has(> .products-main-content) {
    flex-basis: 80%;
    max-width: 80%;
  }
}

.logo {
  width: 150px;
}
body.menu-open #category-filter-btn {
  display: none;
}

.btn-add-to-cart {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--sm-primary);
  color: var(--sm-white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-add-to-cart:hover {
  background-color: var(--sm-primary-active);
  transform: scale(1.1);
}

.btn-add-to-cart.added {
  background-color: var(--sm-success);
}

.btn-add-to-cart-inline {
  position: static;
  flex-shrink: 0;
}

.btn-add-to-cart-inline:hover {
  transform: scale(1.1);
}

@media (max-width: 767.98px) {
  .btn-add-to-cart {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
    bottom: 14px;
    right: 14px;
  }
}

.product-badges-container {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.product-badge {
  padding: 4px 8px;
  font-size: 12px;
  font-weight: bold;
  color: var(--sm-white);
  border-radius: 4px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.currency-rsd {
  font-weight: 400 !important;
  font-size: 0.75em;
  vertical-align: baseline;
  color: var(--sm-text-muted);
}
.product-price {
  font-size: 1.4rem !important;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

#product-badge-container-3rd-view {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

#product-badge-container-3rd-view .product-badges-container {
  position: relative;
  top: auto;
  left: auto;
  flex-direction: row;
  gap: 8px;
}

#product-badge-container-3rd-view .product-name {
  width: 100%;
}
@media (min-width: 992px) {
  .phone-card-img-wrapper,
  .phone-card-specs-wrapper {
    width: 50%;
  }
}

@media (max-width: 575.98px) {
  .phone-card-col {
    padding-left: 0;
    padding-right: 0;
  }

  .products-main-content {
    padding: 1rem 0.7rem;
  }

  .phone-card-col .product-img {
    width: 100%;
    height: auto !important;
    max-height: none !important;
  }
}
