.supersb-cart .supersb-icon i {
  font-size: 22px;
  color: #fff;
  vertical-align: middle;
}


.supersb-cart {
  position: relative;
}

.supersb-cart .supersb-icon {
  width: 42px;
  height: 42px;
  line-height: 42px;
  text-align: center;
  background: #2f6f58;
  position: relative;
}

.super-sidebar .supersb-cart .supersb-mask,
.super-sidebar .supersb-cart .supersb-icon {
  overflow: visible !important;
}

.super-sidebar .supersb-cart .supersb-badge {
  z-index: 5;
}

.supersb-badge {
  position: absolute;
  bottom: -6px;
  left: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 18px;
  background: #fff;
  color: #2f6f58;
  font-size: 11px;
  line-height: 18px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 0 4px rgba(0, 0, 0, .2);
  z-index: 2;
  opacity: 0;
  transform: scale(.6);
  transform-origin: 50px 100%;
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}

#cart-badge {
  display: none;
}

#cart-badge.show {
  display: inline-block;
}

.supersb-badge.show {
  opacity: 1;
  transform: scale(1);
}

.supersb-badge.pop {
  animation: bf-badge-pop .38s cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes bf-badge-pop {
  0% {
    transform: translate(-2px, 2px) scale(2.6);
    opacity: 0;
  }

  60% {
    transform: translate(0, 0) scale(.95);
    opacity: 1;
  }

  100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
}

.cart-drawer {
  position: absolute;
  top: 50%;
  right: 56px;
  width: 400px;
  max-height: calc(100vh - 24px);
  background: #fff;
  color: #333;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  z-index: 2147480000;
  display: grid;
  grid-template-rows: auto 1fr auto;

  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translate(12px, -50%);
  transition: transform .22s ease, opacity .22s ease, visibility 0s linear .22s;
}

.cart-drawer-header {
  background: #2f6f58;
  color: #fff;
  padding: 12px 14px;
  font-weight: 600;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-close-btn {
  display: none;
}

.cart-drawer-body {
  overflow: auto;
  padding: 12px 14px;
  max-height: 360px;
}

.cart-drawer-footer {
  padding: 12px 14px;
  border-top: 1px solid rgba(0, 0, 0, .08);
}

.supersb-cart:hover:not(.lock-hover) .cart-drawer,
.supersb-cart:focus-within .cart-drawer,
.supersb-cart.open .cart-drawer {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

.supersb-cart::before {
  content: "";
  position: absolute;
  top: 0;
  right: 42px;
  width: 20px;
  height: 100%;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 8px;
  padding: 5px 0;
  height: auto !important;
}

.cart-line .title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.cart-line .controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.cart-line .controls .btn {
  padding: 2px 6px;
  line-height: 1;
}

.cart-line .controls .small {
  min-width: 18px;
  text-align: center;
}

.cart-line .controls .text-muted {
  min-width: 60px;
  text-align: right;
  margin-left: 6px;
}

.shop-thumb {
  width: 100%;
  padding-top: 62%;
  cursor: zoom-in;
  background-image: linear-gradient(135deg, #f2f2f2 25%, #e6e6e6 25%, #e6e6e6 50%, #f2f2f2 50%, #f2f2f2 75%, #e6e6e6 75%, #e6e6e6 100%);
  background-size: 24px 24px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05);
}

.shop-zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .86);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2147483600;
  cursor: zoom-out;
}

.shop-zoom-overlay .zoom-content {
  width: min(900px, 96vw);
  height: min(700px, 88vh);
  background: #000 no-repeat center/contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.shop-zoom-overlay img {
  max-width: 96vw;
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

body.no-scroll {
  overflow: hidden;
}

.cart-stepper .btn:disabled {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none;
}

#shop-products {
  display: flex;
  flex-wrap: wrap;
}

/* PayPal modal */
.paypal-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
}

.paypal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
}

.paypal-modal__dialog {
  position: relative;
  margin: 6vh auto 0;
  max-width: 520px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
  padding: 16px 16px 20px;
}

.paypal-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.paypal-modal__title {
  margin: 0 0 12px;
  font-weight: 600;
}

#paypal-button-container {
  min-height: 45px;
}

/* === Compact product list layout for new shop.php === */

#shop-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-item {
  width: 100%;
  margin: 0 !important;
  padding: 2px 5px;
  /* border-bottom: 1px solid #e0e0e0; */
}

/* .product-item:nth-child(odd) {
  border-right: 1px solid #e0e0e0;
} */

.product-item .panel,
.product-item .panel-body {
  border: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
  background: transparent;
}

.product-row {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 6px;
  font-size: 13px;
  line-height: 1.3;
}

.product-name {
  flex: 0 0 40%;
  font-weight: 600;
}

.variants {
  flex: 1 1 60%;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 0;
}

.variant-line {
  display: flex;
  align-items: center;
  min-width: 100%;
}

.variant-line .variant-volume {
  flex: 0 0 60px;
  text-align: right;
  white-space: nowrap;
}

.product-item .cart-stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0 6px;
}

.product-item .cart-stepper .btn {
  height: 24px;
  width: 24px;
  padding: 0;
  line-height: 1;
}

.product-item .cart-stepper .qty {
  min-width: 18px;
  text-align: center;
  display: inline-block;
}

.variant-price {
  margin-left: 4px;
  white-space: nowrap;
}

.product-item .cart-stepper .qty.has-items {
  border-radius: 999px;
  background: #4caf50;
  color: #fff;
  padding: 0 6px;
}

@media (max-width: 999px) {
  #sidebar-tags {
    margin-bottom: 15px;
  }

  #sidebar-tags .nav.nav-stacked {
    display: flex;
    flex-wrap: wrap;
  }

  #sidebar-tags .nav.nav-stacked>li {
    float: none;
    margin-right: 6px;
    margin-bottom: 6px;
  }

  #sidebar-tags .nav.nav-stacked>li>a {
    white-space: nowrap;
    padding: 6px 10px;
  }

  #shop-products {
    display: block;
  }

  .product-item {
    width: 100%;
    padding-right: 0;
    border-right: none;
  }

  .product-item:nth-child(odd) {
    border-right: none;
  }
}

@media (max-width: 500px) {
  .cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-height: none;
    height: 100vh;
    border-radius: 0;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform .22s ease, opacity .22s ease;
  }

  .supersb-cart.open .cart-drawer {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  .supersb-cart::before {
    display: none;
  }

  .cart-drawer-body {
    max-height: none;
  }

  .cart-close-btn {
    display: inline-block;
    margin-left: 8px;
  }
}