:root {
  --sidekart-primary: #65378b;
  --sidekart-accent: #65378b;
  --sidekart-accent-hover: #5a189a;
  --sidekart-bg: #fff;
  --sidekart-bg-soft: #fbf9fe;
  --sidekart-text: #1a1a1a;
  --sidekart-text-muted: #8c7a7d;
  --sidekart-border: #e5e1eb;
  --sidekart-purple-soft: #7b2cbf15;
  --sidekart-font: "Manrope", sans-serif;
  --sidekart-gradient: linear-gradient(90deg, #e56eeb -13.59%, #8863fb 111.41%);
}

.sidekart-wrapper {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  visibility: hidden;
  transition: visibility 0.4s;
}

.sidekart-wrapper.open {
  visibility: visible;
}

.sidekart-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.4s;
}

.sidekart-wrapper.open .sidekart-overlay {
  opacity: 1;
}

.sidekart-drawer {
  position: absolute;
  top: 0;
  right: -450px;
  width: 400px;
  max-width: 90%;
  height: 100%;
  background: var(--sidekart-bg);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.08);
  transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  font-family: var(--sidekart-font);
}

.sidekart-wrapper.open .sidekart-drawer {
  right: 0;
}

.sidekart-header {
  padding: 10px 20px;
  border-bottom: 1px solid var(--sidekart-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
}

.sidekart-title {
  font-weight: 700;
  font-size: 1.1em;
  letter-spacing: 1px;
}

.sidekart-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #999;
  padding: 0;
}

.sidekart-close:hover {
  background-color: transparent;
  color: #000;
}

.sidekart-content {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  scrollbar-width: thin;
}

.sidekart-items {
  border-radius: 12px;
  background-color: #fff;
  scrollbar-width: none;
}

.sidekart-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  position: relative;
  border-bottom: 1px solid #ddd;
  margin-bottom: 15px;
}

.sidekart-item:last-child {
  border-bottom: none;
}

.sidekart-item-image img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

.sidekart-item-details {
  flex: 1;
}

.sidekart-item-title {
  margin: 0 0 5px;
  font-size: 0.95em;
  font-weight: 600;
}

.sidekart-item-price {
  font-weight: 700;
  color: var(--sidekart-primary);
}

.quantity-controls {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  width: fit-content;
  border-radius: 4px;
  width: fit-content;
  padding: 5px 10px;
  background: #f9f9f9;
}

.qty-btn {
  background: #f9f9f9;
  border: none;
  padding: 0px 5px;
  cursor: pointer;
  color: #000;
}

.qty-btn:hover {
  background-color: inherit;
  color: inherit;
}

.qty-input {
  width: 30px;
  text-align: center;
  border: none;
  background: none;
  padding: 0 !important;
  display: flex;
  box-shadow: none !important;
  background: transparent !important;
  -moz-appearance: textfield;
}

.sidekart-item-meta-details {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.sidekart-item-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
}

.remove-item {
  text-decoration: none;
  color: #999;
  font-size: 20px;
  line-height: 1;
  display: block;
  padding: 5px;
}

.remove-item:hover {
  color: #ff0000;
}

.sidekart-footer {
  padding: 20px;
  border-top: 1px solid var(--sidekart-border);
  background: #fff;
}

.sidekart-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.2em;
  margin-bottom: 20px;
}

.sidekart-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkout-button {
  background: var(--sidekart-gradient);
  color: #fff;
  text-align: center;
  padding: 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(136, 99, 251, 0.3);
}

.checkout-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(136, 99, 251, 0.4);
  color: #fff;
}

.sidekart-continue-shopping {
  text-align: center;
  font-size: 0.9em;
  color: #666;
  text-decoration: underline;
}

/* Recommendations */
.sidekart-recommendations {
  background: #fff;
  padding: 15px;
}

.recommendations-title {
  text-align: left;
  margin-bottom: 20px;
  font-weight: 500;
  font-size: 1.2em;
  color: #333;
}

.recommendations-list {
  display: flex;
  overflow-x: auto;
  gap: 15px;
  padding-bottom: 10px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.recommendations-list::-webkit-scrollbar {
  height: 4px;
}

.recommendations-list::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 10px;
}

.rec-item {
  min-width: 160px;
  flex: 0 0 160px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.3s ease;
}

/* .rec-item:hover {
  transform: translateY(-5px);
} */

