/* FLOATING CART WRAPPER */
.cart-wrapper {
  position: fixed;
  bottom: var(--basket-y);
  z-index: 9999;
}

/* Horizontal position */
.cart-wrapper.position-right {
  right: var(--basket-x);
}

.cart-wrapper.position-left {
  left: var(--basket-x);
}

/*  CART BUTTON */
.cart-open-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  min-height: 60px !important;
  min-width: 60px !important;
  width: auto !important;
  height: auto !important;
  padding: 15px !important;

  background: var(--basket-bg) !important;
  color: var(--basket-color) !important;

  border: none !important;
  cursor: pointer !important;

  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Shapes */
.cart-wrapper.shape-round .cart-open-btn {
  border-radius: 50%;
}

.cart-wrapper.shape-square .cart-open-btn {
  border-radius: 10px;
}

/* Icon */
.cart-btn-icon svg {
  width: var(--cart-icon-size);
  height: var(--cart-icon-size);
  display: block;
}

/* PRODUCT COUNT BADGE */
.product-count-badge {
  position: absolute;
  top: -6px;
  min-width: 28px;
  width: 28px;
  height: 28px;
  padding: 5px 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  border-radius: 999px;
  border: 1px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-sizing: border-box;
}
.product-count-badge.position-top_right {
  right: -6px;
}
.product-count-badge.position-top_left {
  left: -6px;
}

/* ----------------------
  SIDECART COMPONENT CSS
------------------------- */

.sidecart-main {
  position: fixed;
  top: 0;
  right: 0;
  max-width: 100%;
  height: 100vh;
  background-color: #ffffff;
  z-index: 999999;
  display: flex;
  flex-direction: column;
}

/* .sidecart {
  position: fixed;
  top: 0;
  height: 100vh;
  background: #fff;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.sidecart-right {
  right: 0;
  transform: translateX(100%);
}
.sidecart-left {
  left: 0;
  transform: translateX(-100%);
}

.sidecart.open.sidecart-right {
  transform: translateX(0);
}
.sidecart.open.sidecart-left {
  transform: translateX(0);
}

.sidecart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1000;
}
.sidecart-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.sidecart-header {
  position: relative;
  padding: 16px;
}

.sidecart-close {
  position: absolute;
  top: 12px;
  background: none;
  border: none;
  cursor: pointer;
}
.sidecart-close.position-left {
  left: 12px;
}
.sidecart-close.position-right {
  right: 12px;
}

.sidecart-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.sidecart-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.sidecart-footer {
  padding: 16px;
  border-top: 1px solid #eee;
}

.footer-buttons {
  display: grid;
  gap: 8px;
} */

/* DELETE SVG COLORS */
.delete-svg {
  color: var(--trash-icon-clr) !important;
}
.delete-svg:hover {
  color: var(--trash-icon-hvr-clr) !important;
}

.delete-text {
  color: var(--trash-text-clr) !important;
}
.delete-text:hover {
  color: var(--trash-text-hvr-clr) !important;
  text-decoration: underline;
}

/* DELETE PRODUCT BUTTON CSS */
.delete-btn, .close-btn, .return-to-shop-btn {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  color: inherit !important;
  font-size: inherit !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* DELETE PRODUCT BUTTON SVG CSS */
.delete-btn svg {
  width: 21px !important;
  height: 21px !important;
}

/* CLOSE SIDECART SVG CSS */
.close-svg svg {
  width: var(--close-svg-size) !important;
  height: var(--close-svg-size) !important;
  color: var(--close-svg-color) !important;
}

/* LOADER */
/* Full-screen overlay */
.overlay-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(253, 251, 251, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}
/* Simple lightweight spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #d2d2d2;
  border-top-color: #2271b1;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
/* rotation animation */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* SLIDER CSS */
.slider-add-btn {
  border: none !important;
  background-color: var(--slider-btn-bg-clr) !important;
  color: var(--slider-btn-txt-clr) !important;
}
.slider-add-btn:hover {
  background-color: var(--slider-btn-hvr-bg-clr) !important;
  color: var(--slider-btn-txt-hvr-clr) !important;
}
.swiper-Btn {
  background-color: var(--nav-btn-bg-clr) !important;
  width: 30px !important;
  height: 30px !important;
  padding: 0px !important;
  border: none !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 0 !important;
}
.swiper-Btn:hover {
  background-color: var(--nav-btn-hover-bg-clr) !important;
}
.swiper-svg {
  fill: var(--nav-btn-svg-clr) !important;
}
.swiper-svg:hover {
  fill: var(--nav-btn-hover-svg-clr) !important;
}

/* PRODUCT CARD CSS */
.product-title {
  color: var(--title-color);
}
.product-title:hover {
  color: var(--title-hover-color);
}

/* FOOTER SECTION BUTTON CSS */
.footer-section .components-button {
  border: none !important;
  height: auto !important;
  font-size: var(--btn-font-size) !important;
  padding: var(--btn-padding) !important;
  background-color: var(--btn-bg-clr) !important;
  color: var(--btn-txt-clr) !important;
  justify-content: center;
}
.footer-section .components-button:hover {
  background-color: var(--btn-bg-hvr-clr) !important;
  color: var(--btn-txt-hvr-clr) !important;
}
.footer-section .components-button:focus {
  border: none !important;
  box-shadow: none !important;
}

/* RETURN TO SHOP BUTTON CSS */
.return-to-shop-btn {
  font-size: var(--btn-font-size) !important;
  padding: var(--btn-padding) !important;
  background-color: var(--btn-bg-clr) !important;
  border-radius: 6px !important;
  color: var(--btn-txt-clr) !important;
}
.return-to-shop-btn:hover {
  background-color: var(--btn-bg-hvr-clr) !important;
  color: var(--btn-txt-hvr-clr) !important;
}

/* Default: allow scroll */
html,
body {
  overflow: auto;
}

/* Lock page scroll when cart is open */
html.pscfw-cart-open,
body.pscfw-cart-open {
  overflow: hidden;
  height: 100%;
}

/* EMPTY CART SECTION */
.empty-cart-section {
  text-align: center;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

/* PRODUCT CARD CSS */
.product-card {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  background: #ffffff;
  border-radius: 6px;
  padding: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* CART DETAILS SECTION */
.cart-details-section {
  padding: 10px 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 16px;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 6px;
}
.cart-details-item {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

/* SLIDER CSS */
.slider-main {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  width: 100%;
  box-sizing: border-box;
}