/* Container for side cart */
#side-cart-root {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: var(--side-cart-width);
  height: 100vh;
  background-color: #fff;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
 
}
.side-cart p {
    margin: 0;
}

#side-cart-root.open {
  right: 0;

}
body.side-cart-open {
  overflow: hidden !important;
}
.side-cart {
  height: 100vh;
  display: flex;
  flex-direction: column;
}
/* Close button */
.close-cart {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none; 
  font-size: 28px;
  cursor: pointer;
  color: #333;
}
.side-cart-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 16px 16px;
  border-bottom: 1px solid #ddd;
}
.side-cart-heading {
  margin: 0 auto;
font-size: var(--cart-title-font-size);
color: var(--cart-title-color);
  font-weight: bold;
  text-align: center;
}
.side-cart-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
}
.side-cart-close:hover {
  color: #f90c0c;
}
.cart-empty-btn {
  position: absolute;
  right: 16px;
  top: 30px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
}
/* Cart content */
.side-cart-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-top: 3px;
}
.side-cart-items {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

.side-cart-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 12px 12px 12px;
  border-bottom: 1px solid #eee;
  position: relative;
}
.side-cart-item img {
  width: 70px !important;
  height: 70px !important;
  object-fit: contain;
}
/* Remove Button – top-right corner */
.remove-btn {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  font-size: 16px;
  color: #000000;
  cursor: pointer;
  transition: color 0.3s;
}
.remove-btn:hover {
  color: #f90c0c;
}
.remove-btn::before {
  content: "\1F5D1"; /* Trash can icon */
  font-family: "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
}
/* Text container */
.item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;  
}
/* Title */
.item-title{
  width: 90%;
}
.item-title a{
  font-size: 14px;
  color: #111;
  text-decoration: none !important;
}
/* Optional: Subtext like color */
.item-subtext {
  font-size: 14px;
  color: #888;
}
/* Quantity row */
.item-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 90px;
}
/* Quantity box */
.item-quantity {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
  height: 28px;
}
/* Buttons */
.qty-btn {
  width: 30px;
  height: 30px;
  font-size: 14px;
  border: none;
  background-color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}
/* Quantity number */
.item-quantity span {
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
  font-size: 14px;
  color: #111;
}

.item-quantity input.qty-input {
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
  border-top: none;
  border-bottom: none;
  font-size: 14px;
  color: #111;
  outline: none;
  box-shadow: none;
}

/* Price */
.item-price {
  font-size: 14px;
  color: #111;
  margin-left: auto;
}
/* Checkout button */
.side-cart-checkout {
  display: block;
  background-color: var(--checkout-btn-bg-color);
  color: var(--checkout-text);
  text-align: center;
  padding: 12px;
  margin-top: 16px;
  text-decoration: none;
  border-radius: var(--checkout-radius);
  font-weight: 600;
  transition: background 0.3s;
  border: 2px solid var(--checkout-border-color);
  font-size: var(--checkout-font-size);
}

.side-cart-footer {
  padding: 16px 20px;
  background-color: #fff;
  flex-shrink: 0;
  margin-top: auto;
  font-size: var(--subtotal-text-font-size);
  color: var(--subtotal-text-color);
  box-shadow: 0 -1px 8px rgba(0, 0, 0, .15);
}
 #floating-cart-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 70px;
  height: 70px;
  background-color: black;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}
