.cart-summary-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #fc4b32 0%, #ff6b4a 100%);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  z-index: 1000;
  font-weight: bold;
  box-shadow: 0 -4px 20px rgba(252, 75, 50, 0.3);
  border-radius: 24px 24px 0 0;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-summary-bar.slide-in {
  transform: translateY(0);
  pointer-events: auto;
}

.cart-summary-bar.slide-out {
  transform: translateY(100%);
  pointer-events: none;
}

.view-cart-btn {
  background-color: white;
  color: #fc4b32;
  border: none;
  padding: 12px 20px;
  border-radius: 16px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.view-cart-btn:hover {
  background-color: #ffe6e6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.view-cart-btn:active {
  transform: translateY(0);
}

/* Mini Cart Dropdown Styles */
.mini-cart-dropdown {
  position: absolute;
  bottom: 70px;
  right: 24px;
  background: white;
  color: #222;
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  min-width: 280px;
  padding: 20px;
  z-index: 1100;
  animation: slideInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #f0f0f0;
  backdrop-filter: blur(10px);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mini-cart-dropdown ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mini-cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
  transition: background-color 0.2s ease;
}

.mini-cart-item:hover {
  background-color: #fafafa;
  border-radius: 12px;
  padding: 12px 8px;
  margin: 0 -8px 16px -8px;
}

.mini-cart-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.mini-cart-thumb {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid #f0f0f0;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.mini-cart-item:hover .mini-cart-thumb {
  transform: scale(1.05);
}

.mini-cart-item span:nth-child(2) {
  flex: 1;
  font-weight: 600;
  color: #333;
}

.mini-cart-item span:nth-child(3) {
  color: #666;
  font-size: 12px;
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 12px;
}

.mini-cart-item span:nth-child(4) {
  font-weight: 700;
  color: #fc4b32;
  font-size: 16px;
}

.mini-cart-empty {
  text-align: center;
  color: #888;
  padding: 30px 0;
  font-style: italic;
}

/* Mini Cart Footer Styles */
.mini-cart-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 18px;
  color: #333;
  padding: 8px 0;
}

.proceed-checkout-btn {
  background: linear-gradient(135deg, #fc4b32 0%, #ff6b4a 100%);
  color: white;
  border: none;
  padding: 14px 20px;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(252, 75, 50, 0.3);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.proceed-checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(252, 75, 50, 0.4);
  background: linear-gradient(135deg, #e53935 0%, #f44336 100%);
}

.proceed-checkout-btn:active {
  transform: translateY(0);
}

.proceed-checkout-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.proceed-checkout-btn:hover::before {
  left: 100%;
}

/* Enhanced cart summary info */
.cart-summary-info {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  animation: pulse 2s infinite;
}

.cart-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
}

.cart-info-divider {
  width: 1px;
  height: 24px;
  background-color: rgba(255, 255, 255, 0.3);
}

.cart-text {
  color: white;
  font-weight: 600;
  font-size: 16px;
}

.cart-icon,
.price-icon {
  color: white;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .cart-summary-bar {
    padding: 14px 16px;
    border-radius: 24px 24px 0 0;
  }

  .view-cart-btn {
    padding: 10px 16px;
    font-size: 14px;
  }

  .cart-summary-info {
    font-size: 14px;
  }

  .mini-cart-dropdown {
    right: 16px;
    left: 16px;
    min-width: auto;
  }
}

/* Free Delivery Progress Bar Styles */
.free-delivery-progress-container {
  flex: 1 1 100%;
  max-width: 340px;
  margin: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
}

.free-delivery-progress-bar-bg {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2px;
}

.free-delivery-progress-bar-fill {
  height: 100%;
  /* background: linear-gradient(90deg, #ffe6e6 0%, #fc4b32 100%); */
  background: linear-gradient(90deg, #eebc8b 0%, #ffffff 100%);
  border-radius: 8px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.free-delivery-progress-text {
  font-size: 14px;
  color: #fff;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(252, 75, 50, 0.12);
}

@media (max-width: 768px) {
  .free-delivery-progress-container {
    max-width: 100%;
    margin: 8px 0 0 0;
    align-items: stretch;
  }
  .free-delivery-progress-bar-bg {
    height: 8px;
  }
  .free-delivery-progress-text {
    font-size: 12px;
  }
}