.rec-item-image {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.rec-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.rec-wishlist {
  position: absolute;
  right: 10px;
  cursor: pointer;
  color: #333;
  transition: transform 0.2s;
  top: 10px;
}

.rec-wishlist {
  /* top: 10px;
  background: rgba(255, 255, 255, 0.9);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
}

.rec-wishlist .tinv-wla-wrapper {
  margin: 0 !important;
}

.rec-wishlist .tinvwl_add_to_wishlist_button {
  width: 24px !important;
  height: 24px !important;
}

.rec-wishlist .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart:before {
  font-size: 16px !important;
}

.rec-icon-cart {
  bottom: 10px;
}

.rec-wishlist:hover,
.rec-icon-cart:hover {
  transform: scale(1.1);
}

.rec-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.rec-item-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
  /* min-height: 24px; */
}



.rec-item-attr {
  font-size: 10px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.swatches-wrapper {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.product-variations-swatch {
  position: relative;
  display: block;
  cursor: pointer;
}

.swatch-circle {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  overflow: hidden;
  position: relative;
}

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

.swatch-name {
  display: none;
}

.swatch-circle-border {
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border: 1px solid var(--sidekart-accent);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.product-variations-swatch:hover .swatch-circle-border {
  opacity: 1;
}

.rec-item-title {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 6px 0;
  color: var(--sidekart-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  /* min-height: 38px; */
  line-height: 1.4;
}

.rec-item-price {
  font-weight: 800;
  font-size: 14px;
  color: var(--sidekart-primary);
  text-align: left;
  display: flex;
  gap: 5px;
  margin-bottom: 4px;
}



.rec-item-price del {
  color: var(--sidekart-text-muted);
  font-weight: 400;
  font-size: 0.9em;
}

.rec-item-price ins {
  text-decoration: none;
}

.rec-add-to-cart-wrapper {
  margin-top: auto;
}

.rec-add-to-cart {
  font-size: 11px;
  padding: 8px 20px !important;
  text-decoration: none;
  width: 100%;
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 30px;
  background-color: var(--sidekart-accent) !important;
  color: #fff !important;
  transition: all 0.2s ease;
  border: none !important;
  display: block;
}

.rec-add-to-cart:hover {
  /* background-color: var(--sidekart-accent-hover) !important; */
  transform: scale(1.02);
  color: #fff !important;
}

.rec-add-to-cart:hover {
  /* background-color: #333 !important;
  color: #fff !important; */
}

.sidekart-coupon-section {
  margin: 0;
  background: #fff;
  border-radius: 8px;
  padding-bottom: 2px;
}

.sidekart-coupon-input-wrapper {
  display: flex;
  gap: 5px;
  background-color: #fff;
  border-radius: 7px;
  align-items: center;
}

.sidekart-coupon-input-wrapper input[type="text"] {
  margin-bottom: 0;
  padding: 6px 6px;
  background-color: #fff;
  box-shadow: none;
}

.sidekart-coupon-input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.sidekart-apply-coupon {
  padding: 8px 15px;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background-color: var(--sidekart-accent);
}

.sidekart-coupon-input-wrapper.coupon-applied {
  justify-content: space-between;
  padding: 12px 15px;
  border: 1px solid var(--sidekart-purple-soft);
  background-color: var(--sidekart-bg-soft);
  border-radius: 8px;
}

.sidekart-coupon-applied-text {
  font-size: 14px;
  color: var(--sidekart-primary);
  font-weight: 500;
}

.sidekart-coupon-applied-text strong {
  color: var(--sidekart-accent);
  margin-left: 4px;
}

.sidekart-remove-coupon {
  padding: 6px 14px;
  background: #ff4d6d;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sidekart-remove-coupon:hover {
  background: #ff1a4a;
  color: #fff;
  transform: translateY(-1px);
}

/* View All Coupons Toggle */
.sidekart-view-coupons-wrapper {
  margin-top: 10px;
}

.sidekart-view-coupons-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 13px;
  color: var(--sidekart-accent);
  text-decoration: none;
  cursor: pointer;
  padding: 0;
}

.sidekart-view-coupons-link:hover {
  text-decoration: underline;
}

.sidekart-view-coupons-link .toggle-arrow {
  font-size: 10px;
  transition: transform 0.3s ease;
}

.sidekart-view-coupons-link.active .toggle-arrow {
  transform: rotate(180deg);
}

/* Coupons List */
.sidekart-coupons-list {
  margin-top: 10px;
  max-height: 200px;
  overflow-y: auto;
  border-top: 1px solid #eee;
  padding-top: 10px;
  padding-bottom: 10px;
}

.sidekart-coupon-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #f8f4ff 0%, #fff 100%);
  border: 1px dashed var(--sidekart-accent);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.sidekart-coupon-item:hover {
  box-shadow: 0 2px 8px rgba(123, 44, 191, 0.15);
}

.sidekart-coupon-item:last-child {
  margin-bottom: 0;
}

.coupon-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.coupon-code {
  font-weight: 700;
  font-size: 14px;
  color: var(--sidekart-accent);
  letter-spacing: 0.5px;
}

.coupon-discount {
  font-size: 12px;
  color: #28a745;
  font-weight: 600;
}

.coupon-description {
  font-size: 11px;
  color: #666;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coupon-apply-btn {
  padding: 6px 14px;
  font-size: 12px;
  background: var(--sidekart-accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.coupon-apply-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.sidekart-notices {
  padding: 0 10px;
  width: 100%;
}

.sidekart-notices .woocommerce-error,
.sidekart-notices .woocommerce-message,
.sidekart-notices .woocommerce-info {
  margin: 5px 0 !important;
  font-size: 14px !important;
  position: relative;
  overflow: hidden;
  padding: 10px !important;
}

.wc-notice-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.3);
  transform-origin: left;
}

.notice-success .wc-notice-progress-bar {
  background-color: #28a745;
}

.notice-error .wc-notice-progress-bar {
  background-color: #dc3545;
}

.notice-info .wc-notice-progress-bar {
  background-color: #17a2b8;
}

/* Loading State */
.sidekart-content {
  position: relative;
}

.sidekart-content.loading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  z-index: 10;
  cursor: wait;
}

.sidekart-content.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid #eee;
  border-top-color: var(--sidekart-accent);
  border-radius: 50%;
  animation: sidekart-spin 0.8s linear infinite;
  z-index: 11;
}

.woocommerce-info::before,
.woocommerce-error::before {
  content: none !important;
}

@keyframes sidekart-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Offer Bar Styles */
.sidekart-offer-bar-wrapper {
  border-bottom: 1px solid var(--sidekart-border);
}

.sidekart-offer-bar {
  min-height: 7rem;
  width: 100%;
}

.sidekart-offer-message {
  font-size: 14px;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 0 15px 0;
  gap: 5px;
}

.sidekart-offer-message strong {
  font-weight: 700;
}

.sidekart-progress-container {
  position: relative;
}

.sidekart-progress-line-bg {
  width: 90%;
  position: relative;
  height: 2px;
  background: #fff;
}

.sidekart-progress-line-fill {
  height: 2px;
  background: #111;
  transition: all .75s ease-in-out;
  max-width: 100%;
}

.sidekart-offer-stages {
  /* position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%; */
}

.sidekart-offer-stage {
  position: absolute;
  top: -15px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  /* width: 60px; */
}

.stage-icon-wrapper {
  width: 1.8rem;
  height: 1.8rem;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  position: relative;
  transition: all 0.3s ease;
}

.stage-icon-wrapper svg {
  width: 15px;
  height: 15px;
}

/* .sidekart-offer-stage.offer-stage-one {
    left: 20%;
}
.sidekart-offer-stage.offer-stage-two {
    left: 90%;
}
.sidekart-offer-stage.offer-stage-three {
    left: 60%;
}
.sidekart-offer-stage.offer-stage-four {
    left: 80%;
} */

.sidekart-offer-stage.completed .stage-icon-wrapper {
  box-shadow: 0 0 10px rgba(36, 182, 182, 0.2);
}

.stage-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.stage-icon-placeholder {
  width: 14px;
  height: 14px;
  background: #ccc;
  border-radius: 50%;
}

.sidekart-offer-stage.completed .stage-icon-placeholder {
  background: #24b6b6;
}

.stage-check {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #24b6b6;
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.stage-label-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stage-threshold {
  font-size: 12px;
  font-weight: 600;
  color: #111;
  line-height: 1.2;
  display: flex;
}

.stage-label {
  font-size: 12px;
  color: #888;
  line-height: 1.2;
}

.sidekart-offer-stage.completed .stage-label {
  color: #111;
}

.stage-threshold .woocommerce-Price-amount {
  font-size: 12px;
}

/* Empty Cart View */
.sidekart-empty-view {
  padding: 40px 15px;
}

.sidekart-empty-message {
  text-align: center;
  margin-bottom: 40px;
}

.empty-icon {
  color: #ddd;
  margin-bottom: 20px;
}

.sidekart-empty-message h3 {
  font-size: 1.4em;
  margin-bottom: 20px;
  color: #333;
}

.sidekart-empty-view .sidekart-continue-shopping {
  display: inline-block;
  background: var(--sidekart-primary);
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none !important;
  font-weight: 600;
  transition: transform 0.2s;
}

.sidekart-empty-view .sidekart-continue-shopping:hover {
  transform: translateY(-2px);
  color: #fff !important;
}

.empty-cart-recommendations {
  background: #fdfdfd;
  margin-top: 20px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}