.cart-count-badge {
  position: absolute;
  top: 0px;
  right: 0px;
  background: red;
  color: white;
  font-size: 12px;
  font-weight: bold;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.empty-cart-message {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
  font-size: 18px;
  color: #666;
}
.cart-continue-shopping-btn {
  text-decoration: none;
  color: #fff;
  font-size: 18px;
  background-color: #000;
  padding: 10px 18px;
  border-radius: 4px;
}

.recommendation-card {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
  background: white;
  border-radius: 6px;
}
.recommendation-card img {
  width: 100%;
  max-height: 120px;
  object-fit: contain;
}
.recommendation-card button {
  background: black;
  color: white;
  padding: 5px 10px;
  margin-top: 5px;
  border: none;
  cursor: pointer;
}

.total-label {
  text-align: left;

}
.total-price {
  text-align: right;
}
.side-cart-footer p{
  margin: auto;  
  color: var(--tax-note-color);
  font-size: var(--tax-note-font-size);
}
#side-cart-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
#side-cart-loader .loader-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ddd;
  border-top: 4px solid #000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: block;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}
.welcome-note {
    text-align: center;
    color: var(--welcome-note-color);
    font-size: var(--welcome-note-font-size);
    padding: 10px;
    margin:0;
}
.store-welcome-note {
    background: var(--welcome-note-bg-color);
}


/* Header */
.rec-modern-header {
  padding: 0px 16px 0px;
}

.rec-title {
  font-size: var(--rec-product-title-font-size);
  color: var(--rec-product-title-color);
  font-weight: 600;
  margin-top: 30px !important;
  margin-bottom: 4px !important;

}

/* Horizontal scroll container */
.rec-modern-track {
  display: flex;
  gap: 14px;
  padding: 0 16px 8px;
  overflow-x: auto;
  margin-bottom: 20px;
}


/* Card */
.rec-modern-card {
  flex: 0 0 135px;
  background: #ffffff;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rec-modern-card:active {
  transform: scale(0.98);
}

/* Image */
.rec-img-wrap {
  background: #f7f7f7;
  border-radius: 12px;
  padding: 8px;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rec-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Title */
.rec-modern-title {
  font-size: 12px;
  margin: 10px 0 8px !important;
  line-height: 1.3;
  height: 34px;
  overflow: hidden;
}

/* Footer */
.rec-modern-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Price */
.rec-modern-price {
  font-size: 12px;
  font-weight: 700;
}

/* Add Button */
.rec-modern-add {
  padding: 5px 11px;
  border-radius: 999px;
  background: #000000;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.rec-modern-add:active {
  transform: scale(0.95);
}

.side-cart-row {
  display: flex;
  justify-content: space-between;
}

.side-cart-row.discount {
  color: var(--discount-color);
}

.discount-amount {
  font-weight: 600;
}

.side-cart-row.total {
  border-top: 1px solid #eee;
  margin-top: 8px;
  font-weight: 700;
}
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
 appearance: none;
}

.side-cart-overlay.open{
  position: fixed;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 999;
    display: block !important;
}

body.side-cart-hide-scroll{
  overflow: hidden;
}


/* Chrome / Safari */
.goal-progress::-webkit-progress-bar {
  background-color: #e0e0e0;
  border-radius: 8px;
}

.goal-progress.start::-webkit-progress-value {
  background-color: var(--cart-goal-bar-color);
}

.goal-progress.halfway::-webkit-progress-value {
  background-color: var(--cart-goal-bar-color);
}

.goal-progress.complete::-webkit-progress-value {
  background-color: var(--cart-goal-bar-color);
}

/* Firefox */
.goal-progress::-moz-progress-bar {
  border-radius: 8px;
}

.goal-progress.start::-moz-progress-bar {
  background-color: var(--cart-goal-bar-color);
}

.goal-progress.halfway::-moz-progress-bar {
  background-color: var(--cart-goal-bar-color);
}

.goal-progress.complete::-moz-progress-bar {
  background-color: var(--cart-goal-bar-color);
}
.goal-message{
  text-align: center;
  padding-top: 10px !important;
  padding-bottom: 8px;
}
.goal-text{
  font-size: 14px;
}
.cart-goal-bar{
  padding: 1px 20px 35px 10px;
}
.progress-wrapper {
  position: relative;
  width: 100%;
  margin-top: 11px;
  display: flex;
}

/* Progress bar */
.goal-progress {
  width: 100%;
  height: 10px;
  appearance: none;
  border-radius: 8px; 
  overflow: hidden;
}

/* Icons */
.progress-icon {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 2;
  border: 1px solid var(--cart-goal-bar-icon-border-color);
}
.progress-icon-text {
  position: absolute;
  top: 46px;          /* icon is 40px tall */
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: #000;
  white-space: nowrap;
  line-height: 1;
  pointer-events: none;
}
/* SVG inside icon */
.progress-icon svg {
  width: 22px;
  height: 22px;
  fill:  var(--cart-goal-bar-icon-color);
}

/* Positions */
.progress-icon.center {
  left: 50%;
}

.progress-icon.end {
  left: 100%;
  transform: translate(-100%, -50%);
}

/* Reached states */
.progress-icon.reached {
  background-color: var(--cart-goal-bar-color);
}

.progress-icon.reached svg {
  fill: var(--cart-goal-bar-icon-reached-color);
}

/* Optional pulse animation when reached */
.progress-icon.reached {
  animation: pop 0.4s ease-out;
}

@keyframes pop {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}
.progress-icon.end.reached {
  transform: translate(-100%, -50%) scale(1);
}
