/*
* App Custom CSS
* You can add your custom CSS here
******************************************************************************/

.menu-vertical .app-brand {
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
}

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 62px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.rtl-only {
  display: none !important;
  text-align: left !important;
  direction: ltr !important;
}

[dir='rtl'] .rtl-only {
  display: block !important;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
  #dropdown-variation-demo .btn-group .text-truncate {
    width: 231px;
    position: relative;
  }
  #dropdown-variation-demo .btn-group .text-truncate::after {
    position: absolute;
    top: 45%;
    right: 0.65rem;
  }
}

/*
* Custom CSS
******************************************************************************/

.cover-wrapper {
  width: 48px;
  min-width: 48px;
  height: 48px;
  border-radius: 3px;
  position: relative;
  display: inline-block;
  border: 1px solid #ccc;
  overflow: hidden;
}

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

.table-product-description {
  white-space: normal;
  overflow: hidden;
  max-width: 540px;
}

.table.dataTable.dtr-column > tbody > tr > td.control:before {
  z-index: 0;
}

table.dataTable.dtr-column > tbody > tr > td.dtr-control:before,
table.dataTable.dtr-column > tbody > tr > th.dtr-control:before,
table.dataTable.dtr-column > tbody > tr > td.control:before,
table.dataTable.dtr-column > tbody > tr > th.control:before {
  color: white;
  border: 0.15em solid white;
  box-shadow: none;
  background-color: #7f7f7f;
}

.table-order-description {
  white-space: normal;
  overflow: hidden;
}

.table-order-description table {
  font-size: 0.8rem;
}

.order-item-quantity {
  width: 60px;
}

.product-card {
}

.product-card .card-img-top {
  object-fit: contain;
  height: 200px;
}

.add-to-cart {
  flex-shrink: 0;
}

.shopping-cart-wrapper {
  width: 40px;
  height: 40px;
  position: fixed;
  top: 10px;
  right: 80px;
  opacity: 0;
  transform: scale(0);
  z-index: 1080;
  transition:
    transform 0.3s,
    opacity 0.3s;
}

@media (min-width: 1200px) {
  .shopping-cart-wrapper {
    width: 60px;
    height: 60px;
    top: 70px;
    right: 20px;
    z-index: 97;
  }
}

.shopping-cart-wrapper.showed {
  opacity: 1;
  transform: scale(1);
}

.shopping-cart-wrapper .cart-badge {
  width: 25px;
  height: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: -8px;
  left: -8px;
  border: 1px solid #fff;
  border-radius: 50%;
  font-size: 13px;
  background: #4d4d4d;
  color: #fff;
  z-index: 1;
}

.shopping-cart-wrapper .shopping-cart-button {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 0;
  right: 0;
  display: block;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  background: #4d4d4d;
  box-shadow: 0 0 0 6px rgb(77 77 77 / 20%);
  border: 1px solid #4d4d4d;
  border-radius: 20px;
  color: #fff;
  text-align: center;
  text-decoration: none;
  appearance: none;
  display: flex;
  justify-content: center;
  align-items: center;
  transition:
    background 0.3s,
    box-shadow 0.3s;
}

@media (min-width: 1200px) {
  .shopping-cart-wrapper .shopping-cart-button {
    width: 60px;
    height: 60px;
    font-size: 26px;
  }
}

.shopping-cart-wrapper .shopping-cart-button:hover {
  background: #585858;
  box-shadow: 0 0 0 2px rgb(77 77 77 / 20%);
}

.shopping-cart-wrapper .shopping-cart-button > i {
  transform: scaleX(-1);
  margin: 0 !important;
}

.cart-quantity,
.product-quantity {
  max-width: 64px;
}

.dataTables_wrapper {
  padding-bottom: 1.5rem;
}

.add-to-cart {
  min-width: 82px;
}

.card-cover-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
}

.card-cover-wrapper .card-img-top {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.cover-badges {
  position: absolute;
  bottom: 0;
  right: 1.5rem;
  gap: 0.5rem;
  display: flex;
  justify-content: space-between;
}

#catalog-toolbar {
  backdrop-filter: blur(4px);
  background-color: rgba(255, 255, 255, 0.85);
  position: sticky;
  top: 130px;
  z-index: 98;
}

#catalog-toolbar .pagination {
  margin: 0;
}

#catalogFilterCollapse {
  max-width: 100%;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  left: 0;
}

@media (min-width: 992px) {
  #catalogFilterCollapse {
    max-width: 75%;
    width: auto;
  }
}

.table-filters input,
.table-filters select {
  max-width: 100%;
}

@media (min-width: 992px) {
  .table-filters input,
  .table-filters select {
    max-width: 140px;
  }
}

.shop-content-container #productsTable_wrapper {
  display: none !important;
}

@media (max-width: 1199px) {
  #catalog-toolbar {
    top: 70px;
  }
}

.filter-form-trigger:not(.collapsed) {
  color: #fff !important;
  background-color: #69809a !important;
  border-color: #69809a !important;
}

.filter-form-trigger i {
  display: none;
}

.filter-form-trigger.collapsed i.bx-filter,
.filter-form-trigger:not(.collapsed) i.bx-x {
  display: block;
}

.checkout-card .checkout-product-price {
  min-width: 80px;
  white-space: nowrap;
  text-align: right;
}

select.cart-quantity,
select.product-quantity {
  width: 80px;
}

select.cart-quantity + .select2,
select.product-quantity + .select2 {
  min-width: 80px;
  max-width: 80px;
}